STAT(5) — Kubota Pacfic Computer Inc.
NAME
stat − data returned by stat system call
SYNOPSIS
#include <sys/types.h>
#include <sys/stat.h>
DESCRIPTION
The system calls stat and fstat return data whose structure is defined by this include file. The encoding of the field st_mode is defined in this file also.
Structure of the result of stat
structstat
{
dev_tst_dev;
ulongst_ino;
ushortst_mode;
shortst_nlink;
ushortst_uid;
ushortst_gid;
dev_tst_rdev;
off_tst_size;
time_tst_atime;
time_tst_mtime;
time_tst_ctime;
};
#defineS_IFMT0170000/∗ type of file ∗/
#defineS_IFDIR0040000/∗ directory ∗/
#defineS_IFCHR0020000/∗ character special ∗/
#defineS_IFBLK0060000/∗ block special ∗/
#defineS_IFREG0100000/∗ regular ∗/
#defineS_IFIFO0010000/∗ fifo ∗/
#defineS_IFLINK0120000/∗ symbolic link ∗/
#defineS_ISUID04000/∗ set user id on execution ∗/
#defineS_ISGID02000/∗ set group id on execution ∗/
#defineS_ISVTX01000/∗ save swapped text even after use ∗/
#defineS_IREAD00400/∗ read permission, owner ∗/
#defineS_IWRITE00200/∗ write permission, owner ∗/
#defineS_IEXEC00100/∗ execute/search permission, owner ∗/
#defineS_ENFMTS_ISGID/∗ record locking enforcement flag ∗/
#defineS_IRWXU00700/∗ read,write, execute: owner ∗/
#defineS_IRUSR00400/∗ read permission: owner ∗/
#defineS_IWUSR00200/∗ write permission: owner ∗/
#defineS_IXUSR00100/∗ execute permission: owner ∗/
#defineS_IRWXG00070/∗ read, write, execute: group ∗/
#defineS_IRGRP00040/∗ read permission: group ∗/
#defineS_IWGRP00020/∗ write permission: group ∗/
#defineS_IXGRP00010/∗ execute permission: group ∗/
#defineS_IRWXO00007/∗ read, write, execute: other ∗/
#defineS_IROTH00004/∗ read permission: other ∗/
#defineS_IWOTH00002/∗ write permission: other ∗/
#defineS_IXOTH00001/∗ execute permission: other ∗/
SEE ALSO
September 02, 1992