diff options
author | phk <phk@FreeBSD.org> | 1994-10-02 17:25:04 +0000 |
---|---|---|
committer | phk <phk@FreeBSD.org> | 1994-10-02 17:25:04 +0000 |
commit | b1b8768e6a30f06704cfedaeae8f3397ad760a4e (patch) | |
tree | 3fb1646e6a554000fd088d88399afcd049cea7e9 /sys/sys/un.h | |
parent | c19ab2dab1da14de3c443a8c43b01233a5587bf8 (diff) | |
download | FreeBSD-src-b1b8768e6a30f06704cfedaeae8f3397ad760a4e.zip FreeBSD-src-b1b8768e6a30f06704cfedaeae8f3397ad760a4e.tar.gz |
Prototypes, prototypes and even more prototypes. Not quite done yet, but
getting closer all the time.
Diffstat (limited to 'sys/sys/un.h')
-rw-r--r-- | sys/sys/un.h | 22 |
1 files changed, 20 insertions, 2 deletions
diff --git a/sys/sys/un.h b/sys/sys/un.h index c1b4270..a2de0ee 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)) |