diff options
Diffstat (limited to 'contrib/xntpd/lib/machines.c')
| -rw-r--r-- | contrib/xntpd/lib/machines.c | 43 |
1 files changed, 43 insertions, 0 deletions
diff --git a/contrib/xntpd/lib/machines.c b/contrib/xntpd/lib/machines.c new file mode 100644 index 000000000000..63eb5ccd67a7 --- /dev/null +++ b/contrib/xntpd/lib/machines.c @@ -0,0 +1,43 @@ +/* machines.c - provide special support for peculiar architectures + * + * Real bummers unite ! + * + * $Id: machines.c,v 1.1.1.2 1994/02/03 22:04:12 wollman Exp $ + */ + +#include "ntp_stdlib.h" + +#ifdef SYS_PTX +#include <sys/types.h> +#include <sys/procstats.h> + +int +settimeofday(tvp) + struct timeval *tvp; +{ + return (stime(&tvp->tv_sec)); /* lie as bad as SysVR4 */ +} + +int +gettimeofday(tvp) + struct timeval *tvp; +{ + /* + * hi, this is Sequents sneak path to get to a clock + * this is also the most logical syscall for such a function + */ + return (get_process_stats(tvp, PS_SELF, (struct procstats *) 0, + (struct procstats *) 0)); +} +#endif + +#if !defined(NTP_POSIX_SOURCE) || defined(NTP_NEED_BOPS) +void +ntp_memset(a, x, c) + char *a; + int x, c; +{ + while (c-- > 0) + *a++ = x; +} +#endif /*POSIX*/ |
