aboutsummaryrefslogtreecommitdiffstats
path: root/contrib/tools/cython/Cython/Includes/posix/time.pxd
diff options
context:
space:
mode:
authorAnton Samokhvalov <pg83@yandex.ru>2022-02-10 16:45:15 +0300
committerDaniil Cherednik <dcherednik@yandex-team.ru>2022-02-10 16:45:15 +0300
commit72cb13b4aff9bc9cf22e49251bc8fd143f82538f (patch)
treeda2c34829458c7d4e74bdfbdf85dff449e9e7fb8 /contrib/tools/cython/Cython/Includes/posix/time.pxd
parent778e51ba091dc39e7b7fcab2b9cf4dbedfb6f2b5 (diff)
downloadydb-72cb13b4aff9bc9cf22e49251bc8fd143f82538f.tar.gz
Restoring authorship annotation for Anton Samokhvalov <pg83@yandex.ru>. Commit 1 of 2.
Diffstat (limited to 'contrib/tools/cython/Cython/Includes/posix/time.pxd')
-rw-r--r--contrib/tools/cython/Cython/Includes/posix/time.pxd92
1 files changed, 46 insertions, 46 deletions
diff --git a/contrib/tools/cython/Cython/Includes/posix/time.pxd b/contrib/tools/cython/Cython/Includes/posix/time.pxd
index 6bc81bfea0..0c8cd6b6ca 100644
--- a/contrib/tools/cython/Cython/Includes/posix/time.pxd
+++ b/contrib/tools/cython/Cython/Includes/posix/time.pxd
@@ -1,63 +1,63 @@
-# http://pubs.opengroup.org/onlinepubs/009695399/basedefs/sys/time.h.html
-
+# http://pubs.opengroup.org/onlinepubs/009695399/basedefs/sys/time.h.html
+
from posix.types cimport suseconds_t, time_t, clockid_t, timer_t
-from posix.signal cimport sigevent
-
+from posix.signal cimport sigevent
+
cdef extern from "<sys/time.h>" nogil:
- enum: CLOCK_REALTIME
- enum: TIMER_ABSTIME
- enum: CLOCK_MONOTONIC
-
- # FreeBSD-specific clocks
- enum: CLOCK_UPTIME
- enum: CLOCK_UPTIME_PRECISE
- enum: CLOCK_UPTIME_FAST
- enum: CLOCK_REALTIME_PRECISE
- enum: CLOCK_REALTIME_FAST
- enum: CLOCK_MONOTONIC_PRECISE
- enum: CLOCK_MONOTONIC_FAST
- enum: CLOCK_SECOND
-
- # Linux-specific clocks
- enum: CLOCK_PROCESS_CPUTIME_ID
- enum: CLOCK_THREAD_CPUTIME_ID
- enum: CLOCK_MONOTONIC_RAW
- enum: CLOCK_REALTIME_COARSE
- enum: CLOCK_MONOTONIC_COARSE
- enum: CLOCK_BOOTTIME
- enum: CLOCK_REALTIME_ALARM
- enum: CLOCK_BOOTTIME_ALARM
-
- enum: ITIMER_REAL
- enum: ITIMER_VIRTUAL
- enum: ITIMER_PROF
-
+ enum: CLOCK_REALTIME
+ enum: TIMER_ABSTIME
+ enum: CLOCK_MONOTONIC
+
+ # FreeBSD-specific clocks
+ enum: CLOCK_UPTIME
+ enum: CLOCK_UPTIME_PRECISE
+ enum: CLOCK_UPTIME_FAST
+ enum: CLOCK_REALTIME_PRECISE
+ enum: CLOCK_REALTIME_FAST
+ enum: CLOCK_MONOTONIC_PRECISE
+ enum: CLOCK_MONOTONIC_FAST
+ enum: CLOCK_SECOND
+
+ # Linux-specific clocks
+ enum: CLOCK_PROCESS_CPUTIME_ID
+ enum: CLOCK_THREAD_CPUTIME_ID
+ enum: CLOCK_MONOTONIC_RAW
+ enum: CLOCK_REALTIME_COARSE
+ enum: CLOCK_MONOTONIC_COARSE
+ enum: CLOCK_BOOTTIME
+ enum: CLOCK_REALTIME_ALARM
+ enum: CLOCK_BOOTTIME_ALARM
+
+ enum: ITIMER_REAL
+ enum: ITIMER_VIRTUAL
+ enum: ITIMER_PROF
+
cdef struct timezone:
int tz_minuteswest
int dsttime
- cdef struct timeval:
- time_t tv_sec
- suseconds_t tv_usec
-
+ cdef struct timeval:
+ time_t tv_sec
+ suseconds_t tv_usec
+
cdef struct timespec:
time_t tv_sec
long tv_nsec
- cdef struct itimerval:
- timeval it_interval
- timeval it_value
-
- cdef struct itimerspec:
- timespec it_interval
- timespec it_value
-
+ cdef struct itimerval:
+ timeval it_interval
+ timeval it_value
+
+ cdef struct itimerspec:
+ timespec it_interval
+ timespec it_value
+
int nanosleep(const timespec *, timespec *)
-
+
int getitimer(int, itimerval *)
int gettimeofday(timeval *tp, timezone *tzp)
int setitimer(int, const itimerval *, itimerval *)
-
+
int clock_getcpuclockid(pid_t, clockid_t *)
int clock_getres(clockid_t, timespec *)
int clock_gettime(clockid_t, timespec *)