summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormatt <matt@NetBSD.org>2012-03-20 16:26:12 +0000
committermatt <matt@NetBSD.org>2012-03-20 16:26:12 +0000
commitc9c2c28799b5d51188e2ed6b6c44bfd086b3003f (patch)
tree3205bb193f98d7ba3bf168a446a5a1cb3b05b160
parent043d89a797e69499d49a805a95869b718f9b5ed6 (diff)
Convert to C89 prototypes. Remove use of __P
-rw-r--r--lib/libc/sys/ftruncate.c8
-rw-r--r--lib/libc/sys/lseek.c9
-rw-r--r--lib/libc/sys/mmap.c12
-rw-r--r--lib/libc/sys/ntp_adjtime.c7
-rw-r--r--lib/libc/sys/preadv.c10
-rw-r--r--lib/libc/sys/pwritev.c10
-rw-r--r--lib/libc/sys/sigwait.c6
-rw-r--r--lib/libc/sys/sigwaitinfo.c7
-rw-r--r--lib/libc/sys/truncate.c8
9 files changed, 27 insertions, 50 deletions
diff --git a/lib/libc/sys/ftruncate.c b/lib/libc/sys/ftruncate.c
index 8436be5f5ee..5b23d83312a 100644
--- a/lib/libc/sys/ftruncate.c
+++ b/lib/libc/sys/ftruncate.c
@@ -1,4 +1,4 @@
-/* $NetBSD: ftruncate.c,v 1.13 2007/11/23 12:39:15 uebayasi Exp $ */
+/* $NetBSD: ftruncate.c,v 1.14 2012/03/20 16:26:12 matt Exp $ */
/*
* Copyright (c) 1992, 1993
@@ -34,7 +34,7 @@
#if 0
static char sccsid[] = "@(#)ftruncate.c 8.1 (Berkeley) 6/17/93";
#else
-__RCSID("$NetBSD: ftruncate.c,v 1.13 2007/11/23 12:39:15 uebayasi Exp $");
+__RCSID("$NetBSD: ftruncate.c,v 1.14 2012/03/20 16:26:12 matt Exp $");
#endif
#endif /* LIBC_SCCS and not lint */
@@ -54,9 +54,7 @@ int __ftruncate(int, int, off_t);
* is not supplied by GCC 1.X but is supplied by GCC 2.X.
*/
int
-ftruncate(fd, length)
- int fd;
- off_t length;
+ftruncate(int fd, off_t length)
{
return __ftruncate(fd, 0, length);
diff --git a/lib/libc/sys/lseek.c b/lib/libc/sys/lseek.c
index 96d4dc30e93..0b97e45d179 100644
--- a/lib/libc/sys/lseek.c
+++ b/lib/libc/sys/lseek.c
@@ -1,4 +1,4 @@
-/* $NetBSD: lseek.c,v 1.10 2007/11/23 12:39:15 uebayasi Exp $ */
+/* $NetBSD: lseek.c,v 1.11 2012/03/20 16:26:12 matt Exp $ */
/*
* Copyright (c) 1992, 1993
@@ -34,7 +34,7 @@
#if 0
static char sccsid[] = "@(#)lseek.c 8.1 (Berkeley) 6/17/93";
#else
-__RCSID("$NetBSD: lseek.c,v 1.10 2007/11/23 12:39:15 uebayasi Exp $");
+__RCSID("$NetBSD: lseek.c,v 1.11 2012/03/20 16:26:12 matt Exp $");
#endif
#endif /* LIBC_SCCS and not lint */
@@ -54,10 +54,7 @@ off_t __lseek(int, int, off_t, int);
* is not supplied by GCC 1.X but is supplied by GCC 2.X.
*/
off_t
-lseek(fd, offset, whence)
- int fd;
- off_t offset;
- int whence;
+lseek(int fd, off_t offset, int whence)
{
return __lseek(fd, 0, offset, whence);
diff --git a/lib/libc/sys/mmap.c b/lib/libc/sys/mmap.c
index 9b60fcd0fae..a7dfc36b53f 100644
--- a/lib/libc/sys/mmap.c
+++ b/lib/libc/sys/mmap.c
@@ -1,4 +1,4 @@
-/* $NetBSD: mmap.c,v 1.14 2007/11/23 12:39:15 uebayasi Exp $ */
+/* $NetBSD: mmap.c,v 1.15 2012/03/20 16:26:12 matt Exp $ */
/*
* Copyright (c) 1992, 1993
@@ -34,7 +34,7 @@
#if 0
static char sccsid[] = "@(#)mmap.c 8.1 (Berkeley) 6/17/93";
#else
-__RCSID("$NetBSD: mmap.c,v 1.14 2007/11/23 12:39:15 uebayasi Exp $");
+__RCSID("$NetBSD: mmap.c,v 1.15 2012/03/20 16:26:12 matt Exp $");
#endif
#endif /* LIBC_SCCS and not lint */
@@ -55,13 +55,7 @@ void *__mmap(void *, size_t, int, int, int, int, off_t);
* is not supplied by GCC 1.X but is supplied by GCC 2.X.
*/
void *
-mmap(addr, len, prot, flags, fd, offset)
- void *addr;
- size_t len;
- int prot;
- int flags;
- int fd;
- off_t offset;
+mmap(void *addr, size_t len, int prot, int flags, int fd, off_t offset)
{
return __mmap(addr, len, prot, flags, fd, 0, offset);
diff --git a/lib/libc/sys/ntp_adjtime.c b/lib/libc/sys/ntp_adjtime.c
index ff928d464ce..efe0ddb86b6 100644
--- a/lib/libc/sys/ntp_adjtime.c
+++ b/lib/libc/sys/ntp_adjtime.c
@@ -1,4 +1,4 @@
-/* $NetBSD: ntp_adjtime.c,v 1.12 2011/10/15 23:00:02 christos Exp $ */
+/* $NetBSD: ntp_adjtime.c,v 1.13 2012/03/20 16:26:12 matt Exp $ */
/*
* Copyright (c) 2001 The NetBSD Foundation, Inc.
@@ -33,7 +33,7 @@
#include <sys/cdefs.h>
#if defined(LIBC_SCCS) && !defined(lint)
-__RCSID("$NetBSD: ntp_adjtime.c,v 1.12 2011/10/15 23:00:02 christos Exp $");
+__RCSID("$NetBSD: ntp_adjtime.c,v 1.13 2012/03/20 16:26:12 matt Exp $");
#endif /* LIBC_SCCS and not lint */
#include "namespace.h"
@@ -60,8 +60,7 @@ extern int __clockctl_fd;
int __ntp_adjtime(struct timex *);
int
-ntp_adjtime(tp)
- struct timex *tp;
+ntp_adjtime(struct timex *tp)
{
struct clockctl_ntp_adjtime args;
int error;
diff --git a/lib/libc/sys/preadv.c b/lib/libc/sys/preadv.c
index e09d1731a25..dbe8a010d1c 100644
--- a/lib/libc/sys/preadv.c
+++ b/lib/libc/sys/preadv.c
@@ -1,4 +1,4 @@
-/* $NetBSD: preadv.c,v 1.6 2007/11/23 12:39:15 uebayasi Exp $ */
+/* $NetBSD: preadv.c,v 1.7 2012/03/20 16:26:12 matt Exp $ */
/*
* Copyright (c) 1992, 1993
@@ -31,7 +31,7 @@
#include <sys/cdefs.h>
#if defined(LIBC_SCCS) && !defined(lint)
-__RCSID("$NetBSD: preadv.c,v 1.6 2007/11/23 12:39:15 uebayasi Exp $");
+__RCSID("$NetBSD: preadv.c,v 1.7 2012/03/20 16:26:12 matt Exp $");
#endif /* LIBC_SCCS and not lint */
#include <sys/types.h>
@@ -46,11 +46,7 @@ ssize_t __preadv(int, const struct iovec *, int, int, off_t);
* is not supplied by GCC 1.X but is supplied by GCC 2.X.
*/
ssize_t
-preadv(fd, iovp, iovcnt, offset)
- int fd;
- const struct iovec *iovp;
- int iovcnt;
- off_t offset;
+preadv(int fd, const struct iovec *iovp, int iovcnt, off_t offset)
{
return __preadv(fd, iovp, iovcnt, 0, offset);
diff --git a/lib/libc/sys/pwritev.c b/lib/libc/sys/pwritev.c
index bb7918b31ca..fd627be0a04 100644
--- a/lib/libc/sys/pwritev.c
+++ b/lib/libc/sys/pwritev.c
@@ -1,4 +1,4 @@
-/* $NetBSD: pwritev.c,v 1.6 2007/11/23 12:39:16 uebayasi Exp $ */
+/* $NetBSD: pwritev.c,v 1.7 2012/03/20 16:26:12 matt Exp $ */
/*
* Copyright (c) 1992, 1993
@@ -31,7 +31,7 @@
#include <sys/cdefs.h>
#if defined(LIBC_SCCS) && !defined(lint)
-__RCSID("$NetBSD: pwritev.c,v 1.6 2007/11/23 12:39:16 uebayasi Exp $");
+__RCSID("$NetBSD: pwritev.c,v 1.7 2012/03/20 16:26:12 matt Exp $");
#endif /* LIBC_SCCS and not lint */
#include <sys/types.h>
@@ -46,11 +46,7 @@ ssize_t __pwritev(int, const struct iovec *, int, int, off_t);
* is not supplied by GCC 1.X but is supplied by GCC 2.X.
*/
ssize_t
-pwritev(fd, iovp, iovcnt, offset)
- int fd;
- const struct iovec *iovp;
- int iovcnt;
- off_t offset;
+pwritev(int fd, const struct iovec *iovp, int iovcnt, off_t offset)
{
return __pwritev(fd, iovp, iovcnt, 0, offset);
diff --git a/lib/libc/sys/sigwait.c b/lib/libc/sys/sigwait.c
index fbdef15dd1f..10902ba747f 100644
--- a/lib/libc/sys/sigwait.c
+++ b/lib/libc/sys/sigwait.c
@@ -1,4 +1,4 @@
-/* $NetBSD: sigwait.c,v 1.4 2010/05/31 11:02:24 drochner Exp $ */
+/* $NetBSD: sigwait.c,v 1.5 2012/03/20 16:26:12 matt Exp $ */
/*-
* Copyright (c) 2003 The NetBSD Foundation, Inc.
@@ -31,7 +31,7 @@
#include <sys/cdefs.h>
#if defined(LIBC_SCCS) && !defined(lint)
-__RCSID("$NetBSD: sigwait.c,v 1.4 2010/05/31 11:02:24 drochner Exp $");
+__RCSID("$NetBSD: sigwait.c,v 1.5 2012/03/20 16:26:12 matt Exp $");
#endif /* LIBC_SCCS and not lint */
#include "namespace.h"
@@ -45,7 +45,7 @@ __RCSID("$NetBSD: sigwait.c,v 1.4 2010/05/31 11:02:24 drochner Exp $");
__weak_alias(sigwait,_sigwait)
#endif
-int _sigwait __P((const sigset_t * __restrict, int * __restrict));
+int _sigwait(const sigset_t * __restrict, int * __restrict);
/*
* This is wrapper around sigtimedwait(2), providing sigwait()
diff --git a/lib/libc/sys/sigwaitinfo.c b/lib/libc/sys/sigwaitinfo.c
index de668259a1b..6ab27a27428 100644
--- a/lib/libc/sys/sigwaitinfo.c
+++ b/lib/libc/sys/sigwaitinfo.c
@@ -1,4 +1,4 @@
-/* $NetBSD: sigwaitinfo.c,v 1.2 2008/04/28 20:23:00 martin Exp $ */
+/* $NetBSD: sigwaitinfo.c,v 1.3 2012/03/20 16:26:12 matt Exp $ */
/*-
* Copyright (c) 2003 The NetBSD Foundation, Inc.
@@ -31,7 +31,7 @@
#include <sys/cdefs.h>
#if defined(LIBC_SCCS) && !defined(lint)
-__RCSID("$NetBSD: sigwaitinfo.c,v 1.2 2008/04/28 20:23:00 martin Exp $");
+__RCSID("$NetBSD: sigwaitinfo.c,v 1.3 2012/03/20 16:26:12 matt Exp $");
#endif /* LIBC_SCCS and not lint */
#include "namespace.h"
@@ -44,8 +44,7 @@ __RCSID("$NetBSD: sigwaitinfo.c,v 1.2 2008/04/28 20:23:00 martin Exp $");
__weak_alias(sigwaitinfo,_sigwaitinfo)
#endif
-int _sigwaitinfo __P((const sigset_t * __restrict,
- siginfo_t * __restrict info));
+int _sigwaitinfo(const sigset_t * __restrict, siginfo_t * __restrict info);
/*
* This is wrapper around sigtimedwait(2), providing sigwaitinfo()
diff --git a/lib/libc/sys/truncate.c b/lib/libc/sys/truncate.c
index 475d047872f..63e4550ae76 100644
--- a/lib/libc/sys/truncate.c
+++ b/lib/libc/sys/truncate.c
@@ -1,4 +1,4 @@
-/* $NetBSD: truncate.c,v 1.12 2007/11/23 12:39:16 uebayasi Exp $ */
+/* $NetBSD: truncate.c,v 1.13 2012/03/20 16:26:12 matt Exp $ */
/*
* Copyright (c) 1992, 1993
@@ -34,7 +34,7 @@
#if 0
static char sccsid[] = "@(#)truncate.c 8.1 (Berkeley) 6/17/93";
#else
-__RCSID("$NetBSD: truncate.c,v 1.12 2007/11/23 12:39:16 uebayasi Exp $");
+__RCSID("$NetBSD: truncate.c,v 1.13 2012/03/20 16:26:12 matt Exp $");
#endif
#endif /* LIBC_SCCS and not lint */
@@ -49,9 +49,7 @@ int __truncate(const char *, int, off_t);
* is not supplied by GCC 1.X but is supplied by GCC 2.X.
*/
int
-truncate(path, length)
- const char *path;
- off_t length;
+truncate(const char *path, off_t length)
{
return __truncate(path, 0, length);