Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cython
Commits
8ef3936b
Commit
8ef3936b
authored
Sep 26, 2014
by
Charles Blake
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add pxd for wait & friends from "sys/wait.h" covering POSIX/general Unix.
parent
59ac9991
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
38 additions
and
0 deletions
+38
-0
Cython/Includes/posix/wait.pxd
Cython/Includes/posix/wait.pxd
+38
-0
No files found.
Cython/Includes/posix/wait.pxd
0 → 100644
View file @
8ef3936b
# 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
)
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment