Module libc/sys/stat
libc/sys/stat
POSIX <sys/stat.h> — file status and mode operations.
Types
mode_t
type-alias
mode_t
Functions
stat
function
fn(pathname : *(char), statbuf : *(void)) -> int
Parameters
| Name | Type | Notes |
|---|---|---|
pathname | *(char) | |
statbuf | *(void) |
Returns: int
fstat
function
fn(fd : int, statbuf : *(void)) -> int
Parameters
| Name | Type | Notes |
|---|---|---|
fd | int | |
statbuf | *(void) |
Returns: int
lstat
function
fn(pathname : *(char), statbuf : *(void)) -> int
Parameters
| Name | Type | Notes |
|---|---|---|
pathname | *(char) | |
statbuf | *(void) |
Returns: int
mkdir
function
fn(pathname : *(char), mode : mode_t) -> int
Parameters
| Name | Type | Notes |
|---|---|---|
pathname | *(char) | |
mode | mode_t |
Returns: int
chmod
function
fn(pathname : *(char), mode : mode_t) -> int
Parameters
| Name | Type | Notes |
|---|---|---|
pathname | *(char) | |
mode | mode_t |
Returns: int
fchmod
function
fn(fd : int, mode : mode_t) -> int
Parameters
| Name | Type | Notes |
|---|---|---|
fd | int | |
mode | mode_t |
Returns: int
umask
function
fn(mask : mode_t) -> mode_t
Parameters
| Name | Type | Notes |
|---|---|---|
mask | mode_t |
Returns: mode_t
mkfifo
function
fn(pathname : *(char), mode : mode_t) -> int
Parameters
| Name | Type | Notes |
|---|---|---|
pathname | *(char) | |
mode | mode_t |
Returns: int
Constants
Value: S_IFMT
Value: S_IFSOCK
Value: S_IFLNK
Value: S_IFREG
Value: S_IFBLK
Value: S_IFDIR
Value: S_IFCHR
Value: S_IFIFO
Value: S_IRWXU
Value: S_IRUSR
Value: S_IWUSR
Value: S_IXUSR
Value: S_IRWXG
Value: S_IRGRP
Value: S_IWGRP
Value: S_IXGRP
Value: S_IRWXO
Value: S_IROTH
Value: S_IWOTH
Value: S_IXOTH
Value: S_ISUID
Value: S_ISGID
Value: S_ISVTX