Commit Graph
10 Commits
Author SHA1 Message Date
Daniel SabogalandRich Felker 71e8392765 add missing if_ether.h constants
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-20 16:55:57 -04:00
Daniel SabogalandRich Felker 79c7ded0ed add missing if_arp.h constant
ARPHRD_6LOWPAN (IPv6 over LoWPAN) added in
linux 3.14 commit 0abc652c796dab74d34d60473ec5594cd21620be
2016-10-20 16:55:51 -04:00
Daniel SabogalandRich Felker 1fa2a32d1e fix typo in utmpx.h 2016-10-20 16:55:32 -04:00
Daniel SabogalandRich Felker 104e8a0e3b add missing confstr constants
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-20 16:55:05 -04:00
Daniel SabogalandRich Felker 3ca2d2d4ae fix clock_nanosleep error case
posix requires that EINVAL be returned if the first parameter specifies
the cpu-time clock of the calling thread (CLOCK_THREAD_CPUTIME_ID).
linux returns ENOTSUP instead so we handle this.
2016-10-20 01:36:08 -04:00
Daniel SabogalandRich Felker 8d7a3f40c8 fix getservby*_r result pointer value on error
this is a clone of the fix to the gethostby*_r functions in
commit fe82bb9b92. the man pages
document that the getservby*_r functions set this pointer to
NULL if there was an error or if no record was found.
2016-09-24 01:10:23 -04:00
Daniel SabogalandRich Felker d917ef0b84 remove dead case in gethostbyname2_r
this case statement was accidently left behind when this function
was refactored in commit e8f39ca489.
2016-09-24 01:09:31 -04:00
Daniel SabogalandRich Felker 5505f6afae add missing *_unlocked and wcsftime_l prototypes to wchar.h
these functions had been implemented, but prototypes were not made available
2016-09-16 18:18:34 -04:00
Daniel SabogalandRich Felker 32055d52ca fix if_indextoname error case
posix requires errno to be set to ENXIO if the interface does not exist.
linux returns ENODEV instead so we handle this.
2016-09-16 18:03:06 -04:00
Daniel SabogalandRich Felker 3848a99f65 fix ifru_data and ifcu_buf types in net/if.h
glibc, freebsd, and openbsd use character pointers (caddr_t) for
these fields. only linux uses void pointer for the ifru_data type.
2016-09-16 17:59:54 -04:00