diff options
author | Anton Samokhvalov <pg83@yandex.ru> | 2022-02-10 16:45:15 +0300 |
---|---|---|
committer | Daniil Cherednik <dcherednik@yandex-team.ru> | 2022-02-10 16:45:15 +0300 |
commit | 72cb13b4aff9bc9cf22e49251bc8fd143f82538f (patch) | |
tree | da2c34829458c7d4e74bdfbdf85dff449e9e7fb8 /contrib/tools/cython/Cython/Includes/posix | |
parent | 778e51ba091dc39e7b7fcab2b9cf4dbedfb6f2b5 (diff) | |
download | ydb-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')
-rw-r--r-- | contrib/tools/cython/Cython/Includes/posix/__init__.pxd | 2 | ||||
-rw-r--r-- | contrib/tools/cython/Cython/Includes/posix/fcntl.pxd | 132 | ||||
-rw-r--r-- | contrib/tools/cython/Cython/Includes/posix/ioctl.pxd | 6 | ||||
-rw-r--r-- | contrib/tools/cython/Cython/Includes/posix/resource.pxd | 106 | ||||
-rw-r--r-- | contrib/tools/cython/Cython/Includes/posix/signal.pxd | 122 | ||||
-rw-r--r-- | contrib/tools/cython/Cython/Includes/posix/stat.pxd | 128 | ||||
-rw-r--r-- | contrib/tools/cython/Cython/Includes/posix/stdlib.pxd | 56 | ||||
-rw-r--r-- | contrib/tools/cython/Cython/Includes/posix/time.pxd | 92 | ||||
-rw-r--r-- | contrib/tools/cython/Cython/Includes/posix/types.pxd | 28 | ||||
-rw-r--r-- | contrib/tools/cython/Cython/Includes/posix/unistd.pxd | 540 |
10 files changed, 606 insertions, 606 deletions
diff --git a/contrib/tools/cython/Cython/Includes/posix/__init__.pxd b/contrib/tools/cython/Cython/Includes/posix/__init__.pxd index fa81adaff6..4a2889e8e1 100644 --- a/contrib/tools/cython/Cython/Includes/posix/__init__.pxd +++ b/contrib/tools/cython/Cython/Includes/posix/__init__.pxd @@ -1 +1 @@ -# empty file +# empty file diff --git a/contrib/tools/cython/Cython/Includes/posix/fcntl.pxd b/contrib/tools/cython/Cython/Includes/posix/fcntl.pxd index 9afc33a368..727d0be03a 100644 --- a/contrib/tools/cython/Cython/Includes/posix/fcntl.pxd +++ b/contrib/tools/cython/Cython/Includes/posix/fcntl.pxd @@ -1,68 +1,68 @@ -# http://www.opengroup.org/onlinepubs/009695399/basedefs/fcntl.h.html - +# http://www.opengroup.org/onlinepubs/009695399/basedefs/fcntl.h.html + cdef extern from "<fcntl.h>" nogil: - - enum: F_DUPFD - enum: F_GETFD - enum: F_SETFD - enum: F_GETFL - enum: F_SETFL - enum: F_GETLK - enum: F_SETLK - enum: F_SETLKW - enum: F_GETOWN - enum: F_SETOWN - - enum: FD_CLOEXEC - - enum: F_RDLCK - enum: F_UNLCK - enum: F_WRLCK - - enum: SEEK_SET - enum: SEEK_CUR - enum: SEEK_END - - enum: O_CREAT + + enum: F_DUPFD + enum: F_GETFD + enum: F_SETFD + enum: F_GETFL + enum: F_SETFL + enum: F_GETLK + enum: F_SETLK + enum: F_SETLKW + enum: F_GETOWN + enum: F_SETOWN + + enum: FD_CLOEXEC + + enum: F_RDLCK + enum: F_UNLCK + enum: F_WRLCK + + enum: SEEK_SET + enum: SEEK_CUR + enum: SEEK_END + + enum: O_CREAT enum: O_DIRECT - enum: O_EXCL - enum: O_NOCTTY - enum: O_TRUNC - - enum: O_APPEND - enum: O_DSYNC - enum: O_NONBLOCK - enum: O_RSYNC - enum: O_SYNC - - enum: O_ACCMODE # O_RDONLY|O_WRONLY|O_RDWR - - enum: O_RDONLY - enum: O_WRONLY - enum: O_RDWR - - enum: S_IFMT - enum: S_IFBLK - enum: S_IFCHR - enum: S_IFIFO - enum: S_IFREG - enum: S_IFDIR - enum: S_IFLNK - enum: S_IFSOCK - - ctypedef int mode_t - ctypedef signed pid_t - ctypedef signed off_t - - struct flock: - short l_type - short l_whence - off_t l_start - off_t l_len - pid_t l_pid - - int creat(char *, mode_t) - int fcntl(int, int, ...) - int open(char *, int, ...) - #int open (char *, int, mode_t) - + enum: O_EXCL + enum: O_NOCTTY + enum: O_TRUNC + + enum: O_APPEND + enum: O_DSYNC + enum: O_NONBLOCK + enum: O_RSYNC + enum: O_SYNC + + enum: O_ACCMODE # O_RDONLY|O_WRONLY|O_RDWR + + enum: O_RDONLY + enum: O_WRONLY + enum: O_RDWR + + enum: S_IFMT + enum: S_IFBLK + enum: S_IFCHR + enum: S_IFIFO + enum: S_IFREG + enum: S_IFDIR + enum: S_IFLNK + enum: S_IFSOCK + + ctypedef int mode_t + ctypedef signed pid_t + ctypedef signed off_t + + struct flock: + short l_type + short l_whence + off_t l_start + off_t l_len + pid_t l_pid + + int creat(char *, mode_t) + int fcntl(int, int, ...) + int open(char *, int, ...) + #int open (char *, int, mode_t) + diff --git a/contrib/tools/cython/Cython/Includes/posix/ioctl.pxd b/contrib/tools/cython/Cython/Includes/posix/ioctl.pxd index dacbc307f3..5c00702150 100644 --- a/contrib/tools/cython/Cython/Includes/posix/ioctl.pxd +++ b/contrib/tools/cython/Cython/Includes/posix/ioctl.pxd @@ -1,4 +1,4 @@ cdef extern from "<sys/ioctl.h>" nogil: - enum: FIONBIO - - int ioctl(int fd, int request, ...) + enum: FIONBIO + + int ioctl(int fd, int request, ...) diff --git a/contrib/tools/cython/Cython/Includes/posix/resource.pxd b/contrib/tools/cython/Cython/Includes/posix/resource.pxd index 9f55c6ab4e..6d9bac2925 100644 --- a/contrib/tools/cython/Cython/Includes/posix/resource.pxd +++ b/contrib/tools/cython/Cython/Includes/posix/resource.pxd @@ -1,55 +1,55 @@ -# http://pubs.opengroup.org/onlinepubs/009695399/basedefs/sys/resource.h.html - +# http://pubs.opengroup.org/onlinepubs/009695399/basedefs/sys/resource.h.html + from posix.time cimport timeval -from posix.types cimport id_t - +from posix.types cimport id_t + cdef extern from "<sys/resource.h>" nogil: - - enum: PRIO_PROCESS - enum: PRIO_PGRP - enum: PRIO_USER - - enum: RLIM_INFINITY - enum: RLIM_SAVED_MAX - enum: RLIM_SAVED_CUR - - enum: RUSAGE_SELF - enum: RUSAGE_CHILDREN - - enum: RLIMIT_CORE - enum: RLIMIT_CPU - enum: RLIMIT_DATA - enum: RLIMIT_FSIZE - enum: RLIMIT_NOFILE - enum: RLIMIT_STACK - enum: RLIMIT_AS - - ctypedef unsigned long rlim_t - - cdef struct rlimit: - rlim_t rlim_cur - rlim_t rlim_max - - cdef struct rusage: - timeval ru_utime - timeval ru_stime - long ru_maxrss - long ru_ixrss - long ru_idrss - long ru_isrss - long ru_minflt - long ru_majflt - long ru_nswap - long ru_inblock - long ru_oublock - long ru_msgsnd - long ru_msgrcv - long ru_nsignals - long ru_nvcsw - long ru_nivcsw - - int getpriority(int, id_t) - int getrlimit(int, rlimit *) - int getrusage(int, rusage *) - int setpriority(int, id_t, int) - int setrlimit(int, const rlimit *) + + enum: PRIO_PROCESS + enum: PRIO_PGRP + enum: PRIO_USER + + enum: RLIM_INFINITY + enum: RLIM_SAVED_MAX + enum: RLIM_SAVED_CUR + + enum: RUSAGE_SELF + enum: RUSAGE_CHILDREN + + enum: RLIMIT_CORE + enum: RLIMIT_CPU + enum: RLIMIT_DATA + enum: RLIMIT_FSIZE + enum: RLIMIT_NOFILE + enum: RLIMIT_STACK + enum: RLIMIT_AS + + ctypedef unsigned long rlim_t + + cdef struct rlimit: + rlim_t rlim_cur + rlim_t rlim_max + + cdef struct rusage: + timeval ru_utime + timeval ru_stime + long ru_maxrss + long ru_ixrss + long ru_idrss + long ru_isrss + long ru_minflt + long ru_majflt + long ru_nswap + long ru_inblock + long ru_oublock + long ru_msgsnd + long ru_msgrcv + long ru_nsignals + long ru_nvcsw + long ru_nivcsw + + int getpriority(int, id_t) + int getrlimit(int, rlimit *) + int getrusage(int, rusage *) + int setpriority(int, id_t, int) + int setrlimit(int, const rlimit *) diff --git a/contrib/tools/cython/Cython/Includes/posix/signal.pxd b/contrib/tools/cython/Cython/Includes/posix/signal.pxd index 9fe7d9c36c..b0b381359e 100644 --- a/contrib/tools/cython/Cython/Includes/posix/signal.pxd +++ b/contrib/tools/cython/Cython/Includes/posix/signal.pxd @@ -1,73 +1,73 @@ -# 7.14 Signal handling <signal.h> - -from posix.types cimport pid_t, sigset_t, uid_t - +# 7.14 Signal handling <signal.h> + +from posix.types cimport pid_t, sigset_t, uid_t + cdef extern from "<signal.h>" nogil: - - cdef union sigval: - int sival_int - void *sival_ptr - - cdef struct sigevent: - int sigev_notify - int sigev_signo - sigval sigev_value + + cdef union sigval: + int sival_int + void *sival_ptr + + cdef struct sigevent: + int sigev_notify + int sigev_signo + sigval sigev_value void sigev_notify_function(sigval) - - ctypedef struct siginfo_t: - int si_signo - int si_code - int si_errno - pid_t si_pid - uid_t si_uid - void *si_addr - int si_status - long si_band - sigval si_value - - cdef struct sigaction_t "sigaction": + + ctypedef struct siginfo_t: + int si_signo + int si_code + int si_errno + pid_t si_pid + uid_t si_uid + void *si_addr + int si_status + long si_band + sigval si_value + + cdef struct sigaction_t "sigaction": void sa_handler(int) void sa_sigaction(int, siginfo_t *, void *) - sigset_t sa_mask - int sa_flags - + sigset_t sa_mask + int sa_flags + ctypedef struct stack_t: void *ss_sp int ss_flags size_t ss_size - enum: SA_NOCLDSTOP - enum: SIG_BLOCK - enum: SIG_UNBLOCK - enum: SIG_SETMASK - enum: SA_ONSTACK - enum: SA_RESETHAND - enum: SA_RESTART - enum: SA_SIGINFO - enum: SA_NOCLDWAIT - enum: SA_NODEFER - enum: SS_ONSTACK - enum: SS_DISABLE - enum: MINSIGSTKSZ - enum: SIGSTKSZ - - enum: SIGEV_NONE - enum: SIGEV_SIGNAL - enum: SIGEV_THREAD - enum: SIGEV_THREAD_ID - - - int kill (pid_t, int) - int killpg (pid_t, int) - int sigaction (int, const sigaction_t *, sigaction_t *) - int sigpending (sigset_t *) - int sigprocmask (int, const sigset_t *, sigset_t *) - int sigsuspend (const sigset_t *) - - int sigaddset (sigset_t *, int) - int sigdelset (sigset_t *, int) - int sigemptyset (sigset_t *) - int sigfillset (sigset_t *) + enum: SA_NOCLDSTOP + enum: SIG_BLOCK + enum: SIG_UNBLOCK + enum: SIG_SETMASK + enum: SA_ONSTACK + enum: SA_RESETHAND + enum: SA_RESTART + enum: SA_SIGINFO + enum: SA_NOCLDWAIT + enum: SA_NODEFER + enum: SS_ONSTACK + enum: SS_DISABLE + enum: MINSIGSTKSZ + enum: SIGSTKSZ + + enum: SIGEV_NONE + enum: SIGEV_SIGNAL + enum: SIGEV_THREAD + enum: SIGEV_THREAD_ID + + + int kill (pid_t, int) + int killpg (pid_t, int) + int sigaction (int, const sigaction_t *, sigaction_t *) + int sigpending (sigset_t *) + int sigprocmask (int, const sigset_t *, sigset_t *) + int sigsuspend (const sigset_t *) + + int sigaddset (sigset_t *, int) + int sigdelset (sigset_t *, int) + int sigemptyset (sigset_t *) + int sigfillset (sigset_t *) int sigismember (const sigset_t *, int) int sigaltstack(const stack_t *, stack_t *) diff --git a/contrib/tools/cython/Cython/Includes/posix/stat.pxd b/contrib/tools/cython/Cython/Includes/posix/stat.pxd index 69c2eca166..7e57b1b0d4 100644 --- a/contrib/tools/cython/Cython/Includes/posix/stat.pxd +++ b/contrib/tools/cython/Cython/Includes/posix/stat.pxd @@ -1,71 +1,71 @@ -from posix.types cimport (blkcnt_t, blksize_t, dev_t, gid_t, ino_t, mode_t, - nlink_t, off_t, time_t, uid_t) - - +from posix.types cimport (blkcnt_t, blksize_t, dev_t, gid_t, ino_t, mode_t, + nlink_t, off_t, time_t, uid_t) + + cdef extern from "<sys/stat.h>" nogil: - cdef struct struct_stat "stat": - dev_t st_dev - ino_t st_ino - mode_t st_mode - nlink_t st_nlink - uid_t st_uid - gid_t st_gid - dev_t st_rdev - off_t st_size - blksize_t st_blksize - blkcnt_t st_blocks - time_t st_atime - time_t st_mtime - time_t st_ctime - + cdef struct struct_stat "stat": + dev_t st_dev + ino_t st_ino + mode_t st_mode + nlink_t st_nlink + uid_t st_uid + gid_t st_gid + dev_t st_rdev + off_t st_size + blksize_t st_blksize + blkcnt_t st_blocks + time_t st_atime + time_t st_mtime + time_t st_ctime + # st_birthtime exists on *BSD and OS X. # Under Linux, defining it here does not hurt. Compilation under Linux # will only (and rightfully) fail when attempting to use the field. time_t st_birthtime -# POSIX prescribes including both <sys/stat.h> and <unistd.h> for these +# POSIX prescribes including both <sys/stat.h> and <unistd.h> for these cdef extern from "<unistd.h>" nogil: - int fchmod(int, mode_t) - int chmod(const char *, mode_t) - - int fstat(int, struct_stat *) - int lstat(const char *, struct_stat *) - int stat(const char *, struct_stat *) - - # Macros for st_mode - mode_t S_ISREG(mode_t) - mode_t S_ISDIR(mode_t) - mode_t S_ISCHR(mode_t) - mode_t S_ISBLK(mode_t) - mode_t S_ISFIFO(mode_t) - mode_t S_ISLNK(mode_t) - mode_t S_ISSOCK(mode_t) - - mode_t S_IFMT - mode_t S_IFREG - mode_t S_IFDIR - mode_t S_IFCHR - mode_t S_IFBLK - mode_t S_IFIFO - mode_t S_IFLNK - mode_t S_IFSOCK - - # Permissions - mode_t S_ISUID - mode_t S_ISGID - mode_t S_ISVTX - - mode_t S_IRWXU - mode_t S_IRUSR - mode_t S_IWUSR - mode_t S_IXUSR - - mode_t S_IRWXG - mode_t S_IRGRP - mode_t S_IWGRP - mode_t S_IXGRP - - mode_t S_IRWXO - mode_t S_IROTH - mode_t S_IWOTH - mode_t S_IXOTH + int fchmod(int, mode_t) + int chmod(const char *, mode_t) + + int fstat(int, struct_stat *) + int lstat(const char *, struct_stat *) + int stat(const char *, struct_stat *) + + # Macros for st_mode + mode_t S_ISREG(mode_t) + mode_t S_ISDIR(mode_t) + mode_t S_ISCHR(mode_t) + mode_t S_ISBLK(mode_t) + mode_t S_ISFIFO(mode_t) + mode_t S_ISLNK(mode_t) + mode_t S_ISSOCK(mode_t) + + mode_t S_IFMT + mode_t S_IFREG + mode_t S_IFDIR + mode_t S_IFCHR + mode_t S_IFBLK + mode_t S_IFIFO + mode_t S_IFLNK + mode_t S_IFSOCK + + # Permissions + mode_t S_ISUID + mode_t S_ISGID + mode_t S_ISVTX + + mode_t S_IRWXU + mode_t S_IRUSR + mode_t S_IWUSR + mode_t S_IXUSR + + mode_t S_IRWXG + mode_t S_IRGRP + mode_t S_IWGRP + mode_t S_IXGRP + + mode_t S_IRWXO + mode_t S_IROTH + mode_t S_IWOTH + mode_t S_IXOTH diff --git a/contrib/tools/cython/Cython/Includes/posix/stdlib.pxd b/contrib/tools/cython/Cython/Includes/posix/stdlib.pxd index 513de938a8..8dbf1f72dd 100644 --- a/contrib/tools/cython/Cython/Includes/posix/stdlib.pxd +++ b/contrib/tools/cython/Cython/Includes/posix/stdlib.pxd @@ -1,29 +1,29 @@ -# POSIX additions to <stdlib.h> -# http://pubs.opengroup.org/onlinepubs/9699919799/basedefs/stdlib.h.html - +# POSIX additions to <stdlib.h> +# http://pubs.opengroup.org/onlinepubs/9699919799/basedefs/stdlib.h.html + cdef extern from "<stdlib.h>" nogil: - void _Exit(int) - double drand48() - double erand48(unsigned short *) - int getsubopt(char **, char *const *, char **) - void lcong48(unsigned short *) - long lrand() - char *mkdtemp(char *) - int mkstemp(char *) - long mrand() - long nrand48(unsigned short *) - int posix_memalign(void **, size_t, size_t) - int posix_openpt(int) - char *ptsname(int) - int putenv(char *) - int rand_r(unsigned *) - long random() - char *realpath(const char *, char *) - unsigned short *seed48(unsigned short *) - int setenv(const char *, const char *, int) - void setkey(const char *) - char *setstate(char *) - void srand48(long) - void srandom(unsigned) - int unlockpt(int) - int unsetenv(const char *) + void _Exit(int) + double drand48() + double erand48(unsigned short *) + int getsubopt(char **, char *const *, char **) + void lcong48(unsigned short *) + long lrand() + char *mkdtemp(char *) + int mkstemp(char *) + long mrand() + long nrand48(unsigned short *) + int posix_memalign(void **, size_t, size_t) + int posix_openpt(int) + char *ptsname(int) + int putenv(char *) + int rand_r(unsigned *) + long random() + char *realpath(const char *, char *) + unsigned short *seed48(unsigned short *) + int setenv(const char *, const char *, int) + void setkey(const char *) + char *setstate(char *) + void srand48(long) + void srandom(unsigned) + int unlockpt(int) + int unsetenv(const char *) 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 *) diff --git a/contrib/tools/cython/Cython/Includes/posix/types.pxd b/contrib/tools/cython/Cython/Includes/posix/types.pxd index 308f2954ee..2a5434e3bd 100644 --- a/contrib/tools/cython/Cython/Includes/posix/types.pxd +++ b/contrib/tools/cython/Cython/Includes/posix/types.pxd @@ -11,20 +11,20 @@ # type). cdef extern from "<sys/types.h>": - ctypedef long blkcnt_t - ctypedef long blksize_t - ctypedef long clockid_t - ctypedef long dev_t - ctypedef long gid_t - ctypedef long id_t + ctypedef long blkcnt_t + ctypedef long blksize_t + ctypedef long clockid_t + ctypedef long dev_t + ctypedef long gid_t + ctypedef long id_t ctypedef unsigned long ino_t - ctypedef long mode_t - ctypedef long nlink_t - ctypedef long off_t - ctypedef long pid_t + ctypedef long mode_t + ctypedef long nlink_t + ctypedef long off_t + ctypedef long pid_t ctypedef struct sigset_t: pass - ctypedef long suseconds_t - ctypedef long time_t - ctypedef long timer_t - ctypedef long uid_t + ctypedef long suseconds_t + ctypedef long time_t + ctypedef long timer_t + ctypedef long uid_t diff --git a/contrib/tools/cython/Cython/Includes/posix/unistd.pxd b/contrib/tools/cython/Cython/Includes/posix/unistd.pxd index 1afeca3854..7d1299c745 100644 --- a/contrib/tools/cython/Cython/Includes/posix/unistd.pxd +++ b/contrib/tools/cython/Cython/Includes/posix/unistd.pxd @@ -1,271 +1,271 @@ -# http://www.opengroup.org/onlinepubs/009695399/basedefs/unistd.h.html - -from posix.types cimport gid_t, pid_t, off_t, uid_t - +# http://www.opengroup.org/onlinepubs/009695399/basedefs/unistd.h.html + +from posix.types cimport gid_t, pid_t, off_t, uid_t + cdef extern from "<unistd.h>" nogil: - - #:NULL - - enum: R_OK - enum: W_OK - enum: X_OK - enum: F_OK - - enum: _CS_PATH - enum: _CS_POSIX_V6_ILP32_OFF32_CFLAGS - enum: _CS_POSIX_V6_ILP32_OFF32_LDFLAGS - enum: _CS_POSIX_V6_ILP32_OFF32_LIBS - enum: _CS_POSIX_V6_ILP32_OFFBIG_CFLAGS - enum: _CS_POSIX_V6_ILP32_OFFBIG_LDFLAGS - enum: _CS_POSIX_V6_ILP32_OFFBIG_LIBS - enum: _CS_POSIX_V6_LP64_OFF64_CFLAGS - enum: _CS_POSIX_V6_LP64_OFF64_LDFLAGS - enum: _CS_POSIX_V6_LP64_OFF64_LIBS - enum: _CS_POSIX_V6_LPBIG_OFFBIG_CFLAGS - enum: _CS_POSIX_V6_LPBIG_OFFBIG_LDFLAGS - enum: _CS_POSIX_V6_LPBIG_OFFBIG_LIBS - enum: _CS_POSIX_V6_WIDTH_RESTRICTED_ENVS - - enum: SEEK_SET - enum: SEEK_CUR - enum: SEEK_END - - enum: F_LOCK - enum: F_TEST - enum: F_TLOCK - enum: F_ULOCK - - enum: _PC_2_SYMLINKS - enum: _PC_ALLOC_SIZE_MIN - enum: _PC_ASYNC_IO - enum: _PC_CHOWN_RESTRICTED - enum: _PC_FILESIZEBITS - enum: _PC_LINK_MAX - enum: _PC_MAX_CANON - enum: _PC_MAX_INPUT - enum: _PC_NAME_MAX - enum: _PC_NO_TRUNC - enum: _PC_PATH_MAX - enum: _PC_PIPE_BUF - enum: _PC_PRIO_IO - enum: _PC_REC_INCR_XFER_SIZE - enum: _PC_REC_MIN_XFER_SIZE - enum: _PC_REC_XFER_ALIGN - enum: _PC_SYMLINK_MAX - enum: _PC_SYNC_IO - enum: _PC_VDISABLE - - enum: _SC_2_C_BIND - enum: _SC_2_C_DEV - enum: _SC_2_CHAR_TERM - enum: _SC_2_FORT_DEV - enum: _SC_2_FORT_RUN - enum: _SC_2_LOCALEDEF - enum: _SC_2_PBS - enum: _SC_2_PBS_ACCOUNTING - enum: _SC_2_PBS_CHECKPOINT - enum: _SC_2_PBS_LOCATE - enum: _SC_2_PBS_MESSAGE - enum: _SC_2_PBS_TRACK - enum: _SC_2_SW_DEV - enum: _SC_2_UPE - enum: _SC_2_VERSION - enum: _SC_ADVISORY_INFO - enum: _SC_AIO_LISTIO_MAX - enum: _SC_AIO_MAX - enum: _SC_AIO_PRIO_DELTA_MAX - enum: _SC_ARG_MAX - enum: _SC_ASYNCHRONOUS_IO - enum: _SC_ATEXIT_MAX - enum: _SC_BARRIERS - enum: _SC_BC_BASE_MAX - enum: _SC_BC_DIM_MAX - enum: _SC_BC_SCALE_MAX - enum: _SC_BC_STRING_MAX - enum: _SC_CHILD_MAX - enum: _SC_CLK_TCK - enum: _SC_CLOCK_SELECTION - enum: _SC_COLL_WEIGHTS_MAX - enum: _SC_CPUTIME - enum: _SC_DELAYTIMER_MAX - enum: _SC_EXPR_NEST_MAX - enum: _SC_FSYNC - enum: _SC_GETGR_R_SIZE_MAX - enum: _SC_GETPW_R_SIZE_MAX - enum: _SC_HOST_NAME_MAX - enum: _SC_IOV_MAX - enum: _SC_IPV6 - enum: _SC_JOB_CONTROL - enum: _SC_LINE_MAX - enum: _SC_LOGIN_NAME_MAX - enum: _SC_MAPPED_FILES - enum: _SC_MEMLOCK - enum: _SC_MEMLOCK_RANGE - enum: _SC_MEMORY_PROTECTION - enum: _SC_MESSAGE_PASSING - enum: _SC_MONOTONIC_CLOCK - enum: _SC_MQ_OPEN_MAX - enum: _SC_MQ_PRIO_MAX - enum: _SC_NGROUPS_MAX - enum: _SC_OPEN_MAX - enum: _SC_PAGE_SIZE - enum: _SC_PAGESIZE - enum: _SC_PRIORITIZED_IO - enum: _SC_PRIORITY_SCHEDULING - enum: _SC_RAW_SOCKETS - enum: _SC_RE_DUP_MAX - enum: _SC_READER_WRITER_LOCKS - enum: _SC_REALTIME_SIGNALS - enum: _SC_REGEXP - enum: _SC_RTSIG_MAX - enum: _SC_SAVED_IDS - enum: _SC_SEM_NSEMS_MAX - enum: _SC_SEM_VALUE_MAX - enum: _SC_SEMAPHORES - enum: _SC_SHARED_MEMORY_OBJECTS - enum: _SC_SHELL - enum: _SC_SIGQUEUE_MAX - enum: _SC_SPAWN - enum: _SC_SPIN_LOCKS - enum: _SC_SPORADIC_SERVER - enum: _SC_SS_REPL_MAX - enum: _SC_STREAM_MAX - enum: _SC_SYMLOOP_MAX - enum: _SC_SYNCHRONIZED_IO - enum: _SC_THREAD_ATTR_STACKADDR - enum: _SC_THREAD_ATTR_STACKSIZE - enum: _SC_THREAD_CPUTIME - enum: _SC_THREAD_DESTRUCTOR_ITERATIONS - enum: _SC_THREAD_KEYS_MAX - enum: _SC_THREAD_PRIO_INHERIT - enum: _SC_THREAD_PRIO_PROTECT - enum: _SC_THREAD_PRIORITY_SCHEDULING - enum: _SC_THREAD_PROCESS_SHARED - enum: _SC_THREAD_SAFE_FUNCTIONS - enum: _SC_THREAD_SPORADIC_SERVER - enum: _SC_THREAD_STACK_MIN - enum: _SC_THREAD_THREADS_MAX - enum: _SC_THREADS - enum: _SC_TIMEOUTS - enum: _SC_TIMER_MAX - enum: _SC_TIMERS - enum: _SC_TRACE - enum: _SC_TRACE_EVENT_FILTER - enum: _SC_TRACE_EVENT_NAME_MAX - enum: _SC_TRACE_INHERIT - enum: _SC_TRACE_LOG - enum: _SC_TRACE_NAME_MAX - enum: _SC_TRACE_SYS_MAX - enum: _SC_TRACE_USER_EVENT_MAX - enum: _SC_TTY_NAME_MAX - enum: _SC_TYPED_MEMORY_OBJECTS - enum: _SC_TZNAME_MAX - enum: _SC_V6_ILP32_OFF32 - enum: _SC_V6_ILP32_OFFBIG - enum: _SC_V6_LP64_OFF64 - enum: _SC_V6_LPBIG_OFFBIG - enum: _SC_VERSION - enum: _SC_XBS5_ILP32_OFF32 - enum: _SC_XBS5_ILP32_OFFBIG - enum: _SC_XBS5_LP64_OFF64 - enum: _SC_XBS5_LPBIG_OFFBIG - enum: _SC_XOPEN_CRYPT - enum: _SC_XOPEN_ENH_I18N - enum: _SC_XOPEN_LEGACY - enum: _SC_XOPEN_REALTIME - enum: _SC_XOPEN_REALTIME_THREADS - enum: _SC_XOPEN_SHM - enum: _SC_XOPEN_STREAMS - enum: _SC_XOPEN_UNIX - enum: _SC_XOPEN_VERSION - - enum: STDIN_FILENO #0 - enum: STDOUT_FILENO #1 - enum: STDERR_FILENO #2 - - ctypedef unsigned useconds_t - - int access(const char *, int) - unsigned alarm(unsigned) - int chdir(const char *) - int chown(const char *, uid_t, gid_t) - int close(int) - size_t confstr(int, char *, size_t) - char *crypt(const char *, const char *) - char *ctermid(char *) - int dup(int) - int dup2(int, int) - void encrypt(char[64], int) - int execl(const char *, const char *, ...) - int execle(const char *, const char *, ...) - int execlp(const char *, const char *, ...) - int execv(const char *, char *[]) - int execve(const char *, char *[], char *[]) - int execvp(const char *, char *[]) - void _exit(int) - int fchown(int, uid_t, gid_t) - int fchdir(int) - int fdatasync(int) - pid_t fork() - long fpathconf(int, int) - int fsync(int) - int ftruncate(int, off_t) - char *getcwd(char *, size_t) - gid_t getegid() - uid_t geteuid() - gid_t getgid() - int getgroups(int, gid_t []) - long gethostid() - int gethostname(char *, size_t) - char *getlogin() - int getlogin_r(char *, size_t) - int getopt(int, char * [], const char *) - pid_t getpgid(pid_t) - pid_t getpgrp() - pid_t getpid() - pid_t getppid() - pid_t getsid(pid_t) - uid_t getuid() - char *getwd(char *) - int isatty(int) - int lchown(const char *, uid_t, gid_t) - int link(const char *, const char *) - int lockf(int, int, off_t) - off_t lseek(int, off_t, int) - int nice(int) - long pathconf(char *, int) - int pause() - int pipe(int [2]) - ssize_t pread(int, void *, size_t, off_t) - ssize_t pwrite(int, const void *, size_t, off_t) - ssize_t read(int, void *, size_t) - ssize_t readlink(const char *, char *, size_t) - int rmdir(const char *) - int setegid(gid_t) - int seteuid(uid_t) - int setgid(gid_t) - int setpgid(pid_t, pid_t) - pid_t setpgrp() - int setregid(gid_t, gid_t) - int setreuid(uid_t, uid_t) - pid_t setsid() - int setuid(uid_t) - unsigned sleep(unsigned) - void swab(const void *, void *, ssize_t) - int symlink(const char *, const char *) - void sync() - long sysconf(int) - pid_t tcgetpgrp(int) - int tcsetpgrp(int, pid_t) - int truncate(const char *, off_t) - char *ttyname(int) - int ttyname_r(int, char *, size_t) - useconds_t ualarm(useconds_t, useconds_t) - int unlink(const char *) - int usleep(useconds_t) - pid_t vfork() - ssize_t write(int, const void *, size_t) - char *optarg - int optind - int opterr - int optopt + + #:NULL + + enum: R_OK + enum: W_OK + enum: X_OK + enum: F_OK + + enum: _CS_PATH + enum: _CS_POSIX_V6_ILP32_OFF32_CFLAGS + enum: _CS_POSIX_V6_ILP32_OFF32_LDFLAGS + enum: _CS_POSIX_V6_ILP32_OFF32_LIBS + enum: _CS_POSIX_V6_ILP32_OFFBIG_CFLAGS + enum: _CS_POSIX_V6_ILP32_OFFBIG_LDFLAGS + enum: _CS_POSIX_V6_ILP32_OFFBIG_LIBS + enum: _CS_POSIX_V6_LP64_OFF64_CFLAGS + enum: _CS_POSIX_V6_LP64_OFF64_LDFLAGS + enum: _CS_POSIX_V6_LP64_OFF64_LIBS + enum: _CS_POSIX_V6_LPBIG_OFFBIG_CFLAGS + enum: _CS_POSIX_V6_LPBIG_OFFBIG_LDFLAGS + enum: _CS_POSIX_V6_LPBIG_OFFBIG_LIBS + enum: _CS_POSIX_V6_WIDTH_RESTRICTED_ENVS + + enum: SEEK_SET + enum: SEEK_CUR + enum: SEEK_END + + enum: F_LOCK + enum: F_TEST + enum: F_TLOCK + enum: F_ULOCK + + enum: _PC_2_SYMLINKS + enum: _PC_ALLOC_SIZE_MIN + enum: _PC_ASYNC_IO + enum: _PC_CHOWN_RESTRICTED + enum: _PC_FILESIZEBITS + enum: _PC_LINK_MAX + enum: _PC_MAX_CANON + enum: _PC_MAX_INPUT + enum: _PC_NAME_MAX + enum: _PC_NO_TRUNC + enum: _PC_PATH_MAX + enum: _PC_PIPE_BUF + enum: _PC_PRIO_IO + enum: _PC_REC_INCR_XFER_SIZE + enum: _PC_REC_MIN_XFER_SIZE + enum: _PC_REC_XFER_ALIGN + enum: _PC_SYMLINK_MAX + enum: _PC_SYNC_IO + enum: _PC_VDISABLE + + enum: _SC_2_C_BIND + enum: _SC_2_C_DEV + enum: _SC_2_CHAR_TERM + enum: _SC_2_FORT_DEV + enum: _SC_2_FORT_RUN + enum: _SC_2_LOCALEDEF + enum: _SC_2_PBS + enum: _SC_2_PBS_ACCOUNTING + enum: _SC_2_PBS_CHECKPOINT + enum: _SC_2_PBS_LOCATE + enum: _SC_2_PBS_MESSAGE + enum: _SC_2_PBS_TRACK + enum: _SC_2_SW_DEV + enum: _SC_2_UPE + enum: _SC_2_VERSION + enum: _SC_ADVISORY_INFO + enum: _SC_AIO_LISTIO_MAX + enum: _SC_AIO_MAX + enum: _SC_AIO_PRIO_DELTA_MAX + enum: _SC_ARG_MAX + enum: _SC_ASYNCHRONOUS_IO + enum: _SC_ATEXIT_MAX + enum: _SC_BARRIERS + enum: _SC_BC_BASE_MAX + enum: _SC_BC_DIM_MAX + enum: _SC_BC_SCALE_MAX + enum: _SC_BC_STRING_MAX + enum: _SC_CHILD_MAX + enum: _SC_CLK_TCK + enum: _SC_CLOCK_SELECTION + enum: _SC_COLL_WEIGHTS_MAX + enum: _SC_CPUTIME + enum: _SC_DELAYTIMER_MAX + enum: _SC_EXPR_NEST_MAX + enum: _SC_FSYNC + enum: _SC_GETGR_R_SIZE_MAX + enum: _SC_GETPW_R_SIZE_MAX + enum: _SC_HOST_NAME_MAX + enum: _SC_IOV_MAX + enum: _SC_IPV6 + enum: _SC_JOB_CONTROL + enum: _SC_LINE_MAX + enum: _SC_LOGIN_NAME_MAX + enum: _SC_MAPPED_FILES + enum: _SC_MEMLOCK + enum: _SC_MEMLOCK_RANGE + enum: _SC_MEMORY_PROTECTION + enum: _SC_MESSAGE_PASSING + enum: _SC_MONOTONIC_CLOCK + enum: _SC_MQ_OPEN_MAX + enum: _SC_MQ_PRIO_MAX + enum: _SC_NGROUPS_MAX + enum: _SC_OPEN_MAX + enum: _SC_PAGE_SIZE + enum: _SC_PAGESIZE + enum: _SC_PRIORITIZED_IO + enum: _SC_PRIORITY_SCHEDULING + enum: _SC_RAW_SOCKETS + enum: _SC_RE_DUP_MAX + enum: _SC_READER_WRITER_LOCKS + enum: _SC_REALTIME_SIGNALS + enum: _SC_REGEXP + enum: _SC_RTSIG_MAX + enum: _SC_SAVED_IDS + enum: _SC_SEM_NSEMS_MAX + enum: _SC_SEM_VALUE_MAX + enum: _SC_SEMAPHORES + enum: _SC_SHARED_MEMORY_OBJECTS + enum: _SC_SHELL + enum: _SC_SIGQUEUE_MAX + enum: _SC_SPAWN + enum: _SC_SPIN_LOCKS + enum: _SC_SPORADIC_SERVER + enum: _SC_SS_REPL_MAX + enum: _SC_STREAM_MAX + enum: _SC_SYMLOOP_MAX + enum: _SC_SYNCHRONIZED_IO + enum: _SC_THREAD_ATTR_STACKADDR + enum: _SC_THREAD_ATTR_STACKSIZE + enum: _SC_THREAD_CPUTIME + enum: _SC_THREAD_DESTRUCTOR_ITERATIONS + enum: _SC_THREAD_KEYS_MAX + enum: _SC_THREAD_PRIO_INHERIT + enum: _SC_THREAD_PRIO_PROTECT + enum: _SC_THREAD_PRIORITY_SCHEDULING + enum: _SC_THREAD_PROCESS_SHARED + enum: _SC_THREAD_SAFE_FUNCTIONS + enum: _SC_THREAD_SPORADIC_SERVER + enum: _SC_THREAD_STACK_MIN + enum: _SC_THREAD_THREADS_MAX + enum: _SC_THREADS + enum: _SC_TIMEOUTS + enum: _SC_TIMER_MAX + enum: _SC_TIMERS + enum: _SC_TRACE + enum: _SC_TRACE_EVENT_FILTER + enum: _SC_TRACE_EVENT_NAME_MAX + enum: _SC_TRACE_INHERIT + enum: _SC_TRACE_LOG + enum: _SC_TRACE_NAME_MAX + enum: _SC_TRACE_SYS_MAX + enum: _SC_TRACE_USER_EVENT_MAX + enum: _SC_TTY_NAME_MAX + enum: _SC_TYPED_MEMORY_OBJECTS + enum: _SC_TZNAME_MAX + enum: _SC_V6_ILP32_OFF32 + enum: _SC_V6_ILP32_OFFBIG + enum: _SC_V6_LP64_OFF64 + enum: _SC_V6_LPBIG_OFFBIG + enum: _SC_VERSION + enum: _SC_XBS5_ILP32_OFF32 + enum: _SC_XBS5_ILP32_OFFBIG + enum: _SC_XBS5_LP64_OFF64 + enum: _SC_XBS5_LPBIG_OFFBIG + enum: _SC_XOPEN_CRYPT + enum: _SC_XOPEN_ENH_I18N + enum: _SC_XOPEN_LEGACY + enum: _SC_XOPEN_REALTIME + enum: _SC_XOPEN_REALTIME_THREADS + enum: _SC_XOPEN_SHM + enum: _SC_XOPEN_STREAMS + enum: _SC_XOPEN_UNIX + enum: _SC_XOPEN_VERSION + + enum: STDIN_FILENO #0 + enum: STDOUT_FILENO #1 + enum: STDERR_FILENO #2 + + ctypedef unsigned useconds_t + + int access(const char *, int) + unsigned alarm(unsigned) + int chdir(const char *) + int chown(const char *, uid_t, gid_t) + int close(int) + size_t confstr(int, char *, size_t) + char *crypt(const char *, const char *) + char *ctermid(char *) + int dup(int) + int dup2(int, int) + void encrypt(char[64], int) + int execl(const char *, const char *, ...) + int execle(const char *, const char *, ...) + int execlp(const char *, const char *, ...) + int execv(const char *, char *[]) + int execve(const char *, char *[], char *[]) + int execvp(const char *, char *[]) + void _exit(int) + int fchown(int, uid_t, gid_t) + int fchdir(int) + int fdatasync(int) + pid_t fork() + long fpathconf(int, int) + int fsync(int) + int ftruncate(int, off_t) + char *getcwd(char *, size_t) + gid_t getegid() + uid_t geteuid() + gid_t getgid() + int getgroups(int, gid_t []) + long gethostid() + int gethostname(char *, size_t) + char *getlogin() + int getlogin_r(char *, size_t) + int getopt(int, char * [], const char *) + pid_t getpgid(pid_t) + pid_t getpgrp() + pid_t getpid() + pid_t getppid() + pid_t getsid(pid_t) + uid_t getuid() + char *getwd(char *) + int isatty(int) + int lchown(const char *, uid_t, gid_t) + int link(const char *, const char *) + int lockf(int, int, off_t) + off_t lseek(int, off_t, int) + int nice(int) + long pathconf(char *, int) + int pause() + int pipe(int [2]) + ssize_t pread(int, void *, size_t, off_t) + ssize_t pwrite(int, const void *, size_t, off_t) + ssize_t read(int, void *, size_t) + ssize_t readlink(const char *, char *, size_t) + int rmdir(const char *) + int setegid(gid_t) + int seteuid(uid_t) + int setgid(gid_t) + int setpgid(pid_t, pid_t) + pid_t setpgrp() + int setregid(gid_t, gid_t) + int setreuid(uid_t, uid_t) + pid_t setsid() + int setuid(uid_t) + unsigned sleep(unsigned) + void swab(const void *, void *, ssize_t) + int symlink(const char *, const char *) + void sync() + long sysconf(int) + pid_t tcgetpgrp(int) + int tcsetpgrp(int, pid_t) + int truncate(const char *, off_t) + char *ttyname(int) + int ttyname_r(int, char *, size_t) + useconds_t ualarm(useconds_t, useconds_t) + int unlink(const char *) + int usleep(useconds_t) + pid_t vfork() + ssize_t write(int, const void *, size_t) + char *optarg + int optind + int opterr + int optopt |