1 /* $MirOS: src/usr.sbin/rdate/rdate.h,v 1.5 2011/11/21 20:49:39 tg Exp $ */
2 
3 /* This macro is not implemented on all operating systems */
4 #ifndef	SA_LEN
5 #define	SA_LEN(x)	(((x)->sa_family == AF_INET6) ? \
6 			    sizeof(struct sockaddr_in6) : \
7 			    (((x)->sa_family == AF_INET) ? \
8 				sizeof(struct sockaddr_in) : \
9 				sizeof(struct sockaddr)))
10 #endif
11 
12 #ifdef EXT_A4R
13 extern u_int32_t arc4random(void);
14 #endif
15 
16 #ifndef SYSKERN_MIRTIME_H
17 time_t timet2posix(time_t);
18 #endif
19 
20 void ntp_client(const char *, int, struct timeval *, struct timeval *,
21     int, int);
22 void rfc868time_client (const char *, int, struct timeval *,
23     struct timeval *);
24 
25 extern int debug;
26 
27 const char *log_sockaddr(struct sockaddr *);
28 double gettime(void);
29