Here we provides access to the POSIX operating system API. We defines miscellaneous symbolic constants and types, and declares miscellaneous functions.



Functions
 FunctionDescription
 access AVM-only Determine accessibility of a file relative to directory file descriptor.
 chdir AVM-only Change working directory.
 close AVM-only Close a file descriptor.
 dup AVM-only Duplicate an open file descriptor.
 dup2 AVM-only Duplicate an open file descriptor.
 execl AVM-only Execute a file.
 execle AVM-only Execute a file.
 execlp AVM-only Execute a file.
 execv AVM-only Execute a file.
 execve AVM-only Execute a file.
 execvp AVM-only Execute a file.
 fsync AVM-only Synchronize changes to a file.
 ftruncate AVM-only Truncate a file to a specified length.
 getcwd AVM-only Get the pathname of the current working directory.
 gethostname AVM-only Get the name of the current host.
 getlogin AVM-only Get the login name of the current user.
 getpid AVM-only Get the process ID.
 rmdir AVM-only Remove directory.
 sleep AVM-only Suspend execution for an interval of time.
 unlink AVM-only Removes a file entry.
Constants
 ConstantDescription
 F_OK AVM-only Test for existence of file.
 R_OK AVM-only Test for read permission.
 STDERR_FILENO AVM-only File number of stderr; 2.
 STDIN_FILENO AVM-only File number of stdin; 0.
 STDOUT_FILENO AVM-only File number of stdout; 1.
 W_OK AVM-only Test for write permission.
 X_OK AVM-only Test for execute (search) permission.