musl/include
Rich Felker 216b706548 fix a couple issues in the inttypes.h PRI/SCN macros
most importantly, the format/scan macros for the [u]int_fast16_t and
[u]int_fast32_t types were defined incorrectly assuming these types
would match the native word/pointer size. this is incorrect on any
64-bit system; the "fast" types for 16- and 32-bit integers are simply
int.

another issue which was "only a warning" (despite being UB) is that
the choice of "l" versus "ll" was incorrect for 64-bit types on 64-bit
machines. while it would "work" to always use "long long" for 64-bit
types, we use "long" on 64-bit machines to match what glibc does and
what the ABI documents recommend. the macro definitions were probably
right in very old versions of musl, but became wrong when we aligned
most closely with the 'standard' ABI. checking UINTPTR_MAX is an easy
way to get the system wordsize without pulling in new headers.

finally, the useless __PRIPTR macro to allow the underlying type of
[u]intptr_t to vary has been removed. we are using "long" on all
targets, and thankfully this matches what glibc does, so I do not
envision ever needing to change it. thus, the "l" has just been
incorporated directly in the strings.
2012-12-02 15:18:05 -05:00
..
arpa remove all remaining redundant __restrict/__inline/_Noreturn defs 2012-09-08 17:14:52 -04:00
net default features: make musl usable without feature test macros 2012-09-07 23:13:55 -04:00
netinet add IPPROTO_HOPOPTS to in.h 2012-09-08 19:52:51 -04:00
netpacket add netpacket/packet.h 2011-06-09 21:47:24 -04:00
sys fix eventfd and inotify nonblock/cloexec flags to match arch values 2012-11-26 13:00:58 -05:00
aio.h default features: make musl usable without feature test macros 2012-09-07 23:13:55 -04:00
alloca.h alloca cannot be a function. #define it to the gcc builtin if possible 2012-04-09 15:06:58 -04:00
ar.h some extra legacy header stuff 2012-05-06 16:35:32 -04:00
assert.h assert() is supposed to have type void 2012-10-17 02:47:11 -04:00
byteswap.h remove all remaining redundant __restrict/__inline/_Noreturn defs 2012-09-08 17:14:52 -04:00
complex.h complex: add C11 CMPLX macros and replace cpack with them 2012-11-13 01:31:49 +01:00
cpio.h
crypt.h replace old and ugly crypt implementation 2012-06-29 00:56:37 -04:00
ctype.h default features: make musl usable without feature test macros 2012-09-07 23:13:55 -04:00
dirent.h default features: make musl usable without feature test macros 2012-09-07 23:13:55 -04:00
dlfcn.h default features: make musl usable without feature test macros 2012-09-07 23:13:55 -04:00
elf.h microblaze TLS relocation support, completely untested 2012-10-15 21:01:48 -04:00
endian.h default features: make musl usable without feature test macros 2012-09-07 23:13:55 -04:00
err.h fix redundant _Noreturn def in err.h 2012-09-08 18:16:33 -04:00
errno.h remove useless "extern" keywords in headers 2012-01-26 10:53:37 -05:00
fcntl.h fcntl.h: O_SEARCH was missing for powerpc 2012-11-18 05:14:40 +01:00
features.h default features: make musl usable without feature test macros 2012-09-07 23:13:55 -04:00
fenv.h
float.h fix DECIMAL_DIG definitions 2012-03-21 12:42:48 -04:00
fnmatch.h default features: make musl usable without feature test macros 2012-09-07 23:13:55 -04:00
ftw.h remove unneeded judgemental commentary from ftw.h 2012-09-07 23:55:11 -04:00
getopt.h add getopt reset support 2012-09-30 20:00:38 -04:00
glob.h default features: make musl usable without feature test macros 2012-09-07 23:13:55 -04:00
grp.h default features: make musl usable without feature test macros 2012-09-07 23:13:55 -04:00
iconv.h remove all remaining redundant __restrict/__inline/_Noreturn defs 2012-09-08 17:14:52 -04:00
inttypes.h fix a couple issues in the inttypes.h PRI/SCN macros 2012-12-02 15:18:05 -05:00
iso646.h
langinfo.h
lastlog.h some extra legacy header stuff 2012-05-06 16:35:32 -04:00
libgen.h
libintl.h
limits.h fix missing limits when only _BSD_SOURCE is defined 2012-11-26 12:05:33 -05:00
link.h add dl_iterate_phdr interface 2012-10-31 21:27:48 -04:00
locale.h default features: make musl usable without feature test macros 2012-09-07 23:13:55 -04:00
malloc.h
math.h default features: make musl usable without feature test macros 2012-09-07 23:13:55 -04:00
memory.h add memory.h, bogus legacy alias for string.h 2012-03-01 01:34:58 -05:00
mntent.h
monetary.h remove all remaining redundant __restrict/__inline/_Noreturn defs 2012-09-08 17:14:52 -04:00
mqueue.h remove all remaining redundant __restrict/__inline/_Noreturn defs 2012-09-08 17:14:52 -04:00
netdb.h avoid breakage if somebody wrongly defines empty feature test macros 2012-11-01 03:49:43 -04:00
nl_types.h
paths.h header file fixes: multiple include guard consistency and correctness 2012-06-15 21:52:53 -04:00
poll.h fix typo introduced in poll.h 2012-09-09 16:27:26 -04:00
pthread.h add stub versions of some missing optional pthread interfaces 2012-11-17 18:42:16 -05:00
pty.h fix __cplusplus extern "C" closing brace in pty.h (typo?) 2011-11-10 21:01:24 -05:00
pwd.h default features: make musl usable without feature test macros 2012-09-07 23:13:55 -04:00
regex.h remove all remaining redundant __restrict/__inline/_Noreturn defs 2012-09-08 17:14:52 -04:00
resolv.h header file fixes: multiple include guard consistency and correctness 2012-06-15 21:52:53 -04:00
sched.h add support for thread scheduling (POSIX TPS option) 2012-11-11 15:38:04 -05:00
search.h default features: make musl usable without feature test macros 2012-09-07 23:13:55 -04:00
semaphore.h remove all remaining redundant __restrict/__inline/_Noreturn defs 2012-09-08 17:14:52 -04:00
setjmp.h default features: make musl usable without feature test macros 2012-09-07 23:13:55 -04:00
shadow.h
signal.h provide NSIG under _BSD_SOURCE (default) as well as _GNU_SOURCE 2012-11-30 21:00:18 -05:00
spawn.h fix some restrict-qualifier mismatches in newly added interfaces 2012-11-27 09:44:30 -05:00
stdalign.h implement "low hanging fruit" from C11 2012-08-25 23:15:13 -04:00
stdarg.h use compiler builtins for variadic macros when available 2011-04-27 23:41:48 -04:00
stdbool.h make stdbool.h conform to c99 2011-09-20 14:51:56 -04:00
stddef.h
stdint.h fix signedness errors in stdint.h constant macros 2012-06-08 11:11:44 -04:00
stdio_ext.h stdio_ext.h needs to include stdio.h, at least to get FILE... 2012-08-24 16:16:30 -04:00
stdio.h default features: make musl usable without feature test macros 2012-09-07 23:13:55 -04:00
stdlib.h fix issues with wait constants in stdlib.h 2012-10-21 19:15:11 -04:00
stdnoreturn.h add stdnoreturn.h (C11) 2012-09-08 00:14:25 -04:00
string.h add memmem function (gnu extension) 2012-10-15 23:02:57 -04:00
strings.h more locale_t interfaces (string stuff) and header updates 2012-02-06 21:51:02 -05:00
stropts.h add isastream (obsolete STREAMS junk) 2012-05-06 09:03:19 -04:00
syscall.h header file fixes: multiple include guard consistency and correctness 2012-06-15 21:52:53 -04:00
sysexits.h
syslog.h default features: make musl usable without feature test macros 2012-09-07 23:13:55 -04:00
tar.h
termios.h default features: make musl usable without feature test macros 2012-09-07 23:13:55 -04:00
tgmath.h math: fix nextafter definition in tgmath.h 2012-05-28 22:55:03 +02:00
time.h default features: make musl usable without feature test macros 2012-09-07 23:13:55 -04:00
ucontext.h fixup mcontext stuff to expost gregset_t/fpregset_t as appropriate 2012-11-25 23:04:23 -05:00
ulimit.h
unistd.h report support of TPS option in unistd.h and sysconf 2012-11-11 15:54:20 -05:00
utime.h
utmp.h some extra legacy header stuff 2012-05-06 16:35:32 -04:00
utmpx.h
wchar.h default features: make musl usable without feature test macros 2012-09-07 23:13:55 -04:00
wctype.h default features: make musl usable without feature test macros 2012-09-07 23:13:55 -04:00
wordexp.h remove all remaining redundant __restrict/__inline/_Noreturn defs 2012-09-08 17:14:52 -04:00