Commit Graph

305832 Commits

Author SHA1 Message Date
rillig 4ed1e5f144 snprintb.3: provide examples for hexadecimal character escapes
Suggested by uwe@, in reaction to the previous commit, which preferred
octal in the examples. Hexadecimal escapes are more familiar to most
programmers, and the chance of mistaking \x14 for decimal 14 is less
than the chance of mistaking octal \014 for decimal 14.
2024-04-08 21:28:35 +00:00
andvar 275fdf371a Update the date of the documentation to reflect recent changes. 2024-04-08 20:28:34 +00:00
christos 7ca2862ebe kre says this should be obsolete 2024-04-08 12:38:59 +00:00
uwe 5858056bcd ifconfig(8): move laggportpri next to laggport 2024-04-08 12:32:57 +00:00
christos 28f1742a3b put back /var/run/named 2024-04-08 12:32:15 +00:00
nakayama b1e388c0fa Remove unnecessary characters left over from the previous commit. 2024-04-08 10:26:17 +00:00
kre a471ace5cc Correct a very minor typo (s/id/is/) 2024-04-08 09:25:25 +00:00
yamaguchi 8d2da54dfb Added documents about parameters related to lagg(4)
PR misc/58125
2024-04-08 04:29:52 +00:00
yamaguchi c27ed12eb5 lagg(4): fix missing initialization of the number of array
pointed out by martin@, thanks.
2024-04-08 00:50:49 +00:00
riastradh 426664783a riscv: Schedule next hardclock tick in the future, not the past.
If we have missed hardclock ticks, schedule up to one tick interval
in the future anyway; don't try to play hardclock catchup by
scheduling for when the next hardclock tick _should_ have been, in
the past, leading to ticking as fast as possible until we've caught
up.  as fast as possible until we've caught up.

Playing hardclock catchup triggers heartbeat panics when continuing
from ddb, if you've been in ddb for >15sec.  Other hardclock drivers
like x86 lapic don't play hardclock catchup either.

PR kern/57920
2024-04-07 22:59:13 +00:00
riastradh 876e9811a0 riscv: Make sure cpu0->ci_cpu_freq is initialized by cpu_attach.
Otherwise this stays zero, which screws up cpu_ipi_wait.
2024-04-07 22:52:53 +00:00
kre 15fd71c48c Revert last, unbreak build. Unless the bind Makefiles start installing
a /var/run/named file (which in general would be wrong, as most sites run
named in a chroot these days) the file is obsolete, and should not, and
does not, get generated by the build, nor should it be included in any
sets.

Ideally we'd have an "optional" flag for the sets files, to allow them
to mention files that might exist, and don't matter (and are not included
in the sets), but that's a bigger change than is needed just to fix the
builds.
2024-04-07 21:33:12 +00:00
andvar 36d2dca1aa Remove extra whitespace after P-4032. 2024-04-07 19:51:49 +00:00
andvar 7dd6188a11 Initial version of evbmips kernel configuration files documentation.
The goal is to give a better understanding which hardware they represent
and how to build them. Also not to lose this information over the years.

Loosely based on a README.evbarm, however has additional notes on building
targets. The file is not final, some discussion came up about the need of
*32 kernel configs. simon is planning to review.
2024-04-07 19:39:24 +00:00
rillig adf4d5a0e6 sparc: fix typos and omissions in PSTATE_BITS and ECC_AFR_BITS
Fixes PR 57869.
2024-04-07 17:08:00 +00:00
rillig b5be0901e3 snprintb: reject empty bit descriptions and wrongly placed defaults 2024-04-07 15:20:16 +00:00
christos 8693216f97 /var/run/named is not obsolete 2024-04-07 15:02:08 +00:00
tsutsui 89a196663d Switch vax to HAVE_XORG_SERVER_VER=120.
Tested on my VAXstation 3100/m30 with smg(4).
Ok'ed by mrg@ on tech-x11@:
 https://mail-index.netbsd.org/tech-x11/2024/04/thread1.html#002457
