home *** CD-ROM | disk | FTP | other *** search
/ Liren Large Software Subsidy 15 / 15.iso / s / s053 / 25.ddi / root.2 / usr / ucbinclude / unistd.h < prev    next >
Encoding:
C/C++ Source or Header  |  1990-12-08  |  2.8 KB  |  98 lines

  1. /*    Copyright (c) 1990 UNIX System Laboratories, Inc.    */
  2. /*    Copyright (c) 1984, 1986, 1987, 1988, 1989, 1990 AT&T    */
  3. /*      All Rights Reserved      */
  4.  
  5. /*    THIS IS UNPUBLISHED PROPRIETARY SOURCE CODE OF         */
  6. /*    UNIX System Laboratories, Inc.                         */
  7. /*    The copyright notice above does not evidence any       */
  8. /*    actual or intended publication of such source code.    */
  9.  
  10.  
  11. #ident    "@(#)//usr/ucbinclude/unistd.h.sl 1.1 4.0 12/08/90 19578 AT&T-USL"
  12.  
  13. /*******************************************************************
  14.  
  15.         PROPRIETARY NOTICE (Combined)
  16.  
  17. This source code is unpublished proprietary information
  18. constituting, or derived under license from AT&T's UNIX(r) System V.
  19. In addition, portions of such source code were derived from Berkeley
  20. 4.3 BSD under license from the Regents of the University of
  21. California.
  22.  
  23.  
  24.  
  25.         Copyright Notice 
  26.  
  27. Notice of copyright on this source code product does not indicate 
  28. publication.
  29.  
  30.     (c) 1986,1987,1988,1989  Sun Microsystems, Inc
  31.     (c) 1983,1984,1985,1986,1987,1988,1989  AT&T.
  32.               All rights reserved.
  33. ********************************************************************/ 
  34.   
  35. #include <sys/fcntl.h>
  36.  
  37. /* Symbolic constants for the "access" routine: */
  38. #define    R_OK    4    /* Test for Read permission */
  39. #define    W_OK    2    /* Test for Write permission */
  40. #define    X_OK    1    /* Test for eXecute permission */
  41. #define    F_OK    0    /* Test for existence of File */
  42.  
  43. #define F_ULOCK    0    /* Unlock a previously locked region */
  44. #define F_LOCK    1    /* Lock a region for exclusive use */
  45. #define F_TLOCK    2    /* Test and lock a region for exclusive use */
  46. #define F_TEST    3    /* Test a region for other processes locks */
  47.  
  48.  
  49. /* Symbolic constants for the "lseek" routine: */
  50. #define    SEEK_SET    0    /* Set file pointer to "offset" */
  51. #define    SEEK_CUR    1    /* Set file pointer to current plus "offset" */
  52. #define    SEEK_END    2    /* Set file pointer to EOF plus "offset" */
  53.  
  54. /* Path names: */
  55. #define    GF_PATH    "/etc/group"    /* Path name of the "group" file */
  56. #define    PF_PATH    "/etc/passwd"    /* Path name of the "passwd" file */
  57.  
  58.  
  59. /* command names for POSIX sysconf */
  60. #define _SC_ARG_MAX    1
  61. #define _SC_CHILD_MAX    2
  62. #define _SC_CLK_TCK    3
  63. #define _SC_NGROUPS_MAX 4
  64. #define _SC_OPEN_MAX    5
  65. #define _SC_JOB_CONTROL 6
  66. #define _SC_SAVED_IDS    7
  67. #define _SC_VERSION    8
  68.  
  69. /* command names for POSIX pathconf */
  70.  
  71. #define _PC_LINK_MAX    1
  72. #define _PC_MAX_CANON    2
  73. #define _PC_MAX_INPUT    3
  74. #define _PC_NAME_MAX    4
  75. #define _PC_PATH_MAX    5
  76. #define _PC_PIPE_BUF    6
  77. #define _PC_NO_TRUNC    7
  78. #define _PC_VDISABLE    8
  79. #define _PC_CHOWN_RESTRICTED    9
  80.  
  81. /* compile-time symbolic constants,
  82. ** Support does not mean the feature is enabled.
  83. ** Use pathconf/sysconf to obtain actual configuration value.
  84. ** 
  85. */
  86.  
  87. #define _POSIX_JOB_CONTROL    1
  88. #define _POSIX_SAVED_IDS    1
  89.  
  90. #ifndef _POSIX_VDISABLE
  91. #define _POSIX_VDISABLE        0
  92. #endif
  93.  
  94. /* Current version of POSIX */
  95. #define _POSIX_VERSION        198808L
  96.  
  97.  
  98.