[BACK]Return to unistd.h CVS log [TXT][DIR] Up to [local] / prex-old / usr / include

Annotation of prex-old/usr/include/unistd.h, Revision 1.1.1.1

1.1       nbrk        1: /*-
                      2:  * Copyright (c) 1991, 1993, 1994
                      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. Neither the name of the University nor the names of its contributors
                     14:  *    may be used to endorse or promote products derived from this software
                     15:  *    without specific prior written permission.
                     16:  *
                     17:  * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
                     18:  * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
                     19:  * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
                     20:  * ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
                     21:  * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
                     22:  * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
                     23:  * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
                     24:  * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
                     25:  * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
                     26:  * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
                     27:  * SUCH DAMAGE.
                     28:  *
                     29:  *     @(#)unistd.h    8.12 (Berkeley) 4/27/95
                     30:  */
                     31:
                     32: #ifndef _UNISTD_H_
                     33: #define        _UNISTD_H_
                     34:
                     35: #include <sys/cdefs.h>
                     36: #include <sys/types.h>
                     37:
                     38: #define         STDIN_FILENO   0       /* standard input file descriptor */
                     39: #define        STDOUT_FILENO   1       /* standard output file descriptor */
                     40: #define        STDERR_FILENO   2       /* standard error file descriptor */
                     41:
                     42: #ifndef NULL
                     43: #define        NULL            0       /* null pointer constant */
                     44: #endif
                     45:
                     46: __BEGIN_DECLS
                     47: void    _exit(int) __noreturn;
                     48: int     access(const char *, int);
                     49: unsigned int    alarm(unsigned int);
                     50: int     chdir(const char *);
                     51: int     chown(const char *, uid_t, gid_t);
                     52: int     close(int);
                     53: size_t  confstr(int, char *, size_t);
                     54: int     dup(int);
                     55: int     dup2(int, int);
                     56: int     execl(const char *, const char *, ...);
                     57: int     execle(const char *, const char *, ...);
                     58: int     execlp(const char *, const char *, ...);
                     59: int     execv(const char *, char * const *);
                     60: int     execve(const char *, char * const *, char * const *);
                     61: int     execvp(const char *, char * const *);
                     62: pid_t   fork(void);
                     63: long    fpathconf(int, int);
                     64: char   *getcwd(char *, size_t);
                     65: gid_t   getegid(void);
                     66: uid_t   geteuid(void);
                     67: gid_t   getgid(void);
                     68: int     getgroups(int, gid_t []);
                     69: char   *getlogin(void);
                     70: pid_t   getpgrp(void);
                     71: pid_t   getpid(void);
                     72: pid_t   getppid(void);
                     73: uid_t   getuid(void);
                     74: int     isatty(int);
                     75: int     link(const char *, const char *);
                     76: off_t   lseek(int, off_t, int);
                     77: long    pathconf(const char *, int);
                     78: int     pause(void);
                     79: int     pipe(int *);
                     80: ssize_t         read(int, void *, size_t);
                     81: int     rmdir(const char *);
                     82: int     setgid(gid_t);
                     83: int     setpgid(pid_t, pid_t);
                     84: pid_t   setsid(void);
                     85: int     setuid(uid_t);
                     86: unsigned int    sleep(unsigned int);
                     87: long    sysconf(int);
                     88: pid_t   tcgetpgrp(int);
                     89: int     tcsetpgrp(int, pid_t);
                     90: char   *ttyname(int);
                     91: int     unlink(const char *);
                     92: ssize_t         write(int, const void *, size_t);
                     93:
                     94: int     getopt(int, char * const [], const char *);
                     95:
                     96: extern  char *optarg;                  /* getopt(3) external variables */
                     97: extern  int opterr;
                     98: extern  int optind;
                     99: extern  int optopt;
                    100:
                    101: #ifndef        _POSIX_SOURCE
                    102: #ifdef __STDC__
                    103: struct timeval;                                /* select(2) */
                    104: #endif
                    105: int     acct(const char *);
                    106: int     async_daemon(void);
                    107: char   *brk(const char *);
                    108: int     chroot(const char *);
                    109: char   *crypt(const char *, const char *);
                    110: int     des_cipher(const char *, char *, long, int);
                    111: int     des_setkey(const char *key);
                    112: int     encrypt(char *, int);
                    113: void    endusershell(void);
                    114: int     exect(const char *, char * const *, char * const *);
                    115: int     fchdir(int);
                    116: int     fchown(int, int, int);
                    117: int     fsync(int);
                    118: int     ftruncate(int, off_t);
                    119: int     getdtablesize(void);
                    120: long    gethostid(void);
                    121: int     gethostname(char *, size_t);
                    122: mode_t  getmode(const void *, mode_t);
                    123: int     getpagesize(void);
                    124: char   *getpass(const char *);
                    125: pid_t   getpgid(pid_t);
                    126: char   *getusershell(void);
                    127: char   *getwd(char *);                 /* obsoleted by getcwd() */
                    128: int     initgroups(const char *, int);
                    129: int     iruserok(unsigned long, int, const char *, const char *);
                    130: int     mknod(const char *, mode_t, dev_t);
                    131: int     mkstemp(char *);
                    132: char   *mktemp(char *);
                    133: int     nfssvc(int, void *);
                    134: int     nice(int);
                    135: void    psignal(unsigned int, const char *);
                    136: extern const char *const sys_siglist[];
                    137: int     profil(char *, int, int, int);
                    138: int     rcmd(char **, int, const char *,
                    139:                const char *, const char *, int *);
                    140: char   *re_comp(const char *);
                    141: int     re_exec(const char *);
                    142: int     readlink(const char *, char *, int);
                    143: int     reboot(int);
                    144: int     revoke(const char *);
                    145: int     rresvport(int *);
                    146: int     ruserok(const char *, int, const char *, const char *);
                    147: char   *sbrk(int);
                    148: int     select(int, fd_set *, fd_set *, fd_set *, struct timeval *);
                    149: int     setegid(gid_t);
                    150: int     seteuid(uid_t);
                    151: int     setgroups(int, const gid_t *);
                    152: void    sethostid(long);
                    153: int     sethostname(const char *, size_t);
                    154: int     setkey(const char *);
                    155: int     setlogin(const char *);
                    156: void   *setmode(const char *);
                    157: int     setpgrp(pid_t pid, pid_t pgrp);        /* obsoleted by setpgid() */
                    158: int     setregid(gid_t, gid_t);
                    159: int     setreuid(uid_t, uid_t);
                    160: int     setrgid(gid_t);
                    161: int     setruid(uid_t);
                    162: void    setusershell(void);
                    163: int     swapon(const char *);
                    164: int     symlink(const char *, const char *);
                    165: void    sync(void);
                    166: int     syscall(int, ...);
                    167: int     truncate(const char *, off_t);
                    168: int     ttyslot(void);
                    169: unsigned int    ualarm(unsigned int, unsigned int);
                    170: int     unwhiteout(const char *);
                    171: void    usleep(unsigned int);
                    172: pid_t   vfork(void);
                    173:
                    174: extern char *suboptarg;                        /* getsubopt(3) external variable */
                    175: int     getsubopt(char **, char * const *, char **);
                    176: #endif /* !_POSIX_SOURCE */
                    177:
                    178: void    fslib_init(void);      /* used by Prex native task */
                    179: void    fslib_exit(void);      /* used by Prex native task */
                    180:
                    181: __END_DECLS
                    182:
                    183: /* configurable system strings */
                    184: #define        _CS_PATH                 1
                    185:
                    186: #endif /* !_UNISTD_H_ */

CVSweb