aboutsummaryrefslogtreecommitdiff
path: root/sys/sys/un.h
diff options
context:
space:
mode:
authorJeffrey Hsu <hsu@FreeBSD.org>1996-03-11 02:12:57 +0000
committerJeffrey Hsu <hsu@FreeBSD.org>1996-03-11 02:12:57 +0000
commiteebc15be3af2c63ae7a1afb6227282202b1f1fd0 (patch)
treea9a1280e0892fa303bacc38d2ef7b81d01618d97 /sys/sys/un.h
parent32a8159d729e558025d3af3cc6c4864df3277602 (diff)
downloadsrc-eebc15be3af2c63ae7a1afb6227282202b1f1fd0.tar.gz
src-eebc15be3af2c63ae7a1afb6227282202b1f1fd0.zip
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
Notes
Notes: svn path=/head/; revision=14489
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 6471ab380220..6f4eac183a00 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_ */