Linux API/network2009. 7. 2. 16:38
원래는 파일의 생성일을 알아보려고 찾았는데..
리눅스에서는 파일 생성일은 저장을 안한다고 한다.

01struct stat
02{
03    dev_t     st_dev;     /* ID of device containing file */
04    ino_t     st_ino;     /* inode number */
05    mode_t    st_mode;    /* protection */
06    nlink_t   st_nlink;   /* number of hard links */
07    uid_t     st_uid;     /* user ID of owner */
08    gid_t     st_gid;     /* group ID of owner */
09    dev_t     st_rdev;    /* device ID (if special file) */
10    off_t     st_size;    /* total size, in bytes */
11    blksize_t st_blksize; /* blocksize for filesystem I/O */
12    blkcnt_t  st_blocks;  /* number of blocks allocated */
13    time_t    st_atime;   /* time of last access */
14    time_t    st_mtime;   /* time of last modification */
15    time_t    st_ctime;   /* time of last status change */
16};

위는 man fstat의 내용으로, 위에 보듯, time_t 구조체가 세개가 있는데
last access / modification / change 세가지 뿐이다.

[링크 : http://www.linuxhomenetworking.com/forums/showthread.php?t=17449]
Posted by 구차니