Commit | Line | Data |
dcf686c9 |
1 | #ifdef __cplusplus |
2 | extern "C" { |
3 | #endif |
4 | #include "EXTERN.h" |
5 | #include "perl.h" |
6 | #include "XSUB.h" |
7 | #ifdef WIN32 |
8 | #include <time.h> |
9 | #else |
10 | #include <sys/time.h> |
11 | #endif |
12 | #ifdef __cplusplus |
13 | } |
14 | #endif |
15 | |
3c72ec00 |
16 | static IV |
17 | constant(char *name, int arg) |
18 | { |
19 | errno = 0; |
20 | switch (*name) { |
21 | case 'I': |
22 | if (strEQ(name, "ITIMER_REAL")) |
23 | #ifdef ITIMER_REAL |
24 | return ITIMER_REAL; |
25 | #else |
26 | goto not_there; |
27 | #endif |
28 | if (strEQ(name, "ITIMER_REALPROF")) |
29 | #ifdef ITIMER_REALPROF |
30 | return ITIMER_REALPROF; |
31 | #else |
32 | goto not_there; |
33 | #endif |
34 | if (strEQ(name, "ITIMER_VIRTUAL")) |
35 | #ifdef ITIMER_VIRTUAL |
36 | return ITIMER_VIRTUAL; |
37 | #else |
38 | goto not_there; |
39 | #endif |
40 | if (strEQ(name, "ITIMER_PROF")) |
41 | #ifdef ITIMER_PROF |
42 | return ITIMER_PROF; |
43 | #else |
44 | goto not_there; |
45 | #endif |
46 | break; |
47 | } |
48 | errno = EINVAL; |
49 | return 0; |
50 | |
51 | not_there: |
52 | errno = ENOENT; |
53 | return 0; |
54 | } |
55 | |
dcf686c9 |
56 | #if !defined(HAS_GETTIMEOFDAY) && defined(WIN32) |
57 | #define HAS_GETTIMEOFDAY |
58 | |
59 | /* shows up in winsock.h? |
60 | struct timeval { |
61 | long tv_sec; |
62 | long tv_usec; |
63 | } |
64 | */ |
65 | |
eb1a5092 |
66 | typedef union { |
67 | unsigned __int64 ft_i64; |
68 | FILETIME ft_val; |
69 | } FT_t; |
70 | |
71 | /* Number of 100 nanosecond units from 1/1/1601 to 1/1/1970 */ |
72 | #define EPOCH_BIAS 116444736000000000i64 |
73 | |
74 | /* NOTE: This does not compute the timezone info (doing so can be expensive, |
75 | * and appears to be unsupported even by glibc) */ |
dcf686c9 |
76 | int |
eb1a5092 |
77 | gettimeofday (struct timeval *tp, void *not_used) |
dcf686c9 |
78 | { |
eb1a5092 |
79 | FT_t ft; |
80 | |
81 | /* this returns time in 100-nanosecond units (i.e. tens of usecs) */ |
82 | GetSystemTimeAsFileTime(&ft.ft_val); |
83 | |
84 | /* seconds since epoch */ |
85 | tp->tv_sec = (long)((ft.ft_i64 - EPOCH_BIAS) / 10000000i64); |
86 | |
87 | /* microseconds remaining */ |
88 | tp->tv_usec = (long)((ft.ft_i64 / 10i64) % 1000000i64); |
89 | |
90 | return 0; |
dcf686c9 |
91 | } |
92 | #endif |
93 | |
94 | #if !defined(HAS_GETTIMEOFDAY) && defined(VMS) |
95 | #define HAS_GETTIMEOFDAY |
96 | |
9b6f56ad |
97 | #include <lnmdef.h> |
dcf686c9 |
98 | #include <time.h> /* gettimeofday */ |
99 | #include <stdlib.h> /* qdiv */ |
100 | #include <starlet.h> /* sys$gettim */ |
101 | #include <descrip.h> |
3785778e |
102 | #ifdef __VAX |
103 | #include <lib$routines.h> /* lib$ediv() */ |
104 | #endif |
dcf686c9 |
105 | |
106 | /* |
107 | VMS binary time is expressed in 100 nano-seconds since |
108 | system base time which is 17-NOV-1858 00:00:00.00 |
109 | */ |
110 | |
111 | #define DIV_100NS_TO_SECS 10000000L |
112 | #define DIV_100NS_TO_USECS 10L |
113 | |
114 | /* |
115 | gettimeofday is supposed to return times since the epoch |
116 | so need to determine this in terms of VMS base time |
117 | */ |
118 | static $DESCRIPTOR(dscepoch,"01-JAN-1970 00:00:00.00"); |
119 | |
5cdb7193 |
120 | #ifdef __VAX |
3785778e |
121 | static long base_adjust[2]={0L,0L}; |
5cdb7193 |
122 | #else |
dcf686c9 |
123 | static __int64 base_adjust=0; |
5cdb7193 |
124 | #endif |
dcf686c9 |
125 | |
9b6f56ad |
126 | /* |
127 | |
128 | If we don't have gettimeofday, then likely we are on a VMS machine that |
129 | operates on local time rather than UTC...so we have to zone-adjust. |
130 | This code gleefully swiped from VMS.C |
131 | |
132 | */ |
133 | /* method used to handle UTC conversions: |
134 | * 1 == CRTL gmtime(); 2 == SYS$TIMEZONE_DIFFERENTIAL; 3 == no correction |
135 | */ |
136 | static int gmtime_emulation_type; |
137 | /* number of secs to add to UTC POSIX-style time to get local time */ |
138 | static long int utc_offset_secs; |
139 | static struct dsc$descriptor_s fildevdsc = |
140 | { 12, DSC$K_DTYPE_T, DSC$K_CLASS_S, "LNM$FILE_DEV" }; |
141 | static struct dsc$descriptor_s *fildev[] = { &fildevdsc, NULL }; |
142 | |
143 | static time_t toutc_dst(time_t loc) { |
144 | struct tm *rsltmp; |
145 | |
146 | if ((rsltmp = localtime(&loc)) == NULL) return -1; |
147 | loc -= utc_offset_secs; |
148 | if (rsltmp->tm_isdst) loc -= 3600; |
149 | return loc; |
150 | } |
151 | |
152 | static time_t toloc_dst(time_t utc) { |
153 | struct tm *rsltmp; |
154 | |
155 | utc += utc_offset_secs; |
156 | if ((rsltmp = localtime(&utc)) == NULL) return -1; |
157 | if (rsltmp->tm_isdst) utc += 3600; |
158 | return utc; |
159 | } |
160 | |
161 | #define _toutc(secs) ((secs) == (time_t) -1 ? (time_t) -1 : \ |
162 | ((gmtime_emulation_type || timezone_setup()), \ |
163 | (gmtime_emulation_type == 1 ? toutc_dst(secs) : \ |
164 | ((secs) - utc_offset_secs)))) |
165 | |
166 | #define _toloc(secs) ((secs) == (time_t) -1 ? (time_t) -1 : \ |
167 | ((gmtime_emulation_type || timezone_setup()), \ |
168 | (gmtime_emulation_type == 1 ? toloc_dst(secs) : \ |
169 | ((secs) + utc_offset_secs)))) |
170 | |
171 | static int |
172 | timezone_setup(void) |
173 | { |
174 | struct tm *tm_p; |
175 | |
176 | if (gmtime_emulation_type == 0) { |
177 | int dstnow; |
178 | time_t base = 15 * 86400; /* 15jan71; to avoid month/year ends between */ |
179 | /* results of calls to gmtime() and localtime() */ |
180 | /* for same &base */ |
181 | |
182 | gmtime_emulation_type++; |
183 | if ((tm_p = gmtime(&base)) == NULL) { /* CRTL gmtime() is a fake */ |
184 | char off[LNM$C_NAMLENGTH+1];; |
185 | |
186 | gmtime_emulation_type++; |
187 | if (!Perl_vmstrnenv("SYS$TIMEZONE_DIFFERENTIAL",off,0,fildev,0)) { |
188 | gmtime_emulation_type++; |
189 | utc_offset_secs = 0; |
190 | Perl_warn(aTHX_ "no UTC offset information; assuming local time is UTC"); |
191 | } |
192 | else { utc_offset_secs = atol(off); } |
193 | } |
194 | else { /* We've got a working gmtime() */ |
195 | struct tm gmt, local; |
196 | |
197 | gmt = *tm_p; |
198 | tm_p = localtime(&base); |
199 | local = *tm_p; |
200 | utc_offset_secs = (local.tm_mday - gmt.tm_mday) * 86400; |
201 | utc_offset_secs += (local.tm_hour - gmt.tm_hour) * 3600; |
202 | utc_offset_secs += (local.tm_min - gmt.tm_min) * 60; |
203 | utc_offset_secs += (local.tm_sec - gmt.tm_sec); |
204 | } |
205 | } |
206 | return 1; |
207 | } |
208 | |
209 | |
dcf686c9 |
210 | int |
211 | gettimeofday (struct timeval *tp, void *tpz) |
212 | { |
213 | long ret; |
5cdb7193 |
214 | #ifdef __VAX |
3785778e |
215 | long quad[2]; |
216 | long quad1[2]; |
217 | long div_100ns_to_secs; |
218 | long div_100ns_to_usecs; |
219 | long quo,rem; |
220 | long quo1,rem1; |
5cdb7193 |
221 | #else |
dcf686c9 |
222 | __int64 quad; |
223 | __qdiv_t ans1,ans2; |
5cdb7193 |
224 | #endif |
dcf686c9 |
225 | /* |
226 | In case of error, tv_usec = 0 and tv_sec = VMS condition code. |
227 | The return from function is also set to -1. |
228 | This is not exactly as per the manual page. |
229 | */ |
230 | |
231 | tp->tv_usec = 0; |
232 | |
3785778e |
233 | #ifdef __VAX |
234 | if (base_adjust[0]==0 && base_adjust[1]==0) { |
235 | #else |
dcf686c9 |
236 | if (base_adjust==0) { /* Need to determine epoch adjustment */ |
3785778e |
237 | #endif |
dcf686c9 |
238 | ret=sys$bintim(&dscepoch,&base_adjust); |
239 | if (1 != (ret &&1)) { |
240 | tp->tv_sec = ret; |
241 | return -1; |
242 | } |
243 | } |
244 | |
245 | ret=sys$gettim(&quad); /* Get VMS system time */ |
246 | if ((1 && ret) == 1) { |
5cdb7193 |
247 | #ifdef __VAX |
3785778e |
248 | quad[0] -= base_adjust[0]; /* convert to epoch offset */ |
249 | quad[1] -= base_adjust[1]; /* convert 2nd half of quadword */ |
250 | div_100ns_to_secs = DIV_100NS_TO_SECS; |
251 | div_100ns_to_usecs = DIV_100NS_TO_USECS; |
252 | lib$ediv(&div_100ns_to_secs,&quad,&quo,&rem); |
253 | quad1[0] = rem; |
254 | quad1[1] = 0L; |
255 | lib$ediv(&div_100ns_to_usecs,&quad1,&quo1,&rem1); |
256 | tp->tv_sec = quo; /* Whole seconds */ |
257 | tp->tv_usec = quo1; /* Micro-seconds */ |
5cdb7193 |
258 | #else |
3785778e |
259 | quad -= base_adjust; /* convert to epoch offset */ |
dcf686c9 |
260 | ans1=qdiv(quad,DIV_100NS_TO_SECS); |
261 | ans2=qdiv(ans1.rem,DIV_100NS_TO_USECS); |
262 | tp->tv_sec = ans1.quot; /* Whole seconds */ |
263 | tp->tv_usec = ans2.quot; /* Micro-seconds */ |
3785778e |
264 | #endif |
dcf686c9 |
265 | } else { |
266 | tp->tv_sec = ret; |
267 | return -1; |
268 | } |
9b6f56ad |
269 | # ifdef VMSISH_TIME |
270 | # ifdef RTL_USES_UTC |
271 | if (VMSISH_TIME) tp->tv_sec = _toloc(tp->tv_sec); |
272 | # else |
273 | if (!VMSISH_TIME) tp->tv_sec = _toutc(tp->tv_sec); |
274 | # endif |
275 | # endif |
dcf686c9 |
276 | return 0; |
277 | } |
278 | #endif |
279 | |
280 | #if !defined(HAS_USLEEP) && defined(HAS_SELECT) |
281 | #ifndef SELECT_IS_BROKEN |
282 | #define HAS_USLEEP |
283 | #define usleep hrt_usleep /* could conflict with ncurses for static build */ |
284 | |
285 | void |
286 | hrt_usleep(unsigned long usec) |
287 | { |
288 | struct timeval tv; |
289 | tv.tv_sec = 0; |
290 | tv.tv_usec = usec; |
291 | select(0, (Select_fd_set_t)NULL, (Select_fd_set_t)NULL, |
292 | (Select_fd_set_t)NULL, &tv); |
293 | } |
294 | #endif |
295 | #endif |
296 | |
297 | #if !defined(HAS_USLEEP) && defined(WIN32) |
298 | #define HAS_USLEEP |
299 | #define usleep hrt_usleep /* could conflict with ncurses for static build */ |
300 | |
301 | void |
302 | hrt_usleep(unsigned long usec) |
303 | { |
304 | long msec; |
305 | msec = usec / 1000; |
306 | Sleep (msec); |
307 | } |
308 | #endif |
309 | |
310 | |
311 | #if !defined(HAS_UALARM) && defined(HAS_SETITIMER) |
312 | #define HAS_UALARM |
313 | #define ualarm hrt_ualarm /* could conflict with ncurses for static build */ |
314 | |
315 | int |
316 | hrt_ualarm(int usec, int interval) |
317 | { |
318 | struct itimerval itv; |
319 | itv.it_value.tv_sec = usec / 1000000; |
320 | itv.it_value.tv_usec = usec % 1000000; |
321 | itv.it_interval.tv_sec = interval / 1000000; |
322 | itv.it_interval.tv_usec = interval % 1000000; |
323 | return setitimer(ITIMER_REAL, &itv, 0); |
324 | } |
325 | #endif |
326 | |
327 | #ifdef HAS_GETTIMEOFDAY |
328 | |
a2e20b18 |
329 | static int |
dcf686c9 |
330 | myU2time(UV *ret) |
331 | { |
332 | struct timeval Tp; |
333 | int status; |
334 | status = gettimeofday (&Tp, NULL); |
335 | ret[0] = Tp.tv_sec; |
336 | ret[1] = Tp.tv_usec; |
a2e20b18 |
337 | return status; |
dcf686c9 |
338 | } |
339 | |
3c72ec00 |
340 | static NV |
dcf686c9 |
341 | myNVtime() |
342 | { |
343 | struct timeval Tp; |
344 | int status; |
345 | status = gettimeofday (&Tp, NULL); |
a2e20b18 |
346 | return status == 0 ? Tp.tv_sec + (Tp.tv_usec / 1000000.) : -1.0; |
dcf686c9 |
347 | } |
348 | |
349 | #endif |
350 | |
351 | MODULE = Time::HiRes PACKAGE = Time::HiRes |
352 | |
353 | PROTOTYPES: ENABLE |
354 | |
355 | BOOT: |
dcf686c9 |
356 | #ifdef HAS_GETTIMEOFDAY |
a2e20b18 |
357 | { |
358 | UV auv[2]; |
359 | hv_store(PL_modglobal, "Time::NVtime", 12, newSViv((IV) myNVtime()), 0); |
360 | if (myU2time(auv) == 0) |
361 | hv_store(PL_modglobal, "Time::U2time", 12, newSViv((IV) auv[0]), 0); |
362 | } |
dcf686c9 |
363 | #endif |
dcf686c9 |
364 | |
3c72ec00 |
365 | IV |
366 | constant(name, arg) |
367 | char * name |
368 | int arg |
369 | |
52d72fba |
370 | #if defined(HAS_USLEEP) && defined(HAS_GETTIMEOFDAY) |
dcf686c9 |
371 | |
92bc48ca |
372 | NV |
dcf686c9 |
373 | usleep(useconds) |
92bc48ca |
374 | NV useconds |
52d72fba |
375 | PREINIT: |
376 | struct timeval Ta, Tb; |
377 | CODE: |
378 | gettimeofday(&Ta, NULL); |
379 | if (items > 0) { |
92bc48ca |
380 | if (useconds > 1E6) { |
381 | IV seconds = (IV) (useconds / 1E6); |
382 | sleep(seconds); |
383 | useconds -= 1E6 * seconds; |
384 | } |
385 | usleep((UV)useconds); |
52d72fba |
386 | } else |
387 | PerlProc_pause(); |
388 | gettimeofday(&Tb, NULL); |
92bc48ca |
389 | #if 0 |
390 | printf("[%ld %ld] [%ld %ld]\n", Tb.tv_sec, Tb.tv_usec, Ta.tv_sec, Ta.tv_usec); |
391 | #endif |
392 | RETVAL = 1E6*(Tb.tv_sec-Ta.tv_sec)+(NV)((IV)Tb.tv_usec-(IV)Ta.tv_usec); |
dcf686c9 |
393 | |
52d72fba |
394 | OUTPUT: |
395 | RETVAL |
396 | |
397 | NV |
f9d00e57 |
398 | sleep(...) |
52d72fba |
399 | PREINIT: |
400 | struct timeval Ta, Tb; |
dcf686c9 |
401 | CODE: |
52d72fba |
402 | gettimeofday(&Ta, NULL); |
92bc48ca |
403 | if (items > 0) { |
404 | NV seconds = SvNV(ST(0)); |
405 | IV useconds = 1E6 * (seconds - (IV)seconds); |
406 | sleep(seconds); |
407 | usleep(useconds); |
408 | } else |
f9d00e57 |
409 | PerlProc_pause(); |
52d72fba |
410 | gettimeofday(&Tb, NULL); |
92bc48ca |
411 | #if 0 |
412 | printf("[%ld %ld] [%ld %ld]\n", Tb.tv_sec, Tb.tv_usec, Ta.tv_sec, Ta.tv_usec); |
413 | #endif |
52d72fba |
414 | RETVAL = (NV)(Tb.tv_sec-Ta.tv_sec)+0.000001*(NV)(Tb.tv_usec-Ta.tv_usec); |
415 | |
416 | OUTPUT: |
417 | RETVAL |
dcf686c9 |
418 | |
419 | #endif |
420 | |
421 | #ifdef HAS_UALARM |
422 | |
423 | int |
424 | ualarm(useconds,interval=0) |
425 | int useconds |
426 | int interval |
427 | |
428 | int |
429 | alarm(fseconds,finterval=0) |
3c72ec00 |
430 | NV fseconds |
431 | NV finterval |
dcf686c9 |
432 | PREINIT: |
433 | int useconds, uinterval; |
434 | CODE: |
435 | useconds = fseconds * 1000000; |
436 | uinterval = finterval * 1000000; |
437 | RETVAL = ualarm (useconds, uinterval); |
438 | |
c6c619a9 |
439 | OUTPUT: |
440 | RETVAL |
441 | |
dcf686c9 |
442 | #endif |
443 | |
444 | #ifdef HAS_GETTIMEOFDAY |
db835671 |
445 | # ifdef MACOS_TRADITIONAL /* fix epoch TZ and use unsigned time_t */ |
446 | void |
447 | gettimeofday() |
448 | PREINIT: |
449 | struct timeval Tp; |
450 | struct timezone Tz; |
451 | PPCODE: |
452 | int status; |
453 | status = gettimeofday (&Tp, &Tz); |
454 | Tp.tv_sec += Tz.tz_minuteswest * 60; /* adjust for TZ */ |
455 | |
456 | if (GIMME == G_ARRAY) { |
457 | EXTEND(sp, 2); |
458 | /* Mac OS (Classic) has unsigned time_t */ |
459 | PUSHs(sv_2mortal(newSVuv(Tp.tv_sec))); |
460 | PUSHs(sv_2mortal(newSViv(Tp.tv_usec))); |
461 | } else { |
462 | EXTEND(sp, 1); |
463 | PUSHs(sv_2mortal(newSVnv(Tp.tv_sec + (Tp.tv_usec / 1000000.0)))); |
464 | } |
465 | |
466 | NV |
467 | time() |
468 | PREINIT: |
469 | struct timeval Tp; |
470 | struct timezone Tz; |
471 | CODE: |
472 | int status; |
473 | status = gettimeofday (&Tp, &Tz); |
474 | Tp.tv_sec += Tz.tz_minuteswest * 60; /* adjust for TZ */ |
475 | RETVAL = Tp.tv_sec + (Tp.tv_usec / 1000000.0); |
476 | OUTPUT: |
477 | RETVAL |
dcf686c9 |
478 | |
db835671 |
479 | # else /* MACOS_TRADITIONAL */ |
dcf686c9 |
480 | void |
481 | gettimeofday() |
482 | PREINIT: |
483 | struct timeval Tp; |
484 | PPCODE: |
485 | int status; |
486 | status = gettimeofday (&Tp, NULL); |
487 | if (GIMME == G_ARRAY) { |
488 | EXTEND(sp, 2); |
489 | PUSHs(sv_2mortal(newSViv(Tp.tv_sec))); |
490 | PUSHs(sv_2mortal(newSViv(Tp.tv_usec))); |
491 | } else { |
492 | EXTEND(sp, 1); |
493 | PUSHs(sv_2mortal(newSVnv(Tp.tv_sec + (Tp.tv_usec / 1000000.0)))); |
494 | } |
495 | |
3c72ec00 |
496 | NV |
dcf686c9 |
497 | time() |
498 | PREINIT: |
499 | struct timeval Tp; |
500 | CODE: |
501 | int status; |
502 | status = gettimeofday (&Tp, NULL); |
503 | RETVAL = Tp.tv_sec + (Tp.tv_usec / 1000000.); |
504 | OUTPUT: |
505 | RETVAL |
506 | |
db835671 |
507 | # endif /* MACOS_TRADITIONAL */ |
dcf686c9 |
508 | #endif |
509 | |
3c72ec00 |
510 | #if defined(HAS_GETITIMER) && defined(HAS_SETITIMER) |
511 | |
512 | #define TV2NV(tv) ((NV)((tv).tv_sec) + 0.000001 * (NV)((tv).tv_usec)) |
513 | |
514 | void |
515 | setitimer(which, seconds, interval = 0) |
516 | int which |
517 | NV seconds |
518 | NV interval |
519 | PREINIT: |
520 | struct itimerval newit; |
521 | struct itimerval oldit; |
522 | PPCODE: |
523 | newit.it_value.tv_sec = seconds; |
524 | newit.it_value.tv_usec = |
525 | (seconds - (NV)newit.it_value.tv_sec) * 1000000.0; |
526 | newit.it_interval.tv_sec = interval; |
527 | newit.it_interval.tv_usec = |
528 | (interval - (NV)newit.it_interval.tv_sec) * 1000000.0; |
529 | if (setitimer(which, &newit, &oldit) == 0) { |
530 | EXTEND(sp, 1); |
531 | PUSHs(sv_2mortal(newSVnv(TV2NV(oldit.it_value)))); |
532 | if (GIMME == G_ARRAY) { |
533 | EXTEND(sp, 1); |
534 | PUSHs(sv_2mortal(newSVnv(TV2NV(oldit.it_interval)))); |
535 | } |
536 | } |
537 | |
538 | void |
539 | getitimer(which) |
540 | int which |
541 | PREINIT: |
542 | struct itimerval nowit; |
543 | PPCODE: |
544 | if (getitimer(which, &nowit) == 0) { |
545 | EXTEND(sp, 1); |
546 | PUSHs(sv_2mortal(newSVnv(TV2NV(nowit.it_value)))); |
547 | if (GIMME == G_ARRAY) { |
548 | EXTEND(sp, 1); |
549 | PUSHs(sv_2mortal(newSVnv(TV2NV(nowit.it_interval)))); |
550 | } |
551 | } |
552 | |
553 | #endif |
554 | |
dcf686c9 |
555 | # $Id: HiRes.xs,v 1.11 1999/03/16 02:27:38 wegscd Exp wegscd $ |
556 | |
557 | # $Log: HiRes.xs,v $ |
558 | # Revision 1.11 1999/03/16 02:27:38 wegscd |
559 | # Add U2time, NVtime. Fix symbols for static link. |
560 | # |
561 | # Revision 1.10 1998/09/30 02:36:25 wegscd |
562 | # Add VMS changes. |
563 | # |
564 | # Revision 1.9 1998/07/07 02:42:06 wegscd |
565 | # Win32 usleep() |
566 | # |
567 | # Revision 1.8 1998/07/02 01:47:26 wegscd |
568 | # Add Win32 code for gettimeofday. |
569 | # |
570 | # Revision 1.7 1997/11/13 02:08:12 wegscd |
571 | # Add missing EXTEND in gettimeofday() scalar code. |
572 | # |
573 | # Revision 1.6 1997/11/11 02:32:35 wegscd |
574 | # Do something useful when calling gettimeofday() in a scalar context. |
575 | # The patch is courtesy of Gisle Aas. |
576 | # |
577 | # Revision 1.5 1997/11/06 03:10:47 wegscd |
578 | # Fake ualarm() if we have setitimer. |
579 | # |
580 | # Revision 1.4 1997/11/05 05:41:23 wegscd |
581 | # Turn prototypes ON (suggested by Gisle Aas) |
582 | # |
583 | # Revision 1.3 1997/10/13 20:56:15 wegscd |
584 | # Add PROTOTYPES: DISABLE |
585 | # |
586 | # Revision 1.2 1997/05/23 01:01:38 wegscd |
587 | # Conditional compilation, depending on what the OS gives us. |
588 | # |
589 | # Revision 1.1 1996/09/03 18:26:35 wegscd |
590 | # Initial revision |
591 | # |
592 | # |