| @@ -1,14 +1,14 @@ | | | @@ -1,14 +1,14 @@ |
1 | .\" $NetBSD: compat_bsdos.8,v 1.3 2020/08/28 17:13:13 wiz Exp $ | | 1 | .\" $NetBSD: compat_bsdos.8,v 1.4 2020/08/29 21:42:25 uwe Exp $ |
2 | .\" | | 2 | .\" |
3 | .\" Copyright (c) 2020 The NetBSD Foundation, Inc. | | 3 | .\" Copyright (c) 2020 The NetBSD Foundation, Inc. |
4 | .\" All rights reserved. | | 4 | .\" All rights reserved. |
5 | .\" | | 5 | .\" |
6 | .\" This code is derived from software contributed to The NetBSD Foundation | | 6 | .\" This code is derived from software contributed to The NetBSD Foundation |
7 | .\" by Dan Plassche. | | 7 | .\" by Dan Plassche. |
8 | .\" | | 8 | .\" |
9 | .\" Redistribution and use in source and binary forms, with or without | | 9 | .\" Redistribution and use in source and binary forms, with or without |
10 | .\" modification, are permitted provided that the following conditions | | 10 | .\" modification, are permitted provided that the following conditions |
11 | .\" are met: | | 11 | .\" are met: |
12 | .\" 1. Redistributions of source code must retain the above copyright | | 12 | .\" 1. Redistributions of source code must retain the above copyright |
13 | .\" notice, this list of conditions and the following disclaimer. | | 13 | .\" notice, this list of conditions and the following disclaimer. |
14 | .\" 2. Redistributions in binary form must reproduce the above copyright | | 14 | .\" 2. Redistributions in binary form must reproduce the above copyright |
| @@ -26,58 +26,59 @@ | | | @@ -26,58 +26,59 @@ |
26 | .\" CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) | | 26 | .\" CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) |
27 | .\" ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE | | 27 | .\" ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE |
28 | .\" POSSIBILITY OF SUCH DAMAGE. | | 28 | .\" POSSIBILITY OF SUCH DAMAGE. |
29 | .\" | | 29 | .\" |
30 | .Dd August 27, 2020 | | 30 | .Dd August 27, 2020 |
31 | .Dt COMPAT_BSDOS 8 | | 31 | .Dt COMPAT_BSDOS 8 |
32 | .Os | | 32 | .Os |
33 | .Sh NAME | | 33 | .Sh NAME |
34 | .Nm compat_bsdos | | 34 | .Nm compat_bsdos |
35 | .Nd binary compatibility for BSDi releases | | 35 | .Nd binary compatibility for BSDi releases |
36 | .Sh DESCRIPTION | | 36 | .Sh DESCRIPTION |
37 | The | | 37 | The |
38 | .Dv COMPAT_NOMID | | 38 | .Dv COMPAT_NOMID |
39 | kernel option provides compatibility with | | 39 | kernel option includes compatibility with |
40 | .Tn BSDi Ns No \ 1. Ns Em \^x Ns \|\(en\|3. Ns Em \^x | | 40 | .Tn BSDi Ns No \ 1. Ns Em \^x Ns \|\(en\|3. Ns Em \^x |
41 | .Xr a.out 5 | | 41 | .Xr a.out 5 |
42 | binaries on | | 42 | binaries on |
43 | .Nx Ns Tn /i386 | | 43 | .Nx Ns Tn /i386 |
44 | and | | 44 | and |
45 | .Nx Ns Tn /amd64 . | | 45 | .Nx Ns Tn /amd64 . |
46 | The option is included in the | | 46 | The option is enabled by default in the |
47 | .Li GENERIC | | 47 | .Li GENERIC |
48 | kernel on i386, | | 48 | kernel on i386, |
49 | but needs to be enabled along with | | 49 | but needs to be set along with |
50 | .Dv EXEC_AOUT | | 50 | .Dv EXEC_AOUT |
51 | on amd64. | | 51 | on amd64. |
52 | .Pp | | 52 | .Pp |
53 | Null memory protection must be disabled with the | | 53 | Null memory protection must be disabled with the |
54 | .Xr sysctl 7 | | 54 | .Xr sysctl 7 |
55 | option | | 55 | option |
56 | .Va vm.user_va0_disable | | 56 | .Va vm.user_va0_disable |
57 | set to | | 57 | set to |
58 | .Li 0 | | 58 | .Li 0 |
59 | for the binaries to run successfully. | | 59 | for the binaries to run successfully. |
60 | .Pp | | 60 | .Pp |
61 | .Bsx 2.0+ | | 61 | .Bsx 2.0+ |
62 | binaries also require an | | 62 | binaries also require an |
63 | .Xr ldconfig 8 | | 63 | .Xr ldconfig 8 |
64 | configuration or a symbolic link | | 64 | configuration or a symbolic link |
65 | pointing to the | | 65 | pointing to the |
66 | .Pa /emul/bsdos/shlib | | 66 | .Pa /emul/bsdos/shlib |
67 | directory to run outside of a chroot. | | 67 | directory to run outside of a chroot. |
68 | .Pp | | 68 | .Pp |
69 | .Bsx 4.0 | | 69 | .Bsx 4.0 |
70 | switched to ELF binaries that do not run under the | | 70 | switched to an ELF binary executable format |
| | | 71 | that does not run under the |
71 | compatibility layers currently available on | | 72 | compatibility layers currently available on |
72 | .Nx . | | 73 | .Nx . |
73 | .Sh SEE ALSO | | 74 | .Sh SEE ALSO |
74 | .Xr options 4 , | | 75 | .Xr options 4 , |
75 | .Xr a.out 5 , | | 76 | .Xr a.out 5 , |
76 | .Xr elf 5 , | | 77 | .Xr elf 5 , |
77 | .Xr sysctl 7 , | | 78 | .Xr sysctl 7 , |
78 | .Xr compat_netbsd32 8 , | | 79 | .Xr compat_netbsd32 8 , |
79 | .Xr ldconfig 8 | | 80 | .Xr ldconfig 8 |
80 | .Sh HISTORY | | 81 | .Sh HISTORY |
81 | .Tn BSD/386 Ns No \ 1.0\|\(en\|1.1 | | 82 | .Tn BSD/386 Ns No \ 1.0\|\(en\|1.1 |
82 | was derived from | | 83 | was derived from |
83 | .Bx 4.3 Tn Reno | | 84 | .Bx 4.3 Tn Reno |