Source-Changes-HG archive

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

[src/trunk]: src/sys/kern Nuke __P().



details:   https://anonhg.NetBSD.org/src/rev/10432e1bedd4
branches:  trunk
changeset: 559758:10432e1bedd4
user:      junyoung <junyoung%NetBSD.org@localhost>
date:      Tue Mar 23 13:22:03 2004 +0000

description:
Nuke __P().

diffstat:

 sys/kern/kern_acct.c     |  12 ++++++------
 sys/kern/kgdb_stub.c     |  30 +++++++++++++++---------------
 sys/kern/subr_prf.c      |  10 +++++-----
 sys/kern/subr_userconf.c |  46 +++++++++++++++++++++++-----------------------
 sys/kern/sys_generic.c   |   8 ++++----
 sys/kern/sysv_msg.c      |   6 +++---
 sys/kern/sysv_sem.c      |  10 +++++-----
 sys/kern/tty_pty.c       |  14 +++++++-------
 sys/kern/tty_subr.c      |   6 +++---
 sys/kern/tty_tb.c        |  28 ++++++++++++++--------------
 sys/kern/uipc_domain.c   |   8 ++++----
 sys/kern/uipc_mbuf.c     |   6 +++---
 sys/kern/uipc_usrreq.c   |   8 ++++----
 sys/kern/vfs_getcwd.c    |  12 ++++++------
 sys/kern/vfs_init.c      |  18 +++++++++---------
 15 files changed, 111 insertions(+), 111 deletions(-)

diffs (truncated from 606 to 300 lines):

diff -r 0c82aa72ff28 -r 10432e1bedd4 sys/kern/kern_acct.c
--- a/sys/kern/kern_acct.c      Tue Mar 23 13:09:18 2004 +0000
+++ b/sys/kern/kern_acct.c      Tue Mar 23 13:22:03 2004 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: kern_acct.c,v 1.55 2003/08/07 16:31:42 agc Exp $       */
+/*     $NetBSD: kern_acct.c,v 1.56 2004/03/23 13:22:03 junyoung Exp $  */
 
 /*-
  * Copyright (c) 1982, 1986, 1989, 1993
@@ -71,7 +71,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: kern_acct.c,v 1.55 2003/08/07 16:31:42 agc Exp $");
+__KERNEL_RCSID(0, "$NetBSD: kern_acct.c,v 1.56 2004/03/23 13:22:03 junyoung Exp $");
 
 #include <sys/param.h>
 #include <sys/systm.h>
@@ -138,10 +138,10 @@
  * The former's operation is described in Leffler, et al., and the latter
  * was provided by UCB with the 4.4BSD-Lite release
  */
-comp_t encode_comp_t __P((u_long, u_long));
-void   acctwatch __P((void *));
-void   acct_stop __P((void));
-int    acct_chkfree __P((void));
+comp_t encode_comp_t(u_long, u_long);
+void   acctwatch(void *);
+void   acct_stop(void);
+int    acct_chkfree(void);
 
 /*
  * Values associated with enabling and disabling accounting
diff -r 0c82aa72ff28 -r 10432e1bedd4 sys/kern/kgdb_stub.c
--- a/sys/kern/kgdb_stub.c      Tue Mar 23 13:09:18 2004 +0000
+++ b/sys/kern/kgdb_stub.c      Tue Mar 23 13:22:03 2004 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: kgdb_stub.c,v 1.16 2004/02/13 11:36:23 wiz Exp $       */
+/*     $NetBSD: kgdb_stub.c,v 1.17 2004/03/23 13:22:03 junyoung Exp $  */
 
 /*
  * Copyright (c) 1990, 1993
@@ -45,7 +45,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: kgdb_stub.c,v 1.16 2004/02/13 11:36:23 wiz Exp $");
+__KERNEL_RCSID(0, "$NetBSD: kgdb_stub.c,v 1.17 2004/03/23 13:22:03 junyoung Exp $");
 
 #include "opt_kgdb.h"
 
@@ -76,18 +76,18 @@
 int kgdb_debug_panic = 0;      /* != 0 waits for remote on panic */
 label_t *kgdb_recover = 0;
 
-static void kgdb_copy __P((void *, void *, int));
-/* static void kgdb_zero __P((void *, int)); */
-static void kgdb_send __P((u_char *));
-static int kgdb_recv __P((u_char *, int));
-static int digit2i __P((u_char));
-static u_char i2digit __P((int));
-static void mem2hex __P((void *, void *, int));
-static u_char *hex2mem __P((void *, u_char *, int));
-static vaddr_t hex2i __P((u_char **));
+static void kgdb_copy(void *, void *, int);
+/* static void kgdb_zero(void *, int); */
+static void kgdb_send(u_char *);
+static int kgdb_recv(u_char *, int);
+static int digit2i(u_char);
+static u_char i2digit(int);
+static void mem2hex(void *, void *, int);
+static u_char *hex2mem(void *, u_char *, int);
+static vaddr_t hex2i(u_char **);
 
