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