__sfvwrite: allow writing buffers larger than BUFSIZ or st_blksize.
This can vastly improve write performance. For unbuffered writes,
we now write up to INT_MAX instead of BUFSIZE. For buffered writes,
write the largest multiple of the buffer size (which may be st_blksize).
From Apple via enh at google. OK tb@
Don't filter dangerous characters by hand when strvisx(3) is right there.
segfault reported by sthen, which was most likely caused by buf_dump().
OK tb
"!command" notation was zapped 8 years ago - remove corresponding
entry from the help file; from piotr durlej
while here, zap an unneccessary blank line
ok millert
Update awk to the Apr 22, 2024 version.
* fixed regex engine gototab reallocation issue that was introduced
during the Nov 24 rewrite.
* fixed use-after-free bug in fnematch due to adjbuf invalidating
the pointers to buf.
Add boot.conf(8) 'mach idle [secs]' to halt at idle passphrase prompts
Enable users to power down their machines if there was no input after N
seconds during disk descryption.
Motivation is to save battery and prevent pocket heaters when notebooks
unhibernate (e.g. lid accidentially opened) and sit at "Passphrase: ".
Only available on efi(4) systems as the timeout is saved as EFI variable;
mostly because that's trivial to do, but also because we lack a better
mechanism to configure that and persist such data without the root disk.
Discussed with many, starting at h2k23
OK Tests gnezdo
Rename socket wait channels when sleeping.
Use "netacc" for accept(2) and "netcon" for connect(2). Call sleep
in sys_ypconnect() "ypcon" to make it unique. sblock() now has
"sblock" to distinguish it from netlock.
OK claudio@ mvs@ kn@
Take pem2.h behind the barn
/*
* This header only exists to break a circular dependency between pem and err
* Ben 30 Jan 1999.
*/
25 years of uselessness is about a quarter century more than enough.
discussed with jsing
Adjust macro definitions for dwqe(4) Rx descriptors.
Split Rx desc macro definitions into two sections, one for the "read"
format and one for the "writeback" format. Add some macros which will
be needed to support Rx checksum offloading.
ok jmatthew@
Mask off MAC management counter interrupts. The driver doesn't know how
to handle these, so if they're enabled, they will cause an interrupt
storm.
ok patrick@ jsg@ stsp@
Revert rev 1.261 and require sigsuspend and __thrsigdivert to take
KERNEL_LOCK. There is at least a race in sigsuspend which can be
triggered by dump(8). Should be enough to allow me to look for the
real cause.