4 * Proto types for machines that are not ANSI and POSIX compliant.
20 #include <sys/types.h>
22 /* Needed for speed_t. */
31 #include "ntp_types.h"
32 #include "ntp_proto.h"
34 /* Let's try to keep this more or less alphabetized... */
38 extern int adjtime (struct timeval
*, struct timeval
*);
43 extern void bcopy (const char *, char *, int);
49 extern void bzero (char *, int);
53 #ifdef DECL_CFSETISPEED_0
55 extern int cfsetispeed (struct termios
*, speed_t
);
56 extern int cfsetospeed (struct termios
*, speed_t
);
59 extern char * getpass (const char *);
61 #ifdef DECL_HSTRERROR_0
62 extern const char * hstrerror (int);
65 #ifdef DECL_INET_NTOA_0
67 extern char * inet_ntoa (struct in_addr
);
71 extern int ioctl (int, u_long
, char *);
76 extern int bind (int, struct sockaddr
*, int);
77 extern int connect (int, struct sockaddr
*, int);
78 extern int recv (int, char *, int, int);
79 extern int recvfrom (int, char *, int, int, struct sockaddr
*, int *);
80 extern int send (int, char *, int, int);
81 extern int sendto (int, char *, int, int, struct sockaddr
*, int);
82 extern int setsockopt (int, int, int, char *, int);
83 extern int socket (int, int, int);
87 extern void * memmove (void *, const void *, size_t);
91 extern char * memset (char *, int, int);
95 extern int mkstemp (char *);
99 extern char *mktemp (char *);
104 extern int nlist (const char *, struct nlist
*);
108 extern int plock (int);
112 extern int rename (const char *, const char *);
117 extern int select (int, fd_set
*, fd_set
*, fd_set
*, struct timeval
*);
121 #ifdef DECL_SETITIMER_0
123 extern int setitimer (int , struct itimerval
*, struct itimerval
*);
127 #ifdef DECL_SETPRIORITY_0
128 extern int setpriority (int, int, int);
130 #ifdef DECL_SETPRIORITY_1
131 extern int setpriority (int, id_t
, int);
137 extern int sigvec (int, struct sigvec
*, struct sigvec
*);
140 #ifndef HAVE_SNPRINTF
142 extern int snprintf (char *, size_t, const char *, ...);
145 /* HMS: does this need further protection? */
146 #ifndef HAVE_VSNPRINTF
147 extern int vsnprintf (char *, size_t, const char *, va_list);
151 #if defined(FILE) || defined(BUFSIZ)
152 extern int _flsbuf (int, FILE *);
153 extern int _filbuf (FILE *);
154 extern int fclose (FILE *);
155 extern int fflush (FILE *);
156 extern int fprintf (FILE *, const char *, ...);
157 extern int fscanf (FILE *, const char *, ...);
158 extern int fputs (const char *, FILE *);
159 extern int fputc (int, FILE *);
160 extern int fread (char *, int, int, FILE *);
161 extern void perror (const char *);
162 extern int printf (const char *, ...);
163 extern int setbuf (FILE *, char *);
164 # ifdef HAVE_SETLINEBUF
165 extern int setlinebuf (FILE *);
167 extern int setvbuf (FILE *, char *, int, int);
168 extern int scanf (const char *, ...);
169 extern int sscanf (const char *, const char *, ...);
170 extern int vfprintf (FILE *, const char *, ...);
171 extern int vsprintf (char *, const char *, ...);
176 extern int stime (const time_t *);
180 extern int stime (long *);
183 #ifdef DECL_STRERROR_0
184 extern char * strerror (int errnum
);
188 extern long strtol (const char *, char **, int);
192 extern int syscall (int, ...);
196 extern void closelog (void);
198 extern void openlog (const char *, int);
200 extern void openlog (const char *, int, int);
202 extern int setlogmask (int);
203 extern void syslog (int, const char *, ...);
207 extern time_t time (time_t *);
210 #ifdef DECL_TIMEOFDAY_0
211 #ifdef SYSV_TIMEOFDAY
212 extern int gettimeofday (struct timeval
*);
213 extern int settimeofday (struct timeval
*);
214 #else /* not SYSV_TIMEOFDAY */
216 extern int gettimeofday (struct timeval
*, struct timezone
*);
217 extern int settimeofday (struct timeval
*, void *);
218 #endif /* not SYSV_TIMEOFDAY */
221 #ifdef DECL_TOLOWER_0
222 extern int tolower (int);
225 #ifdef DECL_TOUPPER_0
226 extern int toupper (int);
230 * Necessary variable declarations.
236 #if defined(DECL_H_ERRNO) && !defined(h_errno)
240 #endif /* l_stdlib_h */