원래는 파일의 생성일을 알아보려고 찾았는데..
리눅스에서는 파일 생성일은 저장을 안한다고 한다.
위는 man fstat의 내용으로, 위에 보듯, time_t 구조체가 세개가 있는데
last access / modification / change 세가지 뿐이다.
[링크 : http://www.linuxhomenetworking.com/forums/showthread.php?t=17449]
리눅스에서는 파일 생성일은 저장을 안한다고 한다.
01 | struct 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]
'Linux API > network' 카테고리의 다른 글
[확인중] 이더넷 링크 상태 확인하기 - howto get link status (0) | 2009.07.30 |
---|---|
리눅스 소켓 프로그래밍 - linux socket programming (0) | 2009.07.17 |
Linux File Descriptor / File pointer (0) | 2009.06.30 |
getline() (0) | 2009.06.25 |
fork에 관한 짧은 이야기 (2) | 2009.06.23 |