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 2 times
FCREAT defined in line 37; used 1 times
  • in line 19
FEXCL defined in line 39; used 1 times
  • in line 21
FTRUNC defined in line 38; used 1 times
  • in line 20
F_GETFD defined in line 26; never used
F_GETOWN defined in line 30; used 3 times
F_SETOWN defined in line 31; used 5 times
O_TRUNC defined in line 20; used 1 times

Usage of this include

fcntl.h used 44 times
Last modified: 1986-01-11
Generated: 2016-12-26
Generated by src2html V0.67
page hit count: 1506
Valid CSS Valid XHTML 1.0 Strict