Source-Changes-HG archive

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

[src/trunk]: src/share/man/man8 add compat_netbsd32(8); clarify compat_sunos(...



details:   https://anonhg.NetBSD.org/src/rev/d110c3ae4d1e
branches:  trunk
changeset: 510853:d110c3ae4d1e
user:      mrg <mrg%NetBSD.org@localhost>
date:      Thu Jun 07 15:25:31 2001 +0000

description:
add compat_netbsd32(8); clarify compat_sunos(8) on netbsd/sparc64.

diffstat:

 share/man/man8/Makefile          |   3 +-
 share/man/man8/compat_netbsd32.8 |  89 ++++++++++++++++++++++++++++++++++++++++
 share/man/man8/compat_sunos.8    |  20 +++++++-
 3 files changed, 107 insertions(+), 5 deletions(-)

diffs (160 lines):

diff -r 3a3ee9343837 -r d110c3ae4d1e share/man/man8/Makefile
--- a/share/man/man8/Makefile   Thu Jun 07 15:23:48 2001 +0000
+++ b/share/man/man8/Makefile   Thu Jun 07 15:25:31 2001 +0000
@@ -1,4 +1,4 @@
-#      $NetBSD: Makefile,v 1.43 2001/05/27 21:18:19 wiz Exp $
+#      $NetBSD: Makefile,v 1.44 2001/06/07 15:25:31 mrg Exp $
 #      @(#)Makefile    8.1 (Berkeley) 6/5/93
 
 MAN=   compat_freebsd.8 compat_ibcs2.8 compat_linux.8 compat_osf1.8 \
@@ -9,6 +9,7 @@
 MLINKS+=compat_svr4.8 compat_xenix.8
 MLINKS+=compat_pecoff.8 compat_win32.8
 MLINKS+=compat_pecoff.8 peace.8
+MLINKS+=compat_netbsd32.8 netbsd32.8
 MLINKS+=yp.8 nis.8
 MLINKS+=rc.8 rc.d.8
 MLINKS+=rc.8 rc.shutdown.8
diff -r 3a3ee9343837 -r d110c3ae4d1e share/man/man8/compat_netbsd32.8
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/share/man/man8/compat_netbsd32.8  Thu Jun 07 15:25:31 2001 +0000
@@ -0,0 +1,89 @@
+.\"    $NetBSD: compat_netbsd32.8,v 1.1 2001/06/07 15:25:31 mrg Exp $
+.\"
+.\" Copyright (c) 2001 Matthew R. Green
+.\" 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. 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.
+.\"
+.Dd February 3, 2001
+.Dt COMPAT_NETBSD32 8
+.Os
+.Sh NAME
+.Nm compat_netbsd32
+.Nd setup procedure for 32-bit compatibility on 64-bit platform
+.Sh DESCRIPTION
+The
+.Nm
+module allows
+.Nx Ns Tn /sparc64
+to run
+.Nx Ns Tn /sparc
+executables.
+.Pp
+To use
+.Nm "" ,
+one must either have
+.Dv COMPAT_NETBSD32
+in the kernel, or load the compat_netbsd32 and exec_netbsd32 kernel
+modules.
+.Pp
+Static executables typically need no additional setup.
+Dynamic binaries require the dynamic linker, plus shared libaries.  Most of
+these files will need to be placed under
+.Pa /emul/netbsd32 .
+.Pp
+The easiest method of installing support for these is via the
+.Pa emulators/netbsd32_compat14
+and
+.Pa emulators/netbsd32_compat15
+packages, provided in the
+.Nx
+packages collection.  These install 32-bit a.out and ELF compatibility
+libraries, respectively.  The details of what is actually necessary for
+correct operation are given below.  This obviously is handled by the
+emulator packages.
+.Pp
+For a.out compatibility,
+.Pa /usr/libexec/ld.so
+from a 32-bit distribution is required to exist as
+.Pa /emul/netbsd32/usr/libexec/ld.so .
+For 32-bit ELF compatibility,
+.Pa /usr/libexec/ld.elf_so
+needs to be in
+.Pa /emul/netbsd32/usr/libexec/ld.elf_so .
+.Pp
+The shared libaries for a.out binaries do not live under the
+.Pa /emul/netbsd32
+directory, but under the
+.Pa /emul/aout
+directory, where the a.out dyanmic linker will find them.
+.Pp
+.Sh BUGS
+A list of things which fail to work in compatibility mode should
+be here.
+.Pp
+IPC is not well supported.
+.Pp
+.Xr sysctl 3
+is not well supported.
diff -r 3a3ee9343837 -r d110c3ae4d1e share/man/man8/compat_sunos.8
--- a/share/man/man8/compat_sunos.8     Thu Jun 07 15:23:48 2001 +0000
+++ b/share/man/man8/compat_sunos.8     Thu Jun 07 15:25:31 2001 +0000
@@ -1,4 +1,4 @@
-.\"    $NetBSD: compat_sunos.8,v 1.11 1999/03/17 20:31:19 garbled Exp $
+.\"    $NetBSD: compat_sunos.8,v 1.12 2001/06/07 15:25:31 mrg Exp $
 .\"
 .\" Copyright (c) 1984 Theo de Raadt
 .\" All rights reserved.
@@ -30,13 +30,14 @@
 .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
 .\" SUCH DAMAGE.
 .\"
-.Dd June 15, 1994
+.Dd February 3, 2001
 .Dt COMPAT_SUNOS 8
 .Os
 .Sh NAME
 .Nm compat_sunos
-.Nd setup procedure for m68k and sparc architectures
+.Nd setup procedure for m68k, sparc and sparc64 architectures
 .Sh DESCRIPTION
+.Nx Ns Tn /sparc64 ,
 .Nx Ns Tn /sparc
 and some of the
 .Nx Ns Tn /m68k
@@ -112,6 +113,14 @@
 compatibility code will look for
 first, where they do not conflict with the standard libraries.
 .Pp
+.Sh NOTES
+When using
+.Nm
+on
+.Nx Ns Tn /sparc64 ,
+the
+.Sy COMPAT_NETBSD32
+option must also be used.
 .Sh BUGS
 A list of things which fail to work in compatibility mode should
 be here.
@@ -132,4 +141,7 @@
 option to
 .Xr mount_nfs 8
 will also have the desired effect, but is less preferable.
-
+.Pp
+The
+.Nx Ns Tn /sparc64
+support is less complete than the other ports.



Home | Main Index | Thread Index | Old Index