Source-Changes-HG archive

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

[src/trunk]: src Retire compat_ibcs2, as discussed on tech-kern@. FreeBSD did...



details:   https://anonhg.NetBSD.org/src/rev/086f1698f22f
branches:  trunk
changeset: 447049:086f1698f22f
user:      maxv <maxv%NetBSD.org@localhost>
date:      Sat Dec 29 11:30:11 2018 +0000

description:
Retire compat_ibcs2, as discussed on tech-kern@. FreeBSD did the same
recently.

diffstat:

 distrib/sets/lists/comp/md.vax       |     4 +-
 distrib/sets/lists/man/mi            |     8 +-
 share/man/man4/options.4             |     8 +-
 share/man/man7/hier.7                |     6 +-
 share/man/man7/symlink.7             |     5 +-
 share/man/man8/Makefile              |     4 +-
 share/man/man8/compat_ibcs2.8        |   176 ---
 sys/arch/amd64/conf/ALL              |     5 +-
 sys/arch/i386/conf/ALL               |     5 +-
 sys/arch/vax/conf/GENERIC            |     5 +-
 sys/arch/vax/conf/VAX780             |     3 +-
 sys/arch/vax/conf/files.vax          |     8 +-
 sys/arch/vax/include/Makefile        |     3 +-
 sys/arch/vax/include/ibcs2_machdep.h |    53 -
 sys/arch/vax/include/signal.h        |     6 +-
 sys/arch/vax/vax/compat_13_machdep.c |     5 +-
 sys/arch/vax/vax/compat_16_machdep.c |     5 +-
 sys/arch/vax/vax/ibcs2_machdep.c     |    84 -
 sys/arch/vax/vax/machdep.c           |     5 +-
 sys/arch/vax/vax/sig_machdep.c       |     7 +-
 sys/arch/vax/vax/subr.S              |    21 +-
 sys/compat/Makefile                  |     4 +-
 sys/compat/Makefile.syscall          |     4 +-
 sys/compat/ibcs2/Makefile            |     5 -
 sys/compat/ibcs2/TODO                |    25 -
 sys/compat/ibcs2/files.ibcs2         |    25 -
 sys/compat/ibcs2/ibcs2_dirent.h      |    52 -
 sys/compat/ibcs2/ibcs2_errno.c       |   140 --
 sys/compat/ibcs2/ibcs2_errno.h       |   155 --
 sys/compat/ibcs2/ibcs2_exec.c        |   192 ---
 sys/compat/ibcs2/ibcs2_exec.h        |   195 ---
 sys/compat/ibcs2/ibcs2_exec_coff.c   |   606 -----------
 sys/compat/ibcs2/ibcs2_exec_elf32.c  |   136 --
 sys/compat/ibcs2/ibcs2_exec_xout.c   |   193 ---
 sys/compat/ibcs2/ibcs2_fcntl.c       |   327 ------
 sys/compat/ibcs2/ibcs2_fcntl.h       |    76 -
 sys/compat/ibcs2/ibcs2_grp.h         |    43 -
 sys/compat/ibcs2/ibcs2_ioctl.c       |   574 -----------
 sys/compat/ibcs2/ibcs2_ipc.c         |   457 --------
 sys/compat/ibcs2/ibcs2_misc.c        |  1441 ---------------------------
 sys/compat/ibcs2/ibcs2_mman.h        |    44 -
 sys/compat/ibcs2/ibcs2_mod.c         |   125 --
 sys/compat/ibcs2/ibcs2_mount.h       |    41 -
 sys/compat/ibcs2/ibcs2_pwd.h         |    48 -
 sys/compat/ibcs2/ibcs2_signal.c      |   347 ------
 sys/compat/ibcs2/ibcs2_signal.h      |   132 --
 sys/compat/ibcs2/ibcs2_signo.c       |   108 --
 sys/compat/ibcs2/ibcs2_socksys.c     |   130 --
 sys/compat/ibcs2/ibcs2_socksys.h     |   128 --
 sys/compat/ibcs2/ibcs2_stat.c        |   340 ------
 sys/compat/ibcs2/ibcs2_stat.h        |    87 -
 sys/compat/ibcs2/ibcs2_statfs.h      |    65 -
 sys/compat/ibcs2/ibcs2_stropts.h     |    50 -
 sys/compat/ibcs2/ibcs2_syscall.h     |   343 ------
 sys/compat/ibcs2/ibcs2_syscallargs.h |   739 --------------
 sys/compat/ibcs2/ibcs2_syscalls.c    |  1086 --------------------
 sys/compat/ibcs2/ibcs2_sysent.c      |  1764 ----------------------------------
 sys/compat/ibcs2/ibcs2_sysi86.h      |    43 -
 sys/compat/ibcs2/ibcs2_termios.h     |   258 ----
 sys/compat/ibcs2/ibcs2_time.h        |    50 -
 sys/compat/ibcs2/ibcs2_timeb.h       |    47 -
 sys/compat/ibcs2/ibcs2_types.h       |    54 -
 sys/compat/ibcs2/ibcs2_unistd.h      |    75 -
 sys/compat/ibcs2/ibcs2_ustat.h       |    46 -
 sys/compat/ibcs2/ibcs2_util.h        |    77 -
 sys/compat/ibcs2/ibcs2_utime.h       |    43 -
 sys/compat/ibcs2/ibcs2_utsname.h     |    59 -
 sys/compat/ibcs2/ibcs2_wait.h        |    47 -
 sys/compat/ibcs2/syscalls.conf       |    15 -
 sys/compat/ibcs2/syscalls.master     |   369 -------
 sys/conf/files                       |     3 +-
 sys/modules/compat_ibcs2/Makefile    |    18 -
 sys/sys/ioctl.h                      |     6 +-
 73 files changed, 44 insertions(+), 11819 deletions(-)

