4685三肖中特期:

- “ϵԒ - - У· - VӅ^ɽ·A@^3307(AT)
Fڵλã ӋCӖ >> Ӗ̳ >> CZ >> 
C++ZΫ@ȡļ ߣӋC࡭    ̳́ԴVӋCӖ    c    •rg2010-12-1

ϴȫ www.wzfng.com C++ZΫ@ȡļstatϵy{ϵаfstatstatlstatÁPļBϢߵIJ֮ͬ̎OԴļķʽͬ

statϵy{ϵаfstatstatlstatÁPļBϢߵIJ֮ͬ̎OԴļķʽͬ

¡ؽBһdzҪVIPfstat, statlstat߶ҪõһYwֽstruct stat?\?]@struct stat֧ϵy{Ì粽y

@struct statYwڲͬUnix/LinuxϵyеĶxСą^eȫÓ@Ӱ҂ʹ

struct statYw҂õҸƽ_һеǣ

st_mode ļ޺ļϢ ӛס@wټtɫ

st_ino   cԓļP“inode

st_dev   ļO

st_uid   ļUID̖

st_gid   ļGID̖

st_atime ļһαLĕrg

st_ctime ļęMһα޸ĵĕrg

st_mtime ļăһα޸ĵĕrgst_ctimeIJ֮ͬ̎@Ҋ

st_nlink  ԓļӲBӵĂ

ҷքeȡsolarisUNIXfedoraLinuxstruct statYwԭʼxҿԼȌһ±԰lFߴ_ͬҪȫͬ

solarisstruct statx

struct stat {
dev_t           st_dev;
ino_t           st_ino;
mode_t          st_mode;
nlink_t         st_nlink;
uid_t           st_uid;
gid_t           st_gid;
dev_t           st_rdev;
off_t           st_size;
timestruc_t     st_atim;
timestruc_t     st_mtim;
timestruc_t     st_ctim;
blksize_t       st_blksize;
blkcnt_t        st_blocks;
char            st_fstype[_ST_FSTYPSZ];
};

fedorastruct statx

struct stat
{
__dev_t st_dev;                     /* Device.  */
unsigned short int __pad1;
__ino_t st_ino;                     /* File serial number.  */
__mode_t st_mode;                   /* File mode.  */
__nlink_t st_nlink;                 /* Link count.  */
__uid_t st_uid;                     /* User ID of the files owner. */
__gid_t st_gid;                     /* Group ID of the files group.*/
__dev_t st_rdev;                    /* Device number, if device.  */
unsigned short int __pad2;
__off_t st_size;                    /* Size of file, in bytes.  */
__blksize_t st_blksize;             /* Optimal block size for I/O.  */
__blkcnt_t st_blocks;               /* Number 512-byte blocks allocated. */
struct timespec st_atim;            /* Time of last
Access.  */
struct timespec st_mtim;            /* Time of last modification.  */
struct timespec st_ctim;            /* Time of last status change.  */
unsigned long int __unused4;
unsigned long int __unused5;

WУ· |Wվ؈D| ϴȫ Copyright 2006-2016 All Rights Reserved VϢԃ޹˾ 䰸/SC̖ICP11070650̖-9 B̩˱BϢg޹˾VӋCWУӖW ٷWַϴȫ www.wzfng.com ˾ַVӅ^ɽ·AWƼ@A@^3307AT