/contrib/ntp/include/adjtime.h

https://bitbucket.org/freebsd/freebsd-head/ · C++ Header · 63 lines · 15 code · 5 blank · 43 comment · 0 complexity · 0bac2ddf248b8f44d9024f280c35fd6e MD5 · raw file

  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. /* "adjtime.h,v 3.1 1993/07/06 01:04:43 jbj Exp" */
  15. /* adjtime.h,v
  16. * Revision 3.1 1993/07/06 01:04:43 jbj
  17. * NTP release 3.1
  18. *
  19. *
  20. * Revision 1.5 90/02/07 15:34:18 15:34:18 src (Source Hacker)
  21. * CHANGED KEY !!!
  22. *
  23. * Revision 1.4 89/02/09 12:26:35 12:26:35 tai (Tai Jin (Guest))
  24. * *** empty log message ***
  25. *
  26. * Revision 1.4 89/02/09 12:26:35 12:26:35 tai (Tai Jin)
  27. * added comment
  28. *
  29. * Revision 1.3 88/08/30 01:08:29 01:08:29 tai (Tai Jin)
  30. * fix copyright notice again
  31. *
  32. * Revision 1.2 88/08/30 00:51:55 00:51:55 tai (Tai Jin)
  33. * fix copyright notice
  34. *
  35. * Revision 1.1 88/04/02 14:56:54 14:56:54 tai (Tai Jin)
  36. * Initial revision
  37. * */
  38. #include "ntp_types.h"
  39. #define KEY 659847L
  40. typedef union {
  41. struct msgbuf msgp;
  42. struct {
  43. long mtype;
  44. int code;
  45. struct timeval tv;
  46. } msgb;
  47. } MsgBuf;
  48. #define MSGSIZE (sizeof(int) + sizeof(struct timeval))
  49. /*
  50. * mtype values
  51. */
  52. #define CLIENT 1L
  53. #define SERVER 2L
  54. /*
  55. * code values
  56. */
  57. #define DELTA1 0
  58. #define DELTA2 1