4 * Copyright (c) 1989, 1990, 1993, 1994, 1995, 1996
5 * The Regents of the University of California. All rights reserved.
7 * Redistribution and use in source and binary forms, with or without
8 * modification, are permitted provided that: (1) source code distributions
9 * retain the above copyright notice and this paragraph in its entirety, (2)
10 * distributions including binary code include the above copyright notice and
11 * this paragraph in its entirety in the documentation or other materials
12 * provided with the distribution, and (3) all advertising materials mentioning
13 * features or use of this software display the following acknowledgement:
14 * ``This product includes software developed by the University of California,
15 * Lawrence Berkeley Laboratory and its contributors.'' Neither the name of
16 * the University nor the names of its contributors may be used to endorse
17 * or promote products derived from this software without specific prior
19 * THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR IMPLIED
20 * WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED WARRANTIES OF
21 * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
23 * @(#) Header: /proj/cvs/prod/bind9/contrib/nslint-2.1a3/lbl/os-sunos4.h,v 1.1 2001/12/21 04:12:05 marka Exp (LBL)
26 /* Prototypes missing in SunOS 4 */
29 int _flsbuf(u_char
, FILE *);
33 int fprintf(FILE *, const char *, ...);
34 int fputc(int, FILE *);
35 int fputs(const char *, FILE *);
36 u_int
fread(void *, u_int
, u_int
, FILE *);
37 int fseek(FILE *, long, int);
38 u_int
fwrite(const void *, u_int
, u_int
, FILE *);
41 void setbuf(FILE *, char *);
42 int setlinebuf(FILE *);
43 int ungetc(int, FILE *);
44 int vfprintf(FILE *, const char *, ...);
45 int vprintf(const char *, ...);
49 int read(int, char *, u_int
);
50 int write(int, char *, u_int
);
53 long a64l(const char *);
57 int accept(int, struct sockaddr
*, int *);
58 int bind(int, struct sockaddr
*, int);
59 int bcmp(const void *, const void *, u_int
);
60 void bcopy(const void *, void *, u_int
);
61 void bzero(void *, int);
62 int chroot(const char *);
65 int connect(int, struct sockaddr
*, int);
66 char *crypt(const char *, const char *);
69 int fchown(int, int, int);
72 void endservent(void);
76 struct ether_addr
*ether_aton(const char *);
81 int fstat(int, struct stat
*);
85 int fstatfs(int, struct statfs
*);
90 int ftime(struct timeb
*);
91 int ftruncate(int, off_t
);
92 int getdtablesize(void);
94 int gethostname(char *, int);
95 int getopt(int, char * const *, const char *);
96 int getpagesize(void);
97 char *getpass(char *);
98 int getpeername(int, struct sockaddr
*, int *);
99 int getpriority(int, int);
103 int getrlimit(int, struct rlimit
*);
104 int getsockname(int, struct sockaddr
*, int *);
105 int getsockopt(int, int, int, char *, int *);
110 int gettimeofday(struct timeval
*, struct timezone
*);
111 char *getusershell(void);
113 int initgroups(const char *, int);
114 int ioctl(int, int, caddr_t
);
115 int iruserok(u_long
, int, char *, char *);
117 int killpg(int, int);
118 int listen(int, int);
122 void login(struct utmp
*);
123 int logout(const char *);
124 off_t
lseek(int, off_t
, int);
125 int lstat(const char *, struct stat
*);
127 char *mktemp(char *);
128 int munmap(caddr_t
, int);
129 void openlog(const char *, int, int);
130 void perror(const char *);
131 int printf(const char *, ...);
132 int puts(const char *);
134 int readlink(const char *, char *, int);
138 int readv(int, struct iovec
*, int);
139 int recv(int, char *, u_int
, int);
140 int recvfrom(int, char *, u_int
, int, struct sockaddr
*, int *);
141 int rename(const char *, const char *);
142 int rcmd(char **, u_short
, char *, char *, char *, int *);
143 int rresvport(int *);
144 int send(int, char *, u_int
, int);
145 int sendto(int, char *, u_int
, int, struct sockaddr
*, int);
146 int setenv(const char *, const char *, int);
148 int setpriority(int, int, int);
149 int select(int, fd_set
*, fd_set
*, fd_set
*, struct timeval
*);
150 int setpgrp(int, int);
152 int setrlimit(int, struct rlimit
*);
153 void setservent(int);
154 int setsockopt(int, int, int, char *, int);
155 int shutdown(int, int);
157 void (*signal (int, void (*) (int))) (int);
163 int sigvec(int, struct sigvec
*, struct sigvec
*);
164 int snprintf(char *, size_t, const char *, ...);
165 int socket(int, int, int);
166 int socketpair(int, int, int, int *);
167 int symlink(const char *, const char *);
169 int sscanf(char *, const char *, ...);
170 int stat(const char *, struct stat
*);
171 int statfs(char *, struct statfs
*);
173 int strcasecmp(const char *, const char *);
177 int strftime(char *, int, char *, struct tm
*);
178 int strncasecmp(const char *, const char *, int);
179 long strtol(const char *, char **, int);
181 void syslog(int, const char *, ...);
182 int system(const char *);
184 time_t time(time_t *);
185 char *timezone(int, int);
188 int truncate(char *, off_t
);
189 void unsetenv(const char *);
191 int vsprintf(char *, const char *, ...);
192 int writev(int, struct iovec
*, int);
196 int utimes(const char *, struct timeval
*);
199 pid_t
wait3(int *, int, struct rusage
*);
202 /* Ugly signal hacking */
205 #define SIG_ERR (void (*)(int))-1
207 #define SIG_DFL (void (*)(int))0
209 #define SIG_IGN (void (*)(int))1
213 #define SIG_CATCH (void (*)(int))2
216 #define SIG_HOLD (void (*)(int))3