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