/*
* Copyright 2000, International Business Machines Corporation and others.
* All Rights Reserved.
- *
+ *
* This software has been released under the terms of the IBM Public
* License. For details, see the LICENSE file in the top-level source
* directory or online at http://www.openafs.org/dl/license10.html
/* See rx_clock.h for calling conventions */
#include <afsconfig.h>
-#ifdef KERNEL
-#include "afs/param.h"
-#else
#include <afs/param.h>
-#endif
#ifdef AFS_SUN59_ENV
#include <sys/time_impl.h>
#endif
-
#ifdef KERNEL
-#ifndef UKERNEL
-#include "rx/rx_clock.h"
-#include "h/types.h"
-#include "h/time.h"
-#else /* !UKERNEL */
-#include "afs/sysincludes.h"
-#include "afsincludes.h"
-#include "rx/rx.h"
-#include "rx/rx_clock.h"
-#endif /* !UKERNEL */
+# ifndef UKERNEL
+# include "h/types.h"
+# include "h/time.h"
+# else /* !UKERNEL */
+# include "afs/sysincludes.h"
+# include "afsincludes.h"
+# endif /* !UKERNEL */
#else /* KERNEL */
-#include <sys/time.h>
-#ifdef HAVE_SIGNAL_H
-#include <signal.h>
+# include <roken.h>
#endif
-#include <stdio.h>
-#include <errno.h>
-#include <stdlib.h>
-#include <assert.h>
+
+#ifndef AFS_PTHREAD_ENV
+
#include "rx.h"
#include "rx_clock.h"
-#endif
#if !defined(AFS_USE_GETTIMEOFDAY)
/*use this package only if gettimeofday is much much costlier than getitime */
signal(SIGALRM, SIG_IGN);
if (setitimer(ITIMER_REAL, &itimer, &otimer) != 0) {
- fprintf(stderr, "clock: could not set interval timer; \
- aborted(errno=%d)\n", errno);
- fflush(stderr);
- assert(0);
+ osi_Panic("clock: could not set interval timer; aborted(errno=%d)\n",
+ errno);
}
if (relclock_epoch.usec + startvalue.usec >= otimer.it_value.tv_usec) {
relclock_epoch.sec = relclock_epoch.sec +
#endif /* KERNEL */
#endif /* AFS_USE_GETTIMEOFDAY */
+#endif /* !AFS_PTHREAD_ENV */