From f51ea2882cdf1fe2aa2341740044f5195b3ae9a9 Mon Sep 17 00:00:00 2001 From: kleink Date: Fri, 14 Jul 2000 07:36:32 +0000 Subject: [PATCH] KNF. --- lib/libc/sys/timer_create.c | 5 +++-- lib/libc/sys/timer_delete.c | 5 +++-- lib/libc/sys/timer_getoverrun.c | 5 +++-- lib/libc/sys/timer_gettime.c | 5 +++-- lib/libc/sys/timer_settime.c | 5 +++-- 5 files changed, 15 insertions(+), 10 deletions(-) diff --git a/lib/libc/sys/timer_create.c b/lib/libc/sys/timer_create.c index 220991c97678..c2aad539607c 100644 --- a/lib/libc/sys/timer_create.c +++ b/lib/libc/sys/timer_create.c @@ -1,8 +1,8 @@ -/* $NetBSD: timer_create.c,v 1.3 1998/11/15 17:23:00 christos Exp $ */ +/* $NetBSD: timer_create.c,v 1.4 2000/07/14 07:36:32 kleink Exp $ */ +#include #include #include -#include /* ARGSUSED */ int @@ -11,6 +11,7 @@ timer_create(clock_id, evp, timerid) struct sigevent *evp; timer_t *timerid; { + errno = ENOSYS; return -1; } diff --git a/lib/libc/sys/timer_delete.c b/lib/libc/sys/timer_delete.c index 02fff83ccca9..a0bd1d1ce745 100644 --- a/lib/libc/sys/timer_delete.c +++ b/lib/libc/sys/timer_delete.c @@ -1,14 +1,15 @@ -/* $NetBSD: timer_delete.c,v 1.3 1998/11/15 17:23:00 christos Exp $ */ +/* $NetBSD: timer_delete.c,v 1.4 2000/07/14 07:36:32 kleink Exp $ */ +#include #include #include -#include /* ARGSUSED */ int timer_delete(timerid) timer_t timerid; { + errno = ENOSYS; return -1; } diff --git a/lib/libc/sys/timer_getoverrun.c b/lib/libc/sys/timer_getoverrun.c index 2848e5214400..8c613def1aa3 100644 --- a/lib/libc/sys/timer_getoverrun.c +++ b/lib/libc/sys/timer_getoverrun.c @@ -1,14 +1,15 @@ -/* $NetBSD: timer_getoverrun.c,v 1.3 1998/11/15 17:23:00 christos Exp $ */ +/* $NetBSD: timer_getoverrun.c,v 1.4 2000/07/14 07:36:32 kleink Exp $ */ +#include #include #include -#include /* ARGSUSED */ int timer_getoverrun(timerid) timer_t timerid; { + errno = ENOSYS; return -1; } diff --git a/lib/libc/sys/timer_gettime.c b/lib/libc/sys/timer_gettime.c index 693cc184636a..54338b98379e 100644 --- a/lib/libc/sys/timer_gettime.c +++ b/lib/libc/sys/timer_gettime.c @@ -1,8 +1,8 @@ -/* $NetBSD: timer_gettime.c,v 1.3 1998/11/15 17:23:00 christos Exp $ */ +/* $NetBSD: timer_gettime.c,v 1.4 2000/07/14 07:36:32 kleink Exp $ */ +#include #include #include -#include /* ARGSUSED */ int @@ -10,6 +10,7 @@ timer_gettime(timerid, value) timer_t timerid; struct itimerspec *value; { + errno = ENOSYS; return -1; } diff --git a/lib/libc/sys/timer_settime.c b/lib/libc/sys/timer_settime.c index d01181901c7e..d6f8bfb09d37 100644 --- a/lib/libc/sys/timer_settime.c +++ b/lib/libc/sys/timer_settime.c @@ -1,8 +1,8 @@ -/* $NetBSD: timer_settime.c,v 1.3 1998/11/15 17:23:00 christos Exp $ */ +/* $NetBSD: timer_settime.c,v 1.4 2000/07/14 07:36:32 kleink Exp $ */ +#include #include #include -#include /* ARGSUSED */ int @@ -12,6 +12,7 @@ timer_settime(timerid, flags, value, ovalue) const struct itimerspec *value; struct itimerspec *ovalue; { + errno = ENOSYS; return -1; }