Commit Graph

13222 Commits

Author SHA1 Message Date
uwe fb04e69cea installboot(8): fix up markup
Don't overuse .Sy - when everything is highlighted, nothing is.  Use
.Ic for options &c to get correct PostScript output (both are bold in
plain text).

Use Aq Ar inside .Pa, as both Pa and Ar are rendered as underscored
text in plain text output, and the distinction is lost.

Don't set examples in bold, but give them .Pp space around - they are
much easier to read this way.

Use consistent -width in FILES.
2023-05-17 01:35:00 +00:00
lukem 979e90aeb0 installboot(8): formatting improvements
Use Ar foo instead of <foo>; this is mdoc.
Other formatting tweaks.
2023-05-16 21:52:42 +00:00
andvar 3e36cf7df1 change a typo in sizeof(struct queueue *) to sizeof(nqueue[0])
riastradh recommends using array[0] instead of pointer.
2023-05-13 11:48:19 +00:00
christos 528ce0b18e Handle OpenSSL-3.x 2023-05-09 20:14:37 +00:00
christos 8499346dc4 Handle OpenSSL-3.x 2023-05-09 20:02:59 +00:00
christos f403516638 deal with OpenSSL-3.x 2023-05-09 02:30:21 +00:00
oster 3e0cc22b37 Don't allow "wgconfig add peer ..." to accept invalid options.
Addresses PR bin/57392 .
2023-05-07 16:05:07 +00:00
andvar bddff27ba4 s/inferface/interface/ 2023-05-07 11:41:49 +00:00
andvar ff46982a78 s/betwen/between/ and s/singed/signed/. 2023-05-01 11:57:53 +00:00
kre 211e5fcd48 Us daemons don't need no unions - just wait, the easy way. 2023-04-26 18:25:02 +00:00
christos 7e2bdad6d9 Move date setting into cd9660_populate_iso_dir_record so there is no
path that leaves it unset.

From FreeBSD https://reviews.freebsd.org/D39258
2023-04-18 23:05:51 +00:00
christos 8399b2db93 We previously attempted to emit Rock Ridge NM records only when the name
represented by the Rock Ridge extensions would actually differ. We would
omit the record for an all-upper-case directory name, however Linux (and
perhaps other operating systems) map names with no NM record to
lowercase.

This affected only directories, as file names have an implicit ";1"
version number appended and thus always differ.  To solve, just emit NM
records for all entries other than DOT and DOTDOT .

We could continue to omit the NM record for directories that would avoid
mapping (for example, one named 1234.567) but this does not seem worth
the complexity.

From FreeBSD https://reviews.freebsd.org/D39258
2023-04-18 23:02:51 +00:00
christos 88133efe71 The boot catalog pointer is a DWord, but we previously populated it via
cd9660_bothendian_dword which overwrote four unused bytes following it.
See El Torito 1.0 (1995) Figure 7 for details.

Found by Coverity on FreeBSD
2023-04-18 23:00:02 +00:00
christos 4c1d366af2 See RRIP 4.1.4 Description of the "NM" System Use Entry for details.
From FreeBSD
2023-04-18 22:58:14 +00:00
christos 0941656289 The bit definitions for the TF_* timestamp bits (TF_MODIFY, etc.) were
incorrect, and timestamps were written in the wrong order.

See RRIP 4.1.6 Description of the "TF" System Use Entry for details.

From: https://reviews.freebsd.org/D39221
2023-04-18 22:56:41 +00:00
gutteridge d9d44b7ea1 tprof.8: fix typo, s/speficied/specified/ 2023-04-18 00:21:23 +00:00
uwe f5a0cd5ede tprof(8): fix markup nits 2023-04-17 21:51:40 +00:00
gutteridge 63184ef432 tprof.8: new sentence, new line 2023-04-17 21:46:12 +00:00
msaitoh 8dc7413669 Use the default counter if -e argument is not specified.
monitor command:
     The default counter is selected if -e argument is not specified.
 list command:
     Print the name of the default counter for monitor and top command.
2023-04-17 08:37:24 +00:00
msaitoh 0132696ccc Add two note to the tprof(8)'s manual page.
- "list" command prints the maximum number of counters that can be used
   simultaneously.
 - multiple -e arguments can be specified.
2023-04-17 07:13:35 +00:00
riastradh f55073df88 crash(8): Add powerpc support.
XXX pullup-8
XXX pullup-9
XXX pullup-10
2023-04-12 17:53:32 +00:00
msaitoh e2b25c5d26 KNF. No functional change. 2023-04-12 02:15:51 +00:00
msaitoh e1e6315383 Add Cometlake support. 2023-04-10 06:08:55 +00:00
andvar e31f1e950f remove some double ee typos in comments. 2023-04-05 21:53:56 +00:00
rillig ac4858990d mmcformat: KNF
Remove trailing whitespace, sort headers, add RCS ID, unexport global
variable.
2023-04-04 20:28:01 +00:00
rillig 723f5ee174 mmcformat: remove redundant extern declarations
No binary change.
2023-04-04 20:17:01 +00:00
ryo 0fb3a34de4 add missing '\n' 2023-04-02 18:23:02 +00:00
andvar 95f94af301 fix various typos in documentation, comments and sysctl device description.
mainly aion -> ation and inlude -> include.
2023-03-26 19:10:32 +00:00
andvar 2bf8145d4f s/enougth/enough/ 2023-03-17 17:12:54 +00:00
uwe 6b07432028 mountd(8): comma before "and"
Not a serial comma, technically, as there are only two items, but it
makes reading easier, IMHO.
2023-03-15 20:39:12 +00:00
uwe f62a301728 mountd(8): fix minor markup nits
While here, use $() instead of `` in the example.
2023-03-15 20:33:04 +00:00
uwe e3da17cc3a service(8): fix markup 2023-03-14 21:50:25 +00:00
kre fd13ea68e6 In bwrite() if the write() returned -1, the associated errno was
being used after a (possible) call to printf (only happens when
debugging) and a certain call to free() (via brelse()).
Make a copy, and use that instead.
2023-03-14 10:36:06 +00:00
kre 20cb3c510b Correct a minor word usage error in a comment. NFC. 2023-03-14 09:54:40 +00:00
kre ca975e38ba Use %zd to print ssize_t (%z[uxo] for size_t), rather than %jd
(just like the other adjacent printfs do)

