Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/lib/libc/sys Convert to C89 prototypes. Remove use of __P



details:   https://anonhg.NetBSD.org/src/rev/2573868ee274
branches:  trunk
changeset: 778243:2573868ee274
user:      matt <matt%NetBSD.org@localhost>
date:      Tue Mar 20 16:26:12 2012 +0000

description:
Convert to C89 prototypes.  Remove use of __P

diffstat:

 lib/libc/sys/ftruncate.c   |   8 +++-----
 lib/libc/sys/lseek.c       |   9 +++------
 lib/libc/sys/mmap.c        |  12 +++---------
 lib/libc/sys/ntp_adjtime.c |   7 +++----
 lib/libc/sys/preadv.c      |  10 +++-------
 lib/libc/sys/pwritev.c     |  10 +++-------
 lib/libc/sys/sigwait.c     |   6 +++---
 lib/libc/sys/sigwaitinfo.c |   7 +++----
 lib/libc/sys/truncate.c    |   8 +++-----
 9 files changed, 27 insertions(+), 50 deletions(-)

diffs (266 lines):

diff -r f41152a5417a -r 2573868ee274 lib/libc/sys/ftruncate.c
--- a/lib/libc/sys/ftruncate.c  Tue Mar 20 16:21:41 2012 +0000
+++ b/lib/libc/sys/ftruncate.c  Tue Mar 20 16:26:12 2012 +0000
@@ -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 @@
  * 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 -r f41152a5417a -r 2573868ee274 lib/libc/sys/lseek.c
--- a/lib/libc/sys/lseek.c      Tue Mar 20 16:21:41 2012 +0000
+++ b/lib/libc/sys/lseek.c      Tue Mar 20 16:26:12 2012 +0000
@@ -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 @@
  * 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 -r f41152a5417a -r 2573868ee274 lib/libc/sys/mmap.c
--- a/lib/libc/sys/mmap.c       Tue Mar 20 16:21:41 2012 +0000
+++ b/lib/libc/sys/mmap.c       Tue Mar 20 16:26:12 2012 +0000
@@ -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 @@
  * 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 -r f41152a5417a -r 2573868ee274 lib/libc/sys/ntp_adjtime.c
--- a/lib/libc/sys/ntp_adjtime.c        Tue Mar 20 16:21:41 2012 +0000
+++ b/lib/libc/sys/ntp_adjtime.c        Tue Mar 20 16:26:12 2012 +0000
@@ -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 @@
 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 -r f41152a5417a -r 2573868ee274 lib/libc/sys/preadv.c
--- a/lib/libc/sys/preadv.c     Tue Mar 20 16:21:41 2012 +0000
+++ b/lib/libc/sys/preadv.c     Tue Mar 20 16:26:12 2012 +0000
@@ -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 @@
  * 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 -r f41152a5417a -r 2573868ee274 lib/libc/sys/pwritev.c
--- a/lib/libc/sys/pwritev.c    Tue Mar 20 16:21:41 2012 +0000
+++ b/lib/libc/sys/pwritev.c    Tue Mar 20 16:26:12 2012 +0000
@@ -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 @@
  * 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 -r f41152a5417a -r 2573868ee274 lib/libc/sys/sigwait.c
--- a/lib/libc/sys/sigwait.c    Tue Mar 20 16:21:41 2012 +0000
+++ b/lib/libc/sys/sigwait.c    Tue Mar 20 16:26:12 2012 +0000
@@ -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 @@
 __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 -r f41152a5417a -r 2573868ee274 lib/libc/sys/sigwaitinfo.c
--- a/lib/libc/sys/sigwaitinfo.c        Tue Mar 20 16:21:41 2012 +0000
+++ b/lib/libc/sys/sigwaitinfo.c        Tue Mar 20 16:26:12 2012 +0000
@@ -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 @@
 __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 -r f41152a5417a -r 2573868ee274 lib/libc/sys/truncate.c
--- a/lib/libc/sys/truncate.c   Tue Mar 20 16:21:41 2012 +0000
+++ b/lib/libc/sys/truncate.c   Tue Mar 20 16:26:12 2012 +0000
@@ -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 @@
  * 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);



Home | Main Index | Thread Index | Old Index