diffs (truncated from 12467 to 300 lines):

diff -r 1d17329329d7 -r 086f1698f22f distrib/sets/lists/comp/md.vax
--- a/distrib/sets/lists/comp/md.vax    Sat Dec 29 09:48:54 2018 +0000
+++ b/distrib/sets/lists/comp/md.vax    Sat Dec 29 11:30:11 2018 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: md.vax,v 1.47 2018/07/12 10:46:40 maxv Exp $
+# $NetBSD: md.vax,v 1.48 2018/12/29 11:30:11 maxv Exp $
 ./usr/include/gcc-4.5/tgmath.h                 comp-obsolete           obsolete
 ./usr/include/gcc-4.8/tgmath.h                 comp-c-include          obsolete
 ./usr/include/gcc-5/tgmath.h                   comp-c-include          gcccmds,gcc=5
@@ -23,7 +23,7 @@
 ./usr/include/vax/endian_machdep.h             comp-c-include
 ./usr/include/vax/float.h                      comp-c-include
 ./usr/include/vax/frame.h                      comp-c-include
-./usr/include/vax/ibcs2_machdep.h              comp-c-include
+./usr/include/vax/ibcs2_machdep.h              comp-obsolete           obsolete
 ./usr/include/vax/int_const.h                  comp-c-include
 ./usr/include/vax/int_fmtio.h                  comp-c-include
 ./usr/include/vax/int_limits.h                 comp-c-include
diff -r 1d17329329d7 -r 086f1698f22f distrib/sets/lists/man/mi
--- a/distrib/sets/lists/man/mi Sat Dec 29 09:48:54 2018 +0000
+++ b/distrib/sets/lists/man/mi Sat Dec 29 11:30:11 2018 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: mi,v 1.1635 2018/12/20 07:30:00 wiz Exp $
+# $NetBSD: mi,v 1.1636 2018/12/29 11:30:11 maxv Exp $
 #
 # Note: don't delete entries from here - mark them as "obsolete" instead.
 #
@@ -2441,7 +2441,7 @@
 ./usr/share/man/cat8/compat_darwin.0           man-obsolete            obsolete
 ./usr/share/man/cat8/compat_freebsd.0          man-sys-catman          .cat
 ./usr/share/man/cat8/compat_hpux.0             man-obsolete            obsolete
