struct stat {
dev_t st_dev; /* device */
ino_t st_ino; /* inode */
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 type (if inode device) */
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 change */
};
좋은 자료
http://www.joinc.co.kr/modules/moniwiki/wiki.php/man/2/stat
http://www.opengroup.org/onlinepubs/000095399/functions/stat.html
http://linux.die.net/man/2/stat
<chmod>
http://opengroup.org/onlinepubs/007908775/xsh/sysstat.h.html
<utime>
st_atime, st_mtime, st_ctime 확인
http://www.joinc.co.kr/modules/moniwiki/wiki.php/man/2/utime
<chown>
chown, fchown, lchown,
<truncate>
truncate
http://docs.hp.com/en/B9106-90009/truncate.2.html
'c or linux' 카테고리의 다른 글
chmod 예제 (0) | 2010.10.19 |
---|---|
Domain Socket 정리 (0) | 2010.10.19 |
FILE 관련 API (0) | 2010.10.19 |
read/write/lseek example (0) | 2010.10.19 |
[리눅스] man (매뉴얼) (0) | 2010.10.18 |