api
sys_stat.ch
Declarations in sys_stat.ch
6 declarationscstd
Declarations
Public only
FileTypeBits#
Publicenum
enum FileTypeBits {
Mask,
Socket,
Symlink,
Regular,
BlockDev,
Directory,
CharDev,
FIFO
}
@enum FileTypeBits
@brief Bit flags for Unix file types, as used in st_mode from struct Stat.
Values are based on POSIX definitions (from ).
is_directory#
Publicfunction
func is_directory(mode : uint) : bool
@brief Test for directory.
#define S_ISDIR(m) (((m) & S_IFMT) == S_IFDIR)
S_ISDIR#
Publicfunction
func S_ISDIR(mode : uint) : bool
@brief Test for directory.
#define S_ISDIR(m) (((m) & S_IFMT) == S_IFDIR)
is_regular#
Publicfunction
func is_regular(mode : uint) : bool
@brief Test for regular file.
#define S_ISREG(m) (((m) & S_IFMT) == S_IFREG)
S_ISREG#
Publicfunction
func S_ISREG(mode : uint) : bool
@brief Test for regular file.
#define S_ISREG(m) (((m) & S_IFMT) == S_IFREG)
lstat#
Publicfunction
func lstat(pathname : *char, buf : *Stat) : int