Contains constructs that refer to file control, e.g. opening a file, retrieving and changing the permissions of file, locking a file for edit, etc.



Functions
 FunctionDescription
 creat AVM-only Create a new file or rewrite an existing one.
 fcntl AVM-only File control.
 open AVM-only Open file relative to a path.
 openat AVM-only Open file relative to directory file descriptor.
Constants
 ConstantDescription
 F_DUPFD AVM-only Return a new file descriptor which shall be the lowest numbered available (that is, not already open) file descriptor greater than or equal to the third argument, arg, taken as an integer of type int.
 F_DUPFD_CLOEXEC AVM-only Like F_DUPFD, but the FD_CLOEXEC flag associated with the new file descriptor shall be set.
 F_GETFD AVM-only Get the file descriptor flags defined in fcntl.h that are associated with the file descriptor fildes.
 F_GETFL AVM-only Get the file status flags and file access modes, defined in fcntl.h, for the file description associated with fildes.
 F_GETOWN AVM-only If fildes refers to a socket, get the process or process group ID specified to receive SIGURG signals when out-of-band data is available.
 F_SETFD AVM-only Set the file descriptor flags defined in fcntl.h, that are associated with fildes, to the third argument, arg, taken as type int.
 F_SETFL AVM-only Set the file status flags, defined in fcntl.h, for the file description associated with fildes from the corresponding bits in the third argument, arg, taken as type int.
 F_SETOWN AVM-only If fildes refers to a socket, set the process or process group ID specified to receive SIGURG signals when out-of-band data is available, using the value of the third argument, arg, taken as type int.
 O_ACCMODE AVM-only Mask for file access modes.
 O_APPEND AVM-only Set append mode.
 O_ASYNC AVM-only signal pgrp when data ready.
 O_BINARY AVM-only Opens a file in binary (untranslated) mode.
 O_CLOEXEC AVM-only implicitly set FD_CLOEXEC (Set "close on exec").
 O_CREAT AVM-only Create file if it does not exist.
 O_DIRECTORY AVM-only Fail if not a directory.
 O_DSYNC AVM-only Write according to synchronized I/O data integrity completion.
 O_EXCL AVM-only Exclusive use flag.
 O_EXEC AVM-only Open for execute only (non-directory files).
 O_EXLOCK AVM-only open with exclusive file lock.
 O_FSYNC AVM-only source compatibility: do not use.
 O_NOCTTY AVM-only Do not assign controlling terminal.
 O_NOFOLLOW AVM-only Do not follow symbolic links.
 O_NOINHERIT AVM-only Prevents creation of a shared file descriptor.
 O_NONBLOCK AVM-only Non-blocking mode.
 O_RANDOM AVM-only Specifies that caching is optimized for, but not restricted to, random access from disk.
 O_RAW AVM-only macro to translate the C 2.0 name used to force binary mode for files.
 O_RDONLY AVM-only Open for reading only.
 O_RDWR AVM-only Open for reading and writing.
 O_RSYNC AVM-only Synchronized read I/O operations.
 O_SEARCH AVM-only Open directory for search only.
 O_SEQUENTIAL AVM-only Specifies that caching is optimized for, but not restricted to, sequential access from disk.
 O_SHLOCK AVM-only open with shared file lock.
 O_SHORT_LIVED AVM-only temporary access hint.
 O_SYNC AVM-only Write according to synchronized I/O file integrity completion.
 O_TEMPORARY AVM-only Temporary file bit - file is deleted when last handle is closed.
 O_TEXT AVM-only Opens a file in text (translated) mode.
 O_TRUNC AVM-only Truncate flag.
 O_TTY_INIT AVM-only If path identifies a terminal device other than a pseudo-terminal, the device is not already open in any process, and either O_TTY_INIT is set in oflag or O_TTY_INIT has the value zero, open() shall set any non-standard termios structure terminal parameters to a state that provides conforming behavior; see Parameters that Can be Set.
 O_U16TEXT AVM-only Open the file in Unicode UTF-16 mode, UTF16 no BOM (translated).
 O_U8TEXT AVM-only Open the file in Unicode UTF-8 mode, UTF8 no BOM (translated).
 O_WRONLY AVM-only Open for writing only.
 O_WTEXT AVM-only Open the file in Unicode mode, UTF16 (translated).