Commit 6a9c3fe9 authored by Robert Bradshaw's avatar Robert Bradshaw

Merge pull request #305 from larsmans/more-posix

complete struct stat in POSIX API
parents a1fbea79 1a24106e
...@@ -4,8 +4,19 @@ from posix.types cimport (blkcnt_t, blksize_t, dev_t, gid_t, ino_t, mode_t, ...@@ -4,8 +4,19 @@ from posix.types cimport (blkcnt_t, blksize_t, dev_t, gid_t, ino_t, mode_t,
cdef extern from "sys/stat.h" nogil: cdef extern from "sys/stat.h" nogil:
cdef struct struct_stat "stat": cdef struct struct_stat "stat":
dev_t st_dev dev_t st_dev
ino_t st_ino ino_t st_ino
mode_t st_mode
nlink_t st_nlink
uid_t st_uid
gid_t st_gid
dev_t st_rdev
off_t st_size
blksize_t st_blksize
blkcnt_t st_blocks
time_t st_atime
time_t st_mtime
time_t st_ctime
# POSIX prescribes including both <sys/stat.h> and <unistd.h> for these # POSIX prescribes including both <sys/stat.h> and <unistd.h> for these
cdef extern from "unistd.h" nogil: cdef extern from "unistd.h" nogil:
......
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