Deleted Added
full compact
socketvar.h (52984) socketvar.h (53541)
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 52984 1999-11-08 03:31:01Z peter $
34 * $FreeBSD: head/sys/sys/socketvar.h 53541 1999-11-22 02:45:11Z shin $
35 */
36
37#ifndef _SYS_SOCKETVAR_H_
38#define _SYS_SOCKETVAR_H_
39
40#include <sys/queue.h> /* for TAILQ macros */
41#include <sys/select.h> /* for struct selinfo */
42

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

350 sodropablereq __P((struct socket *head));
351struct socket *
352 sonewconn __P((struct socket *head, int connstatus));
353struct socket *
354 sonewconn3 __P((struct socket *head, int connstatus, struct proc *p));
355int sooptcopyin __P((struct sockopt *sopt, void *buf, size_t len,
356 size_t minlen));
357int sooptcopyout __P((struct sockopt *sopt, void *buf, size_t len));
35 */
36
37#ifndef _SYS_SOCKETVAR_H_
38#define _SYS_SOCKETVAR_H_
39
40#include <sys/queue.h> /* for TAILQ macros */
41#include <sys/select.h> /* for struct selinfo */
42

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

350 sodropablereq __P((struct socket *head));
351struct socket *
352 sonewconn __P((struct socket *head, int connstatus));
353struct socket *
354 sonewconn3 __P((struct socket *head, int connstatus, struct proc *p));
355int sooptcopyin __P((struct sockopt *sopt, void *buf, size_t len,
356 size_t minlen));
357int sooptcopyout __P((struct sockopt *sopt, void *buf, size_t len));
358
359/* XXX; prepare mbuf for (__FreeBSD__ < 3) routines. */
360int soopt_getm __P((struct sockopt *sopt, struct mbuf **mp));
361int soopt_mcopyin __P((struct sockopt *sopt, struct mbuf *m));
362int soopt_mcopyout __P((struct sockopt *sopt, struct mbuf *m));
363
358int sopoll __P((struct socket *so, int events, struct ucred *cred,
359 struct proc *p));
360int soreceive __P((struct socket *so, struct sockaddr **paddr,
361 struct uio *uio, struct mbuf **mp0,
362 struct mbuf **controlp, int *flagsp));
363int soreserve __P((struct socket *so, u_long sndcc, u_long rcvcc));
364void sorflush __P((struct socket *so));
365int sosend __P((struct socket *so, struct sockaddr *addr, struct uio *uio,
366 struct mbuf *top, struct mbuf *control, int flags,
367 struct proc *p));
368int sosetopt __P((struct socket *so, struct sockopt *sopt));
369int soshutdown __P((struct socket *so, int how));
370void sotoxsocket __P((struct socket *so, struct xsocket *xso));
371void sowakeup __P((struct socket *so, struct sockbuf *sb));
372
373#endif /* KERNEL */
374
375#endif /* !_SYS_SOCKETVAR_H_ */
364int sopoll __P((struct socket *so, int events, struct ucred *cred,
365 struct proc *p));
366int soreceive __P((struct socket *so, struct sockaddr **paddr,
367 struct uio *uio, struct mbuf **mp0,
368 struct mbuf **controlp, int *flagsp));
369int soreserve __P((struct socket *so, u_long sndcc, u_long rcvcc));
370void sorflush __P((struct socket *so));
371int sosend __P((struct socket *so, struct sockaddr *addr, struct uio *uio,
372 struct mbuf *top, struct mbuf *control, int flags,
373 struct proc *p));
374int sosetopt __P((struct socket *so, struct sockopt *sopt));
375int soshutdown __P((struct socket *so, int how));
376void sotoxsocket __P((struct socket *so, struct xsocket *xso));
377void sowakeup __P((struct socket *so, struct sockbuf *sb));
378
379#endif /* KERNEL */
380
381#endif /* !_SYS_SOCKETVAR_H_ */