Back to index

lightning-sunbird  0.9+nobinonly
unistd.h
Go to the documentation of this file.
00001 /*-
00002  * Copyright (c) 1991, 1993, 1994
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.10 (Berkeley) 4/16/94
00033  */
00034 
00035 /* Adapted for GUSI by Matthias Neeracher <neeri@iis.ee.ethz.ch> */
00036 
00037 #ifndef _UNISTD_H_
00038 #define       _UNISTD_H_
00039 
00040 #include <sys/cdefs.h>
00041 #include <sys/types.h>
00042 #include <sys/unistd.h>
00043 
00044 #ifndef NULL
00045 #define       NULL          0      /* null pointer constant */
00046 #endif
00047 
00048 #define STDIN_FILENO 0
00049 #define STDOUT_FILENO       1
00050 #define STDERR_FILENO       2
00051 
00052 __BEGIN_DECLS
00053 void _exit __P((int));
00054 int     access __P((const char *, int));
00055 unsigned int   alarm __P((unsigned int));
00056 int     chdir __P((const char *));
00057 int     close __P((int));
00058 size_t  confstr __P((int, char *, size_t));
00059 int     dup __P((int));
00060 int     dup2 __P((int, int));
00061 long    fpathconf __P((int, int));
00062 char   *getcwd __P((char *, size_t));
00063 gid_t   getegid __P((void));
00064 uid_t   geteuid __P((void));
00065 gid_t   getgid __P((void));
00066 int     getgroups __P((int, gid_t []));
00067 char   *getlogin __P((void));
00068 pid_t   getpgrp __P((void));
00069 pid_t   getpid __P((void));
00070 pid_t   getppid __P((void));
00071 uid_t   getuid __P((void));
00072 int     isatty __P((int));
00073 int     link __P((const char *, const char *));
00074 off_t   lseek __P((int, off_t, int));
00075 long    pathconf __P((const char *, int));
00076 int     pause __P((void));
00077 int     pipe __P((int *));
00078 ssize_t        read __P((int, void *, size_t));
00079 int     rmdir __P((const char *));
00080 int     setgid __P((gid_t));
00081 int     setpgid __P((pid_t, pid_t));
00082 pid_t   setsid __P((void));
00083 int     setuid __P((uid_t));
00084 unsigned int   sleep __P((unsigned int));
00085 long    sysconf __P((int));
00086 pid_t   tcgetpgrp __P((int));
00087 int     tcsetpgrp __P((int, pid_t));
00088 char   *ttyname __P((int));
00089 useconds_t     ualarm __P((useconds_t, useconds_t));
00090 int     unlink __P((const char *));
00091 int     usleep __P((unsigned int));
00092 ssize_t        write __P((int, const void *, size_t));
00093 
00094 #ifndef       _POSIX_SOURCE
00095 int     acct __P((const char *));
00096 int     async_daemon __P((void));
00097 char   *brk __P((const char *));
00098 int     chroot __P((const char *));
00099 char   *crypt __P((const char *, const char *));
00100 int     des_cipher __P((const char *, char *, long, int));
00101 int     des_setkey __P((const char *key));
00102 int     encrypt __P((char *, int));
00103 void    endusershell __P((void));
00104 int     exect __P((const char *, char * const *, char * const *));
00105 int     fchdir __P((int));
00106 int     fchown __P((int, int, int));
00107 int     fsync __P((int));
00108 int     ftruncate __P((int, off_t));
00109 int     getdtablesize __P((void));
00110 long    gethostid __P((void));
00111 int     gethostname __P((char *, int));
00112 mode_t  getmode __P((const void *, mode_t));
00113 int    getpagesize __P((void));
00114 char   *getpass __P((const char *));
00115 char   *getusershell __P((void));
00116 char   *getwd __P((char *));                     /* obsoleted by getcwd() */
00117 int     initgroups __P((const char *, int));
00118 int     iruserok __P((unsigned long, int, const char *, const char *));
00119 int     mknod __P((const char *, mode_t, dev_t));
00120 int     mkstemp __P((char *));
00121 char   *mktemp __P((char *));
00122 int     nfssvc __P((int, void *));
00123 int     nice __P((int));
00124 void    psignal __P((unsigned int, const char *));
00125 extern const char *const sys_siglist[];
00126 int     profil __P((char *, int, int, int));
00127 int     rcmd __P((char **, int, const char *,
00128               const char *, const char *, int *));
00129 char   *re_comp __P((const char *));
00130 int     re_exec __P((const char *));
00131 int     readlink __P((const char *, char *, int));
00132 int     reboot __P((int));
00133 int     revoke __P((const char *));
00134 int     rresvport __P((int *));
00135 int     ruserok __P((const char *, int, const char *, const char *));
00136 char   *sbrk __P((int));
00137 int     setegid __P((gid_t));
00138 int     seteuid __P((uid_t));
00139 int     setgroups __P((int, const gid_t *));
00140 void    sethostid __P((long));
00141 int     sethostname __P((const char *, int));
00142 int     setkey __P((const char *));
00143 int     setlogin __P((const char *));
00144 void   *setmode __P((const char *));
00145 int     setpgrp __P((pid_t pid, pid_t pgrp));    /* obsoleted by setpgid() */
00146 int     setregid __P((gid_t, gid_t));
00147 int     setreuid __P((uid_t, uid_t));
00148 int     setrgid __P((gid_t));
00149 int     setruid __P((uid_t));
00150 void    setusershell __P((void));
00151 int     swapon __P((const char *));
00152 int     symlink __P((const char *, const char *));
00153 void    sync __P((void));
00154 int     syscall __P((int, ...));
00155 int     truncate __P((const char *, off_t));
00156 int     ttyslot __P((void));
00157 void   *valloc __P((size_t));                    /* obsoleted by malloc() */
00158 pid_t   vfork __P((void));
00159 #endif /* !_POSIX_SOURCE */
00160 __END_DECLS
00161 
00162 #endif /* !_UNISTD_H_ */