Source-Changes-HG archive

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

[src/trunk]: src/sys/sys De __P()



details:   https://anonhg.NetBSD.org/src/rev/d3164f09418c
branches:  trunk
changeset: 565699:d3164f09418c
user:      matt <matt%NetBSD.org@localhost>
date:      Sun Apr 18 18:30:21 2004 +0000

description:
De __P()

diffstat:

 sys/sys/domain.h  |  19 ++++++++++---------
 sys/sys/protosw.h |  32 ++++++++++++++++----------------
 2 files changed, 26 insertions(+), 25 deletions(-)

diffs (112 lines):

diff -r a1b34acc45c6 -r d3164f09418c sys/sys/domain.h
--- a/sys/sys/domain.h  Sun Apr 18 18:21:43 2004 +0000
+++ b/sys/sys/domain.h  Sun Apr 18 18:30:21 2004 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: domain.h,v 1.15 2003/08/07 16:34:03 agc Exp $  */
+/*     $NetBSD: domain.h,v 1.16 2004/04/18 18:30:21 matt Exp $ */
 
 /*
  * Copyright (c) 1982, 1986, 1993
@@ -49,26 +49,27 @@
        int     dom_family;             /* AF_xxx */
        char    *dom_name;
        void    (*dom_init)             /* initialize domain data structures */
-                       __P((void));
+                       (void);
        int     (*dom_externalize)      /* externalize access rights */
-                       __P((struct mbuf *));
+                       (struct mbuf *);
        void    (*dom_dispose)          /* dispose of internalized rights */
-                       __P((struct mbuf *));
+                       (struct mbuf *);
        struct  protosw *dom_protosw, *dom_protoswNPROTOSW;
        struct  domain *dom_next;
        int     (*dom_rtattach)         /* initialize routing table */
-                       __P((void **, int));
+                       (void **, int);
        int     dom_rtoffset;           /* an arg to rtattach, in bits */
        int     dom_maxrtkey;           /* for routing layer */
-       void    *(*dom_ifattach) __P((struct ifnet *));
-       void    (*dom_ifdetach) __P((struct ifnet *, void *));
-                                       /* af-dependent data on ifnet */
+       void    *(*dom_ifattach)        /* attach af-dependent data on ifnet */
+                       (struct ifnet *);
+       void    (*dom_ifdetach)         /* detach af-dependent data on ifnet */
+                       (struct ifnet *, void *);
        struct  mowner dom_mowner;
 };
 
 #ifdef _KERNEL
 extern struct  domain *domains;
-void domaininit __P((void));
+void domaininit (void);
 #endif
 
 #endif /* !_SYS_DOMAIN_H_ */
diff -r a1b34acc45c6 -r d3164f09418c sys/sys/protosw.h
--- a/sys/sys/protosw.h Sun Apr 18 18:21:43 2004 +0000
+++ b/sys/sys/protosw.h Sun Apr 18 18:30:21 2004 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: protosw.h,v 1.31 2003/12/04 19:38:25 atatat Exp $      */
+/*     $NetBSD: protosw.h,v 1.32 2004/04/18 18:30:21 matt Exp $        */
 
 /*-
  * Copyright (c) 1982, 1986, 1993
@@ -71,29 +71,29 @@
 
 /* protocol-protocol hooks */
        void    (*pr_input)             /* input to protocol (from below) */
-                       __P((struct mbuf *, ...));
+                       (struct mbuf *, ...);
        int     (*pr_output)            /* output to protocol (from above) */
-                       __P((struct mbuf *, ...));
+                       (struct mbuf *, ...);
        void    *(*pr_ctlinput)         /* control input (from below) */
-                       __P((int, struct sockaddr *, void *));
+                       (int, struct sockaddr *, void *);
        int     (*pr_ctloutput)         /* control output (from above) */
-                       __P((int, struct socket *, int, int, struct mbuf **));
+                       (int, struct socket *, int, int, struct mbuf **);
 
 /* user-protocol hook */
        int     (*pr_usrreq)            /* user request: see list below */
-                       __P((struct socket *, int, struct mbuf *,
-                            struct mbuf *, struct mbuf *, struct proc *));
+                       (struct socket *, int, struct mbuf *,
+                            struct mbuf *, struct mbuf *, struct proc *);
 
 /* utility hooks */
        void    (*pr_init)              /* initialization hook */
-                       __P((void));
+                       (void);
 
        void    (*pr_fasttimo)          /* fast timeout (200ms) */
-                       __P((void));
+                       (void);
        void    (*pr_slowtimo)          /* slow timeout (500ms) */
-                       __P((void));
+                       (void);
        void    (*pr_drain)             /* flush any excess space possible */
-                       __P((void));
+                       (void);
        int     *pr_wassysctl;          /* @@@ was sysctl for protocol, now obsolete */
 };
 
@@ -253,12 +253,12 @@
 #define        PRT_FAST_ISEXPIRED(t)   (PRT_FAST_ISARMED((t)) && (t) <= pffasttimo_now)
 
 struct sockaddr;
-struct protosw *pffindproto __P((int, int, int));
-struct protosw *pffindtype __P((int, int));
-struct domain *pffinddomain __P((int));
+struct protosw *pffindproto (int, int, int);
+struct protosw *pffindtype (int, int);
+struct domain *pffinddomain (int);
 extern struct protosw inetsw[];
-void pfctlinput __P((int, struct sockaddr *));
-void pfctlinput2 __P((int, struct sockaddr *, void *));
+void pfctlinput (int, struct sockaddr *);
+void pfctlinput2 (int, struct sockaddr *, void *);
 #endif /* _KERNEL */
 
 #endif /* !_SYS_PROTOSW_H_ */



Home | Main Index | Thread Index | Old Index