Commit 9c0c8a89 authored by Lars Buitinck's avatar Lars Buitinck

make posix.unistd more const-correct

parent dfe94c2c
...@@ -41,23 +41,23 @@ cdef extern from "unistd.h" nogil: ...@@ -41,23 +41,23 @@ cdef extern from "unistd.h" nogil:
ctypedef unsigned useconds_t ctypedef unsigned useconds_t
ctypedef signed intptr_t ctypedef signed intptr_t
int access(char *, int) int access(const char *, int)
unsigned alarm(unsigned) unsigned alarm(unsigned)
int chdir(char *) int chdir(const char *)
int chown(char *, uid_t, gid_t) int chown(const char *, uid_t, gid_t)
int close(int) int close(int)
size_t confstr(int, char *, size_t) size_t confstr(int, char *, size_t)
char *crypt(char *, char *) char *crypt(const char *, const char *)
char *ctermid(char *) char *ctermid(char *)
int dup(int) int dup(int)
int dup2(int, int) int dup2(int, int)
void encrypt(char[64], int) void encrypt(char[64], int)
int execl(char *, char *, ...) int execl(const char *, const char *, ...)
int execle(char *, char *, ...) int execle(const char *, const char *, ...)
int execlp(char *, char *, ...) int execlp(const char *, const char *, ...)
int execv(char *, char *[]) int execv(const char *, char *[])
int execve(char *, char *[], char *[]) int execve(const char *, char *[], char *[])
int execvp(char *, char *[]) int execvp(const char *, char *[])
void _exit(int) void _exit(int)
int fchown(int, uid_t, gid_t) int fchown(int, uid_t, gid_t)
int fchdir(int) int fchdir(int)
...@@ -75,7 +75,7 @@ cdef extern from "unistd.h" nogil: ...@@ -75,7 +75,7 @@ cdef extern from "unistd.h" nogil:
int gethostname(char *, size_t) int gethostname(char *, size_t)
char *getlogin() char *getlogin()
int getlogin_r(char *, size_t) int getlogin_r(char *, size_t)
int getopt(int, char * [], char *) int getopt(int, char * [], const char *)
pid_t getpgid(pid_t) pid_t getpgid(pid_t)
pid_t getpgrp() pid_t getpgrp()
pid_t getpid() pid_t getpid()
...@@ -84,8 +84,8 @@ cdef extern from "unistd.h" nogil: ...@@ -84,8 +84,8 @@ cdef extern from "unistd.h" nogil:
uid_t getuid() uid_t getuid()
char *getwd(char *) char *getwd(char *)
int isatty(int) int isatty(int)
int lchown(char *, uid_t, gid_t) int lchown(const char *, uid_t, gid_t)
int link(char *, char *) int link(const char *, const char *)
int lockf(int, int, off_t) int lockf(int, int, off_t)
off_t lseek(int, off_t, int) off_t lseek(int, off_t, int)
int nice(int) int nice(int)
...@@ -93,10 +93,10 @@ cdef extern from "unistd.h" nogil: ...@@ -93,10 +93,10 @@ cdef extern from "unistd.h" nogil:
int pause() int pause()
int pipe(int [2]) int pipe(int [2])
ssize_t pread(int, void *, size_t, off_t) ssize_t pread(int, void *, size_t, off_t)
ssize_t pwrite(int, void *, size_t, off_t) ssize_t pwrite(int, const void *, size_t, off_t)
ssize_t read(int, void *, size_t) ssize_t read(int, void *, size_t)
ssize_t readlink(char *, char *, size_t) ssize_t readlink(const char *, char *, size_t)
int rmdir(char *) int rmdir(const char *)
int setegid(gid_t) int setegid(gid_t)
int seteuid(uid_t) int seteuid(uid_t)
int setgid(gid_t) int setgid(gid_t)
...@@ -107,20 +107,20 @@ cdef extern from "unistd.h" nogil: ...@@ -107,20 +107,20 @@ cdef extern from "unistd.h" nogil:
pid_t setsid() pid_t setsid()
int setuid(uid_t) int setuid(uid_t)
unsigned sleep(unsigned) unsigned sleep(unsigned)
void swab(void *, void *, ssize_t) void swab(const void *, void *, ssize_t)
int symlink(char *, char *) int symlink(const char *, const char *)
void sync() void sync()
long sysconf(int) long sysconf(int)
pid_t tcgetpgrp(int) pid_t tcgetpgrp(int)
int tcsetpgrp(int, pid_t) int tcsetpgrp(int, pid_t)
int truncate(char *, off_t) int truncate(const char *, off_t)
char *ttyname(int) char *ttyname(int)
int ttyname_r(int, char *, size_t) int ttyname_r(int, char *, size_t)
useconds_t ualarm(useconds_t, useconds_t) useconds_t ualarm(useconds_t, useconds_t)
int unlink(char *) int unlink(const char *)
int usleep(useconds_t) int usleep(useconds_t)
pid_t vfork() pid_t vfork()
ssize_t write(int, void *, size_t) ssize_t write(int, const void *, size_t)
char *optarg char *optarg
int optind int optind
int opterr int opterr
......
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