summaryrefslogtreecommitdiff
path: root/include
AgeCommit message (Collapse)AuthorLines
2017-11-05add TCP_FASTOPEN_CONNECT tcp socket option from linux v4.11Szabolcs Nagy-0/+1
new in linux commit 19f6d3f3c8422d65b5e3d2162e30ef07c6e21ea2
2017-11-05add ETH_P_IBOE from linux v4.11Szabolcs Nagy-0/+1
new in linux commit 69ae543969abeba48e04dd93277684c8c0895f3b
2017-11-05add TFD_TIMER_CANCEL_ON_SET that timerfd.h was missingSzabolcs Nagy-0/+1
linux commit 575b1967e10a1f3038266244d2c7a3ca6b99fed8 moved timerfd apis to a new uapi header which showed musl was missing this flag.
2017-11-05add ETH_MIN_MTU and ETH_MAX_MTU from linux v4.10Szabolcs Nagy-0/+2
min max mtu size definitions mostly for drivers. new in linux commits a52ad514fdf3b8a57ca4322c92d2d8d5c6182485 and d894be57ca92c8a8819ab544d550809e8731137b
2017-11-05add IP_RECVFRAGSIZE and IPV6_RECVFRAGSIZE from linux v4.10Szabolcs Nagy-0/+2
added in linux commit 70ecc24841326396a827deb55c3fefac582a729d
2017-11-05add SCM_TIMESTAMPING_OPT_STATS and related TCP_ enums from linux v4.10Szabolcs Nagy-0/+11
for tcp timestamp control messages, new in linux commit 1c885808e45601b2b6f68b30ac1d999e10b6f606 and export time measurements via tcp_info, added in linux commit efd90174167530c67a54273fd5d8369c87f9bd32
2017-09-28fix use of memset without declaration in sched.h cpu set macrosRich Felker-0/+1
patch by Jörg Krause.
2017-08-29move IPPORT_RESERVED from netdb.h to netinet/in.hRich Felker-2/+2
it's in the reserved namespace for the latter, where it seems it was historically defined, and some programs expect to find it there.
2017-07-31add _NL_LOCALE_NAME extension to nl_langinfoRich Felker-0/+6
since setlocale(cat, NULL) is required to return the setting for the global locale, there is no standard mechanism to obtain the name of the currently active thread-local locale set by uselocale. this makes it impossible for application/library software to load appropriate translations, etc. unless using the gettext implementation provided by libc, which has privileged access to libc internals. to fill this gap, glibc introduced the _NL_LOCALE_NAME macro which can be used with nl_langinfo to obtain the name. GNU gettext/gnulib code already use this functionality on glibc, and can easily be adapted to make use of it on non-glibc systems if it's available; for other systems they poke at locale implementation internals, which we want to avoid. this patch provides a compatible interface to the one glibc introduced.
2017-07-04remove useless declarations in string.hAlexander Monakov-2/+0
The two functions str{,n}casecmp_l are specified to be declared in <strings.h> which is already included from <string.h> under _GNU_SOURCE.
2017-04-22add no-op POSIX_SPAWN_USEVFORK to spawn.hRich Felker-0/+1
the bit is reserved anyway for ABI-compat reasons; this documents it and makes it so we can have posix_spawnattr_setflags check for flag validity without hard-coding an anonymous bit value.
2017-04-22implement new posix_spawn flag POSIX_SPAWN_SETSIDRich Felker-0/+1
this functionality has been adopted for inclusion in the next issue of POSIX as the result of Austin Group issue #1044. based on patch by Daurnimator.
2016-12-29update tcp_info struct to linux v4.9Szabolcs Nagy-0/+2
export tcp data delivery rate in tcp_info struct. see linux commit eb8329e0a04db0061f714f033b4454326ba147f4
2016-12-29add MS_NOREMOTELOCK mount flag from linux v4.9Szabolcs Nagy-0/+1
for handling file locking on overlayfs. see linux commit c568d68341be7030f5647def68851e469b21ca11
2016-12-16in public headers, don't assume pre-C99 compilers have __inline keywordQuentin Rameau-0/+2
2016-12-15remove legacy i386 fallback stdarg implementation and frameworkRich Felker-4/+0
this has been slated for removal for a long time. there is fundamentally no way to implement stdarg without compiler assistance; any attempt to do so has serious undefined behavior; its working depends not just (as a common misconception goes) on ABI, but also on assumptions about compiler code generation internal to a translation unit, which is not subject to external ABI constraints.
2016-11-11generalize ELF hash table types not to assume 32-bit entriesRich Felker-2/+1
alpha and s390x gratuitously use 64-bit entries (wasting 2x space and cache utilization) despite the values always being 32-bit. based on patch by Bobby Bingham, with changes suggested by Alexander Monakov to use the public Elf_Symndx type from link.h (and make it properly variable by arch) rather than adding new internal infrastructure for handling the type.
2016-11-08add limited pthread_setattr_default_np API to set stack size defaultsRich Felker-0/+2
based on patch by Timo Teräs: While generally this is a bad API, it is the only existing API to affect c++ (std::thread) and c11 (thrd_create) thread stack size. This patch allows applications only to increate stack and guard page sizes.
2016-11-07make netinet/in.h suppress clashing definitions from kernel headersRich Felker-0/+15
the linux kernel uapi headers provide their own definitions of the structures from netinet/in.h, resulting in errors when a program includes both the standard libc header and one or more of the networking-related kernel headers that pull in the kernel definitions. as before, we do not attempt to support the case where kernel headers are included before the libc ones, since the kernel definitions may have subtly incorrect types, namespace violations, etc. however, we can easily support the inclusion of the kernel headers after the libc ones, since the kernel headers provide a public interface for suppressing their definitions. this patch adds the necessary macro definitions for such suppression.
2016-11-07don't claim support for resolv.h APIs that aren't supportedRich Felker-1/+1
the value 19991006 for __RES implies availability of res_ninit and related functions that take a resolver state argument; these are not supported since our resolver is stateless. instead claim support for just the older API by defining __RES to 19960801. based on patch by Dmitrij D. Czarkoff.
2016-11-07remove redundant feature test macro checks in sys/time.hRich Felker-5/+0
this header is XSI-shaded itself and thus does not need to limit specific content to _XOPEN_SOURCE.
2016-10-20fix various header namespace issues under feature-test-macro controlRich Felker-7/+18
reported and changes suggested by Daniel Sabogal.
2016-10-20remove parameter names from public headersRich Felker-9/+9
inclusion of these names was unintentional and in most cases is a namespace violation. Daniel Sabogal tracked down and reported these.
2016-10-20fix misspelling of a legacy macro name in sys/param.hRich Felker-1/+1
2016-10-20add missing if_ether.h constantsDaniel Sabogal-0/+3
ETH_P_HSR (IEC 62439-3 HSRv1) added in linux 4.7 commit ee1c27977284907d40f7f72c2d078d709f15811f ETH_P_TSN (IEEE 1722) added in linux 4.3 commit 1ab1e895492d8084dfc1c854efacde219e56b8c1 this constant breaks the ascending order to match the kernel header ETH_P_XDSA (Multiplexed DSA protocol) added in linux 3.18 commit 3e8a72d1dae374cf6fc1dba97cec663585845ff9
2016-10-20add missing if_arp.h constantDaniel Sabogal-0/+1
ARPHRD_6LOWPAN (IPv6 over LoWPAN) added in linux 3.14 commit 0abc652c796dab74d34d60473ec5594cd21620be
2016-10-20fix typo in utmpx.hDaniel Sabogal-1/+1
2016-10-20add missing confstr constantsDaniel Sabogal-0/+2
the _CS_V6_ENV and _CS_V7_ENV constants are required to be available for use with confstr. glibc defines these constants with values 1148 and 1149, respectively. the only missing (and required) confstr constants are _CS_POSIX_V7_THREADS_CFLAGS and _CS_POSIX_V7_THREADS_LDFLAGS which remain unavailable in glibc.
2016-10-20add pthread_setname_npFelix Janda-0/+1
the thread name is displayed by gdb's "info threads".
2016-10-20update icmphdr struct following linux v4.8Szabolcs Nagy-0/+1
add union field that is used in the kernel for SIT/GRE tunneling ICMPv4 messages. see linux commit 20e1954fe238dbe5f8d3a979e593fe352bd703cf
2016-10-20add TCP_REPAIR_WINDOW to netinet/tcp.h from linux v4.8Szabolcs Nagy-0/+9
another kernel internal state exposure for checkpoint-restore. see linux commit b1ed4c4fa9a5ccf325184fd90edc50978ef6e33a
2016-10-20add bits/hwcap.h and include it in sys/auxv.hSzabolcs Nagy-0/+1
aarch64, arm, mips, mips64, mipsn32, powerpc, powerpc64 and sh have cpu feature bits defined in linux for AT_HWCAP auxv entry, so expose those in sys/auxv.h it seems the mips hwcaps were never exposed to userspace neither by linux nor by glibc, but that's most likely an oversight.
2016-10-20elf.h: update EM_ elf machine defines and add R_BPF_ definesSzabolcs Nagy-1/+101
sync with gabi: http://www.sco.com/developers/gabi/latest/ch4.eheader.html EM_BPF is new in linux v4.8 and officially assigned: https://lists.iovisor.org/pipermail/iovisor-dev/2016-June/000266.html added related relocs too.
2016-10-20add ETH_P_NCSI to netinet/if_ether.h from linux v4.8Szabolcs Nagy-0/+1
see linux commit 6389eaa7fa9c3ee6c7d39f6087b86660d17236ac
2016-09-19fix undefined behavior in sched.h cpu_set_t usageRich Felker-3/+3
since cpu sets can be dynamically allocated and have variable size, accessing their contents via ->__bits is not valid; performing pointer arithmetic outside the range of the size of the declared __bits array results in undefined beahavior. instead, only use cpu_set_t for fixed-size cpu set objects (instantiated by the caller) and as an abstract pointer type for dynamically allocated ones. perform all accesses simply by casting the abstract pointer type cpuset_t * back to unsigned long *.
2016-09-16add missing *_unlocked and wcsftime_l prototypes to wchar.hDaniel Sabogal-0/+15
these functions had been implemented, but prototypes were not made available
2016-09-16fix ifru_data and ifcu_buf types in net/if.hDaniel Sabogal-2/+2
glibc, freebsd, and openbsd use character pointers (caddr_t) for these fields. only linux uses void pointer for the ifru_data type.
2016-08-30restore _Noreturn to __assert_failRich Felker-1/+1
this reverts commit 2c1f8fd5da3306fd7c8a2267467e44eb61f12dd4. without the _Noreturn attribute, the compiler cannot use asserts to perform reachability/range analysis. this leads to missed optimizations and spurious warnings. the original backtrace problem that prompted the removal of _Noreturn was not clearly documented at the time, but it seems to happen only when libc was built without -g, which also breaks many other backtracing cases.
2016-08-30fix FFSYNC by changing it to O_SYNCDuncan Overbruck-1/+1
O_FSYNC was never defined and is legacy/wrong, nothing seems to use it.
2016-08-30add SS_AUTODISARM sigaltstack ss_flags from linux v4.7 to signal.hSzabolcs Nagy-0/+2
only matters if swapcontext is used in a signal handler running on an altstack, new in linux commit 2a74213838104a41588d86fd5e8d344972891ace
2016-08-30add UDP_ENCAP_GTP0, UDP_ENCAP_GTP1U from linux v4.7 to netinet/udp.hSzabolcs Nagy-0/+2
for GPRS tunneling protocol, new in linux commit 459aa660eb1d8ce67080da1983bb81d716aa5a69
2016-08-30add PF_QIPCRTR, AF_QIPCRTR from linux v4.7 to sys/socket.hSzabolcs Nagy-1/+3
macros for qualcom ip router protocol, new in linux commit bdabad3e363d825ddf9679dd431cca0b2c30f881
2016-07-03add stdc-predef.h for library-level predefined macrosRich Felker-0/+10
modern compilers (for gcc, versions 4.8 and later) automatically pre-include <stdc-predef.h> to obtain the values of certain predefined macros specified by ISO C but which reflect properties of the library implementation, not just the compiler. provide values indicating that wchar_t is Unicode-encoded and that Annex F (IEEE floating point) is supported unless the compiler indicates otherwise. based on patch by Masanori Ogino.
2016-07-03make brace placement in public header typedef'd structs consistentRich Felker-16/+8
commit befa5866ee30d09c0c96e88af2eabff5911342ea performed this change for struct definitions that did not also involve typedef, but omitted the latter.
2016-07-03add EF_SH_ sh specific macros to elf.hSzabolcs Nagy-1/+22
last time elf.h was thoroughly updated sh was not yet supported so these processor specific e_flags were missing.
2016-07-03add NT_ARM_SYSTEM_CALL to elf.hSzabolcs Nagy-0/+1
new regset in linux v3.18 for ptrace.
2016-07-03add missing x86 relocs to elf.hSzabolcs Nagy-2/+5
see https://sourceware.org/ml/libc-alpha/2016-01/msg00822.html
2016-07-03add DT_MIPS_RLD_MAP_REL to elf.hSzabolcs Nagy-1/+2
marks different RLD_MAP for debugging PIE binaries.
2016-07-03add SHF_COMPRESSED section flag to elf.hSzabolcs Nagy-0/+23
following http://www.sco.com/developers/gabi/latest/ch4.sheader.html
2016-07-03add powerpc tls optimization related definitions to elf.hSzabolcs Nagy-2/+6
see https://sourceware.org/ml/libc-alpha/2015-03/msg00580.html