1
0
mirror of https://github.com/openbsd/src.git synced 2026-06-18 07:13:36 +02:00
Commit Graph

228982 Commits

Author SHA1 Message Date
cheloha 9d6c8bbcf1 clockintr: remove clockintr_expiration()
With the introduction of clockintr_advance_random(), this interface is
now unused.  Remove it.

Suggested by mpi@.

Thread: https://marc.info/?l=openbsd-tech&m=169392340028978&w=2

ok mpi@ mlarkin@
2023-09-05 22:41:14 +00:00
cheloha 44e905e6c8 clockintr: remove clockintr_nsecuptime()
With the introduction of clockintr_advance_random(), this interface is
now unused.  Remove it.

Suggested by mpi@.

Thread: https://marc.info/?l=openbsd-tech&m=169392340028978&w=2

ok mpi@ mlarkin@
2023-09-05 22:29:28 +00:00
cheloha b441a2d804 clockintr: add clockintr_advance_random()
Add clockintr_advance_random().  Its sole purpose is to simplify the
implementation of statclock's pseudorandom period.

Ideally, nothing else will use it and we will get rid of it and the
pseudorandom statclock period at some point in the near future.

Suggested by mpi@.

Thread: https://marc.info/?l=openbsd-tech&m=169392340028978&w=2

ok mpi@ mlarkin@
2023-09-05 22:25:41 +00:00
espie 93774b028b github.io is https
zap the dot so that dumb cut&paste works
2023-09-05 16:20:30 +00:00
jca 1b3607db00 Log a dummy "<unknown>" IP address in the unlikely event that genameinfo(3) fails
clang-16 warning reported by robert@, ok tb@ millert@
2023-09-05 16:01:58 +00:00
florian 9b672e5978 Fix indentation, found with -Wmisleading-indentation.
Already commited upstream.
2023-09-05 15:46:22 +00:00
florian 911a1a621e Prevent warnings from -Wmissing-prototypes
https://github.com/NLnetLabs/unbound/pull/931
2023-09-05 15:45:51 +00:00
florian 6ced2d1563 Fix built.
The api changed to handle cookies and extended error codes.

Passing in NULL for config_file disables cookie handling so we do not
need to pass a valid comm_reply, NULL will do.
2023-09-05 15:44:39 +00:00
florian d500c338f7 sync to unbound 1.18.0; heavy lifting by sthen 2023-09-05 15:44:01 +00:00
robert 1adff8d768 fix mismatching declaration of argument with mismatched bounds
ok tb@
2023-09-05 15:37:07 +00:00
robert 9143bd60ef function definitions without prototypes are deprecated, so shut clang16 up
ok kettenis@
2023-09-05 15:33:40 +00:00
schwarze cfb416a180 add a BUGS section warning about the creation of incomplete objects 2023-09-05 15:01:39 +00:00
tb 281c212581 Improve error handling in OBJ_add_object()
There is no need for a helper function to obfuscate lh_ADDED_OBJ_new().
Just call the real thing directly.

Adding an object with a NID of NID_undef basically amounts to disabling
a built-in OID. It does so in an incoherent fashion and the caller can't
easily tell success from failure of the operation. Arguably the result is
a corrupted objects table.

Let's not allow adding such an object in an attempt at keeping things
slightly more coherent.

Issue noted and initial diff by schwarze while writing documentation

ok schwarze
2023-09-05 14:59:00 +00:00
schwarze 0c4652a22d document EVP_CIPHER_name(3) 2023-09-05 14:54:21 +00:00
schwarze aac644eaa5 add the missing .Dv macros to the list of flags 2023-09-05 14:37:00 +00:00
schwarze 7fd26e6c25 improve the descriptions of almost all flags,
in particular saying which API functions each flag affects
2023-09-05 14:19:02 +00:00
jsg 0348eb56e1 unifdef HAS_INLINES
inline is part of gnu89 and c99
ok kn@ espie@
2023-09-05 14:05:41 +00:00
mlarkin 07b219feff vmm(4): switch the APMI CPUID mask to an include mask
dv points out that there are other bits there that imply the existence
of other MSRs, so switching this to an include list is a better idea.
2023-09-05 14:00:40 +00:00
espie b64ddb25ad reorder 2023-09-05 13:58:49 +00:00
espie 5bab8f076e automated MASTER_SITE* -> SITE* renaming
(need some alphabetical reordering)
2023-09-05 13:55:57 +00:00
schwarze 3de9d62ff6 Partial rewrite:
* Integrate the leftovers of the former NOTES section into the main text,
resulting in a more logical order of information.
* Make many descriptions more precise and tweak many wordings.
For example, the description of OBJ_cmp(3) was totally misleading.

Add a CAVEATS section explaining the scary ownership contracts
of the functions returning ASN1_OBJECT pointers.

Move the discussion of NID_undef to the BUGS section because the
statement "objects which are not in the table have the NID value
NID_undef" was misleading in more than one way.

Considering that an API as fundamental as this one contains such a
gigantic amount of quirks and traps and gaps makes me shudder.
2023-09-05 13:50:22 +00:00
espie cec108aadc avoid fatal errors at all costs 2023-09-05 13:47:25 +00:00
espie 8355cbfbdf DIST_TUPLE's handling of HOMEPAGE is optional, of course 2023-09-05 13:15:31 +00:00
espie 7cb0f60de0 update informal toc 2023-09-05 13:13:50 +00:00
naddy b0fd63cf1e stop putting multicast addresses into the Receive Address Registers
Hash them all into the Multicast Table Array.  This matches what
FreeBSD does.

