]> git.saurik.com Git - apple/network_cmds.git/blame - tcpdump.tproj/os-sunos4.h
network_cmds-76.tar.gz
[apple/network_cmds.git] / tcpdump.tproj / os-sunos4.h
CommitLineData
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
49int _filbuf(FILE *);
50int _flsbuf(u_char, FILE *);
51int fclose(FILE *);
52int fflush(FILE *);
53int fgetc(FILE *);
54int fprintf(FILE *, const char *, ...);
55int fputc(int, FILE *);
56int fputs(const char *, FILE *);
57u_int fread(void *, u_int, u_int, FILE *);
58int fseek(FILE *, long, int);
59u_int fwrite(const void *, u_int, u_int, FILE *);
60int pclose(FILE *);
61void rewind(FILE *);
62void setbuf(FILE *, char *);
63int setlinebuf(FILE *);
64int ungetc(int, FILE *);
65int vfprintf(FILE *, const char *, ...);
66int vprintf(const char *, ...);
67#endif
68
69#if __GNUC__ <= 1
70int read(int, char *, u_int);
71int write(int, char *, u_int);
72#endif
73
74long a64l(const char *);
75#ifdef __STDC__
76struct sockaddr;
77#endif
78int accept(int, struct sockaddr *, int *);
79int bind(int, struct sockaddr *, int);
80int bcmp(const void *, const void *, u_int);
81void bcopy(const void *, void *, u_int);
82void bzero(void *, int);
83int chroot(const char *);
84int close(int);
85void closelog(void);
86int connect(int, struct sockaddr *, int);
87char *crypt(const char *, const char *);
88int daemon(int, int);
89int fchmod(int, int);
90int fchown(int, int, int);
91void endgrent(void);
92void endpwent(void);
93void endservent(void);
94#ifdef __STDC__
95struct ether_addr;
96#endif
97struct ether_addr *ether_aton(const char *);
98int flock(int, int);
99#ifdef __STDC__
100struct stat;
101#endif
102int fstat(int, struct stat *);
103#ifdef __STDC__
104struct statfs;
105#endif
106int fstatfs(int, struct statfs *);
107int fsync(int);
108#ifdef __STDC__
109struct timeb;
110#endif
111int ftime(struct timeb *);
112int ftruncate(int, off_t);
113int getdtablesize(void);
114long gethostid(void);
115int gethostname(char *, int);
116int getopt(int, char * const *, const char *);
117int getpagesize(void);
118char *getpass(char *);
119int getpeername(int, struct sockaddr *, int *);
120int getpriority(int, int);
121#ifdef __STDC__
122struct rlimit;
123#endif
124int getrlimit(int, struct rlimit *);
125int getsockname(int, struct sockaddr *, int *);
126int getsockopt(int, int, int, char *, int *);
127#ifdef __STDC__
128struct timeval;
129struct timezone;
130#endif
131int gettimeofday(struct timeval *, struct timezone *);
132char *getusershell(void);
133char *getwd(char *);
134int initgroups(const char *, int);
135int ioctl(int, int, caddr_t);
136int iruserok(u_long, int, char *, char *);
137int isatty(int);
138int killpg(int, int);
139int listen(int, int);
140#ifdef __STDC__
141struct utmp;
142#endif
143void login(struct utmp *);
144int logout(const char *);
145off_t lseek(int, off_t, int);
146int lstat(const char *, struct stat *);
147int mkstemp(char *);
148char *mktemp(char *);
149int munmap(caddr_t, int);
150void openlog(const char *, int, int);
151void perror(const char *);
152int printf(const char *, ...);
153int puts(const char *);
154long random(void);
155int readlink(const char *, char *, int);
156#ifdef __STDC__
157struct iovec;
158#endif
159int readv(int, struct iovec *, int);
160int recv(int, char *, u_int, int);
161int recvfrom(int, char *, u_int, int, struct sockaddr *, int *);
162int rename(const char *, const char *);
163int rcmd(char **, u_short, char *, char *, char *, int *);
164int rresvport(int *);
165int send(int, char *, u_int, int);
166int sendto(int, char *, u_int, int, struct sockaddr *, int);
167int setenv(const char *, const char *, int);
168int seteuid(int);
169int setpriority(int, int, int);
170int select(int, fd_set *, fd_set *, fd_set *, struct timeval *);
171int setpgrp(int, int);
172void setpwent(void);
173int setrlimit(int, struct rlimit *);
174void setservent(int);
175int setsockopt(int, int, int, char *, int);
176int shutdown(int, int);
177int sigblock(int);
178void (*signal (int, void (*) (int))) (int);
179int sigpause(int);
180int sigsetmask(int);
181#ifdef __STDC__
182struct sigvec;
183#endif
184int sigvec(int, struct sigvec *, struct sigvec*);
185int snprintf(char *, size_t, const char *, ...);
186int socket(int, int, int);
187int socketpair(int, int, int, int *);
188int symlink(const char *, const char *);
189void srandom(int);
190int sscanf(char *, const char *, ...);
191int stat(const char *, struct stat *);
192int statfs(char *, struct statfs *);
193char *strerror(int);
194int strcasecmp(const char *, const char *);
195#ifdef __STDC__
196struct tm;
197#endif
198int strftime(char *, int, char *, struct tm *);
199int strncasecmp(const char *, const char *, int);
200long strtol(const char *, char **, int);
201void sync(void);
202void syslog(int, const char *, ...);
203int system(const char *);
204long tell(int);
205time_t time(time_t *);
206char *timezone(int, int);
207int tolower(int);
208int toupper(int);
209int truncate(char *, off_t);
210void unsetenv(const char *);
211int vfork(void);
212int vsprintf(char *, const char *, ...);
213int writev(int, struct iovec *, int);
214#ifdef __STDC__
215struct rusage;
216#endif
217int utimes(const char *, struct timeval *);
218#if __GNUC__ <= 1
219int wait(int *);
220pid_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