home *** CD-ROM | disk | FTP | other *** search
/ The World of Computer Software / World_Of_Computer_Software-02-385-Vol-1of3.iso / x / xntp3.zip / adjtime / adjtime.h < prev    next >
Text File  |  1992-08-29  |  2KB  |  58 lines

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