파일 제어 관련 함수들을 선언/정의 한다.
More...
|
| 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) |
| |
파일 제어 관련 함수들을 선언/정의 한다.
- Date
- 2011-8-27
- Author
- 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_GETFL 3 /* Get file status 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_SETFL 4 /* Set file status 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 |
|
) |
| |
- Parameters
-
- Returns
- int
Definition at line 6 of file fcntl.c.
References ENOSYS.
| int fcntl |
( |
int |
fd, |
|
|
int |
cmd, |
|
|
|
... |
|
) |
| |
- Parameters
-
- Returns
- int
Definition at line 11 of file fcntl.c.
References ENOSYS.
| int open |
( |
const char * |
path, |
|
|
int |
mode, |
|
|
|
... |
|
) |
| |
- Parameters
-
| [in] | path | |
| [in] | mode | |
| [in] | ... | |
- Returns
- int
Definition at line 22 of file open.c.
References BUFSIZ, file::ctx, EFAULT, ENOSPC, thread::file_ctx, MAX_ENTRY, file_object_info::mode, file::object, object_create(), file_object_info::path, printf(), pthread_self(), file_object_info::size, and thread_file_ctx::table.
Referenced by create_fat_cache().
| int openat |
( |
int |
fd, |
|
|
const char * |
path, |
|
|
int |
mode, |
|
|
|
... |
|
) |
| |
- Parameters
-
| [in] | fd | |
| [in] | path | |
| [in] | mode | |
| [in] | ... | |
- Returns
- int
Definition at line 16 of file fcntl.c.
References ENOSYS.
| int posix_fadvise |
( |
int |
fd, |
|
|
off_t |
offset, |
|
|
off_t |
len, |
|
|
int |
advice |
|
) |
| |
- Parameters
-
| [in] | fd | |
| [in] | offset | |
| [in] | len | |
| [in] | advice | |
- Returns
- int
Definition at line 21 of file fcntl.c.
References ENOSYS.
| int posix_fallocate |
( |
int |
fd, |
|
|
off_t |
offset, |
|
|
off_t |
len |
|
) |
| |
- Parameters
-
| [in] | fd | |
| [in] | offset | |
| [in] | len | |
- Returns
- int
Definition at line 26 of file fcntl.c.
References ENOSYS.