Sync usage with man page.
[netbsd-mini2440.git] / external / bsd / bind / dist / contrib / nslint-2.1a3 / lbl / os-sunos4.h
blobf620e2f8718d4d65eecc2761377494dfc4479c74
1 /* $NetBSD$ */
3 /*
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
18 * written permission.
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 */
27 #ifdef FILE
28 int _filbuf(FILE *);
29 int _flsbuf(u_char, FILE *);
30 int fclose(FILE *);
31 int fflush(FILE *);
32 int fgetc(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 *);
39 int pclose(FILE *);
40 void rewind(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 *, ...);
46 #endif
48 #if __GNUC__ <= 1
49 int read(int, char *, u_int);
50 int write(int, char *, u_int);
51 #endif
53 long a64l(const char *);
54 #ifdef __STDC__
55 struct sockaddr;
56 #endif
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 *);
63 int close(int);
64 void closelog(void);
65 int connect(int, struct sockaddr *, int);
66 char *crypt(const char *, const char *);
67 int daemon(int, int);
68 int fchmod(int, int);
69 int fchown(int, int, int);
70 void endgrent(void);
71 void endpwent(void);
72 void endservent(void);
73 #ifdef __STDC__
74 struct ether_addr;
75 #endif
76 struct ether_addr *ether_aton(const char *);
77 int flock(int, int);
78 #ifdef __STDC__
79 struct stat;
80 #endif
81 int fstat(int, struct stat *);
82 #ifdef __STDC__
83 struct statfs;
84 #endif
85 int fstatfs(int, struct statfs *);
86 int fsync(int);
87 #ifdef __STDC__
88 struct timeb;
89 #endif
90 int ftime(struct timeb *);
91 int ftruncate(int, off_t);
92 int getdtablesize(void);
93 long gethostid(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);
100 #ifdef __STDC__
101 struct rlimit;
102 #endif
103 int getrlimit(int, struct rlimit *);
104 int getsockname(int, struct sockaddr *, int *);
105 int getsockopt(int, int, int, char *, int *);
106 #ifdef __STDC__
107 struct timeval;
108 struct timezone;
109 #endif
110 int gettimeofday(struct timeval *, struct timezone *);
111 char *getusershell(void);
112 char *getwd(char *);
113 int initgroups(const char *, int);
114 int ioctl(int, int, caddr_t);
115 int iruserok(u_long, int, char *, char *);
116 int isatty(int);
117 int killpg(int, int);
118 int listen(int, int);
119 #ifdef __STDC__
120 struct utmp;
121 #endif
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 *);
126 int mkstemp(char *);
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 *);
133 long random(void);
134 int readlink(const char *, char *, int);
135 #ifdef __STDC__
136 struct iovec;
137 #endif
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);
147 int seteuid(int);
148 int setpriority(int, int, int);
149 int select(int, fd_set *, fd_set *, fd_set *, struct timeval *);
150 int setpgrp(int, int);
151 void setpwent(void);
152 int setrlimit(int, struct rlimit *);
153 void setservent(int);
154 int setsockopt(int, int, int, char *, int);
155 int shutdown(int, int);
156 int sigblock(int);
157 void (*signal (int, void (*) (int))) (int);
158 int sigpause(int);
159 int sigsetmask(int);
160 #ifdef __STDC__
161 struct sigvec;
162 #endif
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 *);
168 void srandom(int);
169 int sscanf(char *, const char *, ...);
170 int stat(const char *, struct stat *);
171 int statfs(char *, struct statfs *);
172 char *strerror(int);
173 int strcasecmp(const char *, const char *);
174 #ifdef __STDC__
175 struct tm;
176 #endif
177 int strftime(char *, int, char *, struct tm *);
178 int strncasecmp(const char *, const char *, int);
179 long strtol(const char *, char **, int);
180 void sync(void);
181 void syslog(int, const char *, ...);
182 int system(const char *);
183 long tell(int);
184 time_t time(time_t *);
185 char *timezone(int, int);
186 int tolower(int);
187 int toupper(int);
188 int truncate(char *, off_t);
189 void unsetenv(const char *);
190 int vfork(void);
191 int vsprintf(char *, const char *, ...);
192 int writev(int, struct iovec *, int);
193 #ifdef __STDC__
194 struct rusage;
195 #endif
196 int utimes(const char *, struct timeval *);
197 #if __GNUC__ <= 1
198 int wait(int *);
199 pid_t wait3(int *, int, struct rusage *);
200 #endif
202 /* Ugly signal hacking */
203 #ifdef SIG_ERR
204 #undef SIG_ERR
205 #define SIG_ERR (void (*)(int))-1
206 #undef SIG_DFL
207 #define SIG_DFL (void (*)(int))0
208 #undef SIG_IGN
209 #define SIG_IGN (void (*)(int))1
211 #ifdef KERNEL
212 #undef SIG_CATCH
213 #define SIG_CATCH (void (*)(int))2
214 #endif
215 #undef SIG_HOLD
216 #define SIG_HOLD (void (*)(int))3
217 #endif