ncloader  0.1
 모두 데이타 구조 파일들 함수 변수 타입정의 열거형 타입 열거형 멤버 매크로 그룹들 페이지들
fcntl.h
이 파일의 문서화 페이지로 가기
1 
11 #define O_ACCMODE 0003
12 #define O_RDONLY 00
13 #define O_WRONLY 01
14 #define O_RDWR 02
15 #define O_CREAT 0100 /* not fcntl */
16 #define O_EXCL 0200 /* not fcntl */
17 #define O_NOCTTY 0400 /* not fcntl */
18 #define O_TRUNC 01000 /* not fcntl */
19 #define O_APPEND 02000
20 #define O_NONBLOCK 04000
21 #define O_NDELAY O_NONBLOCK
22 #define O_SYNC 04010000
23 #define O_FSYNC O_SYNC
24 #define O_ASYNC 020000
25 
26 #define F_DUPFD 0 /* Duplicate file descriptor. */
27 #define F_GETFD 1 /* Get file descriptor flags. */
28 #define F_SETFD 2 /* Set file descriptor flags. */
29 #define F_GETFL 3 /* Get file status flags. */
30 #define F_SETFL 4 /* Set file status flags. */
31 #define F_GETLK 5 /* Get record locking info. */
32 #define F_SETLK 6 /* Set record locking info (non-blocking). */
33 #define F_SETLKW 7 /* Set record locking info (blocking). */
34 #define F_SETOWN 8 /* Get owner (process receiving SIGIO). */
35 #define F_GETOWN 9 /* Set owner (process receiving SIGIO). */
36 
42 extern int creat(const char *path, mode_t mode);
43 
51 extern int fcntl(int fd, int cmd, ...);
52 
60 extern int open(const char *path, int mode, ...);
61 
70 extern int openat(int fd, const char *path, int mode, ...);
71 
80 extern int posix_fadvise(int fd, off_t offset, off_t len, int advice);
81 
89 extern int posix_fallocate(int fd, off_t offset, off_t len);
90 
91 /* @} End of a file */