Deleted Added
full compact
socketvar.h (126411) socketvar.h (126425)
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
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 126411 2004-02-29 17:54:05Z rwatson $
34 * $FreeBSD: head/sys/sys/socketvar.h 126425 2004-03-01 03:14:23Z rwatson $
35 */
36
37#ifndef _SYS_SOCKETVAR_H_
38#define _SYS_SOCKETVAR_H_
39
40#include <sys/queue.h> /* for TAILQ macros */
41#include <sys/selinfo.h> /* for struct selinfo */
42

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

347struct mbuf;
348struct sockaddr;
349struct ucred;
350struct uio;
351
352/*
353 * From uipc_socket and friends
354 */
35 */
36
37#ifndef _SYS_SOCKETVAR_H_
38#define _SYS_SOCKETVAR_H_
39
40#include <sys/queue.h> /* for TAILQ macros */
41#include <sys/selinfo.h> /* for struct selinfo */
42

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

347struct mbuf;
348struct sockaddr;
349struct ucred;
350struct uio;
351
352/*
353 * From uipc_socket and friends
354 */
355struct sockaddr *dup_sockaddr(struct sockaddr *sa, int canwait);
356int sockargs(struct mbuf **mp, caddr_t buf, int buflen, int type);
357int getsockaddr(struct sockaddr **namp, caddr_t uaddr, size_t len);
358void sbappend(struct sockbuf *sb, struct mbuf *m);
359void sbappendstream(struct sockbuf *sb, struct mbuf *m);
360int sbappendaddr(struct sockbuf *sb, struct sockaddr *asa,
361 struct mbuf *m0, struct mbuf *control);
362int sbappendcontrol(struct sockbuf *sb, struct mbuf *m0,
363 struct mbuf *control);

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

386int soclose(struct socket *so);
387int soconnect(struct socket *so, struct sockaddr *nam, struct thread *td);
388int soconnect2(struct socket *so1, struct socket *so2);
389int socow_setup(struct mbuf *m0, struct uio *uio);
390int socreate(int dom, struct socket **aso, int type, int proto,
391 struct ucred *cred, struct thread *td);
392void sodealloc(struct socket *so);
393int sodisconnect(struct socket *so);
355int sockargs(struct mbuf **mp, caddr_t buf, int buflen, int type);
356int getsockaddr(struct sockaddr **namp, caddr_t uaddr, size_t len);
357void sbappend(struct sockbuf *sb, struct mbuf *m);
358void sbappendstream(struct sockbuf *sb, struct mbuf *m);
359int sbappendaddr(struct sockbuf *sb, struct sockaddr *asa,
360 struct mbuf *m0, struct mbuf *control);
361int sbappendcontrol(struct sockbuf *sb, struct mbuf *m0,
362 struct mbuf *control);

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

385int soclose(struct socket *so);
386int soconnect(struct socket *so, struct sockaddr *nam, struct thread *td);
387int soconnect2(struct socket *so1, struct socket *so2);
388int socow_setup(struct mbuf *m0, struct uio *uio);
389int socreate(int dom, struct socket **aso, int type, int proto,
390 struct ucred *cred, struct thread *td);
391void sodealloc(struct socket *so);
392int sodisconnect(struct socket *so);
393struct sockaddr *sodupsockaddr(const struct sockaddr *sa, int mflags);
394void sofree(struct socket *so);
395int sogetopt(struct socket *so, struct sockopt *sopt);
396void sohasoutofband(struct socket *so);
397void soisconnected(struct socket *so);
398void soisconnecting(struct socket *so);
399void soisdisconnected(struct socket *so);
400void soisdisconnecting(struct socket *so);
401int solisten(struct socket *so, int backlog, struct thread *td);

--- 51 unchanged lines hidden ---
394void sofree(struct socket *so);
395int sogetopt(struct socket *so, struct sockopt *sopt);
396void sohasoutofband(struct socket *so);
397void soisconnected(struct socket *so);
398void soisconnecting(struct socket *so);
399void soisdisconnected(struct socket *so);
400void soisdisconnecting(struct socket *so);
401int solisten(struct socket *so, int backlog, struct thread *td);

--- 51 unchanged lines hidden ---