summaryrefslogtreecommitdiffstats
path: root/sys/sys/un.h
diff options
context:
space:
mode:
authorrwatson <rwatson@FreeBSD.org>2008-10-03 13:01:56 +0000
committerrwatson <rwatson@FreeBSD.org>2008-10-03 13:01:56 +0000
commitbbe0e181656adf606748968f5803bb8cbc7d83c8 (patch)
tree6df1e9f9441c9e8cdfb916b2b5f8ce8b0a928b0e /sys/sys/un.h
parentfa40502272affacff314b996f52032651539d2cd (diff)
downloadFreeBSD-src-bbe0e181656adf606748968f5803bb8cbc7d83c8.zip
FreeBSD-src-bbe0e181656adf606748968f5803bb8cbc7d83c8.tar.gz
Further minor cleanups to UNIX domain sockets:
- Staticize and locally prototype functions uipc_ctloutput(), unp_dispose(), unp_init(), and unp_externalize(), none of which have been required outside of uipc_usrreq.c since uipc_proto.c was removed. - Remove stale prototype for uipc_usrreq(), which has not existed in the code since 1997 - Forward declare and staticize uipc_usrreqs structure in uipc_usrreq.c and not un.h. - Comment on why uipc_connect2() is still non-static -- it is used directly by fifofs. - Remove stale comments, tidy up whitespace. MFC after: 3 days (where applicable)
Diffstat (limited to 'sys/sys/un.h')
-rw-r--r--sys/sys/un.h11
1 files changed, 1 insertions, 10 deletions
diff --git a/sys/sys/un.h b/sys/sys/un.h
index 97aebb5..1452c33 100644
--- a/sys/sys/un.h
+++ b/sys/sys/un.h
@@ -58,18 +58,9 @@ struct sockaddr_un {
#define LOCAL_CONNWAIT 0x004 /* connects block until accepted */
#ifdef _KERNEL
-struct mbuf;
-struct socket;
-struct sockopt;
+struct socket;
int uipc_connect2(struct socket *so1, struct socket *so2);
-int uipc_ctloutput(struct socket *so, struct sockopt *sopt);
-int uipc_usrreq(struct socket *so, int req, struct mbuf *m,
- struct mbuf *nam, struct mbuf *control);
-void unp_dispose(struct mbuf *m);
-int unp_externalize(struct mbuf *mbuf, struct mbuf **controlp);
-void unp_init(void);
-extern struct pr_usrreqs uipc_usrreqs;
#else /* !_KERNEL */
OpenPOWER on IntegriCloud