diff options
| author | wiz <wiz@NetBSD.org> | 2002-05-26 16:53:30 +0000 |
|---|---|---|
| committer | wiz <wiz@NetBSD.org> | 2002-05-26 16:53:30 +0000 |
| commit | 143cf52f816688c8d023c5b9c414f4eaaa48ce41 (patch) | |
| tree | 1bb8cc565cf51c5154bc1f38b365db8d24b593b0 /lib/libc/sys | |
| parent | 738d04eceea0a2a1ee9416606206f3d66ed21960 (diff) | |
__STDC__ is always defined on NetBSD.
Diffstat (limited to 'lib/libc/sys')
| -rw-r--r-- | lib/libc/sys/Lint___syscall.c | 14 | ||||
| -rw-r--r-- | lib/libc/sys/Lint_syscall.c | 14 | ||||
| -rw-r--r-- | lib/libc/sys/__semctl13.c | 27 | ||||
| -rw-r--r-- | lib/libc/sys/semctl.c | 14 |
4 files changed, 13 insertions, 56 deletions
diff --git a/lib/libc/sys/Lint___syscall.c b/lib/libc/sys/Lint___syscall.c index e49a0ae5870..d474949d5d4 100644 --- a/lib/libc/sys/Lint___syscall.c +++ b/lib/libc/sys/Lint___syscall.c @@ -1,26 +1,16 @@ -/* $NetBSD: Lint___syscall.c,v 1.1 2000/12/10 21:27:38 mycroft Exp $ */ +/* $NetBSD: Lint___syscall.c,v 1.2 2002/05/26 16:53:30 wiz Exp $ */ /* * This file placed in the public domain. * Chris Demetriou, November 5, 1997. */ -#include <unistd.h> -#ifdef __STDC__ #include <stdarg.h> -#else -#include <varargs.h> -#endif +#include <unistd.h> /*ARGSUSED*/ quad_t -#ifdef __STDC__ __syscall(quad_t arg1, ...) -#else -__syscall(arg1, va_alist) - quad_t arg1; - va_dcl -#endif { return (0); } diff --git a/lib/libc/sys/Lint_syscall.c b/lib/libc/sys/Lint_syscall.c index a0d1990133a..69ebf58aed8 100644 --- a/lib/libc/sys/Lint_syscall.c +++ b/lib/libc/sys/Lint_syscall.c @@ -1,26 +1,16 @@ -/* $NetBSD: Lint_syscall.c,v 1.2 2000/06/14 06:49:10 cgd Exp $ */ +/* $NetBSD: Lint_syscall.c,v 1.3 2002/05/26 16:53:30 wiz Exp $ */ /* * This file placed in the public domain. * Chris Demetriou, November 5, 1997. */ -#include <unistd.h> -#ifdef __STDC__ #include <stdarg.h> -#else -#include <varargs.h> -#endif +#include <unistd.h> /*ARGSUSED*/ int -#ifdef __STDC__ syscall(int arg1, ...) -#else -syscall(arg1, va_alist) - int arg1; - va_dcl -#endif { return (0); } diff --git a/lib/libc/sys/__semctl13.c b/lib/libc/sys/__semctl13.c index 223f80097d6..6d74e818439 100644 --- a/lib/libc/sys/__semctl13.c +++ b/lib/libc/sys/__semctl13.c @@ -1,4 +1,4 @@ -/* $NetBSD: __semctl13.c,v 1.3 2002/01/03 16:13:11 tron Exp $ */ +/* $NetBSD: __semctl13.c,v 1.4 2002/05/26 16:53:31 wiz Exp $ */ /*- * Copyright (c) 2000 The NetBSD Foundation, Inc. @@ -37,43 +37,26 @@ */ #include <sys/cdefs.h> #if defined(LIBC_SCCS) && !defined(lint) -__RCSID("$NetBSD: __semctl13.c,v 1.3 2002/01/03 16:13:11 tron Exp $"); +__RCSID("$NetBSD: __semctl13.c,v 1.4 2002/05/26 16:53:31 wiz Exp $"); #endif /* LIBC_SCCS and not lint */ #include <sys/types.h> #include <sys/ipc.h> #include <sys/sem.h> -#if __STDC__ #include <stdarg.h> -#else -#include <varargs.h> -#endif - /* The kernel version [... == union semun *] */ int ____semctl13 __P((int, int, int, ...)); /* The userland version [... == union semun] */ int __semctl13 __P((int, int, int, ...)); -#if __STDC__ -int __semctl13(int semid, int semnum, int cmd, ...) -#else -int __semctl13(va_alist) - va_dcl -#endif +int +__semctl13(int semid, int semnum, int cmd, ...) { va_list ap; union __semun semun; -#if __STDC__ + va_start(ap, cmd); -#else - int semid, semnum; - int cmd; - va_start(ap); - semid = va_arg(ap, int); - semnum = va_arg(ap, int); - cmd = va_arg(ap, int); -#endif switch (cmd) { case IPC_SET: case IPC_STAT: diff --git a/lib/libc/sys/semctl.c b/lib/libc/sys/semctl.c index 125cd44fa4b..520071041ac 100644 --- a/lib/libc/sys/semctl.c +++ b/lib/libc/sys/semctl.c @@ -1,4 +1,4 @@ -/* $NetBSD: semctl.c,v 1.8 2000/06/14 17:25:07 cgd Exp $ */ +/* $NetBSD: semctl.c,v 1.9 2002/05/26 16:53:31 wiz Exp $ */ /* * Copyright (c) 1994, 1995 Christopher G. Demetriou @@ -36,7 +36,7 @@ #include <sys/cdefs.h> #if defined(LIBC_SCCS) && !defined(lint) -__RCSID("$NetBSD: semctl.c,v 1.8 2000/06/14 17:25:07 cgd Exp $"); +__RCSID("$NetBSD: semctl.c,v 1.9 2002/05/26 16:53:31 wiz Exp $"); #endif /* LIBC_SCCS and not lint */ #define __LIBC12_SOURCE__ @@ -45,14 +45,8 @@ __RCSID("$NetBSD: semctl.c,v 1.8 2000/06/14 17:25:07 cgd Exp $"); #include <sys/ipc.h> #include <sys/sem.h> -#if __STDC__ -int semctl(int semid, int semnum, int cmd, union __semun semun) -#else -int semctl(semid, semnum, cmd, semun) - int semid, semnum; - int cmd; - union __semun semun; -#endif +int +semctl(int semid, int semnum, int cmd, union __semun semun) { return (__semctl(semid, semnum, cmd, &semun)); } |
