Commit 68582c27 authored by Robert Bradshaw's avatar Robert Bradshaw

Use angle brackes for posix includes.

parent a9006f88
# POSIX dynamic linking/loading interface. # POSIX dynamic linking/loading interface.
# http://pubs.opengroup.org/onlinepubs/9699919799/basedefs/dlfcn.h.html # http://pubs.opengroup.org/onlinepubs/9699919799/basedefs/dlfcn.h.html
cdef extern from "dlfcn.h" nogil: cdef extern from "<dlfcn.h>" nogil:
void *dlopen(const char *, int) void *dlopen(const char *, int)
char *dlerror() char *dlerror()
void *dlsym(void *, const char *) void *dlsym(void *, const char *)
......
# 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: cdef extern from "<fcntl.h>" nogil:
enum: F_DUPFD enum: F_DUPFD
enum: F_GETFD enum: F_GETFD
......
cdef extern from "sys/ioctl.h" nogil: cdef extern from "<sys/ioctl.h>" nogil:
enum: FIONBIO enum: FIONBIO
int ioctl(int fd, int request, ...) int ioctl(int fd, int request, ...)
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
from posix.types cimport off_t, mode_t from posix.types cimport off_t, mode_t
cdef extern from "sys/mman.h" nogil: cdef extern from "<sys/mman.h>" nogil:
enum: PROT_EXEC # protection bits for mmap/mprotect enum: PROT_EXEC # protection bits for mmap/mprotect
enum: PROT_READ enum: PROT_READ
enum: PROT_WRITE enum: PROT_WRITE
......
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
from posix.time cimport timeval from posix.time cimport timeval
from posix.types cimport id_t from posix.types cimport id_t
cdef extern from "sys/resource.h" nogil: cdef extern from "<sys/resource.h>" nogil:
enum: PRIO_PROCESS enum: PRIO_PROCESS
enum: PRIO_PGRP enum: PRIO_PGRP
......
from .types cimport sigset_t from .types cimport sigset_t
from .time cimport timeval, timespec from .time cimport timeval, timespec
cdef extern from "sys/select.h" nogil: cdef extern from "<sys/select.h>" nogil:
ctypedef struct fd_set: ctypedef struct fd_set:
pass pass
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
from posix.types cimport pid_t, sigset_t, uid_t from posix.types cimport pid_t, sigset_t, uid_t
cdef extern from "signal.h" nogil: cdef extern from "<signal.h>" nogil:
cdef union sigval: cdef union sigval:
int sival_int int sival_int
......
...@@ -2,7 +2,7 @@ from posix.types cimport (blkcnt_t, blksize_t, dev_t, gid_t, ino_t, mode_t, ...@@ -2,7 +2,7 @@ from posix.types cimport (blkcnt_t, blksize_t, dev_t, gid_t, ino_t, mode_t,
nlink_t, off_t, time_t, uid_t) nlink_t, off_t, time_t, uid_t)
cdef extern from "sys/stat.h" nogil: cdef extern from "<sys/stat.h>" nogil:
cdef struct struct_stat "stat": cdef struct struct_stat "stat":
dev_t st_dev dev_t st_dev
ino_t st_ino ino_t st_ino
...@@ -19,7 +19,7 @@ cdef extern from "sys/stat.h" nogil: ...@@ -19,7 +19,7 @@ cdef extern from "sys/stat.h" nogil:
time_t st_ctime time_t st_ctime
# 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: cdef extern from "<unistd.h>" nogil:
int fchmod(int, mode_t) int fchmod(int, mode_t)
int chmod(const char *, mode_t) int chmod(const char *, mode_t)
......
...@@ -5,7 +5,7 @@ from libc.stdio cimport FILE ...@@ -5,7 +5,7 @@ from libc.stdio cimport FILE
from libc.stddef cimport wchar_t from libc.stddef cimport wchar_t
from posix.types cimport off_t from posix.types cimport off_t
cdef extern from "stdio.h" nogil: cdef extern from "<stdio.h>" nogil:
# File descriptors # File descriptors
FILE *fdopen(int, const char *) FILE *fdopen(int, const char *)
int fileno(FILE *) int fileno(FILE *)
......
# POSIX additions to <stdlib.h> # POSIX additions to <stdlib.h>
# http://pubs.opengroup.org/onlinepubs/9699919799/basedefs/stdlib.h.html # http://pubs.opengroup.org/onlinepubs/9699919799/basedefs/stdlib.h.html
cdef extern from "stdlib.h" nogil: cdef extern from "<stdlib.h>" nogil:
void _Exit(int) void _Exit(int)
double drand48() double drand48()
double erand48(unsigned short *) double erand48(unsigned short *)
......
cdef extern from "strings.h" nogil: cdef extern from "<strings.h>" nogil:
int bcmp(const void *, const void *, size_t) int bcmp(const void *, const void *, size_t)
void bcopy(const void *, void *, size_t) void bcopy(const void *, void *, size_t)
void bzero(void *, size_t) void bzero(void *, size_t)
......
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
from posix.types cimport suseconds_t, time_t, clockid_t, timer_t 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: cdef extern from "<sys/time.h>" nogil:
enum: CLOCK_PROCESS_CPUTIME_ID enum: CLOCK_PROCESS_CPUTIME_ID
enum: CLOCK_THREAD_CPUTIME_ID enum: CLOCK_THREAD_CPUTIME_ID
......
...@@ -10,7 +10,7 @@ ...@@ -10,7 +10,7 @@
# the POSIX standard doesn't even specify that time_t must be an integral # the POSIX standard doesn't even specify that time_t must be an integral
# type). # type).
cdef extern from "sys/types.h": cdef extern from "<sys/types.h>":
ctypedef long blkcnt_t ctypedef long blkcnt_t
ctypedef long blksize_t ctypedef long blksize_t
ctypedef long clockid_t ctypedef long clockid_t
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
from posix.types cimport gid_t, pid_t, off_t, uid_t from posix.types cimport gid_t, pid_t, off_t, uid_t
cdef extern from "unistd.h" nogil: cdef extern from "<unistd.h>" nogil:
#:NULL #:NULL
......
...@@ -4,7 +4,7 @@ from posix.types cimport pid_t, id_t ...@@ -4,7 +4,7 @@ from posix.types cimport pid_t, id_t
from posix.signal cimport siginfo_t from posix.signal cimport siginfo_t
from posix.resource cimport rusage from posix.resource cimport rusage
cdef extern from "sys/wait.h" nogil: cdef extern from "<sys/wait.h>" nogil:
enum: WNOHANG enum: WNOHANG
enum: WUNTRACED enum: WUNTRACED
enum: WCONTINUED enum: WCONTINUED
......
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