Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Boxiang Sun
cython
Commits
9c0c8a89
Commit
9c0c8a89
authored
Apr 08, 2014
by
Lars Buitinck
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
make posix.unistd more const-correct
parent
dfe94c2c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
21 additions
and
21 deletions
+21
-21
Cython/Includes/posix/unistd.pxd
Cython/Includes/posix/unistd.pxd
+21
-21
No files found.
Cython/Includes/posix/unistd.pxd
View file @
9c0c8a89
...
...
@@ -41,23 +41,23 @@ cdef extern from "unistd.h" nogil:
ctypedef
unsigned
useconds_t
ctypedef
signed
intptr_t
int
access
(
char
*
,
int
)
int
access
(
c
onst
c
har
*
,
int
)
unsigned
alarm
(
unsigned
)
int
chdir
(
char
*
)
int
chown
(
char
*
,
uid_t
,
gid_t
)
int
chdir
(
c
onst
c
har
*
)
int
chown
(
c
onst
c
har
*
,
uid_t
,
gid_t
)
int
close
(
int
)
size_t
confstr
(
int
,
char
*
,
size_t
)
char
*
crypt
(
c
har
*
,
char
*
)
char
*
crypt
(
c
onst
char
*
,
const
char
*
)
char
*
ctermid
(
char
*
)
int
dup
(
int
)
int
dup2
(
int
,
int
)
void
encrypt
(
char
[
64
],
int
)
int
execl
(
c
har
*
,
char
*
,
...)
int
execle
(
c
har
*
,
char
*
,
...)
int
execlp
(
c
har
*
,
char
*
,
...)
int
execv
(
char
*
,
char
*
[])
int
execve
(
char
*
,
char
*
[],
char
*
[])
int
execvp
(
char
*
,
char
*
[])
int
execl
(
c
onst
char
*
,
const
char
*
,
...)
int
execle
(
c
onst
char
*
,
const
char
*
,
...)
int
execlp
(
c
onst
char
*
,
const
char
*
,
...)
int
execv
(
c
onst
c
har
*
,
char
*
[])
int
execve
(
c
onst
c
har
*
,
char
*
[],
char
*
[])
int
execvp
(
c
onst
c
har
*
,
char
*
[])
void
_exit
(
int
)
int
fchown
(
int
,
uid_t
,
gid_t
)
int
fchdir
(
int
)
...
...
@@ -75,7 +75,7 @@ cdef extern from "unistd.h" nogil:
int
gethostname
(
char
*
,
size_t
)
char
*
getlogin
()
int
getlogin_r
(
char
*
,
size_t
)
int
getopt
(
int
,
char
*
[],
char
*
)
int
getopt
(
int
,
char
*
[],
c
onst
c
har
*
)
pid_t
getpgid
(
pid_t
)
pid_t
getpgrp
()
pid_t
getpid
()
...
...
@@ -84,8 +84,8 @@ cdef extern from "unistd.h" nogil:
uid_t
getuid
()
char
*
getwd
(
char
*
)
int
isatty
(
int
)
int
lchown
(
char
*
,
uid_t
,
gid_t
)
int
link
(
c
har
*
,
char
*
)
int
lchown
(
c
onst
c
har
*
,
uid_t
,
gid_t
)
int
link
(
c
onst
char
*
,
const
char
*
)
int
lockf
(
int
,
int
,
off_t
)
off_t
lseek
(
int
,
off_t
,
int
)
int
nice
(
int
)
...
...
@@ -93,10 +93,10 @@ cdef extern from "unistd.h" nogil:
int
pause
()
int
pipe
(
int
[
2
])
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
readlink
(
char
*
,
char
*
,
size_t
)
int
rmdir
(
char
*
)
ssize_t
readlink
(
c
onst
c
har
*
,
char
*
,
size_t
)
int
rmdir
(
c
onst
c
har
*
)
int
setegid
(
gid_t
)
int
seteuid
(
uid_t
)
int
setgid
(
gid_t
)
...
...
@@ -107,20 +107,20 @@ cdef extern from "unistd.h" nogil:
pid_t
setsid
()
int
setuid
(
uid_t
)
unsigned
sleep
(
unsigned
)
void
swab
(
void
*
,
void
*
,
ssize_t
)
int
symlink
(
c
har
*
,
char
*
)
void
swab
(
const
void
*
,
void
*
,
ssize_t
)
int
symlink
(
c
onst
char
*
,
const
char
*
)
void
sync
()
long
sysconf
(
int
)
pid_t
tcgetpgrp
(
int
)
int
tcsetpgrp
(
int
,
pid_t
)
int
truncate
(
char
*
,
off_t
)
int
truncate
(
c
onst
c
har
*
,
off_t
)
char
*
ttyname
(
int
)
int
ttyname_r
(
int
,
char
*
,
size_t
)
useconds_t
ualarm
(
useconds_t
,
useconds_t
)
int
unlink
(
char
*
)
int
unlink
(
c
onst
c
har
*
)
int
usleep
(
useconds_t
)
pid_t
vfork
()
ssize_t
write
(
int
,
void
*
,
size_t
)
ssize_t
write
(
int
,
const
void
*
,
size_t
)
char
*
optarg
int
optind
int
opterr
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment