부풍 2009. 8. 5. 11:53
UNLINK().. 참조계수가 0이 되면 우리 눈에는 지워지지만 데이타는 사실 그대로 남아있다.

remove()
rename() : 디렉토리명이 존재할때 파일을 rename하면?

symlink()
readlink()

파일의 시간 정보
st_atime
st_mtime
st_ctime : stat구조의 내용 변경시간 (chmod(), link(), write()등)

utime() : atime, mtime 변경가능 (구조체 매개변수 넘김으로)
ex) touch


dirent(directory entry)구조체 : ino, name

DIR * opendir(const char *pathname);
struct dirent * readdir(DIR * dp);
-readdir() 수행 시마다 디렉토리 파일의 오프셋은 sizeof(struct dirent)만큼 증가

int fchdir(int filedes);
setbuf, setvbuf

freopen(), fdopen()