summaryrefslogtreecommitdiff
path: root/sys/lib
AgeCommit message (Collapse)Author
2024-09-20remove unneeded semicolons; checked by millert@Jonathan Gray
2024-09-06spelling; ok mglocker@Jonathan Gray
2024-09-05sync with baseTheo Buehler
2024-09-04Fix some spelling.Marcus Glocker
Input and ok jmc@, jsg@
2024-08-05sync with baseTheo Buehler
2024-08-01Remove a comment that was committed by accidentTheo Buehler
2024-08-01sync with srcTheo Buehler
2024-07-09sync with userland: let z_off_t fall back to long long instead of longTheo Buehler
In the boot blocks, this would result in various 64-bit instruction being used, which might result in undesirable bloat in legacy boot loaders, so add a workaround for the _STANDALONE case to still fall back to long instead of long long. with/ok deraadt, ok millert
2024-06-30we don't need the NOBYFOUR space-savings option anymore, that codepathTheo de Raadt
was replaced a while ago. ok tb
2024-06-30sync with baseTheo Buehler
2024-04-25Add boot.conf(8) 'mach idle [secs]' to halt at idle passphrase promptsKlemens Nanni
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
2024-04-10remove unused hton[ls] functions from libkernChristian Weisgerber
These have been superseded by inlines from endian.h. ok miod@ mpi@
2024-03-27zlib: sync with baseTheo Buehler
2024-03-24use LIST_FOREACH_SAFE() to avoid use after freeJonathan Gray
this can't happen in a libsa environment found by smatch, ok jsing@
2024-03-15zlib: sync with srcTheo Buehler
2024-02-13zlib: sync with baseTheo Buehler
2024-02-11sync with srcTheo Buehler
2024-02-10libz: sync with baseTheo Buehler
2024-02-07sync with base (comment-only change)Theo Buehler
2024-01-28sync with userlandTheo Buehler
2024-01-23Sync with userlandTheo Buehler
2024-01-21sync with userlandTheo Buehler
2024-01-21sync with userlandTheo Buehler
2023-12-21add strnstr(9) string search within character limitJonathan Gray
From Mike Barcroft in FreeBSD. Added to FreeBSD in 2001, Linux in 2010. Used in amdgpu. ok deraadt@
2023-11-18sync zlib with userlandTheo Buehler
2023-08-20Sync zlib 1.3 with userlandTheo Buehler
2023-08-18sync with userlandTheo Buehler
2023-08-13sync with userlandTheo Buehler
2023-08-04Sync with userland libzTheo Buehler
2023-07-30sync with userland's zlib.hTheo Buehler
2023-07-13bcmp(3) tries to return length, which is a size_t, as an int.Todd C. Miller
Instead, just return 1 if there is a difference, else 0. Fixed by ray@ in 2008 but the libkern version was not synced. OK deraadt@
2023-05-22NENTRY() doesn't provide an endbr64, so give memmove one inPhilip Guenther
case it ever gets called through a function pointer (with retpoline disabled) ok deraadt@
2023-05-02sync with userlandTheo Buehler
2023-04-25zlib: sync with srcTheo Buehler
2023-04-08Return -1 on actual failureKlemens Nanni
MI boot.c's "a-x" fchmod on bsd.upgrade is the only caller that checks the return value and that call can fail on, e.g. softraid volumes. Stop clobbering the actual fchmod return value and get that warning printed. OK deraadt
2023-03-08Delete obsolete /* ARGSUSED */ lint comments.Philip Guenther
ok miod@ millert@
2023-01-04Gordon W. Ross agreed to rescind clause 3 and 4 inJonathan Gray
NetBSD dev_net.c rev 1.15 bootparam.c rev 1.19 https://mail-index.netbsd.org/source-changes/2009/10/21/msg002212.html
2022-12-27Ansify pxe_netif_close() and {,pxe}socktodesc()Jeremie Courreges-Anglas
To appease the clang 15 warning -Wdeprecated-non-prototype (turned on by -Wall). ok millert@
2022-12-27Fix array bounds mismatch with clang 15Jeremie Courreges-Anglas
New warning -Warray-parameter is a bit overzealous. ok millert@
2022-12-14add __ctzdi2 to sparc64 kernelJonathan Gray
If __builtin_ctzl() is used on sparc64, gcc 4.2 will emit a call to __ctzdi2. For userland this is in libgcc or compiler-rt. In the kernel we put these functions in libkern. 'looks good' deraadt@ miod@
2022-12-08_C_LABEL() and _ASM_LABEL() are no longer useful in the "everythingPhilip Guenther
is ELF" world. Eliminate use of them in amd64, arm64, armv7, i386, macppc, mips64, and sparc64 code. ok deraadt@ jca@ krw@
2022-12-07Add END()s to match ENTRY()s.Philip Guenther
ok deraadt@
2022-12-07Prefer numeric labels over L<digit> labels, as the latter clutterPhilip Guenther
the final kernel symbol table. Add END()s to match ENTRY()s. ok deraadt@
2022-12-07Prefer STRONG_ALIAS() over multiple overlapping _ENTRY/_NENTRYPhilip Guenther
uses, as the latter requires manual handling of _PROF_PROLOGUE. Add END()s to match ENTRY()s. ok deraadt@
2022-12-07Apply changes from commitid FWrfGfO9Ojnsh1mq to libkern.Philip Guenther
From original commit message: To mitigate against spectre attacks, AMD processors without the IBRS feature need an lfence instruction after every near ret. See software techniques for managing speculation on AMD processors revision 9.17.20 mitigation G-5. ok deraadt@
2022-12-06_C_LABEL() and _ASM_LABEL() are no longer useful in the "everythingPhilip Guenther
is ELF" world. Eliminate use of them in m88k code. ok aoyama@
2022-12-01_C_LABEL() is no longer useful in the "everything is ELF" world.Philip Guenther
Start eliminating it. ok mpi@ mlarkin@ krw@
2022-10-23Drop RCS ids in upstream zlib sourceTheo Buehler
We're not maintaining a this as a fork, it's upstream source with a handful of patches. Thus, the RCS ids aren't particularly useful or important. They are a bit of a maintenance burden and generate noise in diffs. ok kn, no objection millert, "kill" guess who
2022-10-20Sync sys libz with baseTheo Buehler
2022-09-02Add ufs2 to the list of filesystem, for the sake of boot blocks which do notMiod Vallat
provide an explicit list of files to build in libsa.