source: buchla-68k/include/fcntl.h@ d21fc6f

Last change on this file since d21fc6f was f7428b1, checked in by Thomas Lopatic <thomas@…>, 7 years ago

Started to rework include files.

  • Property mode set to 100644
File size: 1.5 KB
Line 
1/*
2 =============================================================================
3 fcntl.h -- file control function header
4 Version 3 -- 1987-06-26 -- D.N. Lynx Crowe
5 =============================================================================
6*/
7
8#pragma once
9
10/*
11 =============================================================================
12 The following symbols are used with open(), creat() and fcntl().
13 The first 3 can only be set by open().
14 =============================================================================
15*/
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/*
31 =============================================================================
32 The following symbols define requests used with the fcntl() function.
33 =============================================================================
34*/
35
36#define F_DUPFD 0 /* Duplicate file descriptor */
37
38#define F_GETFD 1 /* Get file descriptor flags */
39#define F_SETFD 2 /* Set file descriptor flags */
40
41#define F_GETFL 3 /* Get file flags */
42#define F_SETFL 4 /* Set file flags */
Note: See TracBrowser for help on using the repository browser.