Module libc/fcntl

libc/fcntl

POSIX <fcntl.h> — file control options. Provides open flags and file control operations.

Functions

fcntl function
fn(fd : int, cmd : int, ...) -> int

Parameters

NameTypeNotes
fdint
cmdint

Returns: int

open function
fn(pathname : *(char), flags : int, ...) -> int

Parameters

NameTypeNotes
pathname*(char)
flagsint

Returns: int

creat function
fn(pathname : *(char), mode : u32) -> int

Parameters

NameTypeNotes
pathname*(char)
modeu32

Returns: int

Constants

O_RDONLY constant i32

Value: O_RDONLY

O_WRONLY constant i32

Value: O_WRONLY

O_RDWR constant i32

Value: O_RDWR

O_CREAT constant i32

Value: O_CREAT

O_EXCL constant i32

Value: O_EXCL

O_TRUNC constant i32

Value: O_TRUNC

O_APPEND constant i32

Value: O_APPEND

O_NONBLOCK constant i32

Value: O_NONBLOCK

O_SYNC constant i32

Value: O_SYNC

O_DSYNC constant i32

Value: O_DSYNC

O_CLOEXEC constant i32

Value: O_CLOEXEC

O_DIRECTORY constant i32

Value: O_DIRECTORY

O_NOFOLLOW constant i32

Value: O_NOFOLLOW

F_DUPFD constant int

Value: F_DUPFD

F_GETFD constant int

Value: F_GETFD

F_SETFD constant int

Value: F_SETFD

F_GETFL constant int

Value: F_GETFL

F_SETFL constant int

Value: F_SETFL

F_GETLK constant int

Value: F_GETLK

F_SETLK constant int

Value: F_SETLK

F_SETLKW constant int

Value: F_SETLKW

FD_CLOEXEC constant int

Value: FD_CLOEXEC