This fixes a problem where the I217-LM would fail to receive packets
for some of the programmed addresses.

Approach agreed by jmatthew@ dlg@
OK claudio@
2023-09-05 13:06:42 +00:00
stsp e2e64addf8 Make ksmn(4) attach to 19h/4x devices
Tested on:
cpu0: AMD Ryzen 5 PRO 6650U with Radeon Graphics, 2900.00 MHz, 19-44-01, patch 0a404102

ok mlarkin
2023-09-05 13:06:01 +00:00
espie b7a0f5c01a pof for check-lib-depends 2023-09-05 13:04:58 +00:00
espie f84a202f63 be blunter about IS_INTERACTIVE 2023-09-05 13:02:11 +00:00
espie 19a36da78e drop very old history 2023-09-05 12:58:01 +00:00
espie bd26e3630d strongly hint that people take advantage of sqlports 2023-09-05 12:53:43 +00:00
espie bab53d68ee document moving mechanisms 2023-09-05 12:47:54 +00:00
espie 80a3036ee1 use terminology for other projects: it's still "fake" to us, but
acknowledge the more common name "staging area"
2023-09-05 12:10:34 +00:00
espie 1f9fb444ea There's no index in bsd.port.mk these days. 2023-09-05 11:51:44 +00:00
espie f9c26adb45 Be more specific in some places.
In  particular, telling people not to use pre-fake unless
they know what they're doing is idiotic.
2023-09-05 11:25:12 +00:00
sthen 0758616c49 oops, forgot to rm these before cvs import 2023-09-05 11:18:03 +00:00
sthen 8b7325af55 merge unbound-1.18.0 2023-09-05 11:12:09 +00:00
sthen 437d28603d import unbound 1.18.0, ok florian 2023-09-05 11:07:45 +00:00
tobhe 997cb7e2d3 Fix touchpad on newer device trees. The *gpio fields moved up one layer.
The driver will work with both formats for now but we plan to remove
the old one in the future.

ok kettenis@
2023-09-05 11:04:06 +00:00
espie b7fafb2373 readmes hasn't existed for a long time, say goodbye to TEMPLATES 2023-09-05 10:31:48 +00:00
espie ab3c753a8a nits, explain when DISTFILES is automatically set 2023-09-05 10:29:16 +00:00
guenther b3774972aa Address the case 2b version of inconsistent view across threads of
a page undergoing copy-on-write faulting.  We fixed the case 1b
version in rev 1.125 (2022-02-01), but missed this other path.

jsg@ noted that in NetBSD Chuck Silvers had a relevant commit, their
rev 1.234 (2023-08-13), which looks like it fixed both cases due
to their refactoring of common code into a uvmfault_promote()
function.

ok mpi@ jca@
2023-09-05 05:08:26 +00:00
yasuoka 36a3d429cd Refuse an incomplete config, an authentication block which doesn't
have authentication module.  The code doesn't expect this.
2023-09-05 00:32:01 +00:00
yasuoka ab3cfbd93e Revert previous. It caused the stdio of the modules be NONBLOCK.
Generally programs don't expect that.
2023-09-04 23:55:23 +00:00
bluhm 94687c0059 Fix netstat output of uses of current SYN cache left.
TCP syn cache variable scs_use is basically counting packet insertions
into syn cache.  Prefer type long to exclude overflow on fast
machines.  Due to counting downwards from a limit, it can become
negative.  Copy it out as tcps_sc_uses_left via sysctl, and print
it as signed long long integer.

OK mvs@
2023-09-04 23:00:36 +00:00
thfr 718a7fb443 document DIST_TUPLE and related variables: EXTRACT_SUFX.<name>,
TEMPLATE_DISTFILES.<name>, and TEMPLATE_HOMEPAGE.<name>.
ok espie@
2023-09-04 22:36:55 +00:00
jca 4da689f74e Save some space on the ramdisks, actually use -DSMALL
This disables the helpers that recognize compressed archives when the
user failed to use the proper flag/command.  Those are not terribly
useful on the ramdisks and the fallback behavior is sane.

Went through a make release Just In Case(tm).

Spotted by caspar@, ok millert@ sthen@ caspar@
2023-09-04 17:08:03 +00:00
jca 9c4549c6e4 Zap #ifndef SMALL around pax format read support
-DSMALL has never been used to build the ramdisks, thus the support for
reading pax format archives has always been there.  This is misleading,
so just zap the ifdef since we want to keep read support.

Went through a make release Just In Case(tm).

Spotted by caspar@, ok millert@ sthen@ caspar@
2023-09-04 17:05:34 +00:00
jmc e36cf0cab4 rework DESCRIPTION for readability. put the BOOTP stuff in its own
section, to avoid cluttering things up. remove the useless COMMAND LINE
section header, and shuffle text accordingly.

ok stsp claudio krw
2023-09-04 16:11:00 +00:00
claudio 4260963390 Protect ps_single, ps_singlecnt and ps_threadcnt by the process mutex.
The single thread API needs to lock the process to enter single thread
mode and does not need to stop the scheduler.

This code changes ps_singlecount from a count down to zero to ps_singlecnt
which counts up until equal to ps_threadcnt (in which case all threads
are properly asleep).

Tested by phessler@, OK mpi@ cheloha@
2023-09-04 13:18:41 +00:00
schwarze c02a7420f1 Fix a bug where the wrong digit was used for prioritizing filenames
in the standard man(1) mode that formats a single resulting page
if the respective manpath contained digits, like X11R6 does.
Fortunately, this bug did not trigger for any Xenocara manual page.
2023-09-04 13:08:11 +00:00