1 # http://www.opengroup.org/onlinepubs/009695399/basedefs/unistd.h.html
3 cdef extern from "unistd.h" nogil:
32 enum: STDOUT_FILENO #1
33 enum: STDERR_FILENO #2
35 #:ctypedef unsigned size_t
36 #:ctypedef signed ssize_t
41 ctypedef unsigned useconds_t
42 ctypedef signed intptr_t
44 int access(char *, int)
45 unsigned alarm(unsigned)
47 int chown(char *, uid_t, gid_t)
49 size_t confstr(int, char *, size_t)
50 char *crypt(char *, char *)
54 void encrypt(char[64], int)
55 int execl(char *, char *, ...)
56 int execle(char *, char *, ...)
57 int execlp(char *, char *, ...)
58 int execv(char *, char *[])
59 int execve(char *, char *[], char *[])
60 int execvp(char *, char *[])
62 int fchown(int, uid_t, gid_t)
66 long fpathconf(int, int)
68 int ftruncate(int, off_t)
69 char *getcwd(char *, size_t)
73 int getgroups(int, gid_t [])
75 int gethostname(char *, size_t)
77 int getlogin_r(char *, size_t)
78 int getopt(int, char * [], char *)
87 int lchown(char *, uid_t, gid_t)
88 int link(char *, char *)
89 int lockf(int, int, off_t)
90 off_t lseek(int, off_t, int)
92 long pathconf(char *, int)
95 ssize_t pread(int, void *, size_t, off_t)
96 ssize_t pwrite(int, void *, size_t, off_t)
97 ssize_t read(int, void *, size_t)
98 ssize_t readlink(char *, char *, size_t)
103 int setpgid(pid_t, pid_t)
105 int setregid(gid_t, gid_t)
106 int setreuid(uid_t, uid_t)
109 unsigned sleep(unsigned)
110 void swab(void *, void *, ssize_t)
111 int symlink(char *, char *)
115 int tcsetpgrp(int, pid_t)
116 int truncate(char *, off_t)
118 int ttyname_r(int, char *, size_t)
119 useconds_t ualarm(useconds_t, useconds_t)
121 int usleep(useconds_t)
123 ssize_t write(int, void *, size_t)