Should fix i386 build.
2023-03-14 09:25:13 +00:00
kre c6ec2ed896 Don't inappropriately use xargs to run rcorder -- xargs is designed
to run the given command as many times as necessary, but rcorder must
be run just once, with all the rc.d scripts as args.   If that turns out
to be too many (E2BIG on exec) then we have more serious problems, working
around it by use of xargs just makes a mess (for rcorder).

Make the -e option cause the script to exit 0 if some enabled script was
found, and 1 if not, so one can do:
	if service -e foobar >/dev/null
	then
		whatever we want to do when foobar is enabled
	else
		anything we want instead if it is not
	fi
Someday perhaps add a -q to suppress the output instead of requiring
the redirect, but that day is not this one.  Make all error exit status
codes be >1 (and use the standard 126 instead of 255, for "exec failed").

Note that with more than one service given with -e, or when none are (so
all enabled scripts are listed) the exit status is 0 if any enabled script
was found (ie: anything was printed to stdout), not if all named scripts
exist and are enabled.   Testing the status works best with just one
script name given as an arg.

Correctly quote script names (and use eval where required) so scripts
(or paths to scripts) containing spaces, tabs, or shell operator chars
might be handled correctly (newlines in names will still cause failures.)

Treat rc.d scripts that do not have an rcvar (hence are always enabled)
as enabled scripts, rather than disabled - but ignore the LOGIN DAEMON...
pseudo-scripts.

While here, replace archaic uses of "test" ('[') (that is, -a etc) with
standard defined usages only, replace a baroque use of sed with sh code
(which is simpler and much faster, not that speed matters) - but do use sed
instead of two grep invocations.   Replace all uses of "echo" with "printf"
(just "because"!)   Make the usage more useful (explain what the various
option combinations achieve, explicitly), and also while here, make the
formatting look closer to something I can deal with (personally I prefer
tab indents almost everywhere, but 4 space is OK...)  Aligned runs of 8
spaces were all replaced by a tab.   For the options, use sh boolean cmds
(true|false), and simply run them, rather than making them be empty or set
and using test -n, it is easier to follow (and a tiny fraction of a ns faster).
Change a comment so what it says is relevant to the code that is present,
rather than to the change (referring to code that used to be present) with
which it was added.

Catch the manual page up with the minor parts of this intended to be
visible to users (like the exit status change).
2023-03-14 06:19:35 +00:00
christos 6839df46b4 Don't brelse() if bread() fails. The kernel does this for us. Our bread()
implementation just exits on failure, but if it didn't we would double-free.
From Ed Maste (https://reviews.freebsd.org/D39069)
2023-03-13 22:17:24 +00:00
christos d2604cfd26 modernize; release bpp and set it to NULL as the kernel does even if we
never return here.
2023-03-13 22:10:30 +00:00
kre 1950105167 Unless -v is given, ignore EEXIST errors from the IOC_CPU_UCODE_APPLY ioctl()
used to implement "cpuctl ucode N",  which indicates that the microcode
to be loaded already exists in the CPU, and as such, isn't really a
very interesting "error".
2023-03-06 01:28:54 +00:00
andvar 6122d1a1d4 s/programm/program/ and s/suuport/support/ in comments and message. 2023-02-14 20:27:17 +00:00
msaitoh c57da92632 Add some CPUID bits from PPR for AMD Family 19h Model 61h Revision B1. 2023-02-14 15:46:06 +00:00
uwe 18b582acb0 services(5): consistently refer to the cdb database
While here, fix a few markup nits.
2023-02-12 22:48:02 +00:00
abs b74dec8e22 Add "-i -E" to /bin/sh called from sysinst
This enables command line editing (primarily for arrow keys, but basic
emacs sequences will also work)

In the event that the shell has been compiled without command line
editing features (for memory contrained install environments) the
-E is ignored
2023-02-12 20:14:32 +00:00
kardel 57cb3743d4 PR kern/55654:
Switch default for parameter npf ip4.reassembly to 1.
This makes the NPF default configuration comply with host
requirements for IPv4.
2023-02-12 13:21:28 +00:00
mlelstv e2144167ec - Reconfigure port speed only when initial speed was different.
- Time out HCI commands instead of hanging forever.
- When bcm43xx reset fails, assume that firmware is already
  running and start line discipline.

This allows to re-attach bcm43xx without reboot.
2023-02-07 20:45:44 +00:00
mlelstv 2a1d6c3e6b Really compute selection coordinates from buffer offset, don't assume
that row=0 col=offset is equivalent.
2023-02-07 20:37:48 +00:00
skrll 33f800a4a9 MPIDR is 64bits. Without this AFF3 would always be zero.
Spotted by Cyprien.
2023-02-03 08:08:33 +00:00
andvar 96dad784b6 fix few typos in comments. 2023-01-31 21:11:24 +00:00
rillig 3dab7e4b0d flashctl: use consistent markup in usage message 2023-01-08 16:01:49 +00:00
rillig 57458d4cfd flashctl: remove trailing whitespace
No binary change.
2023-01-08 15:55:25 +00:00