summaryrefslogtreecommitdiff
path: root/lib/libc/gen
diff options
context:
space:
mode:
authormycroft <mycroft@NetBSD.org>1995-03-21 13:44:40 +0000
committermycroft <mycroft@NetBSD.org>1995-03-21 13:44:40 +0000
commitd53dfd3d3ce8b979b66ef8b030ddebc7acfff9e9 (patch)
tree9dd12b0e372feb451b82355de4cd84471e625272 /lib/libc/gen
parentf75ba16b09b29124ef23bc3d3e8e96cdf5db61a1 (diff)
Minor changes.
Diffstat (limited to 'lib/libc/gen')
-rw-r--r--lib/libc/gen/sleep.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/lib/libc/gen/sleep.c b/lib/libc/gen/sleep.c
index 5c53219f0f8..bee2fb4524c 100644
--- a/lib/libc/gen/sleep.c
+++ b/lib/libc/gen/sleep.c
@@ -1,4 +1,4 @@
-/* $NetBSD: sleep.c,v 1.8 1995/03/21 13:36:46 mycroft Exp $ */
+/* $NetBSD: sleep.c,v 1.9 1995/03/21 13:44:40 mycroft Exp $ */
/*
* Copyright (c) 1989, 1993
@@ -37,7 +37,7 @@
#if 0
static char sccsid[] = "@(#)sleep.c 8.1 (Berkeley) 6/4/93";
#else
-static char rcsid[] = "$NetBSD: sleep.c,v 1.8 1995/03/21 13:36:46 mycroft Exp $";
+static char rcsid[] = "$NetBSD: sleep.c,v 1.9 1995/03/21 13:44:40 mycroft Exp $";
#endif
#endif /* LIBC_SCCS and not lint */
@@ -75,7 +75,7 @@ sleep(seconds)
if (timerisset(&oitv.it_value)) {
if (timercmp(&oitv.it_value, &itv.it_value, >)) {
- oitv.it_value.tv_sec -= itv.it_value.tv_sec;
+ timersub(&oitv.it_value, &itv.it_value, &oitv.it_value);
} else {
/*
* The existing timer was scheduled to fire
@@ -97,7 +97,7 @@ sleep(seconds)
}
}
- (void) sigsuspend (&oset);
+ (void) sigsuspend(&oset);
sigaction(SIGALRM, &oact, NULL);
sigprocmask(SIG_SETMASK, &oset, NULL);
@@ -113,4 +113,5 @@ sleep(seconds)
static void
sleephandler()
{
+
}