diff options
author | Ralf Corsepius <ralf.corsepius@rtems.org> | 2007-03-18 13:31:48 +0000 |
---|---|---|
committer | Ralf Corsepius <ralf.corsepius@rtems.org> | 2007-03-18 13:31:48 +0000 |
commit | 51cda9a4cdd5ab06fbee333eebf17b931cdabb36 (patch) | |
tree | 6da20b2c11455658c291afb7d3fc9b4c16f3954c /cpukit/libnetworking/sys | |
parent | 2007-03-18 Ralf Corsépius <ralf.corsepius@rtems.org> (diff) | |
download | rtems-51cda9a4cdd5ab06fbee333eebf17b931cdabb36.tar.bz2 |
Remove __P().
Diffstat (limited to 'cpukit/libnetworking/sys')
-rw-r--r-- | cpukit/libnetworking/sys/callout.h | 2 | ||||
-rw-r--r-- | cpukit/libnetworking/sys/domain.h | 2 | ||||
-rw-r--r-- | cpukit/libnetworking/sys/kernel.h | 6 | ||||
-rw-r--r-- | cpukit/libnetworking/sys/protosw.h | 62 | ||||
-rw-r--r-- | cpukit/libnetworking/sys/select.h | 4 | ||||
-rw-r--r-- | cpukit/libnetworking/sys/socket.h | 2 | ||||
-rw-r--r-- | cpukit/libnetworking/sys/socketvar.h | 2 | ||||
-rw-r--r-- | cpukit/libnetworking/sys/ucred.h | 12 |
8 files changed, 46 insertions, 46 deletions
diff --git a/cpukit/libnetworking/sys/callout.h b/cpukit/libnetworking/sys/callout.h index 132dc3e92c..150609eef6 100644 --- a/cpukit/libnetworking/sys/callout.h +++ b/cpukit/libnetworking/sys/callout.h @@ -41,7 +41,7 @@ struct callout { struct callout *c_next; /* next callout in queue */ void *c_arg; /* function argument */ - void (*c_func) __P((void *)); /* function to call */ + void (*c_func)(void *); /* function to call */ int c_time; /* ticks to the event */ }; diff --git a/cpukit/libnetworking/sys/domain.h b/cpukit/libnetworking/sys/domain.h index d03ac2c269..0c90944171 100644 --- a/cpukit/libnetworking/sys/domain.h +++ b/cpukit/libnetworking/sys/domain.h @@ -48,7 +48,7 @@ struct domain { void (*dom_init) /* initialize domain data structures */ (void); int (*dom_externalize) /* externalize access rights */ - __P((struct mbuf *)); + (struct mbuf *); void (*dom_dispose) /* dispose of internalized rights */ (struct mbuf *); struct protosw *dom_protosw, *dom_protoswNPROTOSW; diff --git a/cpukit/libnetworking/sys/kernel.h b/cpukit/libnetworking/sys/kernel.h index 25e483809a..41ff6d90b6 100644 --- a/cpukit/libnetworking/sys/kernel.h +++ b/cpukit/libnetworking/sys/kernel.h @@ -194,7 +194,7 @@ typedef enum sysinit_elem_type { struct sysinit { unsigned int subsystem; /* subsystem identifier*/ unsigned int order; /* init order within subsystem*/ - void (*func) __P((void *)); /* init function*/ + void (*func)(void *); /* init function*/ void *udata; /* multiplexer/argument */ si_elem_t type; /* sysinit_elem_type*/ }; @@ -219,11 +219,11 @@ struct sysinit { */ struct kproc_desc { char *arg0; /* arg 0 (for 'ps' listing)*/ - void (*func) __P((void)); /* "main" for kernel process*/ + void (*func)(void); /* "main" for kernel process*/ struct proc **global_procpp; /* ptr to proc ptr save area*/ }; -void kproc_start __P((void *udata)); +void kproc_start(void *udata); #ifdef PSEUDO_LKM #include <sys/conf.h> diff --git a/cpukit/libnetworking/sys/protosw.h b/cpukit/libnetworking/sys/protosw.h index bdf17eca47..225a25eed7 100644 --- a/cpukit/libnetworking/sys/protosw.h +++ b/cpukit/libnetworking/sys/protosw.h @@ -68,26 +68,26 @@ struct protosw { short pr_protocol; /* protocol number */ short pr_flags; /* see below */ /* protocol-protocol hooks */ - void (*pr_input) __P((struct mbuf *, int len)); + void (*pr_input)(struct mbuf *, int len); /* input to protocol (from below) */ - int (*pr_output) __P((struct mbuf *m, struct socket *so)); + int (*pr_output)(struct mbuf *m, struct socket *so); /* output to protocol (from above) */ - void (*pr_ctlinput)__P((int, struct sockaddr *, void *)); + void (*pr_ctlinput)(int, struct sockaddr *, void *); /* control input (from below) */ - int (*pr_ctloutput)__P((int, struct socket *, int, int, - struct mbuf **)); + int (*pr_ctloutput)(int, struct socket *, int, int, + struct mbuf **); /* control output (from above) */ /* user-protocol hook */ - int (*pr_ousrreq) __P((struct socket *, int, struct mbuf *, - struct mbuf *, struct mbuf *)); + int (*pr_ousrreq)(struct socket *, int, struct mbuf *, + struct mbuf *, struct mbuf *); /* user request: see list below */ /* utility hooks */ - void (*pr_init) __P((void)); /* initialization hook */ - void (*pr_fasttimo) __P((void)); + void (*pr_init)(void); /* initialization hook */ + void (*pr_fasttimo)(void); /* fast timeout (200ms) */ - void (*pr_slowtimo) __P((void)); + void (*pr_slowtimo)(void); /* slow timeout (500ms) */ - void (*pr_drain) __P((void)); + void (*pr_drain)(void); /* flush any excess space possible */ struct pr_usrreqs *pr_usrreqs; /* supersedes pr_usrreq() */ }; @@ -171,33 +171,33 @@ struct ifnet; * If the ordering here looks odd, that's because it's alphabetical. */ struct pr_usrreqs { - int (*pru_abort) __P((struct socket *so)); - int (*pru_accept) __P((struct socket *so, struct mbuf *nam)); - int (*pru_attach) __P((struct socket *so, int proto)); - int (*pru_bind) __P((struct socket *so, struct mbuf *nam)); - int (*pru_connect) __P((struct socket *so, struct mbuf *nam)); - int (*pru_connect2) __P((struct socket *so1, struct socket *so2)); - int (*pru_control) __P((struct socket *so, int cmd, caddr_t data, - struct ifnet *ifp)); - int (*pru_detach) __P((struct socket *so)); - int (*pru_disconnect) __P((struct socket *so)); - int (*pru_listen) __P((struct socket *so)); - int (*pru_peeraddr) __P((struct socket *so, struct mbuf *nam)); - int (*pru_rcvd) __P((struct socket *so, int flags)); - int (*pru_rcvoob) __P((struct socket *so, struct mbuf *m, - int flags)); + int (*pru_abort)(struct socket *so); + int (*pru_accept)(struct socket *so, struct mbuf *nam); + int (*pru_attach)(struct socket *so, int proto); + int (*pru_bind)(struct socket *so, struct mbuf *nam); + int (*pru_connect)(struct socket *so, struct mbuf *nam); + int (*pru_connect2)(struct socket *so1, struct socket *so2); + int (*pru_control)(struct socket *so, int cmd, caddr_t data, + struct ifnet *ifp); + int (*pru_detach)(struct socket *so); + int (*pru_disconnect)(struct socket *so); + int (*pru_listen)(struct socket *so); + int (*pru_peeraddr)(struct socket *so, struct mbuf *nam); + int (*pru_rcvd)(struct socket *so, int flags); + int (*pru_rcvoob)(struct socket *so, struct mbuf *m, + int flags); /* * The `m' parameter here is almost certainly going to become a * `struct uio' at some point in the future. Similar changes * will probably happen for the receive entry points. */ - int (*pru_send) __P((struct socket *so, int flags, struct mbuf *m, - struct mbuf *addr, struct mbuf *control)); + int (*pru_send)(struct socket *so, int flags, struct mbuf *m, + struct mbuf *addr, struct mbuf *control); #define PRUS_OOB 0x1 #define PRUS_EOF 0x2 - int (*pru_sense) __P((struct socket *so, struct stat *sb)); - int (*pru_shutdown) __P((struct socket *so)); - int (*pru_sockaddr) __P((struct socket *so, struct mbuf *nam)); + int (*pru_sense)(struct socket *so, struct stat *sb); + int (*pru_shutdown)(struct socket *so); + int (*pru_sockaddr)(struct socket *so, struct mbuf *nam); }; int pru_accept_notsupp(struct socket *so, struct mbuf *nam); diff --git a/cpukit/libnetworking/sys/select.h b/cpukit/libnetworking/sys/select.h index c03a1abe2c..c838f42ef9 100644 --- a/cpukit/libnetworking/sys/select.h +++ b/cpukit/libnetworking/sys/select.h @@ -54,8 +54,8 @@ struct selinfo { #ifdef _KERNEL struct proc; -void selrecord __P((struct proc *selector, struct selinfo *)); -void selwakeup __P((struct selinfo *)); +void selrecord(struct proc *selector, struct selinfo *); +void selwakeup(struct selinfo *); #endif /* Check the first NFDS descriptors each in READFDS (if not NULL) for read diff --git a/cpukit/libnetworking/sys/socket.h b/cpukit/libnetworking/sys/socket.h index 10894425cc..592a08af44 100644 --- a/cpukit/libnetworking/sys/socket.h +++ b/cpukit/libnetworking/sys/socket.h @@ -123,7 +123,7 @@ struct linger { */ struct socket; struct sockwakeup { - void (*sw_pfn) __P((struct socket *, caddr_t)); + void (*sw_pfn)(struct socket *, caddr_t); caddr_t sw_arg; }; diff --git a/cpukit/libnetworking/sys/socketvar.h b/cpukit/libnetworking/sys/socketvar.h index 90a6185e58..f05f791a7a 100644 --- a/cpukit/libnetworking/sys/socketvar.h +++ b/cpukit/libnetworking/sys/socketvar.h @@ -87,7 +87,7 @@ struct socket { struct selinfo sb_sel; /* process selecting read/write */ short sb_flags; /* flags, see below */ int sb_timeo; /* timeout for read/write */ - void (*sb_wakeup) __P((struct socket *, caddr_t)); + void (*sb_wakeup)(struct socket *, caddr_t); caddr_t sb_wakeuparg; /* arg for above */ } so_rcv, so_snd; #define SB_MAX (256L*1024L) /* default for max chars in sockbuf */ diff --git a/cpukit/libnetworking/sys/ucred.h b/cpukit/libnetworking/sys/ucred.h index 5da8b344d0..aae5086f06 100644 --- a/cpukit/libnetworking/sys/ucred.h +++ b/cpukit/libnetworking/sys/ucred.h @@ -53,12 +53,12 @@ struct ucred { #ifdef _KERNEL #define crhold(cr) (cr)->cr_ref++ -struct ucred *crcopy __P((struct ucred *cr)); -struct ucred *crdup __P((struct ucred *cr)); -void crfree __P((struct ucred *cr)); -struct ucred *crget __P((void)); -int suser __P((struct ucred *cred, u_short *acflag)); -int groupmember __P((gid_t gid, struct ucred *cred)); +struct ucred *crcopy(struct ucred *cr); +struct ucred *crdup(struct ucred *cr); +void crfree(struct ucred *cr); +struct ucred *crget(void); +int suser(struct ucred *cred, u_short *acflag); +int groupmember(gid_t gid, struct ucred *cred); #endif /* _KERNEL */ #endif /* !_SYS_UCRED_H_ */ |