2024-04-07 14:40:34 +00:00
tsutsui d69dc3dc09 Use default X11FLAGS to build Xorg servers on vax.
It looks necessary on HAVE_XORG_SERVER_VER=120.
2024-04-07 14:36:23 +00:00
rillig fca116efc7 snprintb.3: clean up formatting and wording, prefer octal in examples
Using hexadecimal character escapes requires separate string literals if
the description starts with one of the letters A-F; octal character
escapes have at most 3 digits, reducing ambiguity.
2024-04-07 14:28:26 +00:00
christos 11b31797aa make qsort sorting deterministic 2024-04-07 12:30:38 +00:00
rillig 442f4c6c59 snprintb: reject combinations of 'f' with ':' as well as 'F' with '='
These combinations would lead to garbled output.
2024-04-07 12:05:23 +00:00
rillig 864a50a39a snprintb: reject empty descriptions
In cases where the snprintb output is garbled, it is not trustworthy, so
make sure the mistakes in the bitfmt are fixed early.
2024-04-07 10:10:54 +00:00
kre 1568b40160 Redo the mktemp(1) part - some mktemp's (including ours) require the
XXXX's to be at the end of the name (like mk*temp(3)) so however well
it will work with mktemp implementations which allow the X's to be
anywhere in the final component of the name, it will work just as
well on them with the X's at the end.

But we don't normally need all of that mess - knowing which temp
file is which is useful only when debugging the script, and that's
(mostly) long done.   So, in normal uses now just use $(mktemp) and
allow mktemp to pick its own name - we don't need to know what it is.
Every mktemp(1) supports that mode of operation.

