1 #
   2 # This file and its contents are supplied under the terms of the
   3 # Common Development and Distribution License ("CDDL"), version 1.0.
   4 # You may only use this file in accordance with the terms of version
   5 # 1.0 of the CDDL.
   6 #
   7 # A full copy of the text of the CDDL should have accompanied this
   8 # source.  A copy of the CDDL is also available via the Internet at
   9 # http://www.illumos.org/license/CDDL.
  10 #
  11 
  12 #
  13 # Copyright 2015 Garrett D'Amore <garrett@damore.org>
  14 #
  15 
  16 #
  17 # Definitions found in fcntl.h
  18 #
  19 
  20 #
  21 # Types.
  22 #
  23 type |  mode_t          | fcntl.h | ALL
  24 type |  off_t           | fcntl.h | ALL
  25 type |  pid_t           | fcntl.h | ALL
  26 type |  struct flock    | fcntl.h | ALL
  27 
  28 #
  29 # Values.
  30 #
  31 value | O_ACCMODE       | int   | fcntl.h | POSIX+ SUS+
  32 value | O_APPEND        | int   | fcntl.h | POSIX+ SUS+
  33 value | O_CLOEXEC       | int   | fcntl.h | POSIX+ SUS+
  34 value | O_CREAT         | int   | fcntl.h | POSIX+ SUS+
  35 value | O_DSYNC         | int   | fcntl.h | XPG3+ POSIX-1993+
  36 value | O_EXCL          | int   | fcntl.h | POSIX+ SUS+
  37 value | O_NDELAY        | int   | fcntl.h | -POSIX-1993+
  38 value | O_NOCTTY        | int   | fcntl.h | POSIX+ SUS+
  39 value | O_NONBLOCK      | int   | fcntl.h | POSIX+ SUS+
  40 value | O_RDONLY        | int   | fcntl.h | POSIX+ SUS+
  41 value | O_RDWR          | int   | fcntl.h | POSIX+ SUS+
  42 value | O_RSYNC         | int   | fcntl.h | XPG3+ POSIX-1993+
  43 value | O_SYNC          | int   | fcntl.h | XPG3+ POSIX-1993+
  44 value | O_WRONLY        | int   | fcntl.h | POSIX+ SUS+
  45 
  46 #
  47 # Functions
  48 #
  49 func |  creat                                                           |\
  50         int                                                             |\
  51         const char *; mode_t                                            |\
  52         fcntl.h | ALL
  53 
  54 func |  open                                                            |\
  55         int                                                             |\
  56         const char *; mode_t                                            |\
  57         fcntl.h | ALL
  58 
  59 func |  fcntl                                                           |\
  60         int                                                             |\
  61         int; int                                                        |\
  62         fcntl.h | ALL