Commit ced17f89 authored by Jeroen Demeyer's avatar Jeroen Demeyer

Additions to includes

parent 1ea0816e
...@@ -3,3 +3,8 @@ cdef extern from "setjmp.h" nogil: ...@@ -3,3 +3,8 @@ cdef extern from "setjmp.h" nogil:
pass pass
int setjmp(jmp_buf state) int setjmp(jmp_buf state)
void longjmp(jmp_buf state, int value) void longjmp(jmp_buf state, int value)
ctypedef struct sigjmp_buf:
pass
int sigsetjmp(sigjmp_buf state, int savesigs)
void siglongjmp(sigjmp_buf state, int value)
from .types cimport sigset_t
from .time cimport timeval, timespec
cdef extern from "sys/select.h" nogil:
ctypedef struct fd_set:
pass
int FD_SETSIZE
void FD_SET(int, fd_set*)
void FD_CLR(int, fd_set*)
bint FD_ISSET(int, fd_set*)
void FD_ZERO(fd_set*)
int select(int nfds, fd_set *readfds, fd_set *writefds,
fd_set *exceptfds, const timeval *timeout)
int pselect(int nfds, fd_set *readfds, fd_set *writefds,
fd_set *exceptfds, const timespec *timeout,
const sigset_t *sigmask)
...@@ -12,7 +12,7 @@ cdef extern from "signal.h" nogil: ...@@ -12,7 +12,7 @@ cdef extern from "signal.h" nogil:
int sigev_notify int sigev_notify
int sigev_signo int sigev_signo
sigval sigev_value sigval sigev_value
void *sigev_notify_function(sigval) void sigev_notify_function(sigval)
ctypedef struct siginfo_t: ctypedef struct siginfo_t:
int si_signo int si_signo
...@@ -26,10 +26,10 @@ cdef extern from "signal.h" nogil: ...@@ -26,10 +26,10 @@ cdef extern from "signal.h" nogil:
sigval si_value sigval si_value
cdef struct sigaction_t "sigaction": cdef struct sigaction_t "sigaction":
void *sa_handler(int) void sa_handler(int)
void sa_sigaction(int, siginfo_t *, void *)
sigset_t sa_mask sigset_t sa_mask
int sa_flags int sa_flags
void sa_sigaction(int, siginfo_t *, void *)
enum: SA_NOCLDSTOP enum: SA_NOCLDSTOP
enum: SIG_BLOCK enum: SIG_BLOCK
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment