summaryrefslogtreecommitdiff
path: root/include
AgeCommit message (Collapse)Author
2022-08-03Pull up following revision(s) (requested by wiz in ticket #1484):martin
lib/libc/sys/clone.2: revision 1.14 lib/libc/sys/clone.2: revision 1.15 include/sched.h: revision 1.13 include/sched.h: revision 1.14 include/sched.h: revision 1.15 Remove mentions of CLONE_PID and CLONE_STOPPED CLONE_PID was removed in Linux 2.5.15 and recycled for CLONE_PIDFD since Linux 5.2. CLONE_STOPPED was removed in Linux 2.6.38 and recycled for CLONE_NEWCGROUP since Linux 4.6. sched.h: Linux documents clone and __clone as only available when_GNU_SOURCE is defined - follow suit. Ok martin@ clone(2): document that _GNU_SOURCE must be defined for the prototypes sched.h: format comment to follow KNF requested by thorpej@ sched.h: keep __clone() visible under _NETBSD_SOURCE
2022-02-28Pull up following revision(s) (requested by gdt in ticket #1430):martin
include/math.h: revision 1.66 Correct C99 / C++11 feature testing. Document remaining missing symbols.
2020-11-29Pull up following revision(s) (requested by is in ticket #1135):martin
lib/libc/net/getaddrinfo.c: revision 1.120 lib/libc/net/gethnamaddr.c: revision 1.93 include/arpa/nameser_compat.h: revision 1.8 Don't complain about additional DNAME records received when resolving A or AAAA (like already done for SIG/KEY and CNAME).
2020-03-30Pull up following revision(s) (requested by mrg in ticket #811):martin
include/stdio.h: revision 1.98 move P_tmpdir from "/var/tmp/" to "/tmp/". 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-09Pull up following revision(s) (requested by kre in ticket #531):martin
include/monetary.h: revision 1.4 PR lib/54744 (bruno@haible.de) Add missing __END_DECLS for C++ compiles. XXX pullup -9 XXX pullup -8 (bug not present in -7).
2019-07-03Sync with 2019b (field name change)christos
2019-06-04Move the basic part of XDR to common/include/rpc and common/lib/libc/rpc.hannken
No functional change intended.
2019-06-04Implement xdrmem_control(), used as xdr_control(xdr, XDR_GET_BYTES_AVAIL ...hannken
and bump libc minor number. Final goal is to remove the unmaintained XDR implementation at external/cddl/osnet/dist/uts/common/rpc.
2019-05-29Add GLOB_TILDE_CHECK (from GNU)christos
2019-05-27As a _NETBSD_SOURCE extension define static_assert for pre-c11/c++99kamil
Proposed on source-changes-d.
2019-05-22Limit static_assert visibility to C11.maya
The existing definition caused issues as GCC only provides _Static_assert when building C11 code. This follows the C standard: static_assert available since C11. Fixes https://rt.perl.org/Public/Bug/Display.html?id=134023
2019-04-24Don't install YP headers when MKYP=noroy
2019-04-04merge tzcode 2019achristos
2019-03-12remove global pointers, add get/seters.christos
2019-03-10catch up with name change.christos
2019-03-10add missing externs.christos
2019-03-09add copyright.christos
2019-03-09PR/54050: Ryo ONODERA: Add the jemalloc-specific api prototypes and extern.christos
2019-01-08Provide global variables with C linkage, otherwise they will createjoerg
conflicts for C++ modules use.
2019-01-05We can make a stronger guarantee than __pure.maya
abs/labs don't read global memory. Make GCC 9 happier.
2018-12-28Limit wcslcat, wcslcpy visibility to _NETBSD_SOURCEmaya
wcswidth, wcwidth to POSIX.1-2001 or _NETBSD_SOURCE Updated patch from kretschm in PR standards/39422
2018-11-18more type protection macro lossage.christos
2018-08-15PR standards/53525: move getsubopt() to stdlib.hmartin
2018-06-24Fix the rest of the functions that have been made visible by xopen5,christos
posix 2017, and c99.
2018-06-24PR/53393: coypu: move rint to the right section.christos
2018-02-20Mark in string.h: memccpy(3) and strdup(3) as _POSIX_C_SOURCE >= 2001kamil
2018-02-06fix typochristos
2018-02-06detect duplicate declaration of pthread_atfork() in pthread.hchristos
2018-02-04fixes for GCC 6:mrg
- -Wstrict-prototypes is not available for C++, so don't try to ignore it for C++. - remove many _DIAGASSERT() checks against not NULL for functions with arguments with nonnull attributes. in two cases, leave code behind that should set defaults to "(null)". - use -Wno-error=frame-address for i386 mcount, as it seems valid to assume the caller will have a frame.fair
2018-01-09Merge autofs support from: Tomohiro Kusumichristos
XXX: Does not work yet
2017-12-08make _lwp_park return the remaining time to sleep in the "ts" argumentchristos
if it is a relative timestamp, as discussed in tech-kern. XXX: pullup-8
2017-10-16Add endian.h header. Simply includes sys/endian.hmaya
<endian.h> has been accepted by the austin group.
2017-10-07remove recallocarraychristos
2017-10-07add recallocarray (used by openssh-7.6)christos
2017-08-16Add missing strfmon_l. Noticed by Bruno Haible. Add test case.joerg
2017-08-16s/not sure why// and make these work :-)christos
2017-07-11Implement __cxa_thread_atexit and __cxa_thread_atexit_impl. Thisjoerg
functions are used for destructors of thread_local objects. If a pending destructor exists, prevent unloading of shared objects. Introduce __dl_cxa_refcount interface for this purpose. When the last reference is gone and the object has been dlclose'd before, the unloading is finalized. Ideally, __cxa_thread_atexit_impl wouldn't exist, but libstdc++ insists on providing __cxa_thread_atexit as direct wrapper without further patching.
2017-05-09Add the new signalname/signalnext/signalnumber interface to libc.kre
This as discussed on current-users in the thread entitled: Proposal: new libc/libutil functions to map SIGXXXX <-> "XXXX" that can be found (starting at): http://mail-index.netbsd.org/current-users/2017/04/28/msg031600.html These functions provide the mechanism to enable applications to divorce themselves from internal details of the signal implementation. Libc minor bumped, prototypes in <signal.h>, sets lists updated (and sorted). One and all: feel free to improve the sources & man page (etc), but please do not change the function signatures without discussion.
2017-04-23Add vis DQ.christos
2017-04-09fexcept_t + fenv_t should be handled the same way for softfloatchristos
2017-04-04Add RCS tag.sevan
2017-03-22provide a common softfloat fenv implemenation and use it for softfloat builds.chs
restore ABI compatibility with previous releases for ieeefp.h on sh3. add namespace.h protection for all the fenv interfaces. use MKSOFTFLOAT on sh3 instead of assuming softfloat. standardize on comparing MKSOFTFLOAT with "no". remove the arm-specific softfloat fenv code (which also had several bugs). fix logic errors in the arm hardfloat feraiseexcept() and feupdateenv().
2017-02-23Add fenv for ia64, imported from FreeBSD, compile tested only.scole
2017-01-16add _PATH_DEVZEROchristos
2017-01-15elide strict-prototypes for unrepresentable functionchristos
2017-01-12Welcome to the constant age!christos
2016-12-16scandir/alphasort take "const struct dirent **" not "const void *" inmrg
modern unix. since we claim to be 'IEEE Std 1003.1-2008', make it so.
2016-10-15Import wcsnlen(3) to libckamil
The wcsnlen(3) function conforms to POSIX.1-2008 and is an addition to the ISO C standard. size_t wcsnlen(const wchar_t *s, size_t maxlen); The wcsnlen(3) function computes the number of wide-characters in a wide- -string to which s points, not including NULL terminating wide-character code and checking no more than maxlen wide-characters. This function never examines wide-characters beyond a wide-string of maxlen size. This function is a safer version of wcslen(3): size_t wcslen(const wchar_t *s); Update STANDARDS section of wmemchr(3) describing wide-character functions.
2016-10-12add strchrnullchristos
2016-10-04Add timespec_get(3) in <time.h> and enable unconditionally struct timespeckamil
These changes conforms to the C11 standard References: - 7.27.1/3 Components of time (struct timespec) - 7.27.2.5 The timespec_get function According to ISO/IEC 9899:201x (draft) <time.h> defines the timespec structure and declares the timespec_get(3) function with TIME_UTC definition. According to a C++17 standard draft <ctime> offers the same interface in the std:: namespace. The timespec_get function modifies the timespec object pointed by ts to hold the current calendar time in the given base. The standard notes only the TIME_UTC base with implementation defined value, set it to 1 as zero is reserved for error handling. Once operation was successful this function returns passed base, otherwise exits with zero. The timespec struct was already part of the POSIX standard in <time.h>. Enable this interface unconditionally in the header to allow to use it in a code prior C11 and C++17 as an extension. Review notes from <christos>