#include <signal.h>
#include <setjmp.h>
+#ifndef NO_UNISTD
+#include <unistd.h>
+#endif
+
/* What happens here is not trivial.
The BSD_TIME code needs <sys/time.h> (for struct timeval).
The rest of the code needs only time_t, except some MS-DOS
static jmp_buf sleep_intr;
+/* ARGSUSED */
static void
sleep_catcher(sig)
- int sig;
+ int sig; /* Not used but required by interface */
{
longjmp(sleep_intr, 1);
}
object *args;
{
int secs;
- SIGTYPE (*sigsave)();
+ SIGTYPE (*sigsave)() = 0; /* Initialized to shut lint up */
if (!getintarg(args, &secs))
return NULL;
if (setjmp(sleep_intr)) {
struct tms t;
clock_t c;
object *tuple;
+ if (!getnoarg(args))
+ return NULL;
errno = 0;
c = times(&t);
if (c == (clock_t) -1) {