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

Use angle brackes for posix includes.

parent a9006f88
# POSIX dynamic linking/loading interface.
# 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)
char *dlerror()
void *dlsym(void *, const char *)
......
# 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_GETFD
......
cdef extern from "sys/ioctl.h" nogil:
cdef extern from "<sys/ioctl.h>" nogil:
enum: FIONBIO
int ioctl(int fd, int request, ...)
......@@ -2,7 +2,7 @@
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_READ
enum: PROT_WRITE
......
......@@ -3,7 +3,7 @@
from posix.time cimport timeval
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_PGRP
......
from .types cimport sigset_t
from .time cimport timeval, timespec
cdef extern from "sys/select.h" nogil:
cdef extern from "<sys/select.h>" nogil:
ctypedef struct fd_set:
pass
......
......@@ -2,7 +2,7 @@
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:
int sival_int
......
......@@ -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)
cdef extern from "sys/stat.h" nogil:
cdef extern from "<sys/stat.h>" nogil:
cdef struct struct_stat "stat":
dev_t st_dev
ino_t st_ino
......@@ -19,7 +19,7 @@ cdef extern from "sys/stat.h" nogil:
time_t st_ctime
# 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 chmod(const char *, mode_t)
......
......@@ -5,7 +5,7 @@ from libc.stdio cimport FILE
from libc.stddef cimport wchar_t
from posix.types cimport off_t
cdef extern from "stdio.h" nogil:
cdef extern from "<stdio.h>" nogil:
# File descriptors
FILE *fdopen(int, const char *)
int fileno(FILE *)
......
# POSIX additions to <stdlib.h>
# 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)
double drand48()
double erand48(unsigned short *)
......
cdef extern from "strings.h" nogil:
cdef extern from "<strings.h>" nogil:
int bcmp(const void *, const void *, size_t)
void bcopy(const void *, void *, size_t)
void bzero(void *, size_t)
......
......@@ -3,7 +3,7 @@
from posix.types cimport suseconds_t, time_t, clockid_t, timer_t
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_THREAD_CPUTIME_ID
......
......@@ -10,7 +10,7 @@
# the POSIX standard doesn't even specify that time_t must be an integral
# type).
cdef extern from "sys/types.h":
cdef extern from "<sys/types.h>":
ctypedef long blkcnt_t
ctypedef long blksize_t
ctypedef long clockid_t
......
......@@ -2,7 +2,7 @@
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
......
......@@ -4,7 +4,7 @@ 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:
cdef extern from "<sys/wait.h>" nogil:
enum: WNOHANG
enum: WUNTRACED
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