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 sys/stat.h
  18 #
  19 
  20 #
  21 # Types.
  22 #
  23 type |  mode_t          | sys/stat.h | ALL
  24 type |  struct stat     | sys/stat.h | ALL
  25 
  26 #
  27 # Values.
  28 #
  29 value | S_IFMT          | mode_t | sys/stat.h | ALL
  30 value | S_IFBLK         | mode_t | sys/stat.h | ALL
  31 
  32 #
  33 # Functions
  34 #
  35 func |  chmod                                                   |\
  36         int                                                     |\
  37         const char *; mode_t                                    |\
  38         sys/stat.h | POSIX+ XPG3+
  39 
  40 func |  fchmod                                                  |\
  41         int                                                     |\
  42         int; mode_t                                             |\
  43         sys/stat.h | -POSIX+ -XPG3+ POSIX-1993+ SUS+    
  44 
  45 func |  fstat                                                   |\
  46         int                                                     |\
  47         int; struct stat *                                      |\
  48         sys/stat.h | XPG3+ POSIX+
  49 
  50 func |  mkdir                                                   |\
  51         int                                                     |\
  52         const char *; mode_t                                    |\
  53         sys/stat.h | XPG3+ POSIX+
  54 
  55 func |  mknod                                                   |\
  56         int                                                     |\
  57         const char *; mode_t; dev_t                             |\
  58         sys/stat.h | -XPG3+ -POSIX+ SUS+