aboutsummaryrefslogtreecommitdiffstats
path: root/contrib/tools/cython/Cython/Includes/posix/wait.pxd
diff options
context:
space:
mode:
authororivej <orivej@yandex-team.ru>2022-02-10 16:45:01 +0300
committerDaniil Cherednik <dcherednik@yandex-team.ru>2022-02-10 16:45:01 +0300
commit2d37894b1b037cf24231090eda8589bbb44fb6fc (patch)
treebe835aa92c6248212e705f25388ebafcf84bc7a1 /contrib/tools/cython/Cython/Includes/posix/wait.pxd
parent718c552901d703c502ccbefdfc3c9028d608b947 (diff)
downloadydb-2d37894b1b037cf24231090eda8589bbb44fb6fc.tar.gz
Restoring authorship annotation for <orivej@yandex-team.ru>. Commit 2 of 2.
Diffstat (limited to 'contrib/tools/cython/Cython/Includes/posix/wait.pxd')
-rw-r--r--contrib/tools/cython/Cython/Includes/posix/wait.pxd76
1 files changed, 38 insertions, 38 deletions
diff --git a/contrib/tools/cython/Cython/Includes/posix/wait.pxd b/contrib/tools/cython/Cython/Includes/posix/wait.pxd
index 6041d02eb1..d18cff9cf8 100644
--- a/contrib/tools/cython/Cython/Includes/posix/wait.pxd
+++ b/contrib/tools/cython/Cython/Includes/posix/wait.pxd
@@ -1,38 +1,38 @@
-# http://pubs.opengroup.org/onlinepubs/009695399/basedefs/sys/wait.h.html
-
-from posix.types cimport pid_t, id_t
-from posix.signal cimport siginfo_t
-from posix.resource cimport rusage
-
-cdef extern from "<sys/wait.h>" nogil:
- enum: WNOHANG
- enum: WUNTRACED
- enum: WCONTINUED
- enum: WEXITED
- enum: WSTOPPED
- enum: WNOWAIT
-
- int WEXITSTATUS(int status)
- int WIFCONTINUED(int status)
- int WIFEXITED(int status)
- int WIFSIGNALED(int status)
- int WIFSTOPPED(int status)
- int WSTOPSIG(int status)
- int WTERMSIG(int status)
-
- ctypedef int idtype_t
- enum: P_ALL # idtype_t values
- enum: P_PID
- enum: P_PGID
-
- pid_t wait(int *stat_loc)
- pid_t waitpid(pid_t pid, int *status, int options)
- int waitid(idtype_t idtype, id_t id, siginfo_t *infop, int options)
-
-# wait3 was in POSIX until 2008 while wait4 was never standardized.
-# Even so, these calls are in almost every Unix, always in sys/wait.h.
-# Hence, posix.wait is the least surprising place to declare them for Cython.
-# libc may require _XXX_SOURCE to be defined at C-compile time to provide them.
-
- pid_t wait3(int *status, int options, rusage *rusage)
- pid_t wait4(pid_t pid, int *status, int options, rusage *rusage)
+# http://pubs.opengroup.org/onlinepubs/009695399/basedefs/sys/wait.h.html
+
+from posix.types cimport pid_t, id_t
+from posix.signal cimport siginfo_t
+from posix.resource cimport rusage
+
+cdef extern from "<sys/wait.h>" nogil:
+ enum: WNOHANG
+ enum: WUNTRACED
+ enum: WCONTINUED
+ enum: WEXITED
+ enum: WSTOPPED
+ enum: WNOWAIT
+
+ int WEXITSTATUS(int status)
+ int WIFCONTINUED(int status)
+ int WIFEXITED(int status)
+ int WIFSIGNALED(int status)
+ int WIFSTOPPED(int status)
+ int WSTOPSIG(int status)
+ int WTERMSIG(int status)
+
+ ctypedef int idtype_t
+ enum: P_ALL # idtype_t values
+ enum: P_PID
+ enum: P_PGID
+
+ pid_t wait(int *stat_loc)
+ pid_t waitpid(pid_t pid, int *status, int options)
+ int waitid(idtype_t idtype, id_t id, siginfo_t *infop, int options)
+
+# wait3 was in POSIX until 2008 while wait4 was never standardized.
+# Even so, these calls are in almost every Unix, always in sys/wait.h.
+# Hence, posix.wait is the least surprising place to declare them for Cython.
+# libc may require _XXX_SOURCE to be defined at C-compile time to provide them.
+
+ pid_t wait3(int *status, int options, rusage *rusage)
+ pid_t wait4(pid_t pid, int *status, int options, rusage *rusage)