module core.c.posix.fcntl
C Bindings | Posix Bindings

Code Map

module core.c.posix.fcntl;


enum F_DUPFD;
enum F_GETFD;
enum F_SETFD;
enum F_GETFL;
enum F_SETFL;
enum F_GETLK;
enum F_SETLK;
enum F_SETLKW;
enum F_GETOWN;
enum F_SETOWN;
enum FD_CLOEXEC;
enum F_RDLCK;
enum F_UNLCK;
enum F_WRLCK;
enum O_CREAT;
enum O_EXCL;
enum O_NOCTTY;
enum O_TRUNC;
enum O_APPEND;
enum O_NONBLOCK;
enum O_SYNC;
enum O_DSYNC;
enum O_RSYNC;
enum O_ACCMODE;
enum O_RDONLY;
enum O_WRONLY;
enum O_RDWR;
enum AT_SYMLINK_NOFOLLOW;
enum AT_FDCWD;

struct flock
{
public:
	l_type: i16;
	l_whence: i16;
	l_start: off_t;
	l_len: off_t;
	l_pid: pid_t;
}

fn creat(const(const(char)*), mode_t) i32;
fn open(const(const(char)*), i32) i32;
fn fcntl(i32, i32) i32;
fn posix_fallocate(i32, off_t, off_t) i32;