]>
git.saurik.com Git - apple/network_cmds.git/blob - tcpdump.tproj/os-sunos4.h
2 * Copyright (c) 1999 Apple Computer, Inc. All rights reserved.
4 * @APPLE_LICENSE_HEADER_START@
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
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
22 * @APPLE_LICENSE_HEADER_END@
25 * Copyright (c) 1989, 1990, 1993, 1994, 1995, 1996
26 * The Regents of the University of California. All rights reserved.
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
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.
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)
47 /* Prototypes missing in SunOS 4 */
50 int _flsbuf(u_char
, 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 *);
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 *, ...);
70 int read(int, char *, u_int
);
71 int write(int, char *, u_int
);
74 long a64l(const char *);
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 *);
86 int connect(int, struct sockaddr
*, int);
87 char *crypt(const char *, const char *);
90 int fchown(int, int, int);
93 void endservent(void);
97 struct ether_addr
*ether_aton(const char *);
102 int fstat(int, struct stat
*);
106 int fstatfs(int, struct statfs
*);
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);
124 int getrlimit(int, struct rlimit
*);
125 int getsockname(int, struct sockaddr
*, int *);
126 int getsockopt(int, int, int, char *, int *);
131 int gettimeofday(struct timeval
*, struct timezone
*);
132 char *getusershell(void);
134 int initgroups(const char *, int);
135 int ioctl(int, int, caddr_t
);
136 int iruserok(u_long
, int, char *, char *);
138 int killpg(int, int);
139 int listen(int, int);
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
*);
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 *);
155 int readlink(const char *, char *, int);
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);
169 int setpriority(int, int, int);
170 int select(int, fd_set
*, fd_set
*, fd_set
*, struct timeval
*);
171 int setpgrp(int, int);
173 int setrlimit(int, struct rlimit
*);
174 void setservent(int);
175 int setsockopt(int, int, int, char *, int);
176 int shutdown(int, int);
178 void (*signal (int, void (*) (int))) (int);
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 *);
190 int sscanf(char *, const char *, ...);
191 int stat(const char *, struct stat
*);
192 int statfs(char *, struct statfs
*);
194 int strcasecmp(const char *, const char *);
198 int strftime(char *, int, char *, struct tm
*);
199 int strncasecmp(const char *, const char *, int);
200 long strtol(const char *, char **, int);
202 void syslog(int, const char *, ...);
203 int system(const char *);
205 time_t time(time_t *);
206 char *timezone(int, int);
209 int truncate(char *, off_t
);
210 void unsetenv(const char *);
212 int vsprintf(char *, const char *, ...);
213 int writev(int, struct iovec
*, int);
217 int utimes(const char *, struct timeval
*);
220 pid_t
wait3(int *, int, struct rusage
*);
223 /* Ugly signal hacking */
226 #define SIG_ERR (void (*)(int))-1
228 #define SIG_DFL (void (*)(int))0
230 #define SIG_IGN (void (*)(int))1
234 #define SIG_CATCH (void (*)(int))2
237 #define SIG_HOLD (void (*)(int))3