File Descriptor
int open(const char *pathname, int flags);
int open(const char *pathname, int flags, mode_t mode);
ssize_t read(int fildes, void *buf, size_t nbyte);
ssize_t write(int fildes, const void *buf, size_t nbyte);
int close(int fd);
int pipe(int filedes[2]); // filedes[0] is for reading, filedes[1] is for writing
int dup(int oldfd);
int dup2(int oldfd, int newfd);
ssize_t pread(int fildes, void *buf, size_t nbyte, off_t offset);
ssize_t pwrite(int fildes, const void *buf, size_t nbyte,off_t offset);
File Pointer
FILE *fopen(const char *path, const char *mode);
size_t fread(void *ptr, size_t size, size_t nmemb, FILE *stream);
size_t fwrite(const void *ptr, size_t size, size_t nmemb, FILE *stream);
int fclose(FILE *fp);
FILE *fdopen(int fildes, const char *mode);
FILE *freopen(const char *path, const char *mode, FILE *stream);
int fseek(FILE *stream, long offset, int whence);
long ftell(FILE *stream);
void rewind(FILE *stream);
int fgetpos(FILE *stream, fpos_t *pos);
int fsetpos(FILE *stream, fpos_t *pos);
FILE *popen(const char *command, const char *type);
int pclose(FILE *stream);
int open(const char *pathname, int flags);
int open(const char *pathname, int flags, mode_t mode);
ssize_t read(int fildes, void *buf, size_t nbyte);
ssize_t write(int fildes, const void *buf, size_t nbyte);
int close(int fd);
int pipe(int filedes[2]); // filedes[0] is for reading, filedes[1] is for writing
int dup(int oldfd);
int dup2(int oldfd, int newfd);
ssize_t pread(int fildes, void *buf, size_t nbyte, off_t offset);
ssize_t pwrite(int fildes, const void *buf, size_t nbyte,off_t offset);
File Pointer
FILE *fopen(const char *path, const char *mode);
size_t fread(void *ptr, size_t size, size_t nmemb, FILE *stream);
size_t fwrite(const void *ptr, size_t size, size_t nmemb, FILE *stream);
int fclose(FILE *fp);
FILE *fdopen(int fildes, const char *mode);
FILE *freopen(const char *path, const char *mode, FILE *stream);
int fseek(FILE *stream, long offset, int whence);
long ftell(FILE *stream);
void rewind(FILE *stream);
int fgetpos(FILE *stream, fpos_t *pos);
int fsetpos(FILE *stream, fpos_t *pos);
FILE *popen(const char *command, const char *type);
int pclose(FILE *stream);
'Linux API > network' 카테고리의 다른 글
리눅스 소켓 프로그래밍 - linux socket programming (0) | 2009.07.17 |
---|---|
fstat - 파일의 상태 얻어오기 (2) | 2009.07.02 |
getline() (0) | 2009.06.25 |
fork에 관한 짧은 이야기 (2) | 2009.06.23 |
signal / kill / raise (0) | 2009.06.21 |