Commit Graph

304858 Commits

Author SHA1 Message Date
andvar 947fbafb45 fix typos, mainly s/unsupport/unsupported/ in log messages. 2024-02-02 22:33:42 +00:00
andvar 05417dc40d s/mangement/management/ in comments. 2024-02-02 22:26:58 +00:00
andvar d7585e97b6 s/tranceiver/transceiver/ in comment and definition. 2024-02-02 22:23:53 +00:00
andvar 9d265f7937 s/Staus/Status/ in comments. 2024-02-02 22:19:13 +00:00
christos 914f0ba5d8 Sync with pkgsrc and try to fix more memory corruption from PR/57179. 2024-02-02 22:19:05 +00:00
andvar c865d5f423 s/attachement/attachment/ and s/detachement/detachment/. 2024-02-02 22:14:04 +00:00
andvar f22ed7e5e6 fix various typos in comments. 2024-02-02 22:00:32 +00:00
andvar 82befdcba0 s/shold/should/ 2024-02-02 21:52:22 +00:00
jkoshy 0d507d87e3 Make the err(3) manual clearer to read.
- Mention that the 'fmt' argument to these functions holds
  a printf(3)-like format specification.
- Clarify that the err()/warn()/errc()/warnc() family of functions
  will append an additional error message to the output.
- Add whitespace to separate paragraphs describing distinct
  concepts.
- Move the sentence mentioning the final output newline to
  a less ambiguous location within the text.
- Add a cross-reference to printf(3).
2024-02-02 21:16:41 +00:00
andvar 27e72db80b s/supressing/suppressing/. 2024-02-02 20:50:28 +00:00
christos f7beae8822 PR/57897: Ricardo Branco: Add support for mount options mask,dirmask,uid,gid 2024-02-02 20:27:26 +00:00
rillig 183f84fe87 tests/lint: test lexing of characters and strings 2024-02-02 19:07:57 +00:00
rillig 8016349204 lint: fix debug output for strings, reduce code size
The debug output contained too many newlines.

The buffer functions were built into lint2 even though they weren't
used.

Enable the query for invisible characters in string literals, to make
sure that a newline in a string literal does not trigger that query.
2024-02-02 16:25:58 +00:00
rillig 402b4579b3 lint: make newline in a string literal an error in C90 and later 2024-02-02 16:05:37 +00:00
tsutsui 75b5512c40 Add WSDISPLAY_GINFO, LINEBYTES, and SMODE ioctl(2)s and mmap(2) support.
mlterm-wscons partially works (no 2 bpp support) with these APIs.
XXX: Xorg server needs wsmouse support.
2024-02-02 15:59:30 +00:00
tsutsui 14b54388da Use aprint_normal(9) for attach messages. 2024-02-02 15:44:43 +00:00
tsutsui f34329fea5 Use "wsvt25" rather than "sun" for (commented out) wscons tty lines.
Note historically vax port seems to use "ttyw?" rather than common "ttyE?"
for wscons (wsdisplay) tty devices in ttys(5).

No particular comment on port-vax@:
 https://mail-index.netbsd.org/port-vax/2024/01/thread1.html#004828
2024-02-01 22:26:19 +00:00
tsutsui c33d2bc4b7 Make sure to create wscons devices on the default "MAKEDEV all" target.
Necessary to make the X.org server work on the default installation.
Proposed on port-vax@, and ok'ed by mrg@:
 https://mail-index.netbsd.org/port-vax/2024/01/thread1.html#004828

Worth to pull up to netbsd-10.
2024-02-01 22:22:05 +00:00
rillig d4c87e8aca snprintb.3: fix examples, clean up wording
In the examples using hex escape sequences, there must be a delimiter
between the escape sequence and the following description if the
description starts with [A-Fa-f], as hex escape sequences are not
limited in length.

Distinguish between a 'directive' (bit + length + description) and a
'description' (only the text).

The fmt parameter is not a string, as strings only reach to the first
'\0' byte, but the new-style format may include additional '\0' as bit
numbers.
2024-02-01 22:18:34 +00:00
andvar 176e2efc44 s/againt/against/ in comment. 2024-02-01 22:02:18 +00:00
andvar 0a0dd580ed s/Prototol/Protocol/ and s/Umimplemented/Unimplemented/ in comments. 2024-02-01 22:00:29 +00:00
rillig 2f96b2b84b lint: reuse buffer editing code across lint1
Fix cat_strings to update the capacity of the buffer, to prevent
quadratic runtime when concatenating string literals.
2024-02-01 21:19:13 +00:00
rillig c9edda031f lint: use standard buffer for storing string values
No functional change.
2024-02-01 18:37:06 +00:00
wiz 2090abe9e1 new mozilla-certdata out 2024-02-01 10:06:08 +00:00
skrll ab2f941c35 Trailing whitespace 2024-02-01 06:50:36 +00:00
gutteridge bdde9fe69f phantomas.4: minor grammar fix 2024-02-01 02:44:17 +00:00
gutteridge de4300cc2e sti.c: fix a typo in a comment 2024-02-01 02:41:56 +00:00
macallan 7d5c31204e Make this work properly on PCI Visualize EG:
- use bus_space_*_stream() for all register accesses in order to avoid
  byte order conversion on PCI devices
