summaryrefslogtreecommitdiff
path: root/include
AgeCommit message (Collapse)Author
2021-12-08fix various typos in comments and log messages.andvar
2021-11-07Commit the userland portion of the posix_spawn_chdir project by Piyush Sachdevachristos
2021-11-02Expose sigaltstack, stack_t and friends to Posix Issue 5 (200809L) References:christos
https://man7.org/linux/man-pages/man2/sigaltstack.2.html https://pubs.opengroup.org/onlinepubs/9699919799/functions/sigaltstack.html
2021-11-01Version the sigaction(2) libc wrapper. The new version uses the "siginfo"thorpej
trampoline exclusively, thus relegating "sigcontext"-style handlers (which have not been documented for many years now) to the dustbin of the compat library.
2021-10-15fix typos in comments.andvar
2021-09-18Change the default for ACLs to be posix1e instead of nfsv4 to match FreeBSD.christos
Requested by chuq.
2021-09-11stdio.h: remove outdated comment for vscanfrillig
When these functions where added to stdio.h 1.72 on 2008-08-04, the conditional included _NETBSD_SOURCE. The additional condition was removed in stdio.h 1.99 from 2020-03-20, but the comment was not updated.
2021-09-11stdio.h: sync comment for struct __sFILE with realityrillig
In stdio.h 1.1 from 1993-03-21, the struct had a member named _ub for the ungetc buffer. That member was repurposed in stdio.h 1.42 from 2001-12-07 in order to support wide characters. Remove the reference to the 'WARNING above' since there is no such warning and even when this comment was added in stdio.h 1.20 from 1998-02-02, there was none.
2021-09-11stdio.h: remove outdated comment about fpos_trillig
The 'fairly grotesque' from 1994-04-03 referred to the conditional definition of the type fpos_t, using two different integer types that both happened to be 64-bit. When stdio was changed on 2012-01-22 to keep track of the mbstate, the conditional type definition was removed and the comment no longer made sense.
2021-09-11stdio.h: fix typo in commentrillig
2021-09-11stdio.h: fix typo in commentrillig
2021-09-03fix typos in comments, mainly s/extention/extension/ and s/sufficent/sufficient/andvar
2021-08-15utmpx.h: fix comment missed in r. 1.10 _NETBSD_SOURCE changesgutteridge
2021-08-09fix various typos in compatibility, mainly in comments.andvar
2021-07-03PR/56250: Michael Forney: mkstemp/mkdtemp not declared withchristos
_POSIX_C_SOURCE=200809L
2021-06-19Add external attribute dumping and restoring support from FreeBSD.christos
Does not fully work yet, attributes are being saved and restored correctly, but don't appear in the restored files somehow.
2021-04-30Default to check-names for safety.christos
2021-02-23- Replace REG_ENOSYS (unused) with REG_ILLSEQ.christos
- Add REG_GNU
2020-12-04Correct typo in previous.kre
2020-12-04Add __null_sentinelchristos
2020-11-18Don't complain about additional DNAME records received when resolving A oris
AAAA (like already done for SIG/KEY and CNAME).
2020-10-10- remove bitypes.h fossilchristos
- define u_{char,short,int,long} if we don't have _NETBSD_SOURCE defined so that this compiles (and resolv.h since it includes this). This is the simplest solution. Others: - always define them (bad, pollutes namespace) - create <sys/utypes.h> (bad, overkill) - change them to unsigned {char, short, int long} (bad, too disruptive)
2020-10-03add set_rpc_maxgrouplist(3)christos
2020-09-22remove getentropy bitsnia
2020-09-22Remove duplicate word in a commentkamil
2020-09-21Upgrade the SVR4 RTLD r_debug protocol to version 1kamil
Changes: - Add a new field r_ldbase in the r_debug struct. - Set r_version to 1. This harmonizes the support with OpenBSD and Linux. FreeBSD uses version 0 (or no version). Solaris uses version 2 that is not implemented elsewhere and relies on SVR4 specific design and interfaces. Update the code comments as r_debug and link_map is used by other software than GDB, namely: sanitizers, rump, LLDB.
2020-09-21Refine the documentation of r_debugkamil
Obtained from OpenBSD link.h r.1.15.
2020-09-05make the 2nd argument to __memmove_chk() constmrg
2020-06-28nameser_compat.h: correct preprocessor error syntaxgutteridge
2020-06-04Remove bogus tests for 64-bit i386 and SuperHnia
2020-05-26Avoid depending on namespace pollution in stdlib.h.joerg
2020-05-16Add ACL support for FFS. From FreeBSD.christos
2020-05-13Remove trailing whitespacejoerg
2020-05-06Add getentropy() to libc - a simple wrapper to access the kernel CSPRNG.nia
Posted to tech-userlevel@ a week ago and reviewed by riastradh@. GETENTROPY(3) Library Functions Manual GETENTROPY(3) NAME getentropy - fill a buffer with high quality random data LIBRARY Standard C Library (libc, -lc) SYNOPSIS #include <unistd.h> int getentropy(void *buf, size_t buflen); DESCRIPTION The getentropy() function fills a buffer with high quality random data, suitable for seeding cryptographically secure psuedorandom number generators. getentropy() is only intended for seeding random number generators and is not intended for use by regular code which simply needs secure random data. For this purpose, please use arc4random(3). The maximum value for buflen is 256 bytes. IMPLEMENTATION NOTES getentropy() reads from the sysctl(7) variable kern.arandom. RETURN VALUES The getentropy() function returns 0 on success, and -1 if an error occurred. ERRORS getentropy() will succeed unless: [EFAULT] The buf argument points to an invalid memory address. [EIO] Too many bytes were requested. SEE ALSO arc4random(3), rnd(4) STANDARDS The getentropy() function is non-standard. HISTORY The getentropy() function first appeared in OpenBSD 5.6, then in FreeBSD 12.0, and NetBSD 10.
2020-04-17Remove the static_assert() fallback for pre-C11 and pre-C++11kamil
C++ without real static_assert() can be incompatible with the C fallback as presented in openjdk. A pre-C11 compiler can be picky on the implementation.
2020-04-05Fix depenency on common symbols in sbin.joerg
2020-04-02 s/impliment/implement/ in comment.msaitoh
2020-03-31Add getsid(2) to the XOPEN namespace (again)kamil
2020-03-31Expose getsid(2) to POSIX >= 2008kamil
2020-03-20Fix visibility of various C99 features, esp. for C++11.joerg
2020-03-01Revert previouskamil
Requested by joerg who wants to fix (ab)users.
2020-03-01Fix typo in a commentkamil
2020-03-01Expose max_align_t to C99/C++kamil
max_align_t does not depend on any pre-C99 or !C++ language feature. This structure is in use in 3rd party essential C++ code as an extension for older language revisions and in gnu99 code in the NetBSD distribution (RTLD's build rules define -std=gnu11 just for exposing this struct). Exposing max_align_t from the central NetBSD header avoid duplicate definition in 3rd party code that could differ and produce ABI mismatched binaries between -std= revisions. This problem does not exist on OSs like Linux as they get this namespace visibility defined inside LLVM or GNU toolchain headers. NetBSD ships with its own stddef.h, rather than relying on a toolchain and its internal extensions.
2020-02-22Correct C99 / C++11 feature testing. Document remaining missing symbols.joerg
2019-12-13move P_tmpdir from "/var/tmp/" to "/tmp/".mrg
the main effect of this is to make GCC and other libiberty using tools use /tmp instead of /var/tmp for compiler temp files, which can be a bottleneck on larger systems. a survey of other platforms shows only OSX also uses /var/tmp, everyone else has switched to /tmp long ago. cons: some smaller systems may have a smaller /tmp than /var/tmp, and this may cause builds to fail with out of space earlier. point the build to /var/tmp using TMPDIR in this case. one can argue that setting TMPDIR would work around this, but we want to have the effect for all users without having special setup.
2019-12-08PR lib/54744 (bruno@haible.de)kre
Add missing __END_DECLS for C++ compiles. XXX pullup -9 XXX pullup -8 (bug not present in -7).
2019-10-24Switch the iconv(3) prototype to the POSIX conformant variationkamil
Remove const from the 2nd argument. const char ** and char ** are incompatible types and it was a cost to keep the technically incompatible form for a more purist variation. NetBSD was almost the last alive OS to still keep the const argument (known leftovers: Minix and Illumos). Keep the const form for the internal purposes inside citrus and rump. Address the build breakage fallout in the same change. There are no ABI changes. Change accepted by core@.
2019-09-15remove comment for incomplete x/open impl (kamil)christos
2019-09-15one fexecve declaration should be enough.christos
2019-09-15Remove the _INCOMPLETE_XOPEN_C063 stuff.christos