-static int (*kgdb_getc) __P((void *));
-static void (*kgdb_putc) __P((void *, int));
+static int (*kgdb_getc)(void *);
+static void (*kgdb_putc)(void *, int);
 static void *kgdb_ioarg;
 
 /* KGDB_BUFLEN must be at least (2*KGDB_NUMREGS*sizeof(kgdb_reg_t)+1) */
@@ -325,8 +325,8 @@
  */
 void
 kgdb_attach(getfn, putfn, ioarg)
-       int (*getfn) __P((void *));
-       void (*putfn) __P((void *, int));
+       int (*getfn)(void *);
+       void (*putfn)(void *, int);
        void *ioarg;
 {
        kgdb_getc = getfn;
diff -r 0c82aa72ff28 -r 10432e1bedd4 sys/kern/subr_prf.c
--- a/sys/kern/subr_prf.c       Tue Mar 23 13:09:18 2004 +0000
+++ b/sys/kern/subr_prf.c       Tue Mar 23 13:22:03 2004 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: subr_prf.c,v 1.93 2003/08/07 16:31:53 agc Exp $        */
+/*     $NetBSD: subr_prf.c,v 1.94 2004/03/23 13:22:04 junyoung Exp $   */
 
 /*-
  * Copyright (c) 1986, 1988, 1991, 1993
@@ -37,7 +37,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: subr_prf.c,v 1.93 2003/08/07 16:31:53 agc Exp $");
+__KERNEL_RCSID(0, "$NetBSD: subr_prf.c,v 1.94 2004/03/23 13:22:04 junyoung Exp $");
 
 #include "opt_ddb.h"
 #include "opt_ipkdb.h"
@@ -108,7 +108,7 @@
  * local prototypes
  */
 
-static void     putchar __P((int, int, struct tty *));
+static void     putchar(int, int, struct tty *);
 
 
 /*
@@ -135,8 +135,8 @@
  * [e.g. to a "virtual console"].
  */
 
-void (*v_putc) __P((int)) = cnputc;    /* start with cnputc (normal cons) */
-void (*v_flush) __P((void)) = cnflush; /* start with cnflush (normal cons) */
+void (*v_putc)(int) = cnputc;  /* start with cnputc (normal cons) */
+void (*v_flush)(void) = cnflush;       /* start with cnflush (normal cons) */
 
 
 /*
diff -r 0c82aa72ff28 -r 10432e1bedd4 sys/kern/subr_userconf.c
--- a/sys/kern/subr_userconf.c  Tue Mar 23 13:09:18 2004 +0000
+++ b/sys/kern/subr_userconf.c  Tue Mar 23 13:22:03 2004 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: subr_userconf.c,v 1.10 2002/10/22 03:27:47 simonb Exp $        */
+/*     $NetBSD: subr_userconf.c,v 1.11 2004/03/23 13:22:04 junyoung Exp $      */
 
 /*
  * Copyright (c) 1996 Mats O Jansson <moj%stacken.kth.se@localhost>
@@ -35,7 +35,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: subr_userconf.c,v 1.10 2002/10/22 03:27:47 simonb Exp $");
+__KERNEL_RCSID(0, "$NetBSD: subr_userconf.c,v 1.11 2004/03/23 13:22:04 junyoung Exp $");
 
 #include "opt_userconf.h"
 
@@ -63,27 +63,27 @@
 char userconf_cmdbuf[40];                      /* Command line             */
 char userconf_histbuf[40];
 
-void userconf_init __P((void));
-int userconf_more __P((void));
-void userconf_modify __P((const char *, int*));
-void userconf_hist_cmd __P((char));
-void userconf_hist_int __P((int));
-void userconf_hist_eoc __P((void));
-void userconf_pnum __P((int));
-void userconf_pdevnam __P((short));
-void userconf_pdev __P((short));
-int userconf_number __P((char *, int *));
-int userconf_device __P((char *, int *, short *, short *));
-void userconf_change __P((int));
-void userconf_disable __P((int));
-void userconf_enable __P((int));
-void userconf_help __P((void));
-void userconf_list __P((void));
-void userconf_common_dev __P((char *, int, short, short, char));
-void userconf_add_read __P((char *, char, char *, int, int *));
-int userconf_parse __P((char *));
+void userconf_init(void);
+int userconf_more(void);
+void userconf_modify(const char *, int*);
+void userconf_hist_cmd(char);
+void userconf_hist_int(int);
+void userconf_hist_eoc(void);
+void userconf_pnum(int);
+void userconf_pdevnam(short);
+void userconf_pdev(short);
+int userconf_number(char *, int *);
+int userconf_device(char *, int *, short *, short *);
+void userconf_change(int);
+void userconf_disable(int);
+void userconf_enable(int);
+void userconf_help(void);
+void userconf_list(void);
+void userconf_common_dev(char *, int, short, short, char);
+void userconf_add_read(char *, char, char *, int, int *);
+int userconf_parse(char *);
 
-static int getsn __P((char *, int));
+static int getsn(char *, int);
 
 #define UC_CHANGE 'c'
 #define UC_DISABLE 'd'
@@ -822,7 +822,7 @@
        return(0);
 }
 
