summaryrefslogtreecommitdiffstats
path: root/sys/sys/protosw.h
diff options
context:
space:
mode:
authorbde <bde@FreeBSD.org>2002-03-23 08:46:52 +0000
committerbde <bde@FreeBSD.org>2002-03-23 08:46:52 +0000
commitd27d5e3b44ff619a0151aa86993697a211e61bc7 (patch)
tree4fbccf4faf4a4159d59e5692f41ff89787b0d730 /sys/sys/protosw.h
parentcfea68cc2558bffb3c97f4c8d7646b8266c30e9b (diff)
downloadFreeBSD-src-d27d5e3b44ff619a0151aa86993697a211e61bc7.zip
FreeBSD-src-d27d5e3b44ff619a0151aa86993697a211e61bc7.tar.gz
Fixed some style bugs in the removal of __P(()). The main ones were
not removing tabs before "__P((", and not outdenting continuation lines to preserve non-KNF lining up of code with parentheses. Switch to KNF formatting and/or rewrap the whole prototype in some cases.
Diffstat (limited to 'sys/sys/protosw.h')
-rw-r--r--sys/sys/protosw.h28
1 files changed, 13 insertions, 15 deletions
diff --git a/sys/sys/protosw.h b/sys/sys/protosw.h
index eceef4f0..2783e83 100644
--- a/sys/sys/protosw.h
+++ b/sys/sys/protosw.h
@@ -200,12 +200,12 @@ struct pr_usrreqs {
int (*pru_accept)(struct socket *so, struct sockaddr **nam);
int (*pru_attach)(struct socket *so, int proto, struct thread *td);
int (*pru_bind)(struct socket *so, struct sockaddr *nam,
- struct thread *td);
+ struct thread *td);
int (*pru_connect)(struct socket *so, struct sockaddr *nam,
- struct thread *td);
+ struct thread *td);
int (*pru_connect2)(struct socket *so1, struct socket *so2);
int (*pru_control)(struct socket *so, u_long cmd, caddr_t data,
- struct ifnet *ifp, struct thread *td);
+ struct ifnet *ifp, struct thread *td);
int (*pru_detach)(struct socket *so);
int (*pru_disconnect)(struct socket *so);
int (*pru_listen)(struct socket *so, struct thread *td);
@@ -213,8 +213,8 @@ struct pr_usrreqs {
int (*pru_rcvd)(struct socket *so, int flags);
int (*pru_rcvoob)(struct socket *so, struct mbuf *m, int flags);
int (*pru_send)(struct socket *so, int flags, struct mbuf *m,
- struct sockaddr *addr, struct mbuf *control,
- struct thread *td);
+ struct sockaddr *addr, struct mbuf *control,
+ struct thread *td);
#define PRUS_OOB 0x1
#define PRUS_EOF 0x2
#define PRUS_MORETOCOME 0x4
@@ -231,23 +231,21 @@ struct pr_usrreqs {
* the generic code, these just point to those routines.
*/
int (*pru_sosend)(struct socket *so, struct sockaddr *addr,
- struct uio *uio, struct mbuf *top,
- struct mbuf *control, int flags,
- struct thread *td);
- int (*pru_soreceive)(struct socket *so,
- struct sockaddr **paddr,
- struct uio *uio, struct mbuf **mp0,
- struct mbuf **controlp, int *flagsp);
+ struct uio *uio, struct mbuf *top, struct mbuf *control,
+ int flags, struct thread *td);
+ int (*pru_soreceive)(struct socket *so, struct sockaddr **paddr,
+ struct uio *uio, struct mbuf **mp0, struct mbuf **controlp,
+ int *flagsp);
int (*pru_sopoll)(struct socket *so, int events,
- struct ucred *cred, struct thread *td);
+ struct ucred *cred, struct thread *td);
};
int pru_accept_notsupp(struct socket *so, struct sockaddr **nam);
int pru_connect_notsupp(struct socket *so, struct sockaddr *nam,
- struct thread *td);
+ struct thread *td);
int pru_connect2_notsupp(struct socket *so1, struct socket *so2);
int pru_control_notsupp(struct socket *so, u_long cmd, caddr_t data,
- struct ifnet *ifp, struct thread *td);
+ struct ifnet *ifp, struct thread *td);
int pru_listen_notsupp(struct socket *so, struct thread *td);
int pru_rcvd_notsupp(struct socket *so, int flags);
int pru_rcvoob_notsupp(struct socket *so, struct mbuf *m, int flags);
OpenPOWER on IntegriCloud