summaryrefslogtreecommitdiffstats
path: root/sys/sys/un.h
diff options
context:
space:
mode:
authorhsu <hsu@FreeBSD.org>1996-03-11 02:12:57 +0000
committerhsu <hsu@FreeBSD.org>1996-03-11 02:12:57 +0000
commitfaf1845257f0506a0c6b7010770fcea0c8da739a (patch)
treea9a1280e0892fa303bacc38d2ef7b81d01618d97 /sys/sys/un.h
parent91ca84b595fadeedcd26659b09ebb887bce9af50 (diff)
downloadFreeBSD-src-faf1845257f0506a0c6b7010770fcea0c8da739a.zip
FreeBSD-src-faf1845257f0506a0c6b7010770fcea0c8da739a.tar.gz
Merge in Lite2: add function prototypes.
Did not accept prototypes for unp_attach(), unp_bind(), unp_connect(), unp_detach(), unp_discard(), unp_disconnect(), unp_drop(), np_gc(), unp_mark(), unp_scan(), and unp_shutdown(). They are used only in uipc_usrreq.c and declared static there. Reviewed by: davidg & bde
Diffstat (limited to 'sys/sys/un.h')
-rw-r--r--sys/sys/un.h24
1 files changed, 14 insertions, 10 deletions
diff --git a/sys/sys/un.h b/sys/sys/un.h
index 6471ab3..6f4eac1 100644
--- a/sys/sys/un.h
+++ b/sys/sys/un.h
@@ -30,8 +30,8 @@
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*
- * @(#)un.h 8.1 (Berkeley) 6/2/93
- * $Id: un.h,v 1.7 1995/11/21 12:55:15 bde Exp $
+ * @(#)un.h 8.3 (Berkeley) 2/19/95
+ * $Id: un.h,v 1.11 1996/03/10 10:36:30 hsu Exp $
*/
#ifndef _SYS_UN_H_
@@ -51,15 +51,19 @@ struct sockaddr_un {
};
#ifdef KERNEL
-int uipc_usrreq __P((struct socket *, int, struct mbuf *, struct mbuf *,
- struct mbuf *));
-int unp_connect2 __P((struct socket*,struct socket*));
-void unp_dispose __P((struct mbuf *));
-int unp_externalize __P((struct mbuf *));
-#else /* KERNEL */
+struct unpcb;
+
+int uipc_usrreq __P((struct socket *so, int req, struct mbuf *m,
+ struct mbuf *nam, struct mbuf *control));
+int unp_connect2 __P((struct socket *so, struct socket *so2));
+void unp_dispose __P((struct mbuf *m));
+int unp_externalize __P((struct mbuf *rights));
+#else /* !KERNEL */
+
/* actual length of an initialized sockaddr_un */
#define SUN_LEN(su) \
(sizeof(*(su)) - sizeof((su)->sun_path) + strlen((su)->sun_path))
-#endif
-#endif
+#endif /* KERNEL */
+
+#endif /* !_SYS_UN_H_ */
OpenPOWER on IntegriCloud