Back to index

lightning-sunbird  0.9+nobinonly
unistd.h
Go to the documentation of this file.
00001 /*
00002  * Copyright (c) 1989, 1993
00003  *     The Regents of the University of California.  All rights reserved.
00004  *
00005  * Redistribution and use in source and binary forms, with or without
00006  * modification, are permitted provided that the following conditions
00007  * are met:
00008  * 1. Redistributions of source code must retain the above copyright
00009  *    notice, this list of conditions and the following disclaimer.
00010  * 2. Redistributions in binary form must reproduce the above copyright
00011  *    notice, this list of conditions and the following disclaimer in the
00012  *    documentation and/or other materials provided with the distribution.
00013  * [3 Deleted as of 22Jul99, see
00014  *     ftp://ftp.cs.berkeley.edu/pub/4bsd/README.Impt.License.Change
00015  *        for details]
00016  * 4. Neither the name of the University nor the names of its contributors
00017  *    may be used to endorse or promote products derived from this software
00018  *    without specific prior written permission.
00019  *
00020  * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
00021  * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
00022  * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
00023  * ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
00024  * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
00025  * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
00026  * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
00027  * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
00028  * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
00029  * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
00030  * SUCH DAMAGE.
00031  *
00032  *     @(#)unistd.h  8.2 (Berkeley) 1/7/94
00033  */
00034 
00035 /* Adapted for GUSI by Matthias Neeracher <neeri@iis.ee.ethz.ch> */
00036 
00037 #ifndef _SYS_UNISTD_H_
00038 #define       _SYS_UNISTD_H_
00039 
00040 /* compile-time symbolic constants */
00041 #undef _POSIX_JOB_CONTROL   /* implementation supports job control */
00042 
00043 #define       _POSIX_VERSION              198808L
00044 #define       _POSIX2_VERSION             199212L
00045 #define _XOPEN_VERSION             500
00046 
00047 /* execution-time symbolic constants */
00048                             /* chown requires appropriate privileges */
00049 #define       _POSIX_CHOWN_RESTRICTED     1
00050                             /* too-long path components generate errors */
00051 #define       _POSIX_NO_TRUNC             1
00052                             /* may disable terminal special characters */
00053 #define       _POSIX_VDISABLE             ((unsigned char)'\377')
00054 
00055 /* access function */
00056 #define       F_OK          0      /* test for existence of file */
00057 #define       X_OK          0x01   /* test for execute or search permission */
00058 #define       W_OK          0x02   /* test for write permission */
00059 #define       R_OK          0x04   /* test for read permission */
00060 
00061 /* whence values for lseek(2) */
00062 #define       SEEK_SET      0      /* set file offset to offset */
00063 #define       SEEK_CUR      1      /* set file offset to current plus offset */
00064 #define       SEEK_END      2      /* set file offset to EOF plus offset */
00065 
00066 #ifndef _POSIX_SOURCE
00067 /* whence values for lseek(2); renamed by POSIX 1003.1 */
00068 #define       L_SET         SEEK_SET
00069 #define       L_INCR        SEEK_CUR
00070 #define       L_XTND        SEEK_END
00071 #endif
00072 
00073 /* configurable pathname variables */
00074 #define       _PC_LINK_MAX          1
00075 #define       _PC_MAX_CANON         2
00076 #define       _PC_MAX_INPUT         3
00077 #define       _PC_NAME_MAX          4
00078 #define       _PC_PATH_MAX          5
00079 #define       _PC_PIPE_BUF          6
00080 #define       _PC_CHOWN_RESTRICTED  7
00081 #define       _PC_NO_TRUNC          8
00082 #define       _PC_VDISABLE          9
00083 
00084 /* configurable system variables */
00085 #define       _SC_ARG_MAX           1
00086 #define       _SC_CHILD_MAX         2
00087 #define       _SC_CLK_TCK           3
00088 #define       _SC_NGROUPS_MAX              4
00089 #define       _SC_OPEN_MAX          5
00090 #define       _SC_JOB_CONTROL              6
00091 #define       _SC_SAVED_IDS         7
00092 #define       _SC_VERSION           8
00093 #define       _SC_BC_BASE_MAX              9
00094 #define       _SC_BC_DIM_MAX              10
00095 #define       _SC_BC_SCALE_MAX     11
00096 #define       _SC_BC_STRING_MAX    12
00097 #define       _SC_COLL_WEIGHTS_MAX 13
00098 #define       _SC_EXPR_NEST_MAX    14
00099 #define       _SC_LINE_MAX         15
00100 #define       _SC_RE_DUP_MAX              16
00101 #define       _SC_2_VERSION        17
00102 #define       _SC_2_C_BIND         18
00103 #define       _SC_2_C_DEV          19
00104 #define       _SC_2_CHAR_TERM             20
00105 #define       _SC_2_FORT_DEV              21
00106 #define       _SC_2_FORT_RUN              22
00107 #define       _SC_2_LOCALEDEF             23
00108 #define       _SC_2_SW_DEV         24
00109 #define       _SC_2_UPE            25
00110 #define       _SC_STREAM_MAX              26
00111 #define       _SC_TZNAME_MAX              27
00112 
00113 /* configurable system strings */
00114 #define       _CS_PATH              1
00115 
00116 #endif /* !_SYS_UNISTD_H_ */