zkSysStat.h is a portable wrapper for the Unix 98 header <sys/stat.h>. It is part of the libzk library because <sys/stat.h> doesn't exist in Standard C.
Macro | Description |
---|---|
S_ISBLK(mode) | Test for a block special file. |
S_ISCHR(mode) | Test for a character special file. |
S_ISDIR(mode) | Test for a directory. |
S_ISFIFO(mode) | Test for a pipe or FIFO special file. |
S_ISLNK(mode) | Test for a symbolic link. |
S_ISREG(mode) | Test for a regular file. |
S_IRWXU | read, write, execute/search by owner |
S_IRUSR | read permission, owner |
S_IWUSR | write permission, owner |
S_IXUSR | execute/search permission, owner |
S_IRWXG | read, write, execute/search by group |
S_IRGRP | read permission, group |
S_IWGRP | write permission, group |
S_IXGRP | execute/search permission, group |
S_IRWXO | read, write, execute/search by others |
S_IROTH | read permission, others |
S_IWOTH | write permission, others |
S_IXOTH | execute/search permission, others |
Type | Description |
---|---|
struct stat, with members: | |
dev_t st_dev |
Implementation-defined |
ino_t st_ino |
Implementation-defined |
mode_t st_mode |
Mode of file |
nlink_t st_nlink |
Implementation-defined |
uid_t st_uid |
User ID of file |
gid_t st_gid |
Group ID of file |
dev_t st_rdev |
Implementation-defined |
off_t st_size |
File size in bytes (if file is a regular file) |
time_t st_atime |
Implementation-defined |
time_t st_mtime |
Time of last data modification |
time_t st_ctime |
Time of last status change |
Don't Call This | Instead, Call This | Reason |
---|---|---|
chmod | zkChmod | Not in Standard C. |
fstat | zkFstat | Not in Standard C. |
mkdir | zkMkdir | Not in Standard C. |
stat | zkStat | Not in Standard C. |
umask | zkUmask | Not in Standard C. |