Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. =================================================================== RCS file: /ftp/cvs/cvsroot/src/sys/sys/socket.h,v rcsdiff: /ftp/cvs/cvsroot/src/sys/sys/socket.h,v: warning: Unknown phrases like `commitid ...;' are present. retrieving revision 1.8 retrieving revision 1.16 diff -u -p -r1.8 -r1.16 --- src/sys/sys/socket.h 1994/05/13 06:12:10 1.8 +++ src/sys/sys/socket.h 1996/05/03 09:23:22 1.16 @@ -1,3 +1,5 @@ +/* $NetBSD: socket.h,v 1.16 1996/05/03 09:23:22 neil Exp $ */ + /* * Copyright (c) 1982, 1985, 1986, 1988, 1993, 1994 * The Regents of the University of California. All rights reserved. @@ -30,8 +32,7 @@ * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. * - * from: @(#)socket.h 8.4 (Berkeley) 2/21/94 - * $Id: socket.h,v 1.8 1994/05/13 06:12:10 mycroft Exp $ + * @(#)socket.h 8.4 (Berkeley) 2/21/94 */ #ifndef _SYS_SOCKET_H_ @@ -236,9 +237,10 @@ struct sockproto { } /* - * Maximum queue length specifiable by listen. + * Maximum queue length specifiable by listen(2). */ -#define SOMAXCONN 5 + +#define SOMAXCONN 128 /* * Message header for recvmsg and sendmsg calls. @@ -311,7 +313,7 @@ struct omsghdr { int msg_accrightslen; }; -#ifndef KERNEL +#ifndef _KERNEL #include @@ -335,6 +337,12 @@ int shutdown __P((int, int)); int socket __P((int, int, int)); int socketpair __P((int, int, int, int *)); __END_DECLS +#else +# if defined(COMPAT_43) || defined(COMPAT_SUNOS) || defined(COMPAT_LINUX) || \ + defined(COMPAT_HPUX) || defined(COMPAT_FREEBSD) +# define COMPAT_OLDSOCK +# define MSG_COMPAT 0x8000 +# endif +#endif /* !_KERNEL */ -#endif /* !KERNEL */ #endif /* !_SYS_SOCKET_H_ */