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

Last change on this file since 57425b6 was 8973acd, checked in by Thomas Lopatic <thomas@…>, 7 years ago

No more warnings in libcio.

  • 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 0x0000u /* Read-only value */
18#define O_WRONLY 0x0001u /* Write-only value */
19#define O_RDWR 0x0002u /* Read-write value */
20
21#define O_NDELAY 0x0004u /* Non-blocking I/O flag */
22#define O_APPEND 0x0008u /* Append mode flag (write only at end) */
23
24#define O_CREAT 0x0100u /* File creation flag (uses 3rd argument) */
25#define O_TRUNC 0x0200u /* File truncation flag */
26#define O_EXCL 0x0400u /* Exclusive access flag */
27
28#define O_RAW 0x8000u /* 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.