Source-Changes-HG archive

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

[src/trunk]: src/share/man No point in using __P in prototype declarations in...



details:   https://anonhg.NetBSD.org/src/rev/2f80f0c9b417
branches:  trunk
changeset: 518341:2f80f0c9b417
user:      wiz <wiz%NetBSD.org@localhost>
date:      Wed Nov 28 16:49:02 2001 +0000

description:
No point in using __P in prototype declarations in man pages.

diffstat:

 share/man/man5/link.5   |   4 ++--
 share/man/man9/disk.9   |   4 ++--
 share/man/man9/rasops.9 |   4 ++--
 share/man/man9/scsipi.9 |   6 +++---
 share/man/man9/ucom.9   |  26 +++++++++++++-------------
 share/man/man9/vnode.9  |   4 ++--
 share/man/man9/wskbd.9  |   8 ++++----
 7 files changed, 28 insertions(+), 28 deletions(-)

diffs (164 lines):

diff -r 9758ff3340b4 -r 2f80f0c9b417 share/man/man5/link.5
--- a/share/man/man5/link.5     Wed Nov 28 16:48:11 2001 +0000
+++ b/share/man/man5/link.5     Wed Nov 28 16:49:02 2001 +0000
@@ -1,4 +1,4 @@
-.\"    $NetBSD: link.5,v 1.14 2001/10/31 18:44:11 skrll Exp $
+.\"    $NetBSD: link.5,v 1.15 2001/11/28 16:49:02 wiz Exp $
 .\"
 .\" Copyright (c) 1996 The NetBSD Foundation, Inc.
 .\" All rights reserved.
@@ -478,7 +478,7 @@
        int     (*dlclose)(void *);
        void    *(*dlsym)(void *, char *);
        int     (*dlctl)(void *, int, void *);
-       void    (*dlexit) __P((void));
+       void    (*dlexit)(void);
 };
 .Ed
 .Pp
diff -r 9758ff3340b4 -r 2f80f0c9b417 share/man/man9/disk.9
--- a/share/man/man9/disk.9     Wed Nov 28 16:48:11 2001 +0000
+++ b/share/man/man9/disk.9     Wed Nov 28 16:49:02 2001 +0000
@@ -1,4 +1,4 @@
-.\"    $NetBSD: disk.9,v 1.14 2001/09/10 23:36:57 wiz Exp $
+.\"    $NetBSD: disk.9,v 1.15 2001/11/28 16:49:02 wiz Exp $
 .\"
 .\" Copyright (c) 1995, 1996 Jason R. Thorpe.
 .\" All rights reserved.
@@ -230,7 +230,7 @@
 routine.  This switch needs to have global scope and should be initialized
 as follows:
 .Bd -literal
-void   foostrategy __P((struct buf *));
+void   foostrategy(struct buf *);
 struct dkdriver foodkdriver = { foostrategy };
 .Ed
 .Pp
diff -r 9758ff3340b4 -r 2f80f0c9b417 share/man/man9/rasops.9
--- a/share/man/man9/rasops.9   Wed Nov 28 16:48:11 2001 +0000
+++ b/share/man/man9/rasops.9   Wed Nov 28 16:49:02 2001 +0000
@@ -1,4 +1,4 @@
-.\"     $NetBSD: rasops.9,v 1.2 2001/10/22 08:21:33 wiz Exp $
+.\"     $NetBSD: rasops.9,v 1.3 2001/11/28 16:49:02 wiz Exp $
 .\"
 .\" Copyright (c) 2001 The NetBSD Foundation, Inc.
 .\" All rights reserved.
@@ -121,7 +121,7 @@
        /*
         * Callbacks so we can share some code
         */
-       void    (*ri_do_cursor) __P((struct rasops_info *));
+       void    (*ri_do_cursor)(struct rasops_info *);
 };
 .Ed
 .Pp
diff -r 9758ff3340b4 -r 2f80f0c9b417 share/man/man9/scsipi.9
--- a/share/man/man9/scsipi.9   Wed Nov 28 16:48:11 2001 +0000
+++ b/share/man/man9/scsipi.9   Wed Nov 28 16:49:02 2001 +0000
@@ -1,4 +1,4 @@
-.\"    $NetBSD: scsipi.9,v 1.6 2001/10/14 21:12:52 bouyer Exp $
+.\"    $NetBSD: scsipi.9,v 1.7 2001/11/28 16:49:02 wiz Exp $
 .\"
 .\"
 .\" Copyright (c) 2001 Manuel Bouyer.
@@ -61,7 +61,7 @@
 .Ft int
 .Fn scsipi_target_detach "struct scsipi_channel *chan" "int target" "int lun" "int flags"
 .Ft int
-.Fn scsipi_thread_call_callback "struct scsipi_channel *chan" "void (*callback) __P((struct scsipi_channel *, void *))" "void *arg"
+.Fn scsipi_thread_call_callback "struct scsipi_channel *chan" "void (*callback)(struct scsipi_channel *, void *)" "void *arg"
 .Sh DESCRIPTION
 The
 .Nm
@@ -543,7 +543,7 @@
 .Fn config_detach ""
 \&.
 Returns 0 if successfull, or error code if a device couldn't be removed.
