path: root/sys/sys/un.h
diff options
authorRobert Watson <rwatson@FreeBSD.org>2008-10-03 13:01:56 +0000
committerRobert Watson <rwatson@FreeBSD.org>2008-10-03 13:01:56 +0000
commit0b36cd25fcb6fd26726efb8d9fd80b9c9733174f (patch)
tree6df1e9f9441c9e8cdfb916b2b5f8ce8b0a928b0e /sys/sys/un.h
parent0895aec30c96307691f5bbfdc697c697d0c4afb5 (diff)
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)
Notes: svn path=/head/; revision=183572
Diffstat (limited to 'sys/sys/un.h')
1 files changed, 1 insertions, 10 deletions
diff --git a/sys/sys/un.h b/sys/sys/un.h
index 97aebb5be2e0..1452c33de222 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 */