-extern void user_config __P((void));
+extern void user_config(void);
 
 void
 user_config()
diff -r 0c82aa72ff28 -r 10432e1bedd4 sys/kern/sys_generic.c
--- a/sys/kern/sys_generic.c    Tue Mar 23 13:09:18 2004 +0000
+++ b/sys/kern/sys_generic.c    Tue Mar 23 13:22:03 2004 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: sys_generic.c,v 1.80 2003/10/10 15:24:28 chs Exp $     */
+/*     $NetBSD: sys_generic.c,v 1.81 2004/03/23 13:22:04 junyoung Exp $        */
 
 /*
  * Copyright (c) 1982, 1986, 1989, 1993
@@ -37,7 +37,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: sys_generic.c,v 1.80 2003/10/10 15:24:28 chs Exp $");
+__KERNEL_RCSID(0, "$NetBSD: sys_generic.c,v 1.81 2004/03/23 13:22:04 junyoung Exp $");
 
 #include "opt_ktrace.h"
 
@@ -62,8 +62,8 @@
 #include <sys/sa.h>
 #include <sys/syscallargs.h>
 
-int selscan __P((struct proc *, fd_mask *, fd_mask *, int, register_t *));
-int pollscan __P((struct proc *, struct pollfd *, int, register_t *));
+int selscan(struct proc *, fd_mask *, fd_mask *, int, register_t *);
+int pollscan(struct proc *, struct pollfd *, int, register_t *);
 
 /*
  * Read system call.
diff -r 0c82aa72ff28 -r 10432e1bedd4 sys/kern/sysv_msg.c
--- a/sys/kern/sysv_msg.c       Tue Mar 23 13:09:18 2004 +0000
+++ b/sys/kern/sysv_msg.c       Tue Mar 23 13:22:03 2004 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: sysv_msg.c,v 1.36 2003/10/26 10:32:24 jdolecek Exp $   */
+/*     $NetBSD: sysv_msg.c,v 1.37 2004/03/23 13:22:04 junyoung Exp $   */
 
 /*-
  * Copyright (c) 1999 The NetBSD Foundation, Inc.
@@ -57,7 +57,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: sysv_msg.c,v 1.36 2003/10/26 10:32:24 jdolecek Exp $");
+__KERNEL_RCSID(0, "$NetBSD: sysv_msg.c,v 1.37 2004/03/23 13:22:04 junyoung Exp $");
 
 #define SYSVMSG
 
@@ -86,7 +86,7 @@
 static struct __msg *msghdrs;          /* MSGTQL msg headers */
 struct msqid_ds *msqids;               /* MSGMNI msqid_ds struct's */
 
-static void msg_freehdr __P((struct __msg *));
+static void msg_freehdr(struct __msg *);
 
 void
 msginit()
diff -r 0c82aa72ff28 -r 10432e1bedd4 sys/kern/sysv_sem.c
--- a/sys/kern/sysv_sem.c       Tue Mar 23 13:09:18 2004 +0000
+++ b/sys/kern/sysv_sem.c       Tue Mar 23 13:22:03 2004 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: sysv_sem.c,v 1.52 2004/03/18 22:57:38 enami Exp $      */
+/*     $NetBSD: sysv_sem.c,v 1.53 2004/03/23 13:22:04 junyoung Exp $   */
 
 /*-
  * Copyright (c) 1999 The NetBSD Foundation, Inc.
@@ -46,7 +46,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: sysv_sem.c,v 1.52 2004/03/18 22:57:38 enami Exp $");
+__KERNEL_RCSID(0, "$NetBSD: sysv_sem.c,v 1.53 2004/03/23 13:22:04 junyoung Exp $");
 
 #define SYSVSEM
 
@@ -70,9 +70,9 @@
 #define SEM_PRINTF(a)
 #endif
 
-struct sem_undo *semu_alloc __P((struct proc *));
-int semundo_adjust __P((struct proc *, struct sem_undo **, int, int, int));
-void semundo_clear __P((int, int));
+struct sem_undo *semu_alloc(struct proc *);
+int semundo_adjust(struct proc *, struct sem_undo **, int, int, int);
+void semundo_clear(int, int);
 
 /*
  * XXXSMP Once we go MP, there needs to be a lock for the semaphore system.
diff -r 0c82aa72ff28 -r 10432e1bedd4 sys/kern/tty_pty.c
--- a/sys/kern/tty_pty.c        Tue Mar 23 13:09:18 2004 +0000
+++ b/sys/kern/tty_pty.c        Tue Mar 23 13:22:03 2004 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: tty_pty.c,v 1.75 2004/03/09 05:30:24 dbj Exp $ */
+/*     $NetBSD: tty_pty.c,v 1.76 2004/03/23 13:22:04 junyoung Exp $    */
 
 /*



Home | Main Index | Thread Index | Old Index