2 * Proto types for machines that are not ANSI and POSIX compliant.
14 #include <sys/types.h>
16 /* Needed for speed_t. */
25 #include "ntp_types.h"
26 #include "ntp_proto.h"
28 /* Let's try to keep this more or less alphabetized... */
32 extern int adjtime (struct timeval *, struct timeval *);
37 extern void bcopy (const char *, char *, int);
43 extern void bzero (char *, int);
47 #ifdef DECL_CFSETISPEED_0
49 extern int cfsetispeed (struct termios *, speed_t);
50 extern int cfsetospeed (struct termios *, speed_t);
53 extern char * getpass (const char *);
55 #ifdef DECL_HSTRERROR_0
56 extern const char * hstrerror (int);
59 #ifdef DECL_INET_NTOA_0
61 extern char * inet_ntoa (struct in_addr);
65 extern int ioctl (int, u_long, char *);
70 extern int bind (int, struct sockaddr *, int);
71 extern int connect (int, struct sockaddr *, int);
72 extern int recv (int, char *, int, int);
73 extern int recvfrom (int, char *, int, int, struct sockaddr *, int *);
74 extern int send (int, char *, int, int);
75 extern int sendto (int, char *, int, int, struct sockaddr *, int);
76 extern int setsockopt (int, int, int, char *, int);
77 extern int socket (int, int, int);
81 extern void * memmove (void *, const void *, size_t);
85 extern char * memset (char *, int, int);
89 extern int mkstemp (char *);
93 extern char *mktemp (char *);
98 extern int nlist (const char *, struct nlist *);
102 extern int plock (int);
106 extern int rename (const char *, const char *);
111 extern int select (int, fd_set *, fd_set *, fd_set *, struct timeval *);
115 #ifdef DECL_SETITIMER_0
117 extern int setitimer (int , struct itimerval *, struct itimerval *);
121 #ifdef DECL_SETPRIORITY_0
122 extern int setpriority (int, int, int);
124 #ifdef DECL_SETPRIORITY_1
125 extern int setpriority (int, id_t, int);
131 extern int sigvec (int, struct sigvec *, struct sigvec *);
135 #if defined(FILE) || defined(BUFSIZ)
136 extern int _flsbuf (int, FILE *);
137 extern int _filbuf (FILE *);
138 extern int fclose (FILE *);
139 extern int fflush (FILE *);
140 extern int fprintf (FILE *, const char *, ...);
141 extern int fscanf (FILE *, const char *, ...);
142 extern int fputs (const char *, FILE *);
143 extern int fputc (int, FILE *);
144 extern int fread (char *, int, int, FILE *);
145 extern void perror (const char *);
146 extern int printf (const char *, ...);
147 extern int setbuf (FILE *, char *);
148 # ifdef HAVE_SETLINEBUF
149 extern int setlinebuf (FILE *);
151 extern int setvbuf (FILE *, char *, int, int);
152 extern int scanf (const char *, ...);
153 extern int sscanf (const char *, const char *, ...);
154 extern int vfprintf (FILE *, const char *, ...);
155 extern int vsprintf (char *, const char *, ...);
160 extern int stime (const time_t *);
164 extern int stime (long *);
167 #ifdef DECL_STRERROR_0
168 extern char * strerror (int errnum);
172 extern long strtol (const char *, char **, int);
176 extern int syscall (int, ...);
180 extern void closelog (void);
182 extern void openlog (const char *, int);
184 extern void openlog (const char *, int, int);
186 extern int setlogmask (int);
187 extern void syslog (int, const char *, ...);
191 extern time_t time (time_t *);
194 #ifdef DECL_TIMEOFDAY_0
195 #ifdef SYSV_TIMEOFDAY
196 extern int gettimeofday (struct timeval *);
197 extern int settimeofday (struct timeval *);
198 #else /* not SYSV_TIMEOFDAY */
200 extern int gettimeofday (struct timeval *, struct timezone *);
201 extern int settimeofday (struct timeval *, void *);
202 #endif /* not SYSV_TIMEOFDAY */
205 #ifdef DECL_TOLOWER_0
206 extern int tolower (int);
209 #ifdef DECL_TOUPPER_0
210 extern int toupper (int);
214 * Necessary variable declarations.
220 #if defined(DECL_H_ERRNO) && !defined(h_errno)
224 #endif /* L_STDLIB_H */