Commit Graph

300293 Commits

Author SHA1 Message Date
sjg 8e85e64406 make: handle .PHONY consitently on interrupt
JobDeleteTarget skips .PHONY targets
CompatDeleteTarget should do the same

This addresses https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=269663
2023-03-18 22:20:11 +00:00
mlelstv 5d501e0c8a Can't use disklabel to find the real size of a disk since a fake disklabel
read from disk is trusted. Revert to use drvctl again.
2023-03-18 11:36:23 +00:00
andvar 8b539d7c36 s/Brigthness/Brightness/ in comment. 2023-03-17 17:16:06 +00:00
andvar 2bf8145d4f s/enougth/enough/ 2023-03-17 17:12:54 +00:00
mlelstv 873be8eff4 Avoid overflow of nfs_commitsize on machines with > 32GB RAM. 2023-03-17 00:46:35 +00:00
wiz c8853b542c openssh 9.3 is out 2023-03-16 07:20:28 +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
jschauma 3ad32398ef +BQP bounded-error quantum polynomial time
+KEM    key encapsulation mechanism
+PQC    post-quantum cryptography
2023-03-15 01:25:02 +00:00
uwe e3da17cc3a service(8): fix markup 2023-03-14 21:50:25 +00:00
fcambus 29ed121e84 Add SPIR (standard portable intermediate representation). 2023-03-14 19:04:17 +00:00
hannken 14fba1f628 Do not limit the number of pending requests for the worker thread.
With wedge on vnd it prevents a deadlock when requests get queued with
biodone() -> dkstart() -> vndstrategy().

Fixes PR kern/57263 "vnd locks up when using vn_rdwr"
2023-03-14 12:55:43 +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
kre f1eb86a44f Add (newly added): expm1l log1pl log2l lgammal tgammal
so that the library gets the correct symbols defined in it.
2023-03-14 05:49:03 +00:00
gutteridge d5ef91429e atf-c-api.3: correct ATF_TP_ADD_TC() examples to use "tp" 2023-03-14 00:55:31 +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
riastradh 7739de6469 libm: Need <math.h> for __HAVE_LONG_DOUBLE.
Fixes missing definitions of lrintl, llrintl on various platforms.
2023-03-13 18:26:32 +00:00
riastradh 91f6ee0820 libm: Fill in more dummy long double transcendental functions.
This should cover everything from C99.
2023-03-13 18:18:36 +00:00
riastradh 981a7d7446 vn_open(9): Add assertion that vp is locked on return.
Null out vp internally out of paranoia so we'll crash in evaluating
the assertion if we ever reach it via one of the vput paths.
2023-03-13 18:13:18 +00:00
riastradh 95473bafc5 vn_open(9): Clarify that this returns a locked vnode.
Comment only, no functional change intended.
2023-03-13 18:12:52 +00:00
martin 0a7d854139 Avoid the dependency on a populated tooldir (or building the tools)
when simply doing mkrepro-timestamp and the current repository setups
does not actually require it.
2023-03-13 11:52:29 +00:00
martin 93e57fb35a PR 57241: switch mips64el back to old binutils for now 2023-03-12 17:22:46 +00:00
tsutsui 5f225b072e Note more user visible changes by me that will appear in NetBSD 10.0. 2023-03-10 18:26:46 +00:00
tsutsui 1c399f454c Move changes pulled up to netbsd-10 from CHANGES to CHANGES.prev. 2023-03-10 18:00:27 +00:00
rillig c16611ce6a make: document how read-only variables can be made read-write 2023-03-09 07:06:43 +00:00
rillig 41e3f40115 make: fix memory leak when parsing ':from=to' modifiers
Since var.c 1.925 from 2021-04-12.
2023-03-09 06:49:37 +00:00
christos 9415b8de41 simplify previous 2023-03-07 21:24:19 +00:00
mrg 958f5a78b3 remove "nouveau" from a comment. noted by jmcneill. 2023-03-07 20:23:00 +00:00
martin c64d4171c6 This example is plain asm code, running ctf tools on it is not usefull 2023-03-07 10:43:53 +00:00
mrg e52584ba70 radeon: Kick out genfb on firmware framebuffer before initializing.
this is the same change as nouveau_pci.c:1.37, and should fix at
least PR#56714 and i thought at least another PR i can't find right
now.  it fixes at least 2 different radeon cards for me on UEFI
booted system.

XXX: pullup-10 also include the original change:
   http://mail-index.netbsd.org/source-changes/2023/03/01/msg143606.html
