The Design and Implementation of the FreeBSD Operating System, Second Edition
Now available: The Design and Implementation of the FreeBSD Operating System (Second Edition)


[ source navigation ] [ diff markup ] [ identifier search ] [ freetext search ] [ file search ] [ list types ] [ track identifier ]

FreeBSD/Linux Kernel Cross Reference
sys/sys/unistd.h

Version: -  FREEBSD  -  FREEBSD-13-STABLE  -  FREEBSD-13-0  -  FREEBSD-12-STABLE  -  FREEBSD-12-0  -  FREEBSD-11-STABLE  -  FREEBSD-11-0  -  FREEBSD-10-STABLE  -  FREEBSD-10-0  -  FREEBSD-9-STABLE  -  FREEBSD-9-0  -  FREEBSD-8-STABLE  -  FREEBSD-8-0  -  FREEBSD-7-STABLE  -  FREEBSD-7-0  -  FREEBSD-6-STABLE  -  FREEBSD-6-0  -  FREEBSD-5-STABLE  -  FREEBSD-5-0  -  FREEBSD-4-STABLE  -  FREEBSD-3-STABLE  -  FREEBSD22  -  l41  -  OPENBSD  -  linux-2.6  -  MK84  -  PLAN9  -  xnu-8792 
SearchContext: -  none  -  3  -  10 

    1 /*
    2  * Copyright (c) 1989, 1993
    3  *      The Regents of the University of California.  All rights reserved.
    4  *
    5  * Redistribution and use in source and binary forms, with or without
    6  * modification, are permitted provided that the following conditions
    7  * are met:
    8  * 1. Redistributions of source code must retain the above copyright
    9  *    notice, this list of conditions and the following disclaimer.
   10  * 2. Redistributions in binary form must reproduce the above copyright
   11  *    notice, this list of conditions and the following disclaimer in the
   12  *    documentation and/or other materials provided with the distribution.
   13  * 3. All advertising materials mentioning features or use of this software
   14  *    must display the following acknowledgement:
   15  *      This product includes software developed by the University of
   16  *      California, Berkeley and its contributors.
   17  * 4. Neither the name of the University nor the names of its contributors
   18  *    may be used to endorse or promote products derived from this software
   19  *    without specific prior written permission.
   20  *
   21  * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
   22  * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
   23  * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
   24  * ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
   25  * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
   26  * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
   27  * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
   28  * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
   29  * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
   30  * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
   31  * SUCH DAMAGE.
   32  *
   33  *      @(#)unistd.h    8.2 (Berkeley) 1/7/94
   34  * $FreeBSD: src/sys/sys/unistd.h,v 1.8.2.3 1999/09/05 08:23:16 peter Exp $
   35  */
   36 
   37 #ifndef _SYS_UNISTD_H_
   38 #define _SYS_UNISTD_H_
   39 
   40 /* compile-time symbolic constants */
   41 #define _POSIX_JOB_CONTROL      /* implementation supports job control */
   42 
   43 /*
   44  * Although we have saved user/group IDs, we do not use them in setuid
   45  * as described in POSIX 1003.1, because the feature does not work for
   46  * root.  We use the saved IDs in seteuid/setegid, which are not currently
   47  * part of the POSIX 1003.1 specification.
   48  */
   49 #ifdef  _NOT_AVAILABLE
   50 #define _POSIX_SAVED_IDS        /* saved set-user-ID and set-group-ID */
   51 #endif
   52 
   53 #define _POSIX_VERSION          199009L
   54 #define _POSIX2_VERSION         199212L
   55 
   56 /* execution-time symbolic constants */
   57                                 /* chown requires appropriate privileges */
   58 #define _POSIX_CHOWN_RESTRICTED 1
   59                                 /* too-long path components generate errors */
   60 #define _POSIX_NO_TRUNC         1
   61                                 /* may disable terminal special characters */
   62 #define _POSIX_VDISABLE         0xff
   63 
   64 /* access function */
   65 #define F_OK            0       /* test for existence of file */
   66 #define X_OK            0x01    /* test for execute or search permission */
   67 #define W_OK            0x02    /* test for write permission */
   68 #define R_OK            0x04    /* test for read permission */
   69 
   70 /* whence values for lseek(2) */
   71 #define SEEK_SET        0       /* set file offset to offset */
   72 #define SEEK_CUR        1       /* set file offset to current plus offset */
   73 #define SEEK_END        2       /* set file offset to EOF plus offset */
   74 
   75 #ifndef _POSIX_SOURCE
   76 /* whence values for lseek(2); renamed by POSIX 1003.1 */
   77 #define L_SET           SEEK_SET
   78 #define L_INCR          SEEK_CUR
   79 #define L_XTND          SEEK_END
   80 #endif
   81 
   82 /* configurable pathname variables */
   83 #define _PC_LINK_MAX             1
   84 #define _PC_MAX_CANON            2
   85 #define _PC_MAX_INPUT            3
   86 #define _PC_NAME_MAX             4
   87 #define _PC_PATH_MAX             5
   88 #define _PC_PIPE_BUF             6
   89 #define _PC_CHOWN_RESTRICTED     7
   90 #define _PC_NO_TRUNC             8
   91 #define _PC_VDISABLE             9
   92 
   93 /* configurable system variables */
   94 #define _SC_ARG_MAX              1
   95 #define _SC_CHILD_MAX            2
   96 #define _SC_CLK_TCK              3
   97 #define _SC_NGROUPS_MAX          4
   98 #define _SC_OPEN_MAX             5
   99 #define _SC_JOB_CONTROL          6
  100 #define _SC_SAVED_IDS            7
  101 #define _SC_VERSION              8
  102 #define _SC_BC_BASE_MAX          9
  103 #define _SC_BC_DIM_MAX          10
  104 #define _SC_BC_SCALE_MAX        11
  105 #define _SC_BC_STRING_MAX       12
  106 #define _SC_COLL_WEIGHTS_MAX    13
  107 #define _SC_EXPR_NEST_MAX       14
  108 #define _SC_LINE_MAX            15
  109 #define _SC_RE_DUP_MAX          16
  110 #define _SC_2_VERSION           17
  111 #define _SC_2_C_BIND            18
  112 #define _SC_2_C_DEV             19
  113 #define _SC_2_CHAR_TERM         20
  114 #define _SC_2_FORT_DEV          21
  115 #define _SC_2_FORT_RUN          22
  116 #define _SC_2_LOCALEDEF         23
  117 #define _SC_2_SW_DEV            24
  118 #define _SC_2_UPE               25
  119 #define _SC_STREAM_MAX          26
  120 #define _SC_TZNAME_MAX          27
  121 
  122 /* configurable system strings */
  123 #define _CS_PATH                 1
  124 
  125 #ifndef _POSIX_SOURCE
  126 /*
  127  * rfork() options.
  128  *
  129  * XXX currently, operations without RFPROC set are not supported.
  130  */
  131 #define RFNAMEG         (1<<0)  /* UNIMPL new plan9 `name space' */
  132 #define RFENVG          (1<<1)  /* UNIMPL copy plan9 `env space' */
  133 #define RFFDG           (1<<2)  /* copy fd table */
  134 #define RFNOTEG         (1<<3)  /* UNIMPL create new plan9 `note group' */
  135 #define RFPROC          (1<<4)  /* change child (else changes curproc) */
  136 #define RFMEM           (1<<5)  /* share `address space' */
  137 #define RFNOWAIT        (1<<6)  /* parent need not wait() on child */ 
  138 #define RFCNAMEG        (1<<10) /* UNIMPL zero plan9 `name space' */
  139 #define RFCENVG         (1<<11) /* UNIMPL zero plan9 `env space' */
  140 #define RFCFDG          (1<<12) /* zero fd table */
  141 #define RFPPWAIT        (1<<31) /* parent sleeps until child exits (vfork) */
  142 #endif /* !_POSIX_SOURCE */
  143 
  144 #endif /* !_SYS_UNISTD_H_ */

Cache object: 885d2fe02714dd24268164e0b750f02a


[ source navigation ] [ diff markup ] [ identifier search ] [ freetext search ] [ file search ] [ list types ] [ track identifier ]


This page is part of the FreeBSD/Linux Linux Kernel Cross-Reference, and was automatically generated using a modified version of the LXR engine.