Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ fcntl(7) — HP-UX 5.00

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

fcntl(2)

open(2)

FCNTL(7)

NAME

fcntl − file control options

SYNOPSIS

#include <fcntl.h>

HP-UX COMPATIBILITY

Level:
Basic calls: HP-UX/RUN ONLY

Real time extensions: HP-UX/STANDARD − Real Time

Origin: System III, System V, UCB, and HP

DESCRIPTION

The fcntl(2) function provides for control over open files. This include file describes requests 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) ∗/
 #defineO_RDONLY0
#defineO_WRONLY1
#defineO_RDWR2
#defineO_NDELAY04/∗ Non-blocking I/O ∗/
#defineO_APPEND010/∗ append (writes guaranteed at the end) ∗/
#define O_SYNCIO0100000/∗ Do write through caching ∗/
 /∗ Flag values accessible only to open(2) ∗/
#defineO_CREAT00400/∗ Open with file create (uses third open arg)∗/
#defineO_TRUNC01000/∗ Open with truncation ∗/
#defineO_EXCL02000/∗ Exclusive open ∗/
 /∗ 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 ∗/
 

SEE ALSO

fcntl(2), open(2). 

Hewlett-Packard  —  last mod. May 11, 2021

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