XenevaOS
Loading...
Searching...
No Matches
fcntl.h
Go to the documentation of this file.
1
30#ifndef __FCNTL_H__
31#define __FCNTL_H__
32
33#include <sys\types.h>
34
35#define F_DUPFD 0x01
36#define F_GETFD 0x02
37#define F_SETFD 0x04
38#define F_GETFL 0x08
39#define F_SETFL 0x10
40#define F_GETLK 0x11
41#define F_SETLK 0x12
42#define F_SETLKW 0x14
43
44#define FD_CLOEXEC 0x01
45
46#define F_RDLCK 0x01
47#define F_UNLCK 0x02
48#define F_WRLCK 0x04
49
50#define O_CREAT 0x0001
51#define O_EXCL 0x0002
52#define O_NOCTTY 0x0004
53#define O_TRUNC 0x0008
54#define O_DIRECTORY 0x0010
55
56#define O_APPEND 0x0020
57#define O_DSYNC 0x0040
58
59#define O_NONBLOCK 0x0080
60#define O_RSYNC 0x0100
61#define O_SYNC 0x0200
62
63#define O_RDONLY 0x0400
64#define O_RDWR 0x0800
65#define O_WRONLY 0x1000
66#define O_ACCMODE 0x1C00
67
68typedef struct {
69 short l_type;
70 short l_whence;
74}flock;
75
76#endif
Definition fcntl.h:68
short l_type
Definition fcntl.h:69
pid_t l_pid
Definition fcntl.h:73
off_t l_start
Definition fcntl.h:71
short l_whence
Definition fcntl.h:70
off_t l_len
Definition fcntl.h:72
int pid_t
Definition types.h:40
unsigned off_t
Definition types.h:37