fcntl(5) DG/UX R4.11MU05 fcntl(5)
NAME
fcntl - file control options
SYNOPSIS
#include <fcntl.h>
DESCRIPTION
The fcntl(1) function helps you control open files. This include
file describes commands and arguments to fcntl and open(2).
Flag values accessible to open(2) and fcntl(2)
(The first three can only be set by open)
ORDONLY Read only
OWRONLY Write only
ORDWR Read/write
ONDELAY Non-blocking I/O
OAPPEND Append (writes guaranteed at the end)
ONOCTTY Do not assign controlling tty
OSYNC Synchronous writes
OACCMODE Mask for file access modes
Flag values accessible only to open(2)
OCREAT Open with file create (uses 3rd open arg)
OTRUNC Open with truncation
OEXCL Exclusive open
fcntl(2) commands
FDUPFD Duplicate file descriptors
FDCLOEXEC Close the file descriptor upon execution of
an exec function [see exec(2)]
FGETFD Get the `close-on-exec' flag
FSETFD Set the `close-on-exec' flag
FGETFL Get file flags
FSETFL Set file flags
FGETLK Get record lock status
FSETLK Set record lock or fail
FSETLKW Set record lock or pend
FRDLCK Shared or read lock
FUNLCK Unlock
FWRLCK Exclusive or write lock
FCHKFL Check flags for validity
FFREESP Free up file space
FGETOWN Get owner of file descriptor
FSETOWN Set owner of file descriptor
SEE ALSO
fcntl(2), open(2), creat(2).
Licensed material--property of copyright holder(s)