ncloader  0.1
 모두 데이타 구조 파일들 함수 변수 타입정의 열거형 타입 열거형 멤버 매크로 그룹들 페이지들
File 제어 옵션

파일 제어 관련 함수들을 선언/정의 한다. 더 자세히 ...

+ File 제어 옵션에 대한 협력 다이어그램:

매크로

#define O_ACCMODE   0003
 
#define O_RDONLY   00
 
#define O_WRONLY   01
 
#define O_RDWR   02
 
#define O_CREAT   0100 /* not fcntl */
 
#define O_EXCL   0200 /* not fcntl */
 
#define O_NOCTTY   0400 /* not fcntl */
 
#define O_TRUNC   01000 /* not fcntl */
 
#define O_APPEND   02000
 
#define O_NONBLOCK   04000
 
#define O_NDELAY   O_NONBLOCK
 
#define O_SYNC   04010000
 
#define O_FSYNC   O_SYNC
 
#define O_ASYNC   020000
 
#define F_DUPFD   0 /* Duplicate file descriptor. */
 
#define F_GETFD   1 /* Get file descriptor flags. */
 
#define F_SETFD   2 /* Set file descriptor flags. */
 
#define F_GETFL   3 /* Get file status flags. */
 
#define F_SETFL   4 /* Set file status flags. */
 
#define F_GETLK   5 /* Get record locking info. */
 
#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 F_GETOWN   9 /* Set owner (process receiving SIGIO). */
 

함수

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_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_ACCMODE   0003
#define O_APPEND   02000
#define O_ASYNC   020000
#define O_CREAT   0100 /* not fcntl */
#define O_EXCL   0200 /* not fcntl */
#define O_FSYNC   O_SYNC
#define O_NDELAY   O_NONBLOCK
#define O_NOCTTY   0400 /* not fcntl */
#define O_NONBLOCK   04000
#define O_RDONLY   00
#define O_RDWR   02
#define O_SYNC   04010000
#define O_TRUNC   01000 /* not fcntl */
#define O_WRONLY   01

함수 문서화

int creat ( const char *  path,
mode_t  mode 
)
매개변수
[in]path
[in]mode
반환값
int
int fcntl ( int  fd,
int  cmd,
  ... 
)
매개변수
[in]fd
[in]cmd
[in]...
반환값
int
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