Rearrange the python scripting support a bit.
[screen-lua.git] / src / osdef.h.in
blob36964fb90e5dd100c0228b4edddaf92a755f5e09
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)
9 * any later version.
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 ****************************************************************
22 * $Id$ FAU
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 *, ...));
34 #ifdef USEVARARGS
35 extern int vsprintf __P((char *, char *, char *));
36 #endif
38 #ifdef LOG_NOTICE
39 extern int openlog __P((char *, int, int));
40 extern int syslog __P((int, char *, ... ));
41 extern int closelog __P((void));
42 #endif
44 #if defined(sun) || defined(_SEQUENT_)
45 extern int _flsbuf __P((int, FILE *));
46 #endif
48 #ifdef SYSV
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));
53 #else
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));
59 #endif
61 #ifndef USEBCOPY
62 # ifdef USEMEMCPY
63 extern void memcpy __P((char *, char *, int));
64 # else
65 # ifdef USEMEMMOVE
66 extern void memmove __P((char *, char *, int));
67 # else
68 extern void bcopy __P((char *, char *, int));
69 # endif
70 # endif
71 #else
72 extern void bcopy __P((char *, char *, int));
73 #endif
75 #ifdef BSDWAIT
76 struct rusage; /* for wait3 __P */
77 union wait; /* for wait3 __P */
78 extern int wait3 __P((union wait *, int, struct rusage *));
79 #else
80 extern int waitpid __P((int, int *, int));
81 #endif
83 extern int getdtablesize __P((void));
85 #ifdef HAVE_SETRESUID
86 extern int setresuid __P((int, int, int));
87 extern int setresgid __P((int, int, int));
88 #endif
89 #ifdef HAVE_SETREUID
90 extern int setreuid __P((int, int));
91 extern int setregid __P((int, int));
92 #endif
93 #ifdef HAVE_SETEUID
94 extern int seteuid __P((int));
95 extern int setegid __P((int));
96 #endif
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));
108 #ifdef POSIX
109 extern int setsid __P((void));
110 extern int setpgid __P((int, int));
111 extern int tcsetpgrp __P((int, int));
112 #endif
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 *));
149 #ifdef NAMEDPIPE
150 extern int mknod __P((char *, int, int));
151 #else
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 *));
158 #endif
160 #if defined(UTMPOK) && defined(GETUTENT)
161 extern void setutent __P((void));
162 #endif
164 #if defined(sequent) || defined(_SEQUENT_)
165 extern int getpseudotty __P((char **, char **));
166 #ifdef _SEQUENT_
167 extern int fvhangup __P((char *));
168 #endif
169 #endif
171 struct timeval; /* for select __P */
172 extern int select __P((int, fd_set *, fd_set *, fd_set *, struct timeval *));
173 #ifdef HAVE_UTIMES
174 extern int utimes __P((char *, struct timeval *));
175 #endif
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));
183 # endif
185 #ifdef SVR4
186 struct rlimit; /* for getrlimit __P */
187 extern int getrlimit __P((int, struct rlimit *));
188 #endif
190 struct stat;
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);
199 #endif