sys_stat.ch
Declarations
Public Only
Publictypealias dev_t
type dev_t = u64
Use: include this file where you declare fstat, lstat, fstatat usage.
Publictypealias ino_t
type ino_t = u64
Publictypealias mode_t
type mode_t = u32
Publictypealias nlink_t
type nlink_t = u64
Publictypealias uid_t
type uid_t = u32
Publictypealias gid_t
type gid_t = u32
Publictypealias off_t
type off_t = i64
@typedef off_t
File offset type, used for file sizes and positions.
Publictypealias blksize_t
type blksize_t = i64
Publictypealias fsblkcnt_t
type fsblkcnt_t = u64
Publictypealias fsfilcnt_t
type fsfilcnt_t = u64
Publicfunction stat
func stat(pathname : *char, buf : *Stat) : int
@brief Get file status.
Parameters
- pathname Path to the file. @param buf Pointer to a Stat struct to fill. @return 0 on success, –1 on error.
- buf Pointer to a Stat struct to fill. @return 0 on success, –1 on error.
Returns
0 on success, –1 on error.
Publicfunction fstat
func fstat(fd : int, buf : *Stat) : int