-./usr/share/man/cat8/compat_ibcs2.0            man-sys-catman          .cat
+./usr/share/man/cat8/compat_ibcs2.0            man-obsolete            obsolete
 ./usr/share/man/cat8/compat_linux.0            man-sys-catman          .cat
 ./usr/share/man/cat8/compat_netbsd32.0         man-sys-catman          .cat
 ./usr/share/man/cat8/compat_osf1.0             man-sys-catman          .cat
@@ -5456,7 +5456,7 @@
 ./usr/share/man/html8/compat_30.html           man-sys-htmlman         html
 ./usr/share/man/html8/compat_darwin.html       man-obsolete            obsolete
 ./usr/share/man/html8/compat_freebsd.html      man-sys-htmlman         html
-./usr/share/man/html8/compat_ibcs2.html                man-sys-htmlman         html
+./usr/share/man/html8/compat_ibcs2.html                man-obsolete            obsolete
 ./usr/share/man/html8/compat_linux.html                man-sys-htmlman         html
 ./usr/share/man/html8/compat_netbsd32.html     man-sys-htmlman         html
 ./usr/share/man/html8/compat_osf1.html         man-sys-htmlman         html
@@ -8524,7 +8524,7 @@
 ./usr/share/man/man8/compat_darwin.8           man-obsolete            obsolete
 ./usr/share/man/man8/compat_freebsd.8          man-sys-man             .man
 ./usr/share/man/man8/compat_hpux.8             man-obsolete            obsolete
-./usr/share/man/man8/compat_ibcs2.8            man-sys-man             .man
+./usr/share/man/man8/compat_ibcs2.8            man-obsolete            obsolete
 ./usr/share/man/man8/compat_linux.8            man-sys-man             .man
 ./usr/share/man/man8/compat_netbsd32.8         man-sys-man             .man
 ./usr/share/man/man8/compat_osf1.8             man-sys-man             .man
diff -r 1d17329329d7 -r 086f1698f22f share/man/man4/options.4
--- a/share/man/man4/options.4  Sat Dec 29 09:48:54 2018 +0000
+++ b/share/man/man4/options.4  Sat Dec 29 11:30:11 2018 +0000
@@ -1,4 +1,4 @@
-.\"    $NetBSD: options.4,v 1.496 2018/12/20 10:33:41 cherry Exp $
+.\"    $NetBSD: options.4,v 1.497 2018/12/29 11:30:11 maxv Exp $
 .\"
 .\" Copyright (c) 1996
 .\"    Perry E. Metzger.  All rights reserved.
@@ -30,7 +30,7 @@
 .\" THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
 .\"
 .\"
-.Dd December 19, 2018
+.Dd December 29, 2018
 .Dt OPTIONS 4
 .Os
 .Sh NAME
@@ -440,10 +440,6 @@
 .Fx
 applications built for the same architecture.
 At the moment this is limited to the i386 port.
-.It Cd options COMPAT_IBCS2
-On those architectures that support it, this enables binary
-compatibility with iBCS2 or SVR3 applications built for the same architecture.
-This is currently limited to the i386 and vax ports.
 .It Cd options COMPAT_OSF1
 On those architectures that support it, this enables binary
 compatibility with Digital
diff -r 1d17329329d7 -r 086f1698f22f share/man/man7/hier.7
--- a/share/man/man7/hier.7     Sat Dec 29 09:48:54 2018 +0000
+++ b/share/man/man7/hier.7     Sat Dec 29 11:30:11 2018 +0000
@@ -1,4 +1,4 @@
-.\"    $NetBSD: hier.7,v 1.134 2018/12/19 13:57:45 maxv Exp $
+.\"    $NetBSD: hier.7,v 1.135 2018/12/29 11:30:11 maxv Exp $
 .\"
 .\" Copyright (c) 1990, 1993, 1994
 .\"    The Regents of the University of California.  All rights reserved.
@@ -29,7 +29,7 @@
 .\"
 .\"    @(#)hier.7      8.5 (Berkeley) 6/1/94
 .\"
-.Dd December 19, 2018
+.Dd December 29, 2018
 .Dt HIER 7
 .Os
 .Sh NAME
