1: /*
   2:  * Copyright (c) 1983 Regents of the University of California.
   3:  * All rights reserved.  The Berkeley software License Agreement
   4:  * specifies the terms and conditions for redistribution.
   5:  *
   6:  *	@(#)fcntl.h	5.2 (Berkeley) 1/8/86
   7:  */
   8: 
   9: /*
  10:  * Flag values accessible to open(2) and fcntl(2)-- copied from
  11:  * <sys/file.h>.  (The first three can only be set by open.)
  12:  */
  13: #define O_RDONLY    000     /* open for reading */
  14: #define O_WRONLY    001     /* open for writing */
  15: #define O_RDWR      002     /* open for read & write */
  16: #define O_NDELAY    FNDELAY     /* non-blocking open */
  17:                     /* really non-blocking I/O for fcntl */
  18: #define O_APPEND    FAPPEND     /* append on each write */
  19: #define O_CREAT     FCREAT      /* open with file create */
  20: #define O_TRUNC     FTRUNC      /* open with truncation */
  21: #define O_EXCL      FEXCL       /* error on create if file exists */
  22: 
  23: #ifndef F_DUPFD
  24: /* fcntl(2) requests */
  25: #define F_DUPFD 0   /* Duplicate fildes */
  26: #define F_GETFD 1   /* Get fildes flags */
  27: #define F_SETFD 2   /* Set fildes flags */
  28: #define F_GETFL 3   /* Get file flags */
  29: #define F_SETFL 4   /* Set file flags */
  30: #define F_GETOWN 5  /* Get owner */
  31: #define F_SETOWN 6  /* Set owner */
  32: 
  33: /* flags for F_GETFL, F_SETFL-- copied from <sys/file.h> */
  34: #define FNDELAY     00004       /* non-blocking reads */
  35: #define FAPPEND     00010       /* append on each write */
  36: #define FASYNC      00100       /* signal pgrp when data ready */
  37: #define FCREAT      01000       /* create if nonexistant */
  38: #define FTRUNC      02000       /* truncate to zero length */
  39: #define FEXCL       04000       /* error if already created */
  40: #endif

Defined macros

FAPPEND defined in line 35; used 1 times
  • in line 18
FASYNC defined in line 36; never used
FCREAT defined in line 37; used 1 times
  • in line 19
FEXCL defined in line 39; used 1 times
  • in line 21
FNDELAY defined in line 34; used 1 times
  • in line 16
FTRUNC defined in line 38; used 1 times
  • in line 20
F_DUPFD defined in line 25; used 1 times
  • in line 23
F_GETFD defined in line 26; never used
F_GETFL defined in line 28; never used
F_GETOWN defined in line 30; never used
F_SETFD defined in line 27; never used
F_SETFL defined in line 29; never used
F_SETOWN defined in line 31; never used
O_APPEND defined in line 18; never used
O_CREAT defined in line 19; never used
O_EXCL defined in line 21; never used
O_NDELAY defined in line 16; never used
O_RDONLY defined in line 13; never used
O_RDWR defined in line 15; never used
O_TRUNC defined in line 20; never used
O_WRONLY defined in line 14; never used
Last modified: 1986-01-11
Generated: 2016-12-26
Generated by src2html V0.67
page hit count: 896
Valid CSS Valid XHTML 1.0 Strict