Annotation of kernel/bsd/include/unistd.h, revision 1.1.1.1

1.1       root        1: /*
                      2:  * Copyright (c) 1999 Apple Computer, Inc. All rights reserved.
                      3:  *
                      4:  * @APPLE_LICENSE_HEADER_START@
                      5:  * 
                      6:  * Portions Copyright (c) 1999 Apple Computer, Inc.  All Rights
                      7:  * Reserved.  This file contains Original Code and/or Modifications of
                      8:  * Original Code as defined in and that are subject to the Apple Public
                      9:  * Source License Version 1.1 (the "License").  You may not use this file
                     10:  * except in compliance with the License.  Please obtain a copy of the
                     11:  * License at http://www.apple.com/publicsource and read it before using
                     12:  * this file.
                     13:  * 
                     14:  * The Original Code and all software distributed under the License are
                     15:  * distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY KIND, EITHER
                     16:  * EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
                     17:  * INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
                     18:  * FITNESS FOR A PARTICULAR PURPOSE OR NON-INFRINGEMENT.  Please see the
                     19:  * License for the specific language governing rights and limitations
                     20:  * under the License.
                     21:  * 
                     22:  * @APPLE_LICENSE_HEADER_END@
                     23:  */
                     24: 
                     25: /*-
                     26:  * Copyright (c) 1991, 1993, 1994
                     27:  *     The Regents of the University of California.  All rights reserved.
                     28:  *
                     29:  * Redistribution and use in source and binary forms, with or without
                     30:  * modification, are permitted provided that the following conditions
                     31:  * are met:
                     32:  * 1. Redistributions of source code must retain the above copyright
                     33:  *    notice, this list of conditions and the following disclaimer.
                     34:  * 2. Redistributions in binary form must reproduce the above copyright
                     35:  *    notice, this list of conditions and the following disclaimer in the
                     36:  *    documentation and/or other materials provided with the distribution.
                     37:  * 3. All advertising materials mentioning features or use of this software
                     38:  *    must display the following acknowledgement:
                     39:  *     This product includes software developed by the University of
                     40:  *     California, Berkeley and its contributors.
                     41:  * 4. Neither the name of the University nor the names of its contributors
                     42:  *    may be used to endorse or promote products derived from this software
                     43:  *    without specific prior written permission.
                     44:  *
                     45:  * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
                     46:  * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
                     47:  * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
                     48:  * ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
                     49:  * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
                     50:  * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
                     51:  * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
                     52:  * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
                     53:  * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
                     54:  * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
                     55:  * SUCH DAMAGE.
                     56:  *
                     57:  *     @(#)unistd.h    8.12 (Berkeley) 4/27/95
                     58:  */
                     59: 
                     60: #ifndef _UNISTD_H_
                     61: #define        _UNISTD_H_
                     62: 
                     63: #include <sys/cdefs.h>
                     64: #include <sys/types.h>
                     65: #include <sys/unistd.h>
                     66: 
                     67: #define         STDIN_FILENO   0       /* standard input file descriptor */
                     68: #define        STDOUT_FILENO   1       /* standard output file descriptor */
                     69: #define        STDERR_FILENO   2       /* standard error file descriptor */
                     70: 
                     71: #ifndef NULL
                     72: #define        NULL            0       /* null pointer constant */
                     73: #endif
                     74: 
                     75: __BEGIN_DECLS
                     76: __dead void
                     77:         _exit __P((int));
                     78: int     access __P((const char *, int));
                     79: unsigned int    alarm __P((unsigned int));
                     80: int     chdir __P((const char *));
                     81: int     chown __P((const char *, uid_t, gid_t));
                     82: int     close __P((int));
                     83: size_t  confstr __P((int, char *, size_t));
                     84: int     dup __P((int));
                     85: int     dup2 __P((int, int));
                     86: int     execl __P((const char *, const char *, ...));
                     87: int     execle __P((const char *, const char *, ...));
                     88: int     execlp __P((const char *, const char *, ...));
                     89: int     execv __P((const char *, char * const *));
                     90: int     execve __P((const char *, char * const *, char * const *));
                     91: int     execvp __P((const char *, char * const *));
                     92: pid_t   fork __P((void));
                     93: long    fpathconf __P((int, int));
                     94: char   *getcwd __P((char *, size_t));
                     95: gid_t   getegid __P((void));
                     96: uid_t   geteuid __P((void));
                     97: gid_t   getgid __P((void));
                     98: int     getgroups __P((int, gid_t []));
                     99: char   *getlogin __P((void));
                    100: pid_t   getpgrp __P((void));
                    101: pid_t   getpid __P((void));
                    102: pid_t   getppid __P((void));
                    103: uid_t   getuid __P((void));
                    104: int     isatty __P((int));
                    105: int     link __P((const char *, const char *));
                    106: off_t   lseek __P((int, off_t, int));
                    107: long    pathconf __P((const char *, int));
                    108: int     pause __P((void));
                    109: int     pipe __P((int *));
                    110: ssize_t         read __P((int, void *, size_t));
                    111: int     rmdir __P((const char *));
                    112: int     setgid __P((gid_t));
                    113: int     setpgid __P((pid_t, pid_t));
                    114: pid_t   setsid __P((void));
                    115: int     setuid __P((uid_t));
                    116: unsigned int    sleep __P((unsigned int));
                    117: long    sysconf __P((int));
                    118: pid_t   tcgetpgrp __P((int));
                    119: int     tcsetpgrp __P((int, pid_t));
                    120: char   *ttyname __P((int));
                    121: int     unlink __P((const char *));
                    122: ssize_t         write __P((int, const void *, size_t));
                    123: 
                    124: extern char *optarg;                   /* getopt(3) external variables */
                    125: extern int optind, opterr, optopt, optreset;
                    126: int     getopt __P((int, char * const [], const char *));
                    127: 
                    128: #ifndef        _POSIX_SOURCE
                    129: #ifdef __STDC__
                    130: struct timeval;                                /* select(2) */
                    131: #endif
                    132: int     acct __P((const char *));
                    133: int     async_daemon __P((void));
                    134: char   *brk __P((const char *));
                    135: int     chroot __P((const char *));
                    136: char   *crypt __P((const char *, const char *));
                    137: int     des_cipher __P((const char *, char *, long, int));
                    138: int     des_setkey __P((const char *key));
                    139: int     encrypt __P((char *, int));
                    140: void    endusershell __P((void));
                    141: int     exect __P((const char *, char * const *, char * const *));
                    142: int     fchdir __P((int));
                    143: int     fchown __P((int, int, int));
                    144: int     fsync __P((int));
                    145: int     ftruncate __P((int, off_t));
                    146: int     getdtablesize __P((void));
                    147: long    gethostid __P((void));
                    148: int     gethostname __P((char *, int));
                    149: mode_t  getmode __P((const void *, mode_t));
                    150: __pure int
                    151:         getpagesize __P((void));
                    152: char   *getpass __P((const char *));
                    153: char   *getusershell __P((void));
                    154: char   *getwd __P((char *));                   /* obsoleted by getcwd() */
                    155: int     initgroups __P((const char *, int));
                    156: int     iruserok __P((unsigned long, int, const char *, const char *));
                    157: int     mknod __P((const char *, mode_t, dev_t));
                    158: int     mkstemp __P((char *));
                    159: char   *mktemp __P((char *));
                    160: int     nfssvc __P((int, void *));
                    161: int     nice __P((int));
                    162: #if 0
                    163: void    psignal __P((unsigned int, const char *));
                    164: extern __const char *__const sys_siglist[];
                    165: #else
                    166: #include <signal.h>
                    167: #endif
                    168: int     profil __P((char *, int, int, int));
                    169: int     rcmd __P((char **, int, const char *,
                    170:                const char *, const char *, int *));
                    171: char   *re_comp __P((const char *));
                    172: int     re_exec __P((const char *));
                    173: int     readlink __P((const char *, char *, int));
                    174: int     reboot __P((int));
                    175: int     revoke __P((const char *));
                    176: int     rresvport __P((int *));
                    177: int     ruserok __P((const char *, int, const char *, const char *));
                    178: char   *sbrk __P((int));
                    179: int     select __P((int, fd_set *, fd_set *, fd_set *, struct timeval *));
                    180: int     setegid __P((gid_t));
                    181: int     seteuid __P((uid_t));
                    182: int     setgroups __P((int, const gid_t *));
                    183: void    sethostid __P((long));
                    184: int     sethostname __P((const char *, int));
                    185: int     setkey __P((const char *));
                    186: int     setlogin __P((const char *));
                    187: void   *setmode __P((const char *));
                    188: int     setpgrp __P((pid_t pid, pid_t pgrp));  /* obsoleted by setpgid() */
                    189: int     setregid __P((gid_t, gid_t));
                    190: int     setreuid __P((uid_t, uid_t));
                    191: int     setrgid __P((gid_t));
                    192: int     setruid __P((uid_t));
                    193: void    setusershell __P((void));
                    194: int     swapon __P((const char *));
                    195: int     symlink __P((const char *, const char *));
                    196: void    sync __P((void));
                    197: int     syscall __P((int, ...));
                    198: int     truncate __P((const char *, off_t));
                    199: int     ttyslot __P((void));
                    200: unsigned int    ualarm __P((unsigned int, unsigned int));
                    201: int     unwhiteout __P((const char *));
                    202: void    usleep __P((unsigned int));
                    203: void   *valloc __P((size_t));                  /* obsoleted by malloc() */
                    204: pid_t   vfork __P((void));
                    205: 
                    206: extern char *suboptarg;                        /* getsubopt(3) external variable */
                    207: int     getsubopt __P((char **, char * const *, char **));
                    208: 
                    209: /*  HFS & HFS Plus semantics system calls go here */
                    210: int    mkcomplex __P((const char *,mode_t,unsigned long));
                    211: int    statv __P((const char*,void*));
                    212: int    lstatv __P((const char*,void*));
                    213: int    fstatv __P((int, void*));
                    214: int    getattrlist __P((const char*,void*,void*,size_t));
                    215: int    setattrlist __P((const char*,void*,void*,size_t));
                    216: int    getdirentryattr __P((int,void*,void*,size_t));
                    217: int    exchangedata __P((const char*,const char*));
                    218: int    checkuseraccess __P((const char*,uid_t,gid_t*,int,int));
                    219: int    searchfs __P((const char*,void*,void*,unsigned long,unsigned long,void*));
                    220: 
                    221: 
                    222: #endif /* !_POSIX_SOURCE */
                    223: __END_DECLS
                    224: 
                    225: #endif /* !_UNISTD_H_ */

unix.superglobalmegacorp.com

This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.