1 /* Copyright (c) 1993-2000
2 * Juergen Weigert (jnweiger@immd4.informatik.uni-erlangen.de)
3 * Michael Schroeder (mlschroe@immd4.informatik.uni-erlangen.de)
4 * Copyright (c) 1987 Oliver Laumann
6 * This program is free software; you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License as published by
8 * the Free Software Foundation; either version 3, or (at your option)
11 * This program is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 * GNU General Public License for more details.
16 * You should have received a copy of the GNU General Public License
17 * along with this program (see the file COPYING); if not, see
18 * http://www.gnu.org/licenses/, or contact Free Software Foundation, Inc.,
19 * 51 Franklin Street, Fifth Floor, Boston, MA 02111-1301 USA
21 ****************************************************************
25 /****************************************************************
26 * Thanks to Christos S. Zoulas (christos@ee.cornell.edu) who
27 * mangled the screen source through 'gcc -Wall'.
28 ****************************************************************
31 extern int printf
__P((char *, ...));
32 extern int fprintf
__P((FILE *, char *, ...));
33 extern int sprintf
__P((char *, char *, ...));
35 extern int vsprintf
__P((char *, char *, char *));
39 extern int openlog
__P((char *, int, int));
40 extern int syslog
__P((int, char *, ... ));
41 extern int closelog
__P((void));
44 #if defined(sun) || defined(_SEQUENT_)
45 extern int _flsbuf
__P((int, FILE *));
49 extern char *strchr
__P((char *, int));
50 extern char *strrchr
__P((char *, int));
51 extern char *memset
__P((char *, int, int));
52 extern int memcmp
__P((char *, char *, int));
54 extern char *index
__P((char *, int));
55 extern char *rindex
__P((char *, int));
56 extern void bzero
__P((char *, int));
57 extern int bcmp
__P((char *, char *, int));
58 extern int killpg
__P((int, int));
63 extern void memcpy
__P((char *, char *, int));
66 extern void memmove
__P((char *, char *, int));
68 extern void bcopy
__P((char *, char *, int));
72 extern void bcopy
__P((char *, char *, int));
76 struct rusage
; /* for wait3 __P */
77 union wait
; /* for wait3 __P */
78 extern int wait3
__P((union wait
*, int, struct rusage
*));
80 extern int waitpid
__P((int, int *, int));
83 extern int getdtablesize
__P((void));
86 extern int setresuid
__P((int, int, int));
87 extern int setresgid
__P((int, int, int));
90 extern int setreuid
__P((int, int));
91 extern int setregid
__P((int, int));
94 extern int seteuid
__P((int));
95 extern int setegid
__P((int));
98 extern char *crypt
__P((char *, char *));
99 extern int putenv
__P((char *));
101 extern int tgetent
__P((char *, char *));
102 extern char *tgetstr
__P((char *, char **));
103 extern int tgetnum
__P((char *));
104 extern int tgetflag
__P((char *));
105 extern void tputs
__P((char *, int, int (*)(int)));
106 extern char *tgoto
__P((char *, int, int));
109 extern int setsid
__P((void));
110 extern int setpgid
__P((int, int));
111 extern int tcsetpgrp
__P((int, int));
113 extern int ioctl
__P((int, int, char *));
115 extern int kill
__P((int, int));
117 extern int getpid
__P((void));
118 extern int getuid
__P((void));
119 extern int geteuid
__P((void));
120 extern int getgid
__P((void));
121 extern int getegid
__P((void));
122 struct passwd
; /* for getpwuid __P */
123 extern struct passwd
*getpwuid
__P((int));
124 extern struct passwd
*getpwnam
__P((char *));
125 extern int isatty
__P((int));
126 extern int chown
__P((char *, int, int));
127 extern int rename
__P((char *, char *));
129 extern int gethostname
__P((char *, int));
130 extern int lseek
__P((int, int, int));
131 extern void exit
__P((int));
132 extern char *getwd
__P((char *));
133 extern char *getenv
__P((char *));
134 extern time_t time
__P((time_t *));
136 extern char *getpass
__P((char *));
137 extern char *getlogin
__P((void));
138 extern char *ttyname
__P((int));
140 extern int fputs
__P((char *, FILE *));
141 extern int fwrite
__P((char *, int, int, FILE *));
142 extern int fflush
__P((FILE *));
143 extern int fclose
__P((FILE *));
145 extern char *malloc
__P((int));
146 extern char *realloc
__P((char *, int));
147 extern void free
__P((char *));
150 extern int mknod
__P((char *, int, int));
152 struct sockaddr
; /* for connect __P */
153 extern int socket
__P((int, int, int));
154 extern int connect
__P((int, struct sockaddr
*, int));
155 extern int bind
__P((int, struct sockaddr
*, int));
156 extern int listen
__P((int, int));
157 extern int accept
__P((int, struct sockaddr
*, int *));
160 #if defined(UTMPOK) && defined(GETUTENT)
161 extern void setutent
__P((void));
164 #if defined(sequent) || defined(_SEQUENT_)
165 extern int getpseudotty
__P((char **, char **));
167 extern int fvhangup
__P((char *));
171 struct timeval
; /* for select __P */
172 extern int select
__P((int, fd_set
*, fd_set
*, fd_set
*, struct timeval
*));
174 extern int utimes
__P((char *, struct timeval
*));
177 extern void unsetenv
__P((char *));
179 # if defined(GETTTYENT) && !defined(GETUTENT) && !defined(UTNOKEEP)
180 struct ttyent
; /* for getttyent __P */
181 extern void setttyent
__P((void));
182 extern struct ttyent
*getttyent
__P((void));
186 struct rlimit
; /* for getrlimit __P */
187 extern int getrlimit
__P((int, struct rlimit
*));
191 extern int stat
__P((char *, struct stat
*));
192 extern int lstat
__P((char *, struct stat
*));
193 extern int fstat
__P((int, struct stat
*));
194 extern int fchmod
__P((int, int));
195 extern int fchown
__P((int, int, int));
197 #if defined(LOADAV) && defined(LOADAV_GETLOADAVG)
198 extern int getloadavg(double *, int);