1 /*- 2 * Copyright (c) 1993 The Regents of the University of California. 3 * All rights reserved. 4 * 5 * %sccs.include.redist.c% 6 * 7 * @(#)extern.h 5.1 (Berkeley) 05/11/93 8 */ 9 10 struct hosttbl; 11 struct netinfo; 12 struct sockaddr_in; 13 struct timeval; 14 struct tsp; 15 16 struct hosttbl *addmach __P((char *, struct sockaddr_in *, struct netinfo *)); 17 struct hosttbl *findhost __P((char *)); 18 struct hosttbl *remmach __P((struct hosttbl *)); 19 20 struct tsp *readmsg __P((int, 21 char *, struct timeval *, struct netinfo *)); 22 struct tsp *acksend __P((struct tsp *, 23 struct sockaddr_in *, char *, int, struct netinfo *, int)); 24 25 void addnetname __P((char *)); 26 void adj_msg_time __P((struct tsp *, struct timeval *)); 27 void bytehostorder __P((struct tsp *)); 28 void bytenetorder __P((struct tsp *)); 29 void byteorder __P((struct tsp *)); 30 long casual __P((long, long)); 31 int cksum __P((u_short *, int)); 32 void correct __P((long)); 33 char *date __P((void)); 34 void doquit __P((struct tsp *)); 35 int election __P((struct netinfo *)); 36 void get_goodgroup __P((int)); 37 int good_host_name __P((char *)); 38 void ignoreack __P((void)); 39 int in_cksum __P((u_short *, int)); 40 void lookformaster __P((struct netinfo *)); 41 void makeslave __P((struct netinfo *)); 42 int master __P((void)); 43 void masterack __P((void)); 44 void masterup __P((struct netinfo *)); 45 int measure __P((u_long, u_long, char *, struct sockaddr_in *, int)); 46 void msterup __P((struct netinfo *)); 47 void mstotvround __P((struct timeval *, long)); 48 long networkdelta __P((void)); 49 void newslave __P((struct tsp *)); 50 void print __P((struct tsp *, struct sockaddr_in *)); 51 void prthp __P((clock_t)); 52 void rmnetmachs __P((struct netinfo *)); 53 void setstatus __P((void)); 54 int slave __P((void)); 55 void slaveack __P((void)); 56 void spreadtime __P((void)); 57 void suppress __P((struct sockaddr_in *, char *, struct netinfo *)); 58 void synch __P((long)); 59 void timevaladd __P((struct timeval *, struct timeval *)); 60 void timevalsub __P((struct timeval *, struct timeval *, struct timeval *)); 61 void traceoff __P((char *)); 62 void traceon __P((void)); 63 void xmit __P((int, u_int, struct sockaddr_in *)); 64