aboutsummaryrefslogtreecommitdiff
path: root/sys/sys/un.h
diff options
context:
space:
mode:
authorPoul-Henning Kamp <phk@FreeBSD.org>1994-10-02 17:25:04 +0000
committerPoul-Henning Kamp <phk@FreeBSD.org>1994-10-02 17:25:04 +0000
commitf86eaaca2cddbd6cbac926f9860b8ec3c664d3fd (patch)
tree3fb1646e6a554000fd088d88399afcd049cea7e9 /sys/sys/un.h
parentc9421aa7c436cc2009d3baff183afc51796b0f03 (diff)
downloadsrc-f86eaaca2cddbd6cbac926f9860b8ec3c664d3fd.tar.gz
src-f86eaaca2cddbd6cbac926f9860b8ec3c664d3fd.zip
Prototypes, prototypes and even more prototypes. Not quite done yet, but
getting closer all the time.
Notes
Notes: svn path=/head/; revision=3304
Diffstat (limited to 'sys/sys/un.h')
-rw-r--r--sys/sys/un.h22
1 files changed, 20 insertions, 2 deletions
diff --git a/sys/sys/un.h b/sys/sys/un.h
index c1b4270890a8..a2de0eed1260 100644
--- a/sys/sys/un.h
+++ b/sys/sys/un.h
@@ -31,12 +31,16 @@
* SUCH DAMAGE.
*
* @(#)un.h 8.1 (Berkeley) 6/2/93
- * $Id: un.h,v 1.3 1994/08/02 07:54:03 davidg Exp $
+ * $Id: un.h,v 1.4 1994/08/21 04:42:09 paul Exp $
*/
#ifndef _SYS_UN_H_
#define _SYS_UN_H_
+#ifdef KERNEL
+#include <sys/unpcb.h>
+#endif /* KERNEL */
+
/*
* Definitions for UNIX IPC domain.
*/
@@ -46,7 +50,21 @@ struct sockaddr_un {
char sun_path[104]; /* path name (gag) */
};
-#ifndef KERNEL
+#ifdef KERNEL
+int unp_connect2 __P((struct socket*,struct socket*));
+void unp_detach __P((struct unpcb *));
+void unp_disconnect __P((struct unpcb *));
+void unp_shutdown __P((struct unpcb *));
+void unp_drop __P((struct unpcb *, int));
+void unp_gc __P((void));
+void unp_scan __P((struct mbuf *, void (*)(struct file *)));
+void unp_mark __P((struct file *));
+void unp_discard __P((struct file *));
+int unp_attach __P((struct socket *));
+int unp_bind __P((struct unpcb *,struct mbuf *, struct proc *));
+int unp_connect __P((struct socket *,struct mbuf *, struct proc *));
+int unp_internalize __P((struct mbuf *, struct proc *));
+#else /* KERNEL */
/* actual length of an initialized sockaddr_un */
#define SUN_LEN(su) \
(sizeof(*(su)) - sizeof((su)->sun_path) + strlen((su)->sun_path))