module core.c.posix.sys.stat
C Bindings | Posix Bindings

Code Map

module core.c.posix.sys.stat;

public import core.c.stddef;
public import core.c.posix.sys.types;


enum S_IRUSR;
enum S_IWUSR;
enum S_IXUSR;
enum S_IRWXU;
enum S_IRGRP;
enum S_IRWXG;
enum S_IRWXO;
enum S_ISUID;
enum S_ISGID;
enum S_ISVTX;
enum S_IFMT;
enum S_IFBLK;
enum S_IFCHR;
enum S_IFIFO;
enum S_IFREG;
enum S_IFDIR;
enum S_IFLNK;
enum S_IFSOCK;

alias ulong_t = u64;
alias slong_t = u64;

struct stat_t
{
public:
	st_dev: dev_t;
	st_ino: ino_t;
	st_nlink: nlink_t;
	st_mode: mode_t;
	st_uid: uid_t;
	st_gid: gid_t;
	__pad0: u32;
	st_rdev: dev_t;
	st_size: off_t;
	st_blksize: blksize_t;
	st_blocks: blkcnt_t;
	st_atime: time_t;
	st_atimensec: ulong_t;
	st_mtime: time_t;
	st_mtimensec: ulong_t;
	st_ctime: time_t;
	st_ctimensec: ulong_t;
	__unused: slong_t[3];
}

fn S_ISBLK(mode: mode_t) bool { }
fn S_ISCHR(mode: mode_t) bool { }
fn S_ISDIR(mode: mode_t) bool { }
fn S_ISFIFO(mode: mode_t) bool { }
fn S_ISREG(mode: mode_t) bool { }
fn S_ISLNK(mode: mode_t) bool { }
fn S_ISSOCK(mode: mode_t) bool { }
fn S_TYPEISMQ(buf: stat_t*) bool { }
fn S_TYPEISSEM(buf: stat_t*) bool { }
fn S_TYPEISSHM(buf: stat_t*) bool { }
fn chmod(const(const(char)*), mode_t) i32;
fn fchmod(i32, mode_t) i32;
fn mkdir(const(const(char)*), mode_t) i32;
fn mkfifo(const(const(char)*), mode_t) i32;
fn umask(mode_t) mode_t;
fn fstat(i32, stat_t*) i32;
fn lstat(const(const(char)*), stat_t*) i32;
fn stat(const(const(char)*), stat_t*) i32;
fn mknod(const(const(char)*), mode_t, dev_t) i32;