Deleted Added
full compact
socketvar.h (130050) socketvar.h (130364)
1/*-
2 * Copyright (c) 1982, 1986, 1990, 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 * @(#)socketvar.h 8.3 (Berkeley) 2/19/95
1/*-
2 * Copyright (c) 1982, 1986, 1990, 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 * @(#)socketvar.h 8.3 (Berkeley) 2/19/95
30 * $FreeBSD: head/sys/sys/socketvar.h 130050 2004-06-04 04:07:08Z rwatson $
30 * $FreeBSD: head/sys/sys/socketvar.h 130364 2004-06-11 22:39:42Z rwatson $
31 */
32
33#ifndef _SYS_SOCKETVAR_H_
34#define _SYS_SOCKETVAR_H_
35
36#include <sys/queue.h> /* for TAILQ macros */
37#include <sys/selinfo.h> /* for struct selinfo */
38

--- 103 unchanged lines hidden (view full) ---

142
143/*
144 * Global accept mutex to serialize access to accept queues and
145 * fields associated with multiple sockets. This allows us to
146 * avoid defining a lock order between listen and accept sockets
147 * until such time as it proves to be a good idea.
148 */
149extern struct mtx accept_mtx;
31 */
32
33#ifndef _SYS_SOCKETVAR_H_
34#define _SYS_SOCKETVAR_H_
35
36#include <sys/queue.h> /* for TAILQ macros */
37#include <sys/selinfo.h> /* for struct selinfo */
38

--- 103 unchanged lines hidden (view full) ---

142
143/*
144 * Global accept mutex to serialize access to accept queues and
145 * fields associated with multiple sockets. This allows us to
146 * avoid defining a lock order between listen and accept sockets
147 * until such time as it proves to be a good idea.
148 */
149extern struct mtx accept_mtx;
150#define ACCEPT_LOCK() mtx_lock(&accept_mtx)
151#define ACCEPT_UNLOCK() mtx_unlock(&accept_mtx)
150#define ACCEPT_LOCK() mtx_lock(&accept_mtx)
151#define ACCEPT_UNLOCK() mtx_unlock(&accept_mtx)
152
153/*
154 * Socket state bits.
155 */
156#define SS_NOFDREF 0x0001 /* no file table ref any more */
157#define SS_ISCONNECTED 0x0002 /* socket connected to a peer */
158#define SS_ISCONNECTING 0x0004 /* in process of connecting to peer */
159#define SS_ISDISCONNECTING 0x0008 /* in process of disconnecting */

--- 301 unchanged lines hidden ---
152
153/*
154 * Socket state bits.
155 */
156#define SS_NOFDREF 0x0001 /* no file table ref any more */
157#define SS_ISCONNECTED 0x0002 /* socket connected to a peer */
158#define SS_ISCONNECTING 0x0004 /* in process of connecting to peer */
159#define SS_ISDISCONNECTING 0x0008 /* in process of disconnecting */

--- 301 unchanged lines hidden ---