You are not logged in.
hello all, i'm having a problem here...
i've read up on the manual here:
http://www.gnu.org/software/libc/manual … butes.html
and from here (http://www.gnu.org/software/libc/manual … nings.html), it appears that there are no times to read that tell me when the creation time is. i see last access and modification, but no creation date.
how do i read this in C? thanks!
Offline
'man 2 stat' shows this for the struct:
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 */
};
Offline
is "status change" supposed to mean creation date?
Offline
Linux and Unix file systems do not have a creation date stored, as far as I know, unlike FAT and NFS. They only have the above three fields.
Offline
Yeah, I don't think ANY filesystem (or OS) stores file CREATION time, unless you count VMS - as you could just check the mtime of the file "version 1"
Offline