Museum

Home

Lab Overview

Retrotechnology Articles

⇒ Online Manual

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

fcntl(2)

open(2V)

FCNTL(5)  —  FILE FORMATS

NAME

fcntl − file control options

SYNOPSIS

#include <fcntl.h>

DESCRIPTION

The fcntl(2) function provides for control over open files.  This include file describes requests and arguments to fcntl and open(2V) as shown below:

/∗@(#)fcntl.h 1.2 83/12/08 SMI; from UCB 4.2 83/09/25∗/
 /∗
 ∗ Flag values accessible to open(2V) and fcntl(2)
 ∗  (The first three can only be set by open)
 ∗/
#defineO_RDONLY0
#defineO_WRONLY1
#defineO_RDWR2
#defineO_NDELAYFNDELAY/∗ Non-blocking I/O ∗/
#defineO_APPENDFAPPEND/∗ append (writes guaranteed at the end) ∗/
 #ifndefF_DUPFD
/∗ fcntl(2) requests ∗/
#defineF_DUPFD0/∗ Duplicate fildes ∗/
#defineF_GETFD1/∗ Get fildes flags ∗/
#defineF_SETFD2/∗ Set fildes flags ∗/
#defineF_GETFL3/∗ Get file flags ∗/
#defineF_SETFL4/∗ Set file flags ∗/
#defineF_GETOWN 5/∗ Get owner ∗/
#define F_SETOWN 6/∗ Set owner ∗/
 /∗ flags for F_GETFL, F_SETFL-- copied from <sys/file.h> ∗/
#defineFNDELAY00004/∗ non-blocking reads ∗/
#defineFAPPEND00010/∗ append on each write ∗/
#defineFASYNC00100/∗ signal pgrp when data ready ∗/
#endif

SEE ALSO

fcntl(2), open(2V)

Sun Release 3.5  —  Last change: 1 September 1983

Typewritten Software • bear@typewritten.org • Edmonds, WA 98026