Page MenuHomeFreeBSD

D62150.1795994897.diff
No OneTemporary

Authored By
Unknown
Size
3 KB
Referenced Files
None
Subscribers
None

D62150.1795994897.diff

diff --git a/usr.sbin/binmiscctl/binmiscctl.8 b/usr.sbin/binmiscctl/binmiscctl.8
--- a/usr.sbin/binmiscctl/binmiscctl.8
+++ b/usr.sbin/binmiscctl/binmiscctl.8
@@ -25,7 +25,7 @@
.\"
.\" Support for miscellaneous binary image activators
.\"
-.Dd April 30, 2020
+.Dd November 27, 2026
.Dt BINMISCCTL 8
.Os
.Sh NAME
@@ -35,16 +35,12 @@
.Nm
.Cm add
.Ar name
-.Fl -interpreter
-.Ar path
-.Fl -magic
-.Ar magic
-.Fl -size
-.Ar size
-.Op Fl -mask Ar mask
-.Op Fl -offset Ar offset
-.Op Fl -set-enabled
-.Op Fl -pre-open
+.Op Fl ep
+.Op Fl M Ar mask
+.Op Fl o Ar offset
+.Fl i Ar path
+.Fl m Ar magic
+.Fl s Ar size
.Nm
.Cm disable
.Ar name
@@ -77,66 +73,64 @@
.It Xo
.Cm add
.Ar name
-.Fl -interpreter
-.Ar path
-.Fl -magic
-.Ar magic
-.Fl -size
-.Ar size
-.Op Fl -mask Ar mask
-.Op Fl -offset Ar offset
-.Op Fl -set-enabled
-.Op Fl -pre-open
+.Op Fl ep
+.Op Fl M Ar mask
+.Op Fl o Ar offset
+.Fl i Ar path
+.Fl m Ar magic
+.Fl s Ar size
.Xc
-Add a new activator entry in the kernel.
-You must specify a
-unique
-.Ar name ,
-a
+Add a new activator entry in the kernel, identified by a unique
+.Ar name .
+The
+.Fl i ,
+.Fl m ,
+and
+.Fl s
+options are required.
+The options are as follows:
+.Bl -tag -width indent
+.It Fl e , Fl -set-enabled
+Enable the activator entry.
+The activator default state is disabled.
+.It Fl i Ar path , Fl -interpreter Ar path
+The
.Ar path
-to the interpreter,
-header
-.Ar magic
-bytes that uniquely identify a suitable binary for the activator,
-and the
-.Ar size
-of the
-.Ar magic
-in bytes.
-.Pp
-Optionally, you may specify a
+to the interpreter.
+It may also contain arguments for the interpreter, including
+.Ar #a ,
+which gets replaced by the old
+.Dv argv0
+value in the interpreter string.
+.It Fl M Ar mask , Fl -mask Ar mask
+A
.Ar mask
to do a bitwise AND with the header bytes.
This effectively allows you to ignore fields in the binary header that
-do not uniquely indentify the binary file's type.
-.Pp
-An
+do not uniquely identify the binary file's type.
+.It Fl m Ar magic , Fl -magic Ar magic
+Header
+.Ar magic
+bytes that uniquely identify a suitable binary for the activator.
+.It Fl o Ar offset , Fl -offset Ar offset
+The
.Ar offset
-may be specified for the magic bytes using the
-.Fl -offset
-option.
+of the magic bytes within the binary.
By default the
.Ar offset
is zero.
-.Pp
-To enable the activator entry the
-.Fl -set-enabled
-option is used.
-The activator default state is disabled.
-.Pp
-To make the interpreter automatically available in jails and chroots,
-use the
-.Fl -pre-open
-option to allow the kernel to open the binary at configuration time
-rather then lazily when the interpreted program is started.
-.Pp
-The interpreter
-.Ar path
-may also contain arguments for the interpreter including
-.Ar #a
-which gets replaced by the old
-.Dv argv0
-value in the interpreter string.
+.It Fl p , Fl -pre-open
+Open the interpreter at configuration time rather than lazily when the
+interpreted program is started.
+This makes the interpreter automatically available in jails and
+chroots.
+.It Fl s Ar size , Fl -size Ar size
+The
+.Ar size
+of the
+.Ar magic
+in bytes.
+.El
.It Cm disable Ar name
Disable the activator entry identified with
.Ar name .
@@ -291,7 +285,7 @@
.Ss "Create and use an ARMv7 chroot on an AMD64 host"
Use an existing source tree to build a chroot host with architecture
overrides:
-.Bd -literal -offset ident
+.Bd -literal -offset indent
D=/path/to/chroot
cd /usr/src
mkdir -p $D

File Metadata

Mime Type
text/plain
Expires
Sun, Nov 29, 11:28 PM (7 h, 1 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
42077333
Default Alt Text
D62150.1795994897.diff (3 KB)

Event Timeline