2023-03-07 09:47:48 +00:00
thorpej d7419f65da Add:
HCC - Home Cable Computer
HCCA - Home Cable Computer Adaptor (yes, that is the original spelling)
2023-03-07 01:29:21 +00:00
andvar c9b3c34d85 fix few typos in comments and log messages. 2023-03-06 21:39:06 +00:00
nia d9c807083c doc: ch-ch-changes 2023-03-06 13:15:15 +00:00
thorpej 3608dbf34c Document __HAVE_UCAS_FULL and __HAVE_UCAS_MP. 2023-03-06 12:25:06 +00:00
kre 23edd9e279 Adjust the tilde expansion test to deal with (very) recent changes
to what the shell produces for tilde expansions, when the expansion
of the tilde prefix ends with '/' and the character immediately following
is another '/' - previously /bin/sh (and most other shells, but not all)
retained both slashes, and this test expected that behaviour.

No longer, now only one of the two will appear.  Adjust the expected
test results accordingly, and add an extra loop iteration to make sure
this is thoroughly tested (one more tilde expansion value).

Also, add two new test cases that test for the new (explicit - though
it was always stated this way, but not as explicitly) that if HOME is
an empty string (not unset - that remains an unspecified case, as it
was) then the expansion of ~ must generate "", and not nothing.
The current test was unable to distinguish those two, since it
simply looked for characters in the output, so add a new test cases
explicitly to test for this particular case.   This also means (also
previously in the standard, but not as explicitly) that shells are
not permitted to decide "The ~ expansion produces an empty string, that
is weird, let's generate something else instead" which some shells were
doing.
2023-03-06 05:54:54 +00:00
kre 726d188a97 Adjust tilde expansion as will be documented in the forthcoming
version of the POSIX standard (Issue 8).   I believe we were already
compliant with what is to be required, but POSIX is now encouraging
(and will likely require in a later version) that if a tilde expansion
produces a string which ends in a '/' and the '~' that was expanded
is immediately followed by a '/' in the input word, that one of those
two slashes be omitted.   The worst (current) example of this is
when HOME=/ and we expand ~/foo - previously producing //foo which is
(in POSIX) a path with implementation defined semantics, and so not
what we should be generating by accident.   Change that, so now if
the ~ prefix expansion ends in a '/' and there is a '/' following
immediately after, the resulting word contains only one of those
chars (in the example just given, we will now produce /foo instead).

POSIX is also making it clear that the expansion that results from
the tilde expansion is treated as quoted (not subject to pathname
expansion, or field splitting, or any var/arith/command substitutions)
and that if HOME="" the expansion of ~ must generate "" (not nothing).
Our implementation did all of that already (though older versions
used to treat an empty expansion of HOME the same as if HOME was
unset - that was fixed some time ago).

The actual modification made here is probably smaller than this log entry,
and without added comments, certainly is!
2023-03-06 05:54:34 +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
wiz 1df225fdea fix typos 2023-03-06 01:03:45 +00:00
uwe 75fb75f5dc portfeatures(9): the man page for the __HAVE macros
The man page itself is a skeleton/template for now.  Please add short
descriptions and xrefs.  If the target man page doesn't yet document
relevant __HAVE macros (hi, mutex(9)), please add something there,
possibly in a .Sh IMPLEMENTATION NOTES section.
2023-03-06 00:49:31 +00:00
riastradh 667737d17a ucom(4): Simplify logic fixing PR kern/57259.
cv_timedwait only ever returns 0 or EWOULDBLOCK, so this would always
return ERESTART anyway.

No functional change intended.
2023-03-05 23:28:54 +00:00
simonb 1145fafc6f In "devlist" mode, exit with a 0 return code if any nvme devices are
found, rather than exiting with 1 return code always.
2023-03-05 23:24:06 +00:00
mrg c09c1d233c mpc is updated to 1.3.1. 2023-03-05 22:37:17 +00:00
mrg 82fc93f0b4 updates for mpc 1.3.1 2023-03-05 22:36:58 +00:00
mrg 367b82799a initial import of mpc 1.3.1. changes from 1.2.1 include:
New function: mpc_agm
New rounding modes "away from zero", indicated by the letter "A" and
corresponding to MPFR_RNDA on the designated real or imaginary part.
New experimental ball arithmetic.
New experimental function: mpc_eta_fund
Bug fixes:
- mpc_asin for asin(z) with small |Re(z)| and tiny |Im(z)|
- mpc_pow_fr: sign of zero part of result when the base has up to sign
  the same real and imaginary part, and the exponent is an even positive
  integer
- mpc_fma: the returned int value was incorrect in some cases
  (indicating whether the rounded real/imaginary parts were
  smaller/equal/greater than the exact values), but the computed complex
  value was correct.
- Remove the unmaintained Makefile.vc; build files for Visual Studio are
  maintained independently by Brian Gladman.
2023-03-05 22:35:51 +00:00
mrg 45a780c280 note mpfr has a new version (4.2.0) and is updated, and
that mpc has a new version (1.3.1).
2023-03-05 22:13:48 +00:00
mrg ad5b340faf updates for mpfr 4.2.0. 2023-03-05 22:12:02 +00:00