xref: /freebsd/contrib/ntp/include/adjtime.h (revision 4f29da19bd44f0e99f021510460a81bf754c21d2)
1 /*************************************************************************/
2 /* (c) Copyright Tai Jin, 1988.  All Rights Reserved.                    */
3 /*     Hewlett-Packard Laboratories.                                     */
4 /*                                                                       */
5 /* Permission is hereby granted for unlimited modification, use, and     */
6 /* distribution.  This software is made available with no warranty of    */
7 /* any kind, express or implied.  This copyright notice must remain      */
8 /* intact in all versions of this software.                              */
9 /*                                                                       */
10 /* The author would appreciate it if any bug fixes and enhancements were */
11 /* to be sent back to him for incorporation into future versions of this */
12 /* software.  Please send changes to tai@iag.hp.com or ken@sdd.hp.com.   */
13 /*************************************************************************/
14 
15 /* "adjtime.h,v 3.1 1993/07/06 01:04:43 jbj Exp" */
16 /* adjtime.h,v
17  * Revision 3.1  1993/07/06  01:04:43  jbj
18  * NTP release 3.1
19  *
20  *
21  * Revision 1.5  90/02/07  15:34:18  15:34:18  src (Source Hacker)
22  * CHANGED KEY !!!
23  *
24  * Revision 1.4  89/02/09  12:26:35  12:26:35  tai (Tai Jin (Guest))
25  * *** empty log message ***
26  *
27  * Revision 1.4  89/02/09  12:26:35  12:26:35  tai (Tai Jin)
28  * added comment
29  *
30  * Revision 1.3  88/08/30  01:08:29  01:08:29  tai (Tai Jin)
31  * fix copyright notice again
32  *
33  * Revision 1.2  88/08/30  00:51:55  00:51:55  tai (Tai Jin)
34  * fix copyright notice
35  *
36  * Revision 1.1  88/04/02  14:56:54  14:56:54  tai (Tai Jin)
37  * Initial revision
38  *  */
39 
40 #include "ntp_types.h"
41 
42 #ifdef __QNXNTO__
43 int adjtime( const struct timeval * oldtime, struct timeval * newtime );
44 #else /* not __QNXNTO__ */
45 
46 #define KEY	659847L
47 
48 typedef union {
49   struct msgbuf msgp;
50   struct {
51     long mtype;
52     int code;
53     struct timeval tv;
54   } msgb;
55 } MsgBuf;
56 
57 #define MSGSIZE	(sizeof(int) + sizeof(struct timeval))
58 /*
59  * mtype values
60  */
61 #define CLIENT	1L
62 #define SERVER	2L
63 /*
64  * code values
65  */
66 #define DELTA1	0
67 #define DELTA2	1
68 
69 #endif /* not __QNXNTO__ */
70