1 /* $NetBSD: os-sunos4.h,v 1.2 2014/11/19 19:33:31 christos Exp $ */
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.
24 /* Prototypes missing in SunOS 4 */
27 int _flsbuf(u_char
, FILE *);
31 int fprintf(FILE *, const char *, ...);
32 int fputc(int, FILE *);
33 int fputs(const char *, FILE *);
34 u_int
fread(void *, u_int
, u_int
, FILE *);
35 int fseek(FILE *, long, int);
36 u_int
fwrite(const void *, u_int
, u_int
, FILE *);
39 void setbuf(FILE *, char *);
40 int setlinebuf(FILE *);
41 int ungetc(int, FILE *);
42 int vfprintf(FILE *, const char *, ...);
43 int vprintf(const char *, ...);
47 int read(int, char *, u_int
);
48 int write(int, char *, u_int
);
51 long a64l(const char *);
55 int accept(int, struct sockaddr
*, int *);
56 int bind(int, struct sockaddr
*, int);
57 int bcmp(const void *, const void *, u_int
);
58 void bcopy(const void *, void *, u_int
);
59 void bzero(void *, int);
60 int chroot(const char *);
63 int connect(int, struct sockaddr
*, int);
64 char *crypt(const char *, const char *);
67 int fchown(int, int, int);
70 void endservent(void);
74 struct ether_addr
*ether_aton(const char *);
79 int fstat(int, struct stat
*);
83 int fstatfs(int, struct statfs
*);
88 int ftime(struct timeb
*);
89 int ftruncate(int, off_t
);
90 int getdtablesize(void);
92 int gethostname(char *, int);
93 int getopt(int, char * const *, const char *);
94 int getpagesize(void);
95 char *getpass(char *);
96 int getpeername(int, struct sockaddr
*, int *);
97 int getpriority(int, int);
101 int getrlimit(int, struct rlimit
*);
102 int getsockname(int, struct sockaddr
*, int *);
103 int getsockopt(int, int, int, char *, int *);
108 int gettimeofday(struct timeval
*, struct timezone
*);
109 char *getusershell(void);
111 int initgroups(const char *, int);
112 int ioctl(int, int, caddr_t
);
113 int iruserok(u_long
, int, char *, char *);
115 int killpg(int, int);
116 int listen(int, int);
120 void login(struct utmp
*);
121 int logout(const char *);
122 off_t
lseek(int, off_t
, int);
123 int lstat(const char *, struct stat
*);
125 char *mktemp(char *);
126 int munmap(caddr_t
, int);
127 void openlog(const char *, int, int);
128 void perror(const char *);
129 int printf(const char *, ...);
130 int puts(const char *);
132 int readlink(const char *, char *, int);
136 int readv(int, struct iovec
*, int);
137 int recv(int, char *, u_int
, int);
138 int recvfrom(int, char *, u_int
, int, struct sockaddr
*, int *);
139 int rename(const char *, const char *);
140 int rcmd(char **, u_short
, char *, char *, char *, int *);
141 int rresvport(int *);
142 int send(int, char *, u_int
, int);
143 int sendto(int, char *, u_int
, int, struct sockaddr
*, int);
144 int setenv(const char *, const char *, int);
146 int setpriority(int, int, int);
147 int select(int, fd_set
*, fd_set
*, fd_set
*, struct timeval
*);
148 int setpgrp(int, int);
150 int setrlimit(int, struct rlimit
*);
151 void setservent(int);
152 int setsockopt(int, int, int, char *, int);
153 int shutdown(int, int);
155 void (*signal (int, void (*) (int))) (int);
161 int sigvec(int, struct sigvec
*, struct sigvec
*);
162 int snprintf(char *, size_t, const char *, ...);
163 int socket(int, int, int);
164 int socketpair(int, int, int, int *);
165 int symlink(const char *, const char *);
167 int sscanf(char *, const char *, ...);
168 int stat(const char *, struct stat
*);
169 int statfs(char *, struct statfs
*);
171 int strcasecmp(const char *, const char *);
175 int strftime(char *, int, char *, struct tm
*);
176 int strncasecmp(const char *, const char *, int);
177 long strtol(const char *, char **, int);
179 void syslog(int, const char *, ...);
180 int system(const char *);
182 time_t time(time_t *);
183 char *timezone(int, int);
186 int truncate(char *, off_t
);
187 void unsetenv(const char *);
189 int vsprintf(char *, const char *, ...);
190 int writev(int, struct iovec
*, int);
194 int utimes(const char *, struct timeval
*);
197 pid_t
wait3(int *, int, struct rusage
*);
200 /* Ugly signal hacking */
203 #define SIG_ERR (void (*)(int))-1
205 #define SIG_DFL (void (*)(int))0
207 #define SIG_IGN (void (*)(int))1
211 #define SIG_CATCH (void (*)(int))2
214 #define SIG_HOLD (void (*)(int))3