@@ -884,8 +884,6 @@
 .Xr compat_freebsd 8 .
 .It Pa hpux/
 Support for 68000 HP-UX binaries.
-.It Pa ibcs2/
-Support for Intel Binary binaries.
 .It Pa linux/
 Support for Linux binaries; see
 .Xr compat_linux 8 .
diff -r 1d17329329d7 -r 086f1698f22f share/man/man7/symlink.7
--- a/share/man/man7/symlink.7  Sat Dec 29 09:48:54 2018 +0000
+++ b/share/man/man7/symlink.7  Sat Dec 29 11:30:11 2018 +0000
@@ -1,4 +1,4 @@
-.\"    $NetBSD: symlink.7,v 1.26 2018/12/19 13:57:45 maxv Exp $
+.\"    $NetBSD: symlink.7,v 1.27 2018/12/29 11:30:11 maxv Exp $
 .\"
 .\" Copyright (c) 1992, 1993, 1994
 .\"    The Regents of the University of California.  All rights reserved.
@@ -29,7 +29,7 @@
 .\"
 .\"    @(#)symlink.7   8.3 (Berkeley) 3/31/94
 .\"
-.Dd December 19, 2018
+.Dd December 29, 2018
 .Dt SYMLINK 7
 .Os
 .Sh NAME
@@ -566,7 +566,6 @@
 .Dv aoutm68k ,
 .Dv darwin ,
 .Dv freebsd ,
-.Dv ibcs2 ,
 .Dv linux ,
 .Dv linux32 ,
 .Dv m68k4k ,
diff -r 1d17329329d7 -r 086f1698f22f share/man/man8/Makefile
--- a/share/man/man8/Makefile   Sat Dec 29 09:48:54 2018 +0000
+++ b/share/man/man8/Makefile   Sat Dec 29 11:30:11 2018 +0000
@@ -1,8 +1,8 @@
-#      $NetBSD: Makefile,v 1.106 2018/12/19 13:57:45 maxv Exp $
+#      $NetBSD: Makefile,v 1.107 2018/12/29 11:30:11 maxv Exp $
 #      from: @(#)Makefile      8.1 (Berkeley) 6/5/93
 
 MAN=   MAKEDEV.8 MAKEDEV.local.8 afterboot.8 boot.8 compat_30.8 \
-       compat_freebsd.8 compat_ibcs2.8 compat_linux.8 \
+       compat_freebsd.8 compat_linux.8 \
        compat_netbsd32.8 compat_osf1.8 compat_sunos.8 \
        compat_ultrix.8 diskless.8 hpcboot.8 \
        intro.8 nis.8 pam.8 rc.8 rc.subr.8 rescue.8 \
