summaryrefslogtreecommitdiffstats
path: root/usr.sbin/xntpd/patches/patch.37
blob: e17267f57e97aa34857535c50f9d8ca8bf20662b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204

Received: from louie.udel.edu by huey.udel.edu id aa25219; 8 Apr 94 17:07 EDT
Received: from ni.umd.edu by louie.udel.edu id aa03359; 8 Apr 94 16:58 EDT
Received: by ni.umd.edu id AA18341
  (5.65c/IDA-1.4.4 for ntp-list); Fri, 8 Apr 1994 16:55:09 -0400
Received: from RUTGERS.EDU by ni.umd.edu with SMTP id AA18337
  (5.65c/IDA-1.4.4 for <ntp@ni.umd.edu>); Fri, 8 Apr 1994 16:55:02 -0400
Received: from unipress-link.rutgers.edu by rutgers.edu (5.59/SMI4.0/RU1.5/3.08) 
	id AA16356; Fri, 8 Apr 94 16:54:44 EDT
Received: from huh.unipress.com by repo.unipress.com (4.1/SMI-4.1/UniPress022294.2)
	id AA10459; Fri, 8 Apr 94 16:54:36 EDT via 
Message-Id: <9404082054.AA10459@repo.unipress.com>
To: ntp@ni.umd.edu
Subject: Re: xntp for univel/unix-ware on x86
Date: Fri, 08 Apr 94 16:54:31 -0400
From: Ray Schnitzler <ras@unipress.com>


I am happy (but not particularly proud - it's more than a
	little rough around the edges) to report a working
	xntpd for Univel.

It wound up being a hack on solaris, svr4, and (for the lack
	of kernel tickadj) irix.

util/tickadj does *not* work, even for controlling 'tick'.
	I'm not sure what the right behavior should be.

Most of the changes are signalled by SYS_UNIVEL, as
	initiated by OS=univel.

There are many additional loose ends, which are not terribly
	important to me to clean up, since the univel is a
	very low usage machine, here, and my because
	employer expects me to be working on other things,
	altogether.

Nevertheless, it seems to work.

Special thanks go to Denton Gentry for advice along the way.


Enjoy.


Here are the changes I made.  First, the (new)
	machines/univel file, and then the (rest of the)
	context diffs:

*** /dev/null   Fri Apr  8 16:49:24 1994
--- machines/univel     Fri Apr  8 12:38:20 1994
***************
*** 0 ****
--- 1,10 ----
+ SHELL=       /bin/sh
+ RANLIB=            ls # ar does the work of ranlib under System V
+ DEFS=        -DSYS_UNIVEL -DSTREAMS_TLI -DHAVE_TERMIOS
+ AUTHDEFS=    -DDES -DMD5
+ CLOCKDEFS=   
+ DAEMONLIBS=  -lnsl -lsocket -lelf
+ RESLIB=      -lnsl -lsocket -lelf
+ INSTALL=$(TOP)scripts/install.sh
+ SHELL=       /bin/sh
+ RANLIB=            ls # ar does the work of ranlib under System V
*** authstuff/authspeed.c.orig	Thu Jan 27 09:03:12 1994
--- authstuff/authspeed.c	Fri Apr  8 14:19:35 1994
***************
*** 2,8 ****
   * authspeed - figure out how LONG it takes to do an NTP encryption
   */
  
! #if defined(SYS_HPUX) || defined(SYS_AUX3) || defined(SYS_AUX2) || defined(SOLARIS) || defined(SYS_SVR4) || defined(SYS_PTX)
  #define FAKE_RUSAGE
  #endif
  
--- 2,8 ----
   * authspeed - figure out how LONG it takes to do an NTP encryption
   */
  
! #if defined(SYS_HPUX) || defined(SYS_AUX3) || defined(SYS_AUX2) || defined(SOLARIS) || defined(SYS_SVR4) || defined(SYS_PTX) || defined(SYS_UNIVEL)
  #define FAKE_RUSAGE
  #endif
