Deleted Added
full compact
socket.h (33006) socket.h (39114)
1/*
2 * Copyright (c) 1982, 1985, 1986, 1988, 1993, 1994
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 * @(#)socket.h 8.4 (Berkeley) 2/21/94
1/*
2 * Copyright (c) 1982, 1985, 1986, 1988, 1993, 1994
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 * @(#)socket.h 8.4 (Berkeley) 2/21/94
34 * $Id: socket.h,v 1.23 1997/12/21 16:35:11 bde Exp $
34 * $Id: socket.h,v 1.24 1998/02/01 22:44:16 alex Exp $
35 */
36
37#ifndef _SYS_SOCKET_H_
38#define _SYS_SOCKET_H_
39
40/*
41 * Definitions related to sockets: types, address families, options.
42 */

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

349 caddr_t msg_name; /* optional address */
350 int msg_namelen; /* size of address */
351 struct iovec *msg_iov; /* scatter/gather array */
352 int msg_iovlen; /* # elements in msg_iov */
353 caddr_t msg_accrights; /* access rights sent/received */
354 int msg_accrightslen;
355};
356
35 */
36
37#ifndef _SYS_SOCKET_H_
38#define _SYS_SOCKET_H_
39
40/*
41 * Definitions related to sockets: types, address families, options.
42 */

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

349 caddr_t msg_name; /* optional address */
350 int msg_namelen; /* size of address */
351 struct iovec *msg_iov; /* scatter/gather array */
352 int msg_iovlen; /* # elements in msg_iov */
353 caddr_t msg_accrights; /* access rights sent/received */
354 int msg_accrightslen;
355};
356
357/*
358 * howto arguments for shutdown(2), specified by Posix.1g.
359 */
360#define SHUT_RD 0 /* shut down the reading side */
361#define SHUT_WR 1 /* shut down the writing side */
362#define SHUT_RDWR 2 /* shut down both sides */
363
357#ifndef KERNEL
358
359#include <sys/cdefs.h>
360
361__BEGIN_DECLS
362int accept __P((int, struct sockaddr *, int *));
363int bind __P((int, const struct sockaddr *, int));
364int connect __P((int, const struct sockaddr *, int));

--- 20 unchanged lines hidden ---
364#ifndef KERNEL
365
366#include <sys/cdefs.h>
367
368__BEGIN_DECLS
369int accept __P((int, struct sockaddr *, int *));
370int bind __P((int, const struct sockaddr *, int));
371int connect __P((int, const struct sockaddr *, int));

--- 20 unchanged lines hidden ---