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
--- 17 unchanged lines hidden (view full) ---
26 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
27 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
28 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
29 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
30 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
31 * SUCH DAMAGE.
32 *
33 * @(#)socketvar.h 8.3 (Berkeley) 2/19/95
34 * $FreeBSD: head/sys/sys/socketvar.h 87822 2001-12-13 22:16:54Z green $
35 */
36
37#ifndef _SYS_SOCKETVAR_H_
38#define _SYS_SOCKETVAR_H_
39
40#include <sys/queue.h> /* for TAILQ macros */
41#include <sys/sx.h> /* SX locks */
42#include <sys/selinfo.h> /* for struct selinfo */
--- 335 unchanged lines hidden (view full) ---
378struct socket *soalloc __P((int waitok));
379int sobind __P((struct socket *so, struct sockaddr *nam, struct thread *td));
380void socantrcvmore __P((struct socket *so));
381void socantsendmore __P((struct socket *so));
382int soclose __P((struct socket *so));
383int soconnect __P((struct socket *so, struct sockaddr *nam, struct thread *td));
384int soconnect2 __P((struct socket *so1, struct socket *so2));
385int socreate __P((int dom, struct socket **aso, int type, int proto,
386 struct thread *td));
387int sodisconnect __P((struct socket *so));
388void sofree __P((struct socket *so));
389int sogetopt __P((struct socket *so, struct sockopt *sopt));
390void sohasoutofband __P((struct socket *so));
391void soisconnected __P((struct socket *so));
392void soisconnecting __P((struct socket *so));
393void soisdisconnected __P((struct socket *so));
394void soisdisconnecting __P((struct socket *so));
--- 44 unchanged lines hidden ---
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
--- 17 unchanged lines hidden (view full) ---
26 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
27 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
28 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
29 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
30 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
31 * SUCH DAMAGE.
32 *
33 * @(#)socketvar.h 8.3 (Berkeley) 2/19/95
34 * $FreeBSD: head/sys/sys/socketvar.h 87822 2001-12-13 22:16:54Z green $
35 */
36
37#ifndef _SYS_SOCKETVAR_H_
38#define _SYS_SOCKETVAR_H_
39
40#include <sys/queue.h> /* for TAILQ macros */
41#include <sys/sx.h> /* SX locks */
42#include <sys/selinfo.h> /* for struct selinfo */
--- 335 unchanged lines hidden (view full) ---
378struct socket *soalloc __P((int waitok));
379int sobind __P((struct socket *so, struct sockaddr *nam, struct thread *td));
380void socantrcvmore __P((struct socket *so));
381void socantsendmore __P((struct socket *so));
382int soclose __P((struct socket *so));
383int soconnect __P((struct socket *so, struct sockaddr *nam, struct thread *td));
384int soconnect2 __P((struct socket *so1, struct socket *so2));
385int socreate __P((int dom, struct socket **aso, int type, int proto,
386 struct thread *td));
387int sodisconnect __P((struct socket *so));
388void sofree __P((struct socket *so));
389int sogetopt __P((struct socket *so, struct sockopt *sopt));
390void sohasoutofband __P((struct socket *so));
391void soisconnected __P((struct socket *so));
392void soisconnecting __P((struct socket *so));
393void soisdisconnected __P((struct socket *so));
394void soisdisconnecting __P((struct socket *so));
--- 44 unchanged lines hidden ---