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: <unknown: i32>

O_WRONLY constant i32

Value: <unknown: i32>

O_RDWR constant i32

Value: <unknown: i32>

O_CREAT constant i32

Value: <unknown: i32>

O_EXCL constant i32

Value: <unknown: i32>

O_TRUNC constant i32

Value: <unknown: i32>

O_APPEND constant i32

Value: <unknown: i32>

O_NONBLOCK constant i32

Value: <unknown: i32>

O_SYNC constant i32

Value: <unknown: i32>

O_DSYNC constant i32

Value: <unknown: i32>

O_CLOEXEC constant i32

Value: <unknown: i32>

O_DIRECTORY constant i32

Value: <unknown: i32>

O_NOFOLLOW constant i32

Value: <unknown: i32>

F_DUPFD constant int

Value: <unknown: int>

F_GETFD constant int

Value: <unknown: int>

F_SETFD constant int

Value: <unknown: int>

F_GETFL constant int

Value: <unknown: int>

F_SETFL constant int

Value: <unknown: int>

F_GETLK constant int

Value: <unknown: int>

F_SETLK constant int

Value: <unknown: int>

F_SETLKW constant int

Value: <unknown: int>

FD_CLOEXEC constant int

Value: <unknown: int>