unpcb.h (174988) | unpcb.h (262914) |
---|---|
1/*- 2 * Copyright (c) 1982, 1986, 1989, 1993 3 * The Regents of the University of California. All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions 7 * are met: 8 * 1. Redistributions of source code must retain the above copyright --- 13 unchanged lines hidden (view full) --- 22 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 23 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 24 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 25 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 26 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 27 * SUCH DAMAGE. 28 * 29 * @(#)unpcb.h 8.1 (Berkeley) 6/2/93 | 1/*- 2 * Copyright (c) 1982, 1986, 1989, 1993 3 * The Regents of the University of California. All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions 7 * are met: 8 * 1. Redistributions of source code must retain the above copyright --- 13 unchanged lines hidden (view full) --- 22 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 23 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 24 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 25 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 26 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 27 * SUCH DAMAGE. 28 * 29 * @(#)unpcb.h 8.1 (Berkeley) 6/2/93 |
30 * $FreeBSD: head/sys/sys/unpcb.h 174988 2007-12-30 01:42:15Z jeff $ | 30 * $FreeBSD: head/sys/sys/unpcb.h 262914 2014-03-07 23:30:48Z asomers $ |
31 */ 32 33#ifndef _SYS_UNPCB_H_ 34#define _SYS_UNPCB_H_ 35 36#include <sys/queue.h> 37#include <sys/ucred.h> 38 --- 30 unchanged lines hidden (view full) --- 69 struct socket *unp_socket; /* pointer back to socket */ 70 struct file *unp_file; /* back-pointer to file for gc. */ 71 struct vnode *unp_vnode; /* if associated with file */ 72 ino_t unp_ino; /* fake inode number */ 73 struct unpcb *unp_conn; /* control block of connected socket */ 74 struct unp_head unp_refs; /* referencing socket linked list */ 75 LIST_ENTRY(unpcb) unp_reflink; /* link in unp_refs list */ 76 struct sockaddr_un *unp_addr; /* bound address of socket */ | 31 */ 32 33#ifndef _SYS_UNPCB_H_ 34#define _SYS_UNPCB_H_ 35 36#include <sys/queue.h> 37#include <sys/ucred.h> 38 --- 30 unchanged lines hidden (view full) --- 69 struct socket *unp_socket; /* pointer back to socket */ 70 struct file *unp_file; /* back-pointer to file for gc. */ 71 struct vnode *unp_vnode; /* if associated with file */ 72 ino_t unp_ino; /* fake inode number */ 73 struct unpcb *unp_conn; /* control block of connected socket */ 74 struct unp_head unp_refs; /* referencing socket linked list */ 75 LIST_ENTRY(unpcb) unp_reflink; /* link in unp_refs list */ 76 struct sockaddr_un *unp_addr; /* bound address of socket */ |
77 int unp_cc; /* copy of rcv.sb_cc */ 78 int unp_mbcnt; /* copy of rcv.sb_mbcnt */ | 77 int reserved1; 78 int reserved2; |
79 unp_gen_t unp_gencnt; /* generation count of this instance */ 80 short unp_flags; /* flags */ 81 short unp_gcflag; /* Garbage collector flags. */ 82 struct xucred unp_peercred; /* peer credentials, if applicable */ 83 u_int unp_refcount; 84 u_int unp_msgcount; /* references from message queue */ 85 struct mtx unp_mtx; /* mutex */ 86}; --- 62 unchanged lines hidden --- | 79 unp_gen_t unp_gencnt; /* generation count of this instance */ 80 short unp_flags; /* flags */ 81 short unp_gcflag; /* Garbage collector flags. */ 82 struct xucred unp_peercred; /* peer credentials, if applicable */ 83 u_int unp_refcount; 84 u_int unp_msgcount; /* references from message queue */ 85 struct mtx unp_mtx; /* mutex */ 86}; --- 62 unchanged lines hidden --- |