diff -r 1d17329329d7 -r 086f1698f22f share/man/man8/compat_ibcs2.8
--- a/share/man/man8/compat_ibcs2.8     Sat Dec 29 09:48:54 2018 +0000
+++ /dev/null   Thu Jan 01 00:00:00 1970 +0000
@@ -1,176 +0,0 @@
-.\"    $NetBSD: compat_ibcs2.8,v 1.11 2018/12/19 13:57:45 maxv Exp $
-.\"
-.\" Copyright (c) 1998 Scott Bartram
-.\" Copyright (c) 1995 Frank van der Linden
-.\" All rights reserved.
-.\"
-.\" Redistribution and use in source and binary forms, with or without
-.\" modification, are permitted provided that the following conditions
-.\" are met:
-.\" 1. Redistributions of source code must retain the above copyright
-.\"    notice, this list of conditions and the following disclaimer.
-.\" 2. Redistributions in binary form must reproduce the above copyright
-.\"    notice, this list of conditions and the following disclaimer in the
-.\"    documentation and/or other materials provided with the distribution.
-.\" 3. All advertising materials mentioning features or use of this software
-.\"    must display the following acknowledgement:
-.\"      This product includes software developed for the NetBSD Project
-.\"      by Scott Bartram and Frank van der Linden
-.\" 4. The name of the author may not be used to endorse or promote products
-.\"    derived from this software without specific prior written permission
-.\"
-.\" THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
-.\" IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
-.\" OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
-.\" IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
-.\" INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
-.\" NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-.\" DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-.\" THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-.\" (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
-.\" THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
-.\"
-.\" Based on compat_linux.8
-.\"
-.Dd December 19, 2018
-.Dt COMPAT_IBCS2 8
-.Os
-.Sh NAME
-.Nm compat_ibcs2
-.Nd setup procedure for running iBCS2 binaries
-.Sh DESCRIPTION
-Contrary to what its name indicates, compat_ibcs2 is not a compatibility
-for Intel Binary Compatibility Standard 2 (iBCS2) binaries, but rather
-a compatibility for SVR3 binaries.
-This only applies to vax systems.
-Binaries are supported from SCO
-.Ux
-and other systems derived from
-.At V.3 .
-iBCS2 support is only well tested using SCO binaries.
-XENIX binaries are also supported although not as well tested.
-.Pp
-iBCS2 supports COFF, ELF, and x.out (XENIX) binary formats.
-Binaries from SCO OpenServer (version 5.x) are the only ELF binaries
-that have been tested.
-Most programs should work, but not ones that use or depend on:
-.Pp
-.Bl -item -compact -offset indent
-.It
-kernel internal data structures
-.It
-STREAMS drivers (other than TCP/IP sockets)
-.It
-local X displays (uses a STREAMS pipe)
-.It
-virtual 8086 mode
-.El
-.Pp
-The iBCS2 compatibility feature is active for kernels compiled with
-the
-.Dv COMPAT_IBCS2
-option enabled.
-If support for iBCS2 ELF executables is desired, the
-.Dv EXEC_ELF32
-option should be enabled in addition to
-.Dv COMPAT_IBCS2 .
-.Pp
-Many COFF-format programs and most ELF-format programs are dynamically
-linked.
-This means that you will also need the shared libraries that
-the program depends on.
-Also, you will need to create a
-.Dq shadow root
-directory for iBCS2 binaries on your
-.Nx
-system.
-This directory is named
-.Pa /emul/ibcs2 .
-Any file operations done by iBCS2 programs run under
-.Nx
-will look in this directory first.
-So, if an iBCS2
-program opens, for example,
-.Pa /etc/passwd ,
-.Nx
-will first try to open
-.Pa /emul/ibcs2/etc/passwd ,
-and if that does not exist open the
-.Sq real
-.Pa /etc/passwd
-file.
-It is recommended that you install iBCS2 packages
-that include configuration files, etc. under
-.Pa /emul/ibcs2 ,
-to avoid naming conflicts with possible
-.Nx
-counterparts.
-Shared libraries should also be installed in the shadow tree.
-.Pp
-Generally, you will need to look for the shared libraries that
-iBCS2 binaries depend on only the first few times that you install
-an iBCS2 program on your
-.Nx
-system.
-After a while, you will have a sufficient set of iBCS2 shared
-libraries on your system to be able to run newly imported iBCS2
-binaries without any extra work.
-.Ss Setting up shared libraries
-How to get to know which shared libraries iBCS2 binaries need, and
-where to get them? Depending on the file type of the executable, there
-are different possibilities (when following these instructions: you
-will need to be root on your
-.Nx
-system to do the necessary
-installation steps).
-.Bl -tag -width "COFF binaries"
-.It COFF binaries
-You can simply copy all of the available shared libraries since they
-are fairly small in size.
-The COFF shared libraries are typically
-found in /shlib and can be obtained from the following sources:
-.Bd -literal
-SCO UNIX version 3.x (aka ODT)
-SCO UNIX version 5.x (aka OpenServer)
-SCO UnixWare
-Many versions of SVR4.2/x86
-.Ed
-.Pp
-After copying the shared libraries, you should have at least the
-following files on your system:
-.Bd -literal
-.Pa /emul/ibcs2/shlib/libc_s
-.Pa /emul/ibcs2/shlib/libnsl_s
-.Pa /emul/ibcs2/shlib/protlib_s
-.Ed
-.It ELF binaries



Home | Main Index | Thread Index | Old Index