summaryrefslogtreecommitdiff
path: root/lib/libc
AgeCommit message (Collapse)Author
2023-07-07select(2), poll(2): Clarify return values.riastradh
2023-07-04libc: Fix missing membar_consumer in dl_iterate_phdr.riastradh
Pairs with the existing membar_producer. XXX pullup-8 XXX pullup-9 XXX pullup-10
2023-07-02getrandom(2): Reduce editorializing tone in man page.riastradh
XXX pullup-10
2023-07-02libc/shlib_version: note that *rand48* should be punted to libcompatdholland
2023-06-30getentropy(3): use .Sx to xref CAVEATSuwe
2023-06-30getrandom(2), getentropy(3): Rework man pages.riastradh
Make supportable promises. Omit needless verbiage. Give caveats with cross-references to entropy(7). Emphasize that security is necessarily relative to system configuration. XXX pullup-10
2023-06-29vis(3): Avoid nonportable MIN in portable code.riastradh
2023-06-19Fix typo. unknwon -> unknownmsaitoh
2023-06-19Fix typo in the document. From FreeBSD.msaitoh
2023-06-16fix typos in comments.andvar
2023-06-08socket(2): change type flags list back to -taguwe
On second thought, convert the list of type flags back to -tag, but don't make it -compact. This way it's easier to see that it's related to the list above.
2023-06-06socket(2): fix macro invocation in a columnuwe
2023-06-06socket(2): use "provides" consistently in "type" descriptionsuwe
2023-06-06socket(2): use .Bl -column where appropriateuwe
2023-06-06socket(2): Move prose list of socket type summaries into a table.riastradh
2023-06-06socket(2): Tidy up markup a bit.riastradh
Use a tag list, not a literal block with hand-formatted text, for protocols and socket type flags.
2023-06-03bsd.own.mk: rename GCC_NO_* to CC_WNO_*lukem
Rename compiler-warning-disable variables from GCC_NO_warning to CC_WNO_warning where warning is the full warning name as used by the compiler. GCC_NO_IMPLICIT_FALLTHRU is CC_WNO_IMPLICIT_FALLTHROUGH Using the convention CC_compilerflag, where compilerflag is based on the full compiler flag name.
2023-06-03bsd.own.mk: rename to CC_WNO_ADDRESS_OF_PACKED_MEMBERlukem
Provide a single variable CC_WNO_ADDRESS_OF_PACKED_MEMBER with options for both clang and gcc, to replace CLANG_NO_ADDR_OF_PACKED_MEMBER CC_NO_ADDR_OF_PACKED_MEMBER GCC_NO_ADDR_OF_PACKED_MEMBER Using the convention CC_compilerflag, where compilerflag is based on the full compiler flag name.
2023-05-29libc: fix typo in comments: NO_SRSC -> NO_SRCSlukem
2023-05-19Add the compat calls for renamed symbols so that configure scriptsskrll
can find them. sigprocmask being the most problematic. RISC-V doesn't need the compat syscalls, but seeing them fail in ktrace is helpful.
2023-05-19No need for double semi-colonskrll
Indent END the same as ENTRY. NFCI.
2023-05-19KNFskrll
2023-05-07RISC-V support that works on QEMU with a single hart.skrll
Thanks for Simon Burge for plic(4).
2023-04-16Fix parsing a locale string with multiple components.mlelstv
Also check for truncation of a long locale string.
2023-04-04PR/57250: Martin Husemann: dtoa mishandles infinite doubles on 32bit bigchristos
endian machines. When long double support was added, the old code was kept for the regular double code. This code was never used because WIDE_DOUBLE was always defined in the Makefile. Remove that old code, and conditionalize the WIDE_DOUBLE code based on if long doubles are different than doubles on the specific platform.
2023-04-02Trailing whitespaceskrll
2023-04-01Fix lying comment.dholland
2023-03-05Document the error code when O_REGULAR is specified and the lastthorpej
path component is not a regular file.
2023-03-03mremap(2): Note MAP_REMAPDUP bug.riastradh
XXX pullup-10, unless we fix the bug first
2023-03-01mremap(2): Fix example to use MAP_PRIVATE.riastradh
It is a historical accident that MAP_PRIVATE is assumed when neither it nor MAP_SHARED is specified. XXX pullup-9 XXX pullup-10
2023-03-01mmap(2): minor markup tweaksuwe
2023-02-21hcreate.3: fix typorillig
2023-01-31Note that strchrnul() first appeared in glibc 2.1.1 and appeared insimonb
FreeBSD 10 before it appeared in NetBSD 8.
2023-01-22fmtmsg.3: fix typorillig
2023-01-18inet(3): Fix typo in description of size argument.riastradh
This is the size of dst, not of src. The size of src is determined by the address family. Fix markup while here: .Fa for function arguments, not .Ar which is for command arguments.
2023-01-18KNF nit: opening brace of a function on next line.simonb
2023-01-17put attributes first for c23 compliance.christos
2023-01-15Apply 9cfe9507fcc22cd4a0c4da486ea1c7f0de6b075f for C23 attribute compliance.christos
Requested by Jan-Benedict Glaw.
2023-01-05Add errc() and verrc() to the list of functions which do not return,kre
but exit() instead. This was omitted when the *c() set of functions were added in 2014.
2022-12-31setlocale.3: Reflect state of NetBSD locale support in the 21st centurynia
Don't use LC_COLLATE in a real code example, since a real call to set LC_COLLATE will fail. Mention this. Inconsistencies noticed by khw on IRC.
2022-12-28swab(3): Rewrite this to be understandable.riastradh
And make the tests work, and exercise all lengths up to 100. Evidently the previous definition, presumably tightly optimized for 1980s-era compilers and CPUs, was too hard to understand, because it was incorrectly tested for two decades and broken for years. PR lib/57141 XXX pullup-8 XXX pullup-9 XXX pullup-10
2022-12-28PR lib/57141 - never decrement len without actually performing a STEP.kre
2022-12-21Remove unneeded -D_OPENBSD_SOURCEwiz
2022-12-13Handle the case the code originally intended to handle; systems where:christos
SIZE_MAX < PTRDIFF_MAX
2022-12-13Trailing whitespaceskrll
2022-12-11Merge in 2022g:christos
Although tzcode still works with C89, bugs found in recent routine maintenance indicate that bitrot has set in and that in practice C89 is no longer used to build tzcode. As it is a maintenance burden, support for C89 is planned to be removed soon. Instead, please use compilers compatible with C99, C11, C17, or C23. timegm, which tzcode implemented in 1989, will finally be standardized 34 years later as part of C23, so timegm is now supported even if STD_INSPIRED is not defined. Fix bug in zdump's tzalloc emulation on hosts that lack tm_zone. (Problem reported by Đoàn Trần Công Danh.) Fix bug in zic on hosts where malloc(0) yields NULL on success. (Problem reported by Tim McBrayer for AIX 6.1.) Fix zic configuration to avoid linkage failures on some platforms. (Problems reported by Gilmore Davidson and Igor Ivanov.) Work around MS-Windows nmake incompatibility with POSIX. (Problem reported by Manuela Friedrich.) Port mktime and strftime to debugging platforms where accessing uninitialized data has undefined behavior (strftime problem reported by Robert Elz). Check more carefully for unlikely integer overflows, preferring C23 <stdckdint.h> to overflow checking by hand, as the latter has had obscure bugs.
2022-12-06getbsize(3): Use .Ev for BLOCKSIZEuwe
2022-12-04getnetpath(3): Sprinkle some markupuwe
2022-12-04On VAX, compile gdtoa/misc.c at -O0 to avoid incorrect machine codejakllsch
resulting in some doubles printing as garbage.
2022-12-04fcntl(2): Fix wrong markup in a couple of placesuwe