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

NameTypeNotes
pathname*(char)
statbuf*(void)

Returns: int

fstat function
fn(fd : int, statbuf : *(void)) -> int

Parameters

NameTypeNotes
fdint
statbuf*(void)

Returns: int

lstat function
fn(pathname : *(char), statbuf : *(void)) -> int

Parameters

NameTypeNotes
pathname*(char)
statbuf*(void)

Returns: int

mkdir function
fn(pathname : *(char), mode : mode_t) -> int

Parameters

NameTypeNotes
pathname*(char)
modemode_t

Returns: int

chmod function
fn(pathname : *(char), mode : mode_t) -> int

Parameters

NameTypeNotes
pathname*(char)
modemode_t

Returns: int

fchmod function
fn(fd : int, mode : mode_t) -> int

Parameters

NameTypeNotes
fdint
modemode_t

Returns: int

umask function
fn(mask : mode_t) -> mode_t

Parameters

NameTypeNotes
maskmode_t

Returns: mode_t

mkfifo function
fn(pathname : *(char), mode : mode_t) -> int

Parameters

NameTypeNotes
pathname*(char)
modemode_t

Returns: int

Constants

S_IFMT constant mode_t

Value: S_IFMT

S_IFSOCK constant mode_t

Value: S_IFSOCK

S_IFLNK constant mode_t

Value: S_IFLNK

S_IFREG constant mode_t

Value: S_IFREG

S_IFBLK constant mode_t

Value: S_IFBLK

S_IFDIR constant mode_t

Value: S_IFDIR

S_IFCHR constant mode_t

Value: S_IFCHR

S_IFIFO constant mode_t

Value: S_IFIFO

S_IRWXU constant mode_t

Value: S_IRWXU

S_IRUSR constant mode_t

Value: S_IRUSR

S_IWUSR constant mode_t

Value: S_IWUSR

S_IXUSR constant mode_t

Value: S_IXUSR

S_IRWXG constant mode_t

Value: S_IRWXG

S_IRGRP constant mode_t

Value: S_IRGRP

S_IWGRP constant mode_t

Value: S_IWGRP

S_IXGRP constant mode_t

Value: S_IXGRP

S_IRWXO constant mode_t

Value: S_IRWXO

S_IROTH constant mode_t

Value: S_IROTH

S_IWOTH constant mode_t

Value: S_IWOTH

S_IXOTH constant mode_t

Value: S_IXOTH

S_ISUID constant mode_t

Value: S_ISUID

S_ISGID constant mode_t

Value: S_ISGID

S_ISVTX constant mode_t

Value: S_ISVTX