1/* $NetBSD$ */ 2 3/* 4 * Copyright (c) 1989, 1990, 1993, 1994, 1995, 1996 5 * The Regents of the University of California. All rights reserved. 6 * 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. 22 * 23 * @(#) Header: /u0/home/explorer/proj/ISC/git-conversion/cvsroot/bind9/contrib/nslint-2.1a3/lbl/os-sunos4.h,v 1.1 2001/12/21 04:12:05 marka Exp (LBL) 24 */ 25 26/* Prototypes missing in SunOS 4 */ 27#ifdef FILE 28int _filbuf(FILE *); 29int _flsbuf(u_char, FILE *); 30int fclose(FILE *); 31int fflush(FILE *); 32int fgetc(FILE *); 33int fprintf(FILE *, const char *, ...); 34int fputc(int, FILE *); 35int fputs(const char *, FILE *); 36u_int fread(void *, u_int, u_int, FILE *); 37int fseek(FILE *, long, int); 38u_int fwrite(const void *, u_int, u_int, FILE *); 39int pclose(FILE *); 40void rewind(FILE *); 41void setbuf(FILE *, char *); 42int setlinebuf(FILE *); 43int ungetc(int, FILE *); 44int vfprintf(FILE *, const char *, ...); 45int vprintf(const char *, ...); 46#endif 47 48#if __GNUC__ <= 1 49int read(int, char *, u_int); 50int write(int, char *, u_int); 51#endif 52 53long a64l(const char *); 54#ifdef __STDC__ 55struct sockaddr; 56#endif 57int accept(int, struct sockaddr *, int *); 58int bind(int, struct sockaddr *, int); 59int bcmp(const void *, const void *, u_int); 60void bcopy(const void *, void *, u_int); 61void bzero(void *, int); 62int chroot(const char *); 63int close(int); 64void closelog(void); 65int connect(int, struct sockaddr *, int); 66char *crypt(const char *, const char *); 67int daemon(int, int); 68int fchmod(int, int); 69int fchown(int, int, int); 70void endgrent(void); 71void endpwent(void); 72void endservent(void); 73#ifdef __STDC__ 74struct ether_addr; 75#endif 76struct ether_addr *ether_aton(const char *); 77int flock(int, int); 78#ifdef __STDC__ 79struct stat; 80#endif 81int fstat(int, struct stat *); 82#ifdef __STDC__ 83struct statfs; 84#endif 85int fstatfs(int, struct statfs *); 86int fsync(int); 87#ifdef __STDC__ 88struct timeb; 89#endif 90int ftime(struct timeb *); 91int ftruncate(int, off_t); 92int getdtablesize(void); 93long gethostid(void); 94int gethostname(char *, int); 95int getopt(int, char * const *, const char *); 96int getpagesize(void); 97char *getpass(char *); 98int getpeername(int, struct sockaddr *, int *); 99int getpriority(int, int); 100#ifdef __STDC__ 101struct rlimit; 102#endif 103int getrlimit(int, struct rlimit *); 104int getsockname(int, struct sockaddr *, int *); 105int getsockopt(int, int, int, char *, int *); 106#ifdef __STDC__ 107struct timeval; 108struct timezone; 109#endif 110int gettimeofday(struct timeval *, struct timezone *); 111char *getusershell(void); 112char *getwd(char *); 113int initgroups(const char *, int); 114int ioctl(int, int, caddr_t); 115int iruserok(u_long, int, char *, char *); 116int isatty(int); 117int killpg(int, int); 118int listen(int, int); 119#ifdef __STDC__ 120struct utmp; 121#endif 122void login(struct utmp *); 123int logout(const char *); 124off_t lseek(int, off_t, int); 125int lstat(const char *, struct stat *); 126int mkstemp(char *); 127char *mktemp(char *); 128int munmap(caddr_t, int); 129void openlog(const char *, int, int); 130void perror(const char *); 131int printf(const char *, ...); 132int puts(const char *); 133long random(void); 134int readlink(const char *, char *, int); 135#ifdef __STDC__ 136struct iovec; 137#endif 138int readv(int, struct iovec *, int); 139int recv(int, char *, u_int, int); 140int recvfrom(int, char *, u_int, int, struct sockaddr *, int *); 141int rename(const char *, const char *); 142int rcmd(char **, u_short, char *, char *, char *, int *); 143int rresvport(int *); 144int send(int, char *, u_int, int); 145int sendto(int, char *, u_int, int, struct sockaddr *, int); 146int setenv(const char *, const char *, int); 147int seteuid(int); 148int setpriority(int, int, int); 149int select(int, fd_set *, fd_set *, fd_set *, struct timeval *); 150int setpgrp(int, int); 151void setpwent(void); 152int setrlimit(int, struct rlimit *); 153void setservent(int); 154int setsockopt(int, int, int, char *, int); 155int shutdown(int, int); 156int sigblock(int); 157void (*signal (int, void (*) (int))) (int); 158int sigpause(int); 159int sigsetmask(int); 160#ifdef __STDC__ 161struct sigvec; 162#endif 163int sigvec(int, struct sigvec *, struct sigvec*); 164int snprintf(char *, size_t, const char *, ...); 165int socket(int, int, int); 166int socketpair(int, int, int, int *); 167int symlink(const char *, const char *); 168void srandom(int); 169int sscanf(char *, const char *, ...); 170int stat(const char *, struct stat *); 171int statfs(char *, struct statfs *); 172char *strerror(int); 173int strcasecmp(const char *, const char *); 174#ifdef __STDC__ 175struct tm; 176#endif 177int strftime(char *, int, char *, struct tm *); 178int strncasecmp(const char *, const char *, int); 179long strtol(const char *, char **, int); 180void sync(void); 181void syslog(int, const char *, ...); 182int system(const char *); 183long tell(int); 184time_t time(time_t *); 185char *timezone(int, int); 186int tolower(int); 187int toupper(int); 188int truncate(char *, off_t); 189void unsetenv(const char *); 190int vfork(void); 191int vsprintf(char *, const char *, ...); 192int writev(int, struct iovec *, int); 193#ifdef __STDC__ 194struct rusage; 195#endif 196int utimes(const char *, struct timeval *); 197#if __GNUC__ <= 1 198int wait(int *); 199pid_t wait3(int *, int, struct rusage *); 200#endif 201 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 210 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 218