Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/kern fix previous: actually remove the COMPAT_SUNOS code...



details:   https://anonhg.NetBSD.org/src/rev/920f7f63138a
branches:  trunk
changeset: 520106:920f7f63138a
user:      mrg <mrg%NetBSD.org@localhost>
date:      Thu Jan 03 01:16:02 2002 +0000

description:
fix previous: actually remove the COMPAT_SUNOS code, not just #if 0 it.

diffstat:

 sys/kern/uipc_socket.c |  13 ++-----------
 1 files changed, 2 insertions(+), 11 deletions(-)

diffs (34 lines):

diff -r c50170487bf9 -r 920f7f63138a sys/kern/uipc_socket.c
--- a/sys/kern/uipc_socket.c    Thu Jan 03 01:13:35 2002 +0000
+++ b/sys/kern/uipc_socket.c    Thu Jan 03 01:16:02 2002 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: uipc_socket.c,v 1.60 2002/01/03 01:11:26 mrg Exp $     */
+/*     $NetBSD: uipc_socket.c,v 1.61 2002/01/03 01:16:02 mrg Exp $     */
 
 /*
  * Copyright (c) 1982, 1986, 1988, 1990, 1993
@@ -36,9 +36,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: uipc_socket.c,v 1.60 2002/01/03 01:11:26 mrg Exp $");
-
-#include "opt_compat_sunos.h"
+__KERNEL_RCSID(0, "$NetBSD: uipc_socket.c,v 1.61 2002/01/03 01:16:02 mrg Exp $");
 
 #include <sys/param.h>
 #include <sys/systm.h>
@@ -112,13 +110,6 @@
                splx(s);
                return (error);
        }
-#if defined(COMPAT_SUNOS) && 0 /* moved into compat/sunos */
-       {
-               extern struct emul emul_sunos;
-               if (p->p_emul == &emul_sunos && type == SOCK_DGRAM)
-                       so->so_options |= SO_BROADCAST;
-       }
-#endif
        splx(s);
        *aso = so;
        return (0);



Home | Main Index | Thread Index | Old Index