]>
Commit | Line | Data |
---|---|---|
b7080c8e A |
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.0 (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 | * Copyright (c) 1989, 1990, 1993, 1994, 1995, 1996 | |
26 | * The Regents of the University of California. All rights reserved. | |
27 | * | |
28 | * Redistribution and use in source and binary forms, with or without | |
29 | * modification, are permitted provided that: (1) source code distributions | |
30 | * retain the above copyright notice and this paragraph in its entirety, (2) | |
31 | * distributions including binary code include the above copyright notice and | |
32 | * this paragraph in its entirety in the documentation or other materials | |
33 | * provided with the distribution, and (3) all advertising materials mentioning | |
34 | * features or use of this software display the following acknowledgement: | |
35 | * ``This product includes software developed by the University of California, | |
36 | * Lawrence Berkeley Laboratory and its contributors.'' Neither the name of | |
37 | * the University nor the names of its contributors may be used to endorse | |
38 | * or promote products derived from this software without specific prior | |
39 | * written permission. | |
40 | * THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR IMPLIED | |
41 | * WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED WARRANTIES OF | |
42 | * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. | |
43 | * | |
44 | * @(#) $Header: /cvs/Darwin/Commands/NeXT/network_cmds/tcpdump.tproj/os-sunos4.h,v 1.1.1.1 1999/05/02 03:58:32 wsanchez Exp $ (LBL) | |
45 | */ | |
46 | ||
47 | /* Prototypes missing in SunOS 4 */ | |
48 | #ifdef FILE | |
49 | int _filbuf(FILE *); | |
50 | int _flsbuf(u_char, FILE *); | |
51 | int fclose(FILE *); | |
52 | int fflush(FILE *); | |
53 | int fgetc(FILE *); | |
54 | int fprintf(FILE *, const char *, ...); | |
55 | int fputc(int, FILE *); | |
56 | int fputs(const char *, FILE *); | |
57 | u_int fread(void *, u_int, u_int, FILE *); | |
58 | int fseek(FILE *, long, int); | |
59 | u_int fwrite(const void *, u_int, u_int, FILE *); | |
60 | int pclose(FILE *); | |
61 | void rewind(FILE *); | |
62 | void setbuf(FILE *, char *); | |
63 | int setlinebuf(FILE *); | |
64 | int ungetc(int, FILE *); | |
65 | int vfprintf(FILE *, const char *, ...); | |
66 | int vprintf(const char *, ...); | |
67 | #endif | |
68 | ||
69 | #if __GNUC__ <= 1 | |
70 | int read(int, char *, u_int); | |
71 | int write(int, char *, u_int); | |
72 | #endif | |
73 | ||
74 | long a64l(const char *); | |
75 | #ifdef __STDC__ | |
76 | struct sockaddr; | |
77 | #endif | |
78 | int accept(int, struct sockaddr *, int *); | |
79 | int bind(int, struct sockaddr *, int); | |
80 | int bcmp(const void *, const void *, u_int); | |
81 | void bcopy(const void *, void *, u_int); | |
82 | void bzero(void *, int); | |
83 | int chroot(const char *); | |
84 | int close(int); | |
85 | void closelog(void); | |
86 | int connect(int, struct sockaddr *, int); | |
87 | char *crypt(const char *, const char *); | |
88 | int daemon(int, int); | |
89 | int fchmod(int, int); | |
90 | int fchown(int, int, int); | |
91 | void endgrent(void); | |
92 | void endpwent(void); | |
93 | void endservent(void); | |
94 | #ifdef __STDC__ | |
95 | struct ether_addr; | |
96 | #endif | |
97 | struct ether_addr *ether_aton(const char *); | |
98 | int flock(int, int); | |
99 | #ifdef __STDC__ | |
100 | struct stat; | |
101 | #endif | |
102 | int fstat(int, struct stat *); | |
103 | #ifdef __STDC__ | |
104 | struct statfs; | |
105 | #endif | |
106 | int fstatfs(int, struct statfs *); | |
107 | int fsync(int); | |
108 | #ifdef __STDC__ | |
109 | struct timeb; | |
110 | #endif | |
111 | int ftime(struct timeb *); | |
112 | int ftruncate(int, off_t); | |
113 | int getdtablesize(void); | |
114 | long gethostid(void); | |
115 | int gethostname(char *, int); | |
116 | int getopt(int, char * const *, const char *); | |
117 | int getpagesize(void); | |
118 | char *getpass(char *); | |
119 | int getpeername(int, struct sockaddr *, int *); | |
120 | int getpriority(int, int); | |
121 | #ifdef __STDC__ | |
122 | struct rlimit; | |
123 | #endif | |
124 | int getrlimit(int, struct rlimit *); | |
125 | int getsockname(int, struct sockaddr *, int *); | |
126 | int getsockopt(int, int, int, char *, int *); | |
127 | #ifdef __STDC__ | |
128 | struct timeval; | |
129 | struct timezone; | |
130 | #endif | |
131 | int gettimeofday(struct timeval *, struct timezone *); | |
132 | char *getusershell(void); | |
133 | char *getwd(char *); | |
134 | int initgroups(const char *, int); | |
135 | int ioctl(int, int, caddr_t); | |
136 | int iruserok(u_long, int, char *, char *); | |
137 | int isatty(int); | |
138 | int killpg(int, int); | |
139 | int listen(int, int); | |
140 | #ifdef __STDC__ | |
141 | struct utmp; | |
142 | #endif | |
143 | void login(struct utmp *); | |
144 | int logout(const char *); | |
145 | off_t lseek(int, off_t, int); | |
146 | int lstat(const char *, struct stat *); | |
147 | int mkstemp(char *); | |
148 | char *mktemp(char *); | |
149 | int munmap(caddr_t, int); | |
150 | void openlog(const char *, int, int); | |
151 | void perror(const char *); | |
152 | int printf(const char *, ...); | |
153 | int puts(const char *); | |
154 | long random(void); | |
155 | int readlink(const char *, char *, int); | |
156 | #ifdef __STDC__ | |
157 | struct iovec; | |
158 | #endif | |
159 | int readv(int, struct iovec *, int); | |
160 | int recv(int, char *, u_int, int); | |
161 | int recvfrom(int, char *, u_int, int, struct sockaddr *, int *); | |
162 | int rename(const char *, const char *); | |
163 | int rcmd(char **, u_short, char *, char *, char *, int *); | |
164 | int rresvport(int *); | |
165 | int send(int, char *, u_int, int); | |
166 | int sendto(int, char *, u_int, int, struct sockaddr *, int); | |
167 | int setenv(const char *, const char *, int); | |
168 | int seteuid(int); | |
169 | int setpriority(int, int, int); | |
170 | int select(int, fd_set *, fd_set *, fd_set *, struct timeval *); | |
171 | int setpgrp(int, int); | |
172 | void setpwent(void); | |
173 | int setrlimit(int, struct rlimit *); | |
174 | void setservent(int); | |
175 | int setsockopt(int, int, int, char *, int); | |
176 | int shutdown(int, int); | |
177 | int sigblock(int); | |
178 | void (*signal (int, void (*) (int))) (int); | |
179 | int sigpause(int); | |
180 | int sigsetmask(int); | |
181 | #ifdef __STDC__ | |
182 | struct sigvec; | |
183 | #endif | |
184 | int sigvec(int, struct sigvec *, struct sigvec*); | |
185 | int snprintf(char *, size_t, const char *, ...); | |
186 | int socket(int, int, int); | |
187 | int socketpair(int, int, int, int *); | |
188 | int symlink(const char *, const char *); | |
189 | void srandom(int); | |
190 | int sscanf(char *, const char *, ...); | |
191 | int stat(const char *, struct stat *); | |
192 | int statfs(char *, struct statfs *); | |
193 | char *strerror(int); | |
194 | int strcasecmp(const char *, const char *); | |
195 | #ifdef __STDC__ | |
196 | struct tm; | |
197 | #endif | |
198 | int strftime(char *, int, char *, struct tm *); | |
199 | int strncasecmp(const char *, const char *, int); | |
200 | long strtol(const char *, char **, int); | |
201 | void sync(void); | |
202 | void syslog(int, const char *, ...); | |
203 | int system(const char *); | |
204 | long tell(int); | |
205 | time_t time(time_t *); | |
206 | char *timezone(int, int); | |
207 | int tolower(int); | |
208 | int toupper(int); | |
209 | int truncate(char *, off_t); | |
210 | void unsetenv(const char *); | |
211 | int vfork(void); | |
212 | int vsprintf(char *, const char *, ...); | |
213 | int writev(int, struct iovec *, int); | |
214 | #ifdef __STDC__ | |
215 | struct rusage; | |
216 | #endif | |
217 | int utimes(const char *, struct timeval *); | |
218 | #if __GNUC__ <= 1 | |
219 | int wait(int *); | |
220 | pid_t wait3(int *, int, struct rusage *); | |
221 | #endif | |
222 | ||
223 | /* Ugly signal hacking */ | |
224 | #ifdef SIG_ERR | |
225 | #undef SIG_ERR | |
226 | #define SIG_ERR (void (*)(int))-1 | |
227 | #undef SIG_DFL | |
228 | #define SIG_DFL (void (*)(int))0 | |
229 | #undef SIG_IGN | |
230 | #define SIG_IGN (void (*)(int))1 | |
231 | ||
232 | #ifdef KERNEL | |
233 | #undef SIG_CATCH | |
234 | #define SIG_CATCH (void (*)(int))2 | |
235 | #endif | |
236 | #undef SIG_HOLD | |
237 | #define SIG_HOLD (void (*)(int))3 | |
238 | #endif |