*** include/ntp_if.h.orig	Mon Nov 15 16:21:29 1993
--- include/ntp_if.h	Fri Apr  8 14:51:49 1994
***************
*** 16,21 ****
--- 16,25 ----
  #include <sys/sockio.h>
  #endif
  
+ #if defined(SYS_UNIVEL)
+ #include <sys/sockio.h>
+ #endif
+ 
  #if defined(SYS_PTX) || defined(SYS_SINIXM)
  #include <sys/stream.h>
  #include <sys/stropts.h>
*** include/ntp_machine.h.orig	Mon Mar 14 02:47:02 1994
--- include/ntp_machine.h	Fri Apr  8 14:45:42 1994
***************
*** 526,531 ****
--- 526,563 ----
  #endif
  
  /*
+  * Univel SVR4 on intel x86 processor
+  */
+ #if defined(SYS_UNIVEL)
+ /* #define _POSIX_SOURCE */
+ #define NTP_POSIX_SOURCE
+ #define HAVE_ATT_NICE
+ #define HAVE_READKMEM 
+ #define USE_PROTOTYPES
+ #undef HAVE_ATT_SETPGRP
+ #define UDP_WILDCARD_DELIVERY
+ #define HAVE_SIGNALED_IO
+ #define USE_TTY_SIGPOLL
+ #define USE_UDP_SIGPOLL
+ #define STREAM
+ #define STREAMS
+ #ifndef STREAMS_TLI
+ /*#define STREAMS_TLI*/
+ #endif
+ /* #define USE_STREAMS_DEVICE_FOR_IF_CONFIG */
+ #undef STEP_SLEW 		/* TWO step */
+ #define LOCK_PROCESS
+ #undef SYSV_TIMEOFDAY
+ #define SIZE_RETURNED_IN_BUFFER
+ #define	RETSIGTYPE void
+ #include <sys/types.h>
+ #include <netinet/in_systm.h>
+ #ifndef STR_SYSTEM
+ #define STR_SYSTEM "UNIX/Univel"
+ #endif
+ #endif
+ 
+ /*
   * DomainOS
   */
  #if defined(SYS_DOMAINOS)
*** xntpd/ntp_unixclock.c.orig	Thu Feb  3 00:20:20 1994
--- xntpd/ntp_unixclock.c	Fri Apr  8 14:40:55 1994
***************
*** 255,260 ****
--- 255,277 ----
  /* Define the following to be what the tick and tickadj variables are 
   * called in your kernel. 
   */
+ #if defined(SYS_UNIVEL)
+ /*
+  * clock_parms - return the local clock tickadj and tick parameters
+  *
+  * The values set here were determined experimentally on a 486 system
+  * I'm not confident in them. - RAS
+  *
+  */
+ static void
+ clock_parms(tickadj, tick)
+ 	U_LONG *tickadj;
+ 	U_LONG *tick;
+ {
+ 	*tick = 10000;		/* microseconds */
+ 	*tickadj = 80;		/* microseconds */
+ }
+ #else /* SYS_UNIVEL */
  
  #if defined(SYS_AUX3) || defined(SYS_AUX2) || defined(SYS_SVR4) || defined(SYS_PTX)
  #define K_TICKADJ_NAME	"tickadj"
***************
*** 421,427 ****
  }
  #endif /* sgi */
  
- 
  #ifdef NOKMEM
  
  #ifndef HZ
--- 438,443 ----
***************
*** 571,573 ****
--- 587,590 ----
    *tick    = (U_LONG)txc.tick;
  }
  #endif /* SYS_LINUX */
+ #endif /* SYS_UNIVEL */
*** xntpd/ntpd.c.orig Wed Feb 16 22:09:35 1994
--- xntpd/ntpd.c  Fri Apr  8 16:35:57 1994
***************
*** 14,20 ****
  #include <sys/rtprio.h>
  #endif
  
! #if defined(SYS_SVR4)
  #include <termios.h>
  #endif
  
--- 14,20 ----
  #include <sys/rtprio.h>
  #endif
  
! #if defined(SYS_SVR4) || defined (SYS_UNIVEL)
  #include <termios.h>
  #endif

OpenPOWER on IntegriCloud