- when switching to framebuffer mode, request as many text planes as STI allows
- request access to both text and non-text planes in fb mode
With this and the bus_space commit a few days ago I have usable X on my C360
and a PCI Visualize EG.
This needs testing on quite literally everything else.
2024-01-31 08:15:00 +00:00
kre f55c8670e1 PR bin/57894
For jobs -p for a non-job-control job, avoid just printing 0 (as
there is no process group pid) and instead output what we used to,
the pid of one of the processes in the job (usually the right one!)

XXX pullup -10 (9 and earlier not affected).
2024-01-30 19:05:07 +00:00
martin e9be82c8ac Skip the dtb set if the /boot partition is not mounted. 2024-01-30 16:57:32 +00:00
martin 2cf65fcd1b Fix previous, use sed to fix up the set.${set} line in non-METAFILE mode 2024-01-30 10:24:39 +00:00
wiz d2d5ef5165 binutils-2.42 is out 2024-01-29 23:14:46 +00:00
christos 283a7ed9be fix tools build 2024-01-29 22:01:58 +00:00
christos ed7b026d6f PR/57891: Ricardo Branco: add symbolic flags printing (from FreeBSD) 2024-01-29 21:55:24 +00:00
rillig 9e650a18b6 lint: do not remember content of wide string literals
The plain char literals are needed for checking printf/scanf format
strings; lint has no similar check for wide strings. These format
strings are checked by modern compilers, making this check less
relevant.
2024-01-29 21:30:24 +00:00
rillig 49766a0931 lint: check getopt call more strictly
Previously, '(c = getopt(...)) != -2' would match as well.
2024-01-29 21:04:21 +00:00
riastradh 5669537f55 hdaudio(4): KNF, no functional change intended 2024-01-29 18:58:54 +00:00
riastradh add1b63f70 hdaudio(4): Tighten hdafg_freem.
The fix for PR kern/57890 in hdafg.c 1.29 included more conditionals
than needed, covering cases that can't happen: if allocm returns
null, audio(4) does not call freem; and if hdafg_allocm returns
nonnull, then what audio(4) passes to hdafg_freem had better be
either the playback or the capture buffer address.
2024-01-29 18:55:51 +00:00
christos c78676accc PR/57889: Ricardo Branco: ext2fs does not have user immutable and append
file flags, only system ones. Restrict those to the superuser. Before
the behavior was controlled by EXT2FS_SYSTEM_FLAGS. Make that behavior the
default.
2024-01-29 18:27:09 +00:00
jschauma c4afa3d594 +HPKE, PKE (hybrid) public key encryption (see also: RFC9180) 2024-01-29 16:31:53 +00:00
christos a3cd843f2a sprinkle argsused 2024-01-29 16:09:45 +00:00
martin 49eab889a9 When building in priviledged mode, remove the entry for the output file
from etc/mtree/set.* - it may exist and contain stale data.
2024-01-29 15:56:49 +00:00
msaitoh 1fba956e18 wm(4): Fix compile error without WM_EVENT_COUNTERS. 2024-01-29 06:24:51 +00:00
msaitoh c66bba4447 wm(4): Drop frames if the RX descriptor ring has no room on multiqueue system.
Drop frames if the RX descriptor ring has no room. This is enabled only on
multiqueue system to avoid bad influence to other queues. The drop count
can be seen by the RQDPC counter (wmN rxqXXdrop evcnt).
2024-01-29 06:05:11 +00:00
mrg 1fae5a330f properly quote arguments. 2024-01-29 05:46:55 +00:00
rin 8641e70f1f style: One more typo, NFC 2024-01-29 05:42:41 +00:00
msaitoh 2af43e2877 wm(4): Add RQDPC(Receive Queue Drop Packet Count) to iqdrops.
The iqdrops counter should include not only MPC(Missed Packet Count)
but also RQDPC(Receive Queue Drop Packet Count). Same as ixgbe(4) and igc(4).

 Note that the RQDPC is not currently counted because SRRCTL_DROP_EN
is not set.
2024-01-29 05:02:06 +00:00
riastradh c74656f40c agp_i810(4): Use ipi(9) for chipset flush on all CPUs, not xcall(9).
i915 now calls into this with a spin lock held, so we have to use
ipi(9), which spin-waits for the other CPUs to complete, rather than
xcall(9), which may sleep-wait.

Fortunately, this is just to execute WBINVD on x86 (and if this code
ever runs on other architectures, which it probably doesn't, it'll be
a similar barrier instruction), so spinning to wait for that on all
CPUs isn't too costly.

PR kern/57878

XXX pullup-10
2024-01-29 01:05:55 +00:00
riastradh 83020821ca postinstall(8): Don't say /etc/openssl/certs.conf already exists.
It's confusing when all the other `postinstall fix' actions are
silent in the event they don't have anything to do.

PR install/57885
2024-01-29 00:57:38 +00:00
riastradh f17b3abd13 tests/usr.bin/mtree: Fixed the set lists, no more xfail.
PR misc/57877
2024-01-28 19:08:06 +00:00