Commit Graph

305584 Commits

Author SHA1 Message Date
uwe 0eabe93f0f ofwboot(8): correct previous example 2024-03-02 00:03:20 +00:00
riastradh 24b94ff041 netinet6: Avoid NPD on `ifconfig ifN inet6 ... pltime 0 vltime 0'.
PR kern/53922
2024-03-01 23:50:27 +00:00
uwe a4e8759c9c ofwboot(8): add some practical examples
The system you want to boot into the single user mode is probably the
default installation, so a simple "boot -s" is enough for that.  Don't
be redundant and scary.

Also provide an example that uses full syntax for the kernel name.  It
is confusingly similar to the OFW syntax for boot-device yet
different.  That example also demonstrates how one might test a
different version of ofwboot.
2024-03-01 22:35:56 +00:00
andvar 19aecbc6b0 s/securlevel/securelevel/ in comment. 2024-03-01 22:01:03 +00:00
rillig cee0bfb19b lint: fix misleading initializer for string iterator
The field 'start' marks the start of the previous matching character,
not the current iterator position.

No binary change.
2024-03-01 21:52:48 +00:00
sjg bbd77d9b59 make: update var-scope-local test
Show what VAR value is in environment of target script.
2024-03-01 20:15:59 +00:00
rillig 38c0bdf232 lint: test format strings from snprintb calls
The functions snprintb and snprintb_m are specific to NetBSD, and their
format strings are tricky to get correct.  Provide some assistance in
catching the most common mistakes.
2024-03-01 19:39:28 +00:00
rillig 1234a824fc make: fix type mismatch in lint's strict bool mode (since today) 2024-03-01 17:53:30 +00:00
rillig 448a10168f make: remove test variant for NO_REGEX
The compile-time toggle was removed in var.c 1.1099 from 2024-02-07.
2024-03-01 17:47:05 +00:00
rillig 9e211f3599 tests/lint: remove redundant documentation 2024-03-01 17:22:55 +00:00
rillig befbe528d3 lint: fix type error in strict bool mode (since yesterday) 2024-03-01 17:14:34 +00:00
sjg 5b28ac6c57 make: export target scope values
Pass target scope to Var_ReexportVars so that a target process
will see the correct values in its env.
We must then mark any Global scope variable as unexported
so targets without local value get the Global one.
2024-03-01 16:41:42 +00:00
christos d037437ed7 new sqlite3 2024-03-01 15:49:41 +00:00
christos 90b19e4963 new sqlite 2024-03-01 15:48:24 +00:00
christos b9988867a8 merge conflicts between 3.43.0 and 3.45.1 2024-03-01 15:47:58 +00:00
christos 9ee89622ee Import sqlite-3.45-1 (previous was 3.43.0)
SQLite Release 3.45.1 On 2024-01-30
Prior changes from version 3.45.0 (2024-01-15):

Added the SQLITE_RESULT_SUBTYPE property for application-defined
SQL functions. All application defined SQL functions that invokes
sqlite3_result_subtype() must be registered with this new property.
Failure to do so might cause the call to sqlite3_result_subtype()
to behave as a no-op. Compile with -DSQLITE_STRICT_SUBTYPE=1 to
cause an SQL error to be raised if a function that is not
SQLITE_RESULT_SUBTYPE tries invokes sqlite3_result_subtype(). The
use of -DSQLITE_STRICT_SUBTYPE=1 is a recommended compile-time
option for every application that makes use of subtypes.

Enhancements to the JSON SQL functions:
All JSON functions are rewritten to use a new internal parse tree
format called JSONB. The new parse-tree format is serializable and
hence can be stored in the database to avoid unnecessary re-parsing
whenever the JSON value is used.  New versions of JSON-generating
functions generate binary JSONB instead of JSON text.
The json_valid() function adds an optional second argument that
specifies what it means for the first argument to be "well-formed".
Add the FTS5 tokendata option to the FTS5 virtual table.
The SQLITE_DIRECT_OVERFLOW_READ optimization is now enabled by
default. Disable it at compile-time using -DSQLITE_DIRECT_OVERFLOW_READ=0.

Query planner improvements:
Do not allow the transitive constraint optimization to trick the
query planner into using a range constraint when a better equality
constraint is available. (Forum post 2568d1f6e6.)
The query planner now does a better job of disregarding indexes
that ANALYZE identifies as low-quality. (Forum post 6f0958b03b.)
Increase the default value for SQLITE_MAX_PAGE_COUNT from 1073741824
to 4294967294.

Enhancements to the CLI:
Improvements to the display of UTF-8 content on Windows
Automatically detect playback of ".dump" scripts and make appropriate
changes to settings such as ".dbconfig defensive off" and ".dbconfig
dqs_dll on".

Changes in this specific patch release, version 3.45.1 (2024-01-30):
Restore the JSON BLOB input bug, and promise to support the anomaly
in subsequent releases, for backward compatibility.
Fix the PRAGMA integrity_check command so that it works on read-only
databases that contain FTS3 and FTS5 tables. This resolves an issue
introduced in version 3.44.0 but was undiscovered until after the
3.45.0 release.

Fix issues associated with processing corrupt JSONB inputs:
Prevent exponential runtime when converting a corrupt JSONB into text.
Fix a possible read of one byte past the end of the JSONB blob when
converting a corrupt JSONB into text.
Enhanced testing using jfuzz to prevent any future JSONB problems
such as the above.
Fix a long-standing bug in which a read of a few bytes past the
end of a memory-mapped segment might occur when accessing a craftily
corrupted database using memory-mapped database.
Fix a long-standing bug in which a NULL pointer dereference might
occur in the bytecode engine due to incorrect bytecode being
generated for a class of SQL statements that are deliberately
designed to stress the query planner but which are otherwise
pointless.

[for changes to previous releases see:
https://www.sqlite.org/src/timeline?c=1066602b2b&y=ci]
2024-03-01 14:46:45 +00:00
mrg 04615d5639 check that l_nopreempt (preemption count) doesn't change after callbacks
check that the idle loop, soft interrupt handlers, workqueue, and xcall
callbacks do not modify the preemption count, in most cases, knowing it
should be 0 currently.

this work was originally done by simonb.  cleaned up slightly and some
minor enhancement made by myself, and with discussion with riastradh@.

other callback call sites could check this as well (such as MD interrupt
handlers, or really anything that includes a callback registration.  x86
version to be commited separately.)
2024-03-01 04:32:38 +00:00
andvar dc3781080e Fix couple typos in comments. 2024-02-29 22:02:41 +00:00
andvar 8e32e33049 s/hpcfb_refres_screen/hpcfb_refresh_screen/ in debug message. 2024-02-29 22:01:57 +00:00
rillig 25d30ac62e lint1: remove redundant type table for integer constant suffixes 2024-02-29 21:37:10 +00:00
rillig a15b6e013d snprintb.3: fix typo 2024-02-29 21:08:54 +00:00
rillig 4cf4169998 parsedate.y: remove outdated comment
The number of shift/reduce conflicts has grown to 16.
2024-02-29 20:55:35 +00:00
christos c088a49736 remove std= override from here. It happens on top of the bind tree. 2024-02-29 20:41:52 +00:00
tkusumi 0b920f749a makefs/msdos: Fix broken [extra-directory ...] case
"path + cur->name" is not same as "cur->root + cur->path + cur->name"
for extra-directory files, as extra-directory files are
in different location. Do what makefs ffs code does.
2024-02-29 08:13:52 +00:00
gutteridge 3a6a773486 coretemp.c: fix grammar in a warning message
(I get several of these warnings on boot on a particular machine. Now,
it also seems that the code isn't retrieving the correct value, either;
TBD.)
2024-02-29 01:59:11 +00:00
charlotte 3b25eeee74 rain(6): Update the "rainable area" upon SIGWINCH
This makes sure rain falls to fill the entire window even if the window
grows in size.
2024-02-28 23:24:52 +00:00
charlotte 433cbeabe6 rain(6): Avoid division by zero
If there were exactly 4 LINES or COLS then we'd attempt to draw a raindrop
at some value mod 0, which is invalid.
2024-02-28 23:14:37 +00:00
dholland e91196a244 usbdevs: regen; usb_quirks.c: update to match
Regen for additional Logitech B100, and update the UQ_ALWAYS_ON entry
to refer to both device ids.
2024-02-28 21:52:40 +00:00
dholland f904ab5978 usbdevs: add another device id for LOGITECH B100.
The mouse I'm looking at says "Logitech B100" on the back but has a
different device id from the one already here.
2024-02-28 21:50:51 +00:00
riastradh 048ca36a11 urtwn(4): Ditch old queued commands on overflow.
Don't increment ring->queued past what the task will decrement.

This is a stop-gap measure; really, we should just have one task for
each operation that is deferred to the task thread.

PR kern/57965
2024-02-28 20:18:13 +00:00
jakllsch 190b1b914e Add Killer E2600, adapted from PR 57969 2024-02-28 18:55:11 +00:00
jakllsch 8ae14abd9a regen 2024-02-28 18:54:02 +00:00
jakllsch f8651d09a4 Add (Realtek/)Killer E2600 Ethernet 2024-02-28 18:51:34 +00:00
christos 2c7f81b1f9 fix the version number. 2024-02-28 18:14:43 +00:00
macallan 278b8452df support WSDISPLAYIO_SVIDEO so X can turn the monitor off
so far I only know how to turn off video output, not sync(s). Better than
nothing though.
2024-02-28 14:12:12 +00:00
thorpej f80a61f577 Revert the CLOCK_FORMAT0 work-around. 2024-02-28 13:07:07 +00:00
thorpej 3ced769fe7 Fix up the mac68k interrupt handlers to work with the new style common
clockframe layout and remove the CLOCK_FORMAT0 work-around.  As a nice
side-effect, this also eliminates the super-sketchy stack unwinding used
by rtclock_intr to get at the interrupt stack frame.
2024-02-28 13:05:39 +00:00
macallan a75f9c4ba3 add hardware cursor support, mostly for X 2024-02-28 10:25:36 +00:00
riastradh 69b2327d0b heartbeat(9): Restore still-applicable comment nixed in last commit.
The nesting depth is stored in ci_heartbeat_suspend which is 32-bit.
2024-02-28 04:14:47 +00:00
riastradh d6d810141e heartbeat(9): No kpreempt_disable/enable in heartbeat_suspend/resume.
This causes a leak of l_nopreempt in xc_thread when a CPU is offlined
and onlined again, because the offlining heartbeat_suspend and the
onlining heartbeat_resume happen in separate xcalls.

No change to callers because they are already bound to the CPU:

1. cnpollc does kpreempt_disable/enable itself around the calls to
   heartbeat_suspend/resume anyway

2. cpu_xc_offline/online run in the xcall thread, which is always
   bound to the CPU that is being offlined or onlined
2024-02-28 04:12:59 +00:00
gson cca8938d5b Clean up lines containing only tabs. 2024-02-27 21:05:34 +00:00
gson ca24696e6c Clean up lines containing only spaces. 2024-02-27 20:40:29 +00:00
christos 85b802e791 Put the standard NetBSD copyright on this file. Approved by John Brezak
via a message on LinkedIn.
2024-02-27 16:09:19 +00:00
nat 8e4f69fe14 Use proper clockframe size for those platforms that require it.
XXX This is a tempory measure, better to fix clock interrupts to take the
    common clockframe size.

OK thorpej@.
2024-02-27 16:07:02 +00:00
christos a481444702 appease lint 2024-02-27 15:14:15 +00:00
skrll 521a813eae Use __BIT. 2024-02-27 08:33:06 +00:00
skrll 921379d202 Enforce the device 32 bit DMA limitation via bus_dmatag_subregion if bus
can address more than 4GB.
2024-02-27 08:28:56 +00:00
skrll 093202349d KNF - spaces around binary operators. 2024-02-27 08:25:38 +00:00
skrll 2aa5dfd754 Remove unused "SHIFT" defines. The "MASK" versions exist. 2024-02-27 08:21:24 +00:00
gutteridge 49ce5e4abe audio.4: fix grammar and style in places
No change to technical content.
2024-02-27 02:14:23 +00:00