-.It Fn scsipi_thread_call_callback "struct scsipi_channel *chan" "void (*callback) __P((struct scsipi_channel *, void *))" "void *arg"
+.It Fn scsipi_thread_call_callback "struct scsipi_channel *chan" "void (*callback)(struct scsipi_channel *, void *)" "void *arg"
 .Fn callback
 will be called with
 .Fa chan
diff -r 9758ff3340b4 -r 2f80f0c9b417 share/man/man9/ucom.9
--- a/share/man/man9/ucom.9     Wed Nov 28 16:48:11 2001 +0000
+++ b/share/man/man9/ucom.9     Wed Nov 28 16:49:02 2001 +0000
@@ -1,4 +1,4 @@
-.\"    $NetBSD: ucom.9,v 1.5 2001/06/21 11:59:01 wiz Exp $
+.\"    $NetBSD: ucom.9,v 1.6 2001/11/28 16:49:02 wiz Exp $
 .\"
 .\" Copyright (c) 2000 The NetBSD Foundation, Inc.
 .\" All rights reserved.
@@ -125,21 +125,21 @@
 driver will use a sensible default.
 .Bd -literal
 struct ucom_methods {
-       void (*ucom_get_status)__P((void *sc, int portno,
-                                   u_char *lsr, u_char *msr));
-       void (*ucom_set)__P((void *sc, int portno, int reg, int onoff));
+       void (*ucom_get_status)(void *sc, int portno,
+                               u_char *lsr, u_char *msr);
+       void (*ucom_set)(void *sc, int portno, int reg, int onoff);
 #define UCOM_SET_DTR 1
 #define UCOM_SET_RTS 2
 #define UCOM_SET_BREAK 3
-       int (*ucom_param)__P((void *sc, int portno, struct termios *));
-       int (*ucom_ioctl)__P((void *sc, int portno, u_long cmd,
-                             caddr_t data, int flag, struct proc *p));
-       int (*ucom_open)__P((void *sc, int portno));
-       void (*ucom_close)__P((void *sc, int portno));
-       void (*ucom_read)__P((void *sc, int portno, u_char **ptr,
-                             u_int32_t *count));
-       void (*ucom_write)__P((void *sc, int portno, u_char *to,
-                              u_char *from, u_int32_t *count));
+       int (*ucom_param)(void *sc, int portno, struct termios *);
+       int (*ucom_ioctl)(void *sc, int portno, u_long cmd,
+                         caddr_t data, int flag, struct proc *p);
+       int (*ucom_open)(void *sc, int portno);
+       void (*ucom_close)(void *sc, int portno);
+       void (*ucom_read)(void *sc, int portno, u_char **ptr,
+                         u_int32_t *count);
+       void (*ucom_write)(void *sc, int portno, u_char *to,
+                          u_char *from, u_int32_t *count);
 };
 .Ed
 
diff -r 9758ff3340b4 -r 2f80f0c9b417 share/man/man9/vnode.9
--- a/share/man/man9/vnode.9    Wed Nov 28 16:48:11 2001 +0000
+++ b/share/man/man9/vnode.9    Wed Nov 28 16:49:02 2001 +0000
@@ -1,4 +1,4 @@
-.\"     $NetBSD: vnode.9,v 1.3 2001/10/31 19:53:08 gmcgarry Exp $
+.\"     $NetBSD: vnode.9,v 1.4 2001/11/28 16:49:03 wiz Exp $
 .\"
 .\" Copyright (c) 2001 The NetBSD Foundation, Inc.
 .\" All rights reserved.
@@ -155,7 +155,7 @@
         daddr_t         v_lastr;                /* last read */
         u_long          v_id;                   /* capability id */
         struct mount    *v_mount;               /* ptr to vfs we are in */
-        int             (**v_op) __P((void *)); /* vnode ops vector */
+        int             (**v_op)(void *);       /* vnode ops vector */
         TAILQ_ENTRY(vnode) v_freelist;          /* vnode freelist */
         LIST_ENTRY(vnode) v_mntvnodes;          /* vnodes for mount pt */
         struct buflists v_cleanblkhd;           /* clean blocklist head */
diff -r 9758ff3340b4 -r 2f80f0c9b417 share/man/man9/wskbd.9
--- a/share/man/man9/wskbd.9    Wed Nov 28 16:48:11 2001 +0000
+++ b/share/man/man9/wskbd.9    Wed Nov 28 16:49:02 2001 +0000
@@ -1,4 +1,4 @@
-.\"     $NetBSD: wskbd.9,v 1.2 2001/10/22 08:21:33 wiz Exp $
+.\"     $NetBSD: wskbd.9,v 1.3 2001/11/28 16:49:03 wiz Exp $
 .\"
 .\" Copyright (c) 2001 The NetBSD Foundation, Inc.
 .\" All rights reserved.
@@ -113,9 +113,9 @@
 child device.  If the keyboard cannot be a console, it is not
 necessary to specify this structure.  It has the following members:
 .Bd -literal
-       void    (*getc) __P((void *, u_int *, int *));
-       void    (*pollc) __P((void *, int));
-       void    (*bell) __P((void *, u_int, u_int, u_int));
+       void    (*getc)(void *, u_int *, int *);
+       void    (*pollc)(void *, int);
+       void    (*bell)(void *, u_int, u_int, u_int);
 .Ed
 .Pp
 There is a



Home | Main Index | Thread Index | Old Index