source: buchla-68k/orig/lib/INCLUDE/FCNTL.H@ 6d3de83

Last change on this file since 6d3de83 was 3ae31e9, checked in by Thomas Lopatic <thomas@…>, 8 years ago

Imported original source code.

  • Property mode set to 100755
File size: 1.6 KB
RevLine 
[3ae31e9]1/*
2 =============================================================================
3 fcntl.h -- file control function header
4 Version 3 -- 1987-06-26 -- D.N. Lynx Crowe
5 =============================================================================
6*/
7
8/*
9 =============================================================================
10 The following symbols are used with open(), creat() and fcntl().
11 The first 3 can only be set by open().
12 =============================================================================
13*/
14
15#ifndef O_RDONLY /* only define these once */
16
17#define O_RDONLY 0x0000 /* Read-only value */
18#define O_WRONLY 0x0001 /* Write-only value */
19#define O_RDWR 0x0002 /* Read-write value */
20
21#define O_NDELAY 0x0004 /* Non-blocking I/O flag */
22#define O_APPEND 0x0008 /* Append mode flag (write only at end) */
23
24#define O_CREAT 0x0100 /* File creation flag (uses 3rd argument) */
25#define O_TRUNC 0x0200 /* File truncation flag */
26#define O_EXCL 0x0400 /* Exclusive access flag */
27
28#define O_RAW 0x8000 /* Raw (binary) I/O flag for getc and putc */
29
30#endif
31
32/*
33 =============================================================================
34 The following symbols define requests used with the fcntl() function.
35 =============================================================================
36*/
37
38#define F_DUPFD 0 /* Duplicate file descriptor */
39
40#define F_GETFD 1 /* Get file descriptor flags */
41#define F_SETFD 2 /* Set file descriptor flags */
42
43#define F_GETFL 3 /* Get file flags */
44#define F_SETFL 4 /* Set file flags */
Note: See TracBrowser for help on using the repository browser.