파일 제어 관련 함수들을 선언/정의 한다.
더 자세히 ...
|
| int | creat (const char *path, mode_t mode) |
| |
| int | fcntl (int fd, int cmd,...) |
| |
| int | open (const char *path, int mode,...) |
| |
| int | openat (int fd, const char *path, int mode,...) |
| |
| int | posix_fadvise (int fd, off_t offset, off_t len, int advice) |
| |
| int | posix_fallocate (int fd, off_t offset, off_t len) |
| |
파일 제어 관련 함수들을 선언/정의 한다.
- 날짜
- 2011-8-27
- 작성자
- Sung-jae Park nices.nosp@m.j@ni.nosp@m.cesj..nosp@m.com
| #define F_DUPFD 0 /* Duplicate file descriptor. */ |
| #define F_GETFD 1 /* Get file descriptor flags. */ |
| #define F_GETLK 5 /* Get record locking info. */ |
| #define F_GETOWN 9 /* Set owner (process receiving SIGIO). */ |
| #define F_SETFD 2 /* Set file descriptor flags. */ |
| #define F_SETLK 6 /* Set record locking info (non-blocking). */ |
| #define F_SETLKW 7 /* Set record locking info (blocking). */ |
| #define F_SETOWN 8 /* Get owner (process receiving SIGIO). */ |
| #define O_CREAT 0100 /* not fcntl */ |
| #define O_EXCL 0200 /* not fcntl */ |
| #define O_NOCTTY 0400 /* not fcntl */ |
| #define O_TRUNC 01000 /* not fcntl */ |
| int creat |
( |
const char * |
path, |
|
|
mode_t |
mode |
|
) |
| |
| int fcntl |
( |
int |
fd, |
|
|
int |
cmd, |
|
|
|
... |
|
) |
| |
| int open |
( |
const char * |
path, |
|
|
int |
mode, |
|
|
|
... |
|
) |
| |
- 매개변수
-
| [in] | path | |
| [in] | mode | |
| [in] | ... | |
- 반환값
- int
| int openat |
( |
int |
fd, |
|
|
const char * |
path, |
|
|
int |
mode, |
|
|
|
... |
|
) |
| |
- 매개변수
-
| [in] | fd | |
| [in] | path | |
| [in] | mode | |
| [in] | ... | |
- 반환값
- int
| int posix_fadvise |
( |
int |
fd, |
|
|
off_t |
offset, |
|
|
off_t |
len, |
|
|
int |
advice |
|
) |
| |
- 매개변수
-
| [in] | fd | |
| [in] | offset | |
| [in] | len | |
| [in] | advice | |
- 반환값
- int
| int posix_fallocate |
( |
int |
fd, |
|
|
off_t |
offset, |
|
|
off_t |
len |
|
) |
| |
- 매개변수
-
| [in] | fd | |
| [in] | offset | |
| [in] | len | |
- 반환값
- int