원래는 파일의 생성일을 알아보려고 찾았는데..
리눅스에서는 파일 생성일은 저장을 안한다고 한다.
위는 man fstat의 내용으로, 위에 보듯, time_t 구조체가 세개가 있는데
last access / modification / change 세가지 뿐이다.
[링크 : http://www.linuxhomenetworking.com/forums/showthread.php?t=17449]
리눅스에서는 파일 생성일은 저장을 안한다고 한다.
struct stat
{
dev_t st_dev; /* ID of device containing file */
ino_t st_ino; /* inode number */
mode_t st_mode; /* protection */
nlink_t st_nlink; /* number of hard links */
uid_t st_uid; /* user ID of owner */
gid_t st_gid; /* group ID of owner */
dev_t st_rdev; /* device ID (if special file) */
off_t st_size; /* total size, in bytes */
blksize_t st_blksize; /* blocksize for filesystem I/O */
blkcnt_t st_blocks; /* number of blocks allocated */
time_t st_atime; /* time of last access */
time_t st_mtime; /* time of last modification */
time_t st_ctime; /* time of last status change */
};
위는 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 |
