struct--stat ---------------------------------------------------- struct stat { mode_t st_mode; // file type & mode(permissions) ino_t st_ino; // i-node number(serial number) dev_t st_dev; // device number(filesystem) dev_t st_rdev; // device number for specials files nlink_t st_nlink; // number of links uid_t st_uid; // user ID of owner gid_t st_gid; // group ID of owner off_t st_size; // size in bytes, for regular files time_t st_atime; // time of last access time_t st_mtime; // time of last modification time_t st_ctime; // time of last file status change long st_blksize; // best I/O block size long st_blocks; -// number of 512-byte blocks allocated };
struct--stat ---------------------------------------------------- /usr/src/linux/include/asm-i386/stat.h struct stat { unsigned long --st_dev; unsigned long --st_ino; unsigned short -st_mode; unsigned short -st_nlink; unsigned short -st_uid; unsigned short -st_gid; unsigned long --st_rdev; unsigned long --st_size; unsigned long --st_blksize; unsigned long --st_blocks; unsigned long --st_atime; unsigned long --st_atime_nsec; unsigned long --st_mtime; unsigned long --st_mtime_nsec; unsigned long --st_ctime; unsigned long --st_ctime_nsec; unsigned long --__unused4; unsigned long --__unused5; };