Bug when debugging the script (which for current purposes will be
taken to be when the -x flag is passed to the shell running it, to
trace what it does) then we will make the temp files have names we
can recognise (and in that case, also don't delete them when done).

While here, check for mktemp(1) failing, and abort if that
happens (we assume that if it fails it will write an error
message to stderr, so the script does not need to.)

As for the purpose of the script ... of course the header file
generated (or an equivalent elsewhere) could be generated and
maintained by hand, but why would anyone want to do all that
work when software can do it for us, and do it correctly without
human thought?

This also allows the options in the master list (option.list) to be
arranged in a way that is meaningful for them, unrelated to the order
the shell needs to have them in (or rearrange them to be at run time)
and have that order shuffled however is convenient.   Currently all
the posix standard options are first, then the "hybrid" options, and
finally the local ones for this shell.   Currently "pipefail" is in the
final set, but once the next posix version is published, that will
become a standard option, and get moved in the list - the shell won't
even notice as this script puts the options into shell desired order.
2024-04-06 14:20:27 +00:00
skrll c0895bb2dc Attach qemufwcfg 2024-04-06 13:42:46 +00:00
skrll ffeb8b480a Add RISC-V support 2024-04-06 13:42:18 +00:00
skrll ff38d4b0dd Fix riscv32 build 2024-04-06 13:41:03 +00:00
christos 0c83befa2b update em-toggle-overwrite binding (Xose Vazquez Perez) 2024-04-06 13:36:11 +00:00
andvar 94d4082ee8 regen. 2024-04-06 13:35:59 +00:00
andvar 4fadf7fd28 Add KX-6000 (ZX-E) HDA codecs. 2024-04-06 13:35:36 +00:00
skrll 5b566ab153 Provide and use _ucas_{32,64} implementations 2024-04-06 10:08:54 +00:00
hannken 2ea37e1c00 Use "%zu" for type "size_t". Kernel ALL/i386 compiles again. 2024-04-06 09:51:34 +00:00
andvar c2afc2de0f regen. 2024-04-06 09:11:48 +00:00
andvar dab1fc021f Add Zhaoxin devices, mainly from my TVS-675 NAS device, and some additional
to fill the gaps from pci-ids database.
2024-04-06 09:10:11 +00:00
christos 7557661219 spacify the paper size for PostScript 2024-04-05 23:06:32 +00:00
christos 64cf3c5d82 specify the page size for PostScript 2024-04-05 23:05:53 +00:00
christos 4bd940221b specify the paper size for PostScript 2024-04-05 23:05:04 +00:00
christos b395dc204e From Jan-Benedict Glaw:
Use `printf` instead of `echo` for precise output

`man` pages generated under NetBSD and Linux differ as the escape codes
may or may not be interpreted when going through those two chained `echo`es.
Instead just use `printf`, which produces the desired output, always.
2024-04-05 22:30:18 +00:00
christos 4224f0436d Use ${TOOL_DATE} (Jan-Benedict Glaw) 2024-04-05 22:27:25 +00:00
christos 3200c2817b From Jan-Benedict Glaw:
Fix a redirection and prepare a stable sort for upper-/lowercase
option letters

This script is a mess, I strongly believe that it should be rewritten.
However, I'm not 100% sure why it was invented in the first place
(come on, the generated header file isn't _that_ complicated that
it couldn't be sanely managed by hand!), but let's fix the sorting
order by using LC_ALL=C.

Also add a few 'X' to the `mktemp` template to make non-BSD
implementations happy. As a bonus, actually *use* the initial `sed`
output instead of throwing it away by piping it into `sort` with
also connecting `sort`'s stdin with the original input file...
2024-04-05 22:22:17 +00:00
rillig c070e60d9e flex.1: fix single-bit error in contributor name 2024-04-05 22:21:40 +00:00
riastradh 2722c57029 usb *hci: Always set ux_status before usbd_xfer_schedule_timeout.
Add an assert to usbd_xfer_schedule_timeout to enforce this.

Since access to ux_status is serialized by the bus lock, and nothing
releases the bus lock in the interim, this doesn't make a functional
change.  But it does reduce confusion by readers, who no longer have
to worry if some callers got the order wrong.  It could also now
potentially be factored out in a subsequent commit.
2024-04-05 18:57:10 +00:00
christos e84b33b8b9 break strength ties so that qsort is deterministic 2024-04-05 16:56:58 +00:00
christos 2179683207 remove dup named dir 2024-04-05 16:44:54 +00:00
riastradh fda613df02 uvm: Expand v_size <= v_writesize assertions to help diagnostics.
PR kern/58117
2024-04-05 13:05:40 +00:00
kre 40580391fd Revert last, the .pic file is used elsewhere. 2024-04-05 12:03:24 +00:00
simonb dcc7d3f968 Apply FreeBSD svn r373278 fix for ZFS corruption. Fix for NetBSD
PR kern/58111 .

It would be extremely unlikely to trip this bug on NetBSD, as we don't
expose SEEK_DATA and SEEK_HOLE and you need to call ioctl(2) with
FIOSEEKDATA and FIOSEEKHOLE directly which no currently known code does,
and even then be unlucky enough to trip a race condition.

With a reproducer based on that in https://www.illumos.org/issues/16087,
I saw 11 groups of failures over 8 hours.  With this patch, no
failures in 10 hours.  The repro for NetBSD will be attached to
https://gnats.netbsd.org/58111 .

Original FreeBSD commit message:
--------------------------------
dnode_is_dirty: check dnode and its data for dirtiness

Over its history this the dirty dnode test has been changed between
checking for a dnodes being on `os_dirty_dnodes` (`dn_dirty_link`) and
`dn_dirty_record`.

It turns out both are actually required.

In the case of appending data to a newly created file, the dnode proper
is dirtied (at least to change the blocksize) and dirty records are
added.  Thus, a single logical operation is represented by separate
dirty indicators, and must not be separated.

The incorrect dirty check becomes a problem when the first block of a
file is being appended to while another process is calling lseek to skip
holes. There is a small window where the dnode part is undirtied while
there are still dirty records. In this case, `lseek(fd, 0, SEEK_DATA)`
would not know that the file is dirty, and would go to
`dnode_next_offset()`. Since the object has no data blocks yet, it
returns `ESRCH`, indicating no data found, which results in `ENXIO`
being returned to `lseek()`'s caller.

This change simply updates the dirty check to check both types of dirty.
If there's anything dirty at all, we immediately go to the "wait for
sync" stage, It doesn't really matter after that; both changes are on
disk, so the dirty fields should be correct.

Sponsored by:   Klara, Inc.
Sponsored by:   Wasabi Technology, Inc.
2024-04-05 11:20:34 +00:00
christos 510d1ca606 Just build the staticlib. 2024-04-05 11:04:37 +00:00
christos c998d55824 Fold long line 2024-04-05 11:04:19 +00:00
kre 390195052f Probable hack fix for current build breakage.
Make sure to build external/mit before external/mpl (as bind in mpl
needs libuv from mit) and in mit/libuv make sure to build the
static library with the new MAKESTATICLIB mechanism, as that is
what bind needs.
2024-04-05 08:51:27 +00:00