<FILE structure>
typedef struct {
int level; /* fill/empty level of buffer */
unsigned flags; /* File status flags */
char fd; /* File descriptor */
unsigned char hold; /* Ungetc char if no buffer */
int bsize; /* Buffer size */
unsigned char *buffer; /* Data transfer buffer */
unsigned char *curp; /* Current active pointer */
unsigned istemp; /* Temporary file indicator */
short token; /* Used for validity checking */
} FILE;
파일 관련
http://blog.paran.com/isdev8587/4876504
va_list
http://forum.falinux.com/zbxe/?document_srl=406096&mid=gcc
http://legendfinger.com/132
fopen, fdopen, freopen
http://man.kldp.net/wiki/ManPage/fopen.3
http://www.cworldlab.com/CandCplus/clibrary/freopen.htm
http://www.cworldlab.com/CandCplus/clibrary/fdopen.htm
fseek, rewind
http://beej.us/guide/bgc/output/html/multipage/fseek.html
http://www.google.co.kr/url?sa=t&source=web&cd=5&ved=0CEEQFjAE&url=http%3A%2F%2Fwww.eskimo.com%2F~scs%2Fcclass%2Fint%2Fsx2i.html&ei=eBq9TOWPB4rWvQPxq_BB&usg=AFQjCNHHDhCTfXu6KGrc7NKjaG1MuokIBQ
fileno
http://linux.die.net/man/3/fileno
fgetpos/fsetpos
http://itguru.tistory.com/70
clearerr
http://www.opengroup.org/onlinepubs/009695399/functions/clearerr.html
setbuf, setvbuf
http://www.cworldlab.com/CandCplus/clibrary/setbuf.htm
http://www.cworldlab.com/CandCplus/clibrary/setvbuf.htm
fflush
http://www.joinc.co.kr/modules/moniwiki/wiki.php/man/3/fflush
unlink
http://www.joinc.co.kr/modules/moniwiki/wiki.php/man/2/unlink
unix system call
http://www.softpanorama.org/Internals/unix_system_calls.shtml
--System calls for low level file I/O
creat(name, permissions)
open(name, mode)
close(fd)
unlink(fd)
read(fd, buffer, n_to_read)
write(fd, buffer, n_to_write)
lseek(fd, offest, whence)
--System Calls for process control
fork()
wait()
execl(), execlp(), execv(), execvp()
exit()
signal(sig, handler)
kill(sig, pid)
--System Calls for IPC
pipe(fildes)
dup(fd)
파일 사용 util
http://ttongfly.net/zbxe/?document_srl=45219&mid=linuxprogramming
'c or linux' 카테고리의 다른 글
Domain Socket 정리 (0) | 2010.10.19 |
---|---|
stat 파일 상태 확인 (0) | 2010.10.19 |
read/write/lseek example (0) | 2010.10.19 |
[리눅스] man (매뉴얼) (0) | 2010.10.18 |
Vxworks 분위기 (0) | 2010.10.18 |