musl/arch/i386/bits
Rich Felker da1442c9a8 fix types for wctype_t and wctrans_t
wctype_t was incorrectly "int" rather than "long" on x86_64. not only
is this an ABI incompatibility; it's also a major design flaw if we
ever wanted wctype_t to be implemented as a pointer, which would be
necessary if locales support custom character classes, since int is
too small to store a converted pointer. this commit fixes wctype_t to
be unsigned long on all archs, matching the LSB ABI; this change does
not matter for C code, but for C++ it affects mangling.

the same issue applied to wctrans_t. glibc/LSB defines this type as
const __int32_t *, but since no such definition is visible, I've just
expanded the definition, int, everywhere.

it would be nice if these types (which don't vary by arch) could be in
wctype.h, but the OB XSI requirement in POSIX that wchar.h expose some
types and functions from wctype.h precludes doing so. glibc works
around this with some hideous hacks, but trying to duplicate that
would go against the intent of musl's headers.
2013-03-04 19:22:14 -05:00
..
alltypes.h.sh fix types for wctype_t and wctrans_t 2013-03-04 19:22:14 -05:00
endian.h
errno.h add missing EHWPOISON to bits/errno.h 2013-01-12 19:42:39 +01:00
fcntl.h add missing F_GETOWNER_UIDS flag to bits/fcntl.h 2013-01-12 19:42:39 +01:00
fenv.h
float.h support FLT_EVAL_METHOD changing on x86 with gcc -msse2 -mfpmath=sse 2012-04-27 01:39:03 -04:00
io.h fix breakage from introducing bits header for sys/io.h 2012-11-18 19:58:15 -05:00
ioctl.h
ipc.h fix broken semctl on systems that don't use IPC_64 flag 2012-09-22 08:02:42 -04:00
limits.h fix missing _BSD_SOURCE support in bits/*.h 2012-05-22 22:12:10 -04:00
mman.h add missing mmap options and madvices to bits/mman.h based on linux headers 2013-01-12 19:42:39 +01:00
msg.h numerous fixes to sysv ipc 2011-04-13 16:45:43 -04:00
posix.h
reg.h
setjmp.h jmp_buf overhaul fixing several issues 2012-07-03 20:07:33 -04:00
shm.h numerous fixes to sysv ipc 2011-04-13 16:45:43 -04:00
signal.h move signal.h REG_* macros under _GNU_SOURCE protection 2012-12-06 17:05:19 -05:00
socket.h workaround another sendmsg kernel bug on 64-bit machines 2012-07-12 21:37:54 -04:00
stat.h
statfs.h fix the definition of struct statvfs to match lsb abi 2011-09-19 23:35:48 -04:00
stdarg.h
stdint.h
syscall.h syscall organization overhaul 2012-09-08 22:43:14 -04:00
termios.h add missing EXTPROC flag to bits/termios.h 2013-01-12 19:42:39 +01:00
user.h make sys/procfs.h mostly work on most archs 2012-11-25 22:28:18 -05:00
wchar.h fix the type of wchar_t on arm; support wchar_t varying with arch 2011-09-19 17:39:51 -04:00