Commit Graph

293895 Commits

Author SHA1 Message Date
rillig c96a899199 make: remove redundant initializer in CondParser_ComparisonOrLeaf
No binary change.
2022-01-07 09:02:19 +00:00
rillig 42b43724f2 make: clean up nitpicks in parse.c
In PrintLocation, fname is not an iterator, so prefer fname[0] over
*fname.

List stdout and stderr in this order, for consistency with main.c.

No functional change.
2022-01-07 08:48:16 +00:00
rillig f1b783dc51 make: reduce negations in ParseVErrorInternal
No functional change.
2022-01-07 08:37:23 +00:00
rillig 399f66b1c1 make: rename local variable in bmake_malloc
The length of a string does not include the trailing '\0'.

No binary change.
2022-01-07 08:30:04 +00:00
rillig b4aaa18dd0 make: reduce code for initializing error handling in shell
No functional change.
2022-01-07 08:28:06 +00:00
rillig 03e107a990 make: fix null pointer when including empty file (since 2022-01-01)
Calling malloc(0) may return a null pointer, but callers of bmake_malloc
do not expect that.

Reported by Chris Pinnock, found by cross-compiling NetBSD on OpenBSD,
where tools/groff creates Makefile.dep files of size 0.
2022-01-07 08:20:00 +00:00
mlelstv 0519d6fc29 Safe vendor/product for reporting. Avoids repeated loading/unloading
of hdaudioverbose module.
2022-01-07 07:34:10 +00:00
mlelstv 8a51486883 Calculate the minimum address, don't assume the first entry is the start. 2022-01-07 07:25:37 +00:00
msaitoh 0db3f451e2 Two fixes:
- Fix previous again. The missing comma is intended to split the long line.
  - Add missing right parenthesis.
