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
Labels
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
nexedi
cython
Commits
8b552322
Commit
8b552322
authored
Aug 28, 2015
by
Robert Bradshaw
Committed by
Stefan Behnel
Sep 01, 2015
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Clarify posix typedef declarations.
parent
93aaa768
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
1 deletion
+13
-1
Cython/Includes/posix/types.pxd
Cython/Includes/posix/types.pxd
+13
-1
No files found.
Cython/Includes/posix/types.pxd
View file @
8b552322
# Note that the actual size of these types is system-dependant, and
# can't be detected at C compile time. However, the generated C code
# will correctly use the actual size of these types *except* for
# determining promotion in binary arithmetic expressions involving
# mixed types. In this case, operands are promoted to the declared
# larger type, with a bias towards typedef types. Thus, with the
# declarations below, long + time_t will result in a time_t whereas
# long long + time_t will result in a long long which should be
# acceptable for either 32-bit or 64-bit signed time_t (though admittedly
# 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
blkcnt_t
ctypedef
long
blksize_t
ctypedef
long
blksize_t
...
@@ -5,7 +17,7 @@ cdef extern from "sys/types.h":
...
@@ -5,7 +17,7 @@ cdef extern from "sys/types.h":
ctypedef
long
dev_t
ctypedef
long
dev_t
ctypedef
long
gid_t
ctypedef
long
gid_t
ctypedef
long
id_t
ctypedef
long
id_t
ctypedef
long
ino_t
ctypedef
unsigned
long
ino_t
ctypedef
long
mode_t
ctypedef
long
mode_t
ctypedef
long
nlink_t
ctypedef
long
nlink_t
ctypedef
long
off_t
ctypedef
long
off_t
...
...
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