Upstream version 9.38.198.0
[platform/framework/web/crosswalk.git] / src / third_party / cython / src / Cython / Includes / posix / fcntl.pxd
1 # http://www.opengroup.org/onlinepubs/009695399/basedefs/fcntl.h.html
2
3 cdef extern from "fcntl.h" nogil:
4
5     enum: F_DUPFD
6     enum: F_GETFD
7     enum: F_SETFD
8     enum: F_GETFL
9     enum: F_SETFL
10     enum: F_GETLK
11     enum: F_SETLK
12     enum: F_SETLKW
13     enum: F_GETOWN
14     enum: F_SETOWN
15
16     enum: FD_CLOEXEC
17
18     enum: F_RDLCK
19     enum: F_UNLCK
20     enum: F_WRLCK
21
22     enum: SEEK_SET
23     enum: SEEK_CUR
24     enum: SEEK_END
25
26     enum: O_CREAT
27     enum: O_EXCL
28     enum: O_NOCTTY
29     enum: O_TRUNC
30
31     enum: O_APPEND
32     enum: O_DSYNC
33     enum: O_NONBLOCK
34     enum: O_RSYNC
35     enum: O_SYNC
36
37     enum: O_ACCMODE # O_RDONLY|O_WRONLY|O_RDWR
38
39     enum: O_RDONLY
40     enum: O_WRONLY
41     enum: O_RDWR
42
43     enum: S_IFMT
44     enum: S_IFBLK
45     enum: S_IFCHR
46     enum: S_IFIFO
47     enum: S_IFREG
48     enum: S_IFDIR
49     enum: S_IFLNK
50     enum: S_IFSOCK
51
52     ctypedef int    mode_t
53     ctypedef signed pid_t
54     ctypedef signed off_t
55
56     struct flock:
57         short l_type
58         short l_whence
59         off_t l_start
60         off_t l_len
61         pid_t l_pid
62
63     int creat(char *, mode_t)
64     int fcntl(int, int, ...)
65     int open(char *, int, ...)
66     #int open (char *, int, mode_t)
67