2022-01-07 06:57:57 +00:00
lukem e99dcc23fb sh(1): improve getopts docs for optstring leading :
getopts has different behaviour if the leading character
of optstring is `:', so describe in more detail:
- no errors are printed (already there)
- unknown options set var to `?' and OPTARG to the unknown option
- missing arguments set var to `:' and OPTARG to the option name

Slight rewording of other paragraphs for more clarity.
2022-01-07 05:30:30 +00:00
msaitoh 4deef3f74c Add missing comma. Found by tnn@. 2022-01-07 05:17:38 +00:00
lukem c878ae3c69 sh(1): fix formatting warnings 2022-01-07 05:10:30 +00:00
ozaki-r a349629228 tests: skip ndp_cache_state on qemu 2022-01-07 03:07:41 +00:00
riastradh 23b4c79f9a acpibat(4): Fix race in detach with AcpiOsExecute deferred call. 2022-01-07 01:10:57 +00:00
lukem e2ecc8d595 postinstall: fix x11 migration of /usr/X11R6/lib/X11
Fix the x11 check if /usr/X11R6/lib/X11/* needs to migrate to /etc/X11/*
by ensuring that the former actually is detected.

Avoids false migration errors for paths such as /fs if /usr/X11R6
doesn't exist, such as:
	x11 check:
	        Migrate /fs to /etc/X11/fs

The original implemention handled this correctly, but the bug
crept in postinstall 1.110 on 2010/11/21.
2022-01-07 01:03:02 +00:00
wiz 52efe91aa5 Fix typo, remove dot 2022-01-06 22:10:39 +00:00
nia 2e2abd82c6 Add man pages for eqos(4), mcommphy(4)
lgtm jmcneill@
2022-01-06 21:55:23 +00:00
blymn 47946660f2 Revert change for array definition, it was incorrect, thanks Uwe. 2022-01-06 20:50:18 +00:00
pgoyette 2cd8b844be Fix previous and actually disable UFS_DIRHASH 2022-01-06 20:41:30 +00:00
ryo 0d457a2cc0 display the raw value of each field when -v specified 2022-01-06 18:00:58 +00:00
ryo 1a9455cf02 fix typo 2022-01-06 17:59:15 +00:00
christos 12a78c4e40 Fix for systems that override SYSTEM_LD_TAIL 2022-01-06 17:05:32 +00:00
pgoyette 67f139e20e Since UFS_DIRHASH is explicitly disabled in GENERIC kernels (due to
being suspected of memory corruption), it should not be enabled in
the default module configurations either.
2022-01-06 15:08:56 +00:00
riastradh b379ba062e lagg(4): Take lock as required around if ioctl.
Note: There are some calls to SIOCADDMULTI/SIOCDELMULTI that take the
lock when they don't need it, but it's not clear it's harmful either
unless they come via a caller that holds softnet_lock.

candidate fix for
https://mail-index.netbsd.org/current-users/2021/12/31/msg041876.html

ok yamaguchi
2022-01-06 12:09:42 +00:00
ryo 57817f981a Added more field definitions for ARMv8.x system registers 2022-01-06 09:01:16 +00:00
ryo bf1b93949b macroify. NFC. 2022-01-06 08:46:43 +00:00
msaitoh fd0f817df7 QEMU e1000's PHY code doesn't reflect the PSSR_LINK bit. Do workaround.
IEEE 802.3 clause 22's PHY device has a link status bit in the BMCR
  register, but it's required to read twice to get the correct value.
  Almost all PHY devices have the vendor specific register which has
  the link status bit that it's not required to read twice. makphy(4)
  use the bit in the PSSR register to reduce the access cost.

   QEMU's e1000 provides the PHY specific status register at 0x11 but the
  link indication bit (PSSR_LINK.) is always 1 because
  e1000x_update_regs_on_link_{down,up}() modify MII_SR_LINK_STATUS
  (BMSR_LINK in NetBSD) but don't modify PSSR_LINK. It causes
  "virsh domif-setlink xxx yyy down" doesn't work.
  To avoid this problem, read the BMSR and check the BMSR_LINK bit. Add
  MAKPHY_QUIRK_PSSR_LINK bit for this quirk. Set it if MII_EXTSR doesn't
  exist because it's one of the case of QEMU.

  Found and tested by ozaki-r.
2022-01-06 07:39:10 +00:00
blymn ebe5c3e633 Properly size and array to hold the larget return from wctomb. 2022-01-06 06:18:13 +00:00
uwe 4dd5a4c03f err.h: dead once is dead enough
Per joerg's advice keep the __dead in front position as it is where
_Noreturn would go.
2022-01-06 00:16:47 +00:00
christos af05b5f086 remove DIAGNOSTIC so that function is defined for KASSERTMSG. Hope that the
compiler removes it.
2022-01-05 20:21:29 +00:00
ryo 63bdacd840 fix ID_AA64ISAR0_EL1.ATOMIC field definition 2022-01-05 19:53:32 +00:00
andvar 62e7294679 fix typos, mainly s/comand/command/ 2022-01-05 16:01:54 +00:00
kre 29a26373af Use a volative local shadow of a field in an (on-stack) non-volatile struct
that is to be referenced after a return from setjmp() via longjmp().

This doesn't ever seem to have caused a problem, but I think using
volative vars is required here.

For reasons I never bothered to discover, even though this change
certainly requires a store into stack memory which wasn't required
before, earlier measurements showed the shell getting (slightly) smaller
with this change in place.

NFCI
2022-01-05 15:25:44 +00:00
kre ca09957470 Install the missing sh syntax element in the MKDEBUGKERNEL = no test, so
that "continue" is a command as intended, and not an invalid last arg to
the '[' command (the last arg is required to be ']').

Sometime the proverbial someone should go through this and remove all the
obsolete test -o and -a operators, and probably do something with test's
usage of ! as well.   Not today, or not by me anyway.
2022-01-05 01:46:28 +00:00
andvar 1f6edd928c s/compnent/component/ 2022-01-04 22:10:08 +00:00
uwe bcb93c2ab4 exec(3): execlpe() first argument should be named "file"
"path" arguments are names used as-is, "file" arguments to "p"
functions are used to construct the pathname using $PATH if necessary.
2022-01-04 20:01:52 +00:00
christos 3d3291666b use a function "runit" to echo and execute avoiding set -x. 2022-01-04 19:52:02 +00:00
uwe b4852c3567 getopt_long(3): "index" is an argument, not a field. 2022-01-04 19:36:16 +00:00
uwe 868269f7b0 getopt_long(3): use NULL, not 0, for flag in the example. 2022-01-04 19:32:16 +00:00
christos 2e4c5e6fad put back the nfs ramdisk kernel for emips. 2022-01-04 14:32:21 +00:00
skrll c26bb47e44 Fix DIAGNOSTIC fallout 2022-01-04 10:38:04 +00:00
kim a041bb8735 bozohttpd: remove obsolete .bzdirect handling
OK mrg@
2022-01-04 06:08:14 +00:00
skrll 23ea9bb513 KNF 2022-01-04 05:55:45 +00:00
skrll cd793cfeb7 consistency. NFCI. 2022-01-04 05:39:12 +00:00
jmcneill 0b954db53a mcommphy(4): Add driver for Motorcomm YT8511 GbE PHY.
eqos(4): Add driver for DesignWare Ethernet Quality-of-Service controller.
2022-01-03 17:21:13 +00:00
jmcneill c1c2648035 Add driver for DesignWare Ethernet Quality-of-Service controller. 2022-01-03 17:19:41 +00:00
jmcneill 17d21f0174 Add driver for Motorcomm YT8511 GbE PHY 2022-01-03 17:18:12 +00:00
christos dc8e937cab the nfs kernel is only for pmax 2022-01-03 16:44:49 +00:00
christos a7e278e4d4 move the kernels for earmv5{,eb} in the ad.arm file so that they don't
override it
2022-01-03 16:43:32 +00:00
martin 348bea3af9 There is no point in putting a second sysinst binary into the install
image's root filesystem.
2022-01-03 12:10:17 +00:00