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
| Name | Type | Notes |
|---|---|---|
fd | int | |
cmd | int |
Returns: int
open
function
fn(pathname : *(char), flags : int, ...) -> int
Parameters
| Name | Type | Notes |
|---|---|---|
pathname | *(char) | |
flags | int |
Returns: int
creat
function
fn(pathname : *(char), mode : u32) -> int
Parameters
| Name | Type | Notes |
|---|---|---|
pathname | *(char) | |
mode | u32 |
Returns: int
Constants
Value: O_RDONLY
Value: O_WRONLY
Value: O_RDWR
Value: O_CREAT
Value: O_EXCL
Value: O_TRUNC
Value: O_APPEND
Value: O_NONBLOCK
Value: O_SYNC
Value: O_DSYNC
Value: O_CLOEXEC
Value: O_DIRECTORY
Value: O_NOFOLLOW
Value: F_DUPFD
Value: F_GETFD
Value: F_SETFD
Value: F_GETFL
Value: F_SETFL
Value: F_GETLK
Value: F_SETLK
Value: F_SETLKW
Value: FD_CLOEXEC