| Commit message (Expand) | Author | Age | Files | Lines |
| * | header file fixes: multiple include guard consistency and correctness•••one file was reusing another file's macro name, and many had
inconsistent underscores and application of SYS prefix, etc.
patch by Szabolcs Nagy (nsz)
| Rich Felker | 2012-06-15 | 10 | -18/+18 |
| * | revert one change in time.h; no evidence BSD_SOURCE should expose these.. | Rich Felker | 2012-06-13 | 1 | -1/+1 |
| * | fix feature test macros in time.h•••stime is not _XOPEN_SOURCE, and some functions were missing with
_BSD_SOURCE..
| Rich Felker | 2012-06-13 | 1 | -5/+2 |
| * | add timegm function (inverse of gmtime), nonstandard | Rich Felker | 2012-06-13 | 1 | -0/+3 |
| * | add (currently stubbed due to stubbed strverscmp) versionsort function•••based on patch by Emil Renner Berthing, with minor changes to dirent.h
for LFS64 and organization of declarations
this code should work unmodified once a real strverscmp is added, but
I've been hesitant to add it because the GNU strverscmp behavior is
harmful in a lot of cases (for instance if you have numeric filenames
in hex). at some point I plan on trying to design a variant of the
algorithm that behaves better on a mix of filename styles.
| Rich Felker | 2012-06-13 | 1 | -0/+5 |
| * | fix signedness errors in stdint.h constant macros•••the types of these expressions must match the integer promotions.
unsigned 8- and 16-bit values promote to signed int, not unsigned int.
| Rich Felker | 2012-06-08 | 1 | -2/+2 |
| * | fix sysinfo, try 2. it seems to work this time. | Rich Felker | 2012-06-07 | 1 | -10/+10 |
| * | sysinfo struct was utter nonsense; no idea where it came from.•••this broke the busybox "free" utility (memory reporting) and possibly
other things like uptime.
| Rich Felker | 2012-06-07 | 1 | -4/+3 |
| * | _GNU_SOURCE is supposed to imply _LARGEFILE64_SOURCE•••this is ugly and stupid, but now that the *64 symbol names exist, a
lot of broken GNU software detects them in configure, then either
breaks during build due to missing off64_t definition, or attempts to
compile without function declarations/prototypes. "fixing" it here is
easier than telling everyone to add yet another feature test macro to
their builds.
| Rich Felker | 2012-06-04 | 15 | -15/+15 |
| * | declare environ in unistd.h when _GNU_SOURCE feature test macro is used•••lots of broken programs expect this, and it's gotten to the point of
being a troubleshooting FAQ topic. best to just fix it.
| Rich Felker | 2012-06-02 | 1 | -0/+1 |
| * | there is no such GNU function fpurge, only __fpurge.•••no idea where I got the idea fpurge should exist...
| Rich Felker | 2012-05-28 | 1 | -1/+0 |
| * | add prototype for BSD/GNU stdio *_unlocked extension functions•••also fix up distinction of what is GNU-only and what's GNU+BSD
| Rich Felker | 2012-05-28 | 1 | -2/+12 |
| * | remove duplicate lfs64 cruft in stdio.h | Rich Felker | 2012-05-28 | 1 | -2/+0 |
| * | math: fix nextafter definition in tgmath.h | nsz | 2012-05-28 | 1 | -1/+1 |
| * | debloat jmp_buf in _GNU_SOURCE mode•••i originally made it the same size as the bloated GNU version, which
contains space for saved signal mask, but this makes some structures
containing jmp_buf become much larger for no benefit. we will never
use the signal mask field with plain setjmp; sigsetjmp serves that
purpose.
| Rich Felker | 2012-05-23 | 1 | -3/+0 |
| * | remove everything related to forkall•••i made a best attempt, but the intended semantics of this function are
fundamentally contradictory. there is no consistent way to handle
ownership of locks when forking a multi-threaded process. the code
could have worked by accident for programs that only used normal
mutexes and nothing else (since they don't actually store or care
about their owner), but that's about it. broken-by-design interfaces
that aren't even in glibc (only solaris) don't belong in musl.
| Rich Felker | 2012-05-22 | 1 | -1/+0 |
| * | some feature test fixes for unistd.h | Rich Felker | 2012-05-22 | 1 | -16/+16 |
| * | _GNU_SOURCE implies all BSD features except ones GNU rejects | Rich Felker | 2012-05-22 | 1 | -1/+1 |
| * | various header cleanups, some related to _BSD_SOURCE addition•••there is no reason to avoid multiple identical macro definitions; this
is perfectly legal C, and even with the maximal warning options
enabled, gcc does not issue any warning for it.
| Rich Felker | 2012-05-22 | 3 | -17/+9 |
| * | bsd_signal is a legacy (removed) XSI function, not needed in _BSD_SOURCE•••its only purpose was for use on non-BSD systems that implement sysv
semantics for signal() by default.
| Rich Felker | 2012-05-22 | 1 | -4/+1 |
| * | support _BSD_SOURCE feature test macro•••patch by Isaac Dunham. matched closely (maybe not exact) to glibc's
idea of what _BSD_SOURCE should make visible.
| Rich Felker | 2012-05-22 | 22 | -41/+126 |
| * | move getpass decl to the right place | Rich Felker | 2012-05-20 | 2 | -1/+1 |
| * | useless lastlog path just to make some stuff happy | Rich Felker | 2012-05-14 | 1 | -0/+1 |
| * | missing limit LOGIN_NAME_MAX | Rich Felker | 2012-05-14 | 1 | -0/+1 |
| * | use __h_errno_location for h_errno•••we do not bother making h_errno thread-local since the only interfaces
that use it are inherently non-thread-safe. but still use the
potentially-thread-local ABI to access it just to avoid lock-in.
| Rich Felker | 2012-05-12 | 1 | -1/+5 |
| * | susv4 removed gethostbyname, etc. legacy cruft. | Rich Felker | 2012-05-12 | 1 | -9/+7 |
| * | namespace cleanup - NI_* is NOT reserved by netdb.h | Rich Felker | 2012-05-12 | 1 | -3/+2 |
| * | some gnu junk in netdb.h | Rich Felker | 2012-05-12 | 1 | -0/+8 |
| * | fix missing va_list for vsyslog | Rich Felker | 2012-05-12 | 1 | -2/+2 |
| * | search: add tdestroy (gnu extension) | nsz | 2012-05-13 | 1 | -0/+2 |
| * | add missing IN6_ARE_ADDR_EQUAL•••written to avoid multiple conditional jumps and avoid ugly repetitive
lines in the header file.
| Rich Felker | 2012-05-11 | 1 | -0/+5 |
| * | add one more bogus legacy header•••this one is for program(s|ers) who haven't heard of uint16_t and
uint32_t (which are obviously the correct types for use in such
situations, as they're the argument/return types for ntohs/htons and
ntohl/htonl).
| Rich Felker | 2012-05-10 | 1 | -0/+9 |
| * | move vsyslog out of SYSLOG_NAMES conditional | Rich Felker | 2012-05-10 | 1 | -2/+4 |
| * | fix missing parens in bit op macros (param.h) | Rich Felker | 2012-05-10 | 1 | -1/+1 |
| * | and another bug in setbit, etc. macros.. | Rich Felker | 2012-05-10 | 1 | -1/+1 |
| * | fix typo in sys/param.h that broke setbit, etc. macros•••this is all junk, but some programs use it.
| Rich Felker | 2012-05-10 | 1 | -1/+1 |
| * | omit declaration of basename wrongly interpreted as prototype in C++•••the non-prototype declaration of basename in string.h is an ugly
compromise to avoid breaking 2 types of broken software:
1. programs which assume basename is declared in string.h and thus
would suffer from dangerous pointer-truncation if an implicit
declaration were used.
2. programs which include string.h with _GNU_SOURCE defined but then
declare their own prototype for basename using the incorrect GNU
signature for the function (which would clash with a correct
prototype).
however, since C++ does not have non-prototype declarations and
interprets them as prototypes for a function with no arguments, we
must omit it when compiling C++ code. thankfully, all known broken
apps that suffer from the above issues are written in C, not C++.
| Rich Felker | 2012-05-09 | 1 | -0/+2 |
| * | some extra legacy header stuff | Rich Felker | 2012-05-06 | 3 | -0/+32 |
| * | take byte order from gcc if gcc has defined it•••this only works with gcc 4.6 and later, but it allows us to support
non-default endianness on archs like arm, mips, ppc, etc. that can do
both without having separate header sets for both variants, and it
saves one #include even on fixed-endianness archs like x86.
| Rich Felker | 2012-05-06 | 1 | -0/+4 |
| * | add isastream (obsolete STREAMS junk)•••apparently some packages see stropts.h and want to be able to use
this. the implementation checks that the file descriptor is valid by
using fcntl/F_GETFD so it can report an error if not (as specified).
| Rich Felker | 2012-05-06 | 1 | -1/+2 |
| * | fix definitions of FP_ILOGB constants•••two issues: (1) the type was wrong (unsigned instead of signed int),
and (2) the value of FP_ILOGBNAN should be INT_MIN rather than INT_MAX
to match the ABI. this is also much more useful since INT_MAX
corresponds to a valid input (infinity). the standard would allow us
to set FP_ILOGB0 to -INT_MAX instead of INT_MIN, which would give us
distinct values for ilogb(0) and ilogb(NAN), but the benefit seems way
too small to justify ignoring the ABI.
note that the macro is just a "portable" (to any twos complement
system where signed and unsigned int have the same width) way to write
INT_MIN without needing limits.h. it's valid to use this method since
these macros are not required to work in #if directives.
| Rich Felker | 2012-05-05 | 1 | -2/+2 |
| * | add *64 junk for sys/*.h headers | Rich Felker | 2012-05-04 | 7 | -0/+50 |
| * | add support for ugly *64 functions with _LARGEFILE64_SOURCE•••musl does not support legacy 32-bit-off_t whatsoever. off_t is always
64 bit, and correct programs that use off_t and the standard functions
will just work out of the box. (on glibc, they would require
-D_FILE_OFFSET_BITS=64 to work.) however, some programs instead define
_LARGEFILE64_SOURCE and use alternate versions of all the standard
types and functions with "64" appended to their names.
we do not want code to actually get linked against these functions
(it's ugly and inconsistent), so macros are used instead of prototypes
with weak aliases in the library itself. eventually the weak aliases
may be added at the library level for the sake of using code that was
originally built against glibc, but the macros will still be the
desired solution in the headers.
| Rich Felker | 2012-05-04 | 8 | -0/+68 |
| * | uglify headers for the sake of junk that compiles with gcc -std=c89/-ansi | Rich Felker | 2012-05-03 | 2 | -6/+24 |
| * | add additional compatibility union member for ipv6 addresses•••in6_* is in the reserved namespace, so this is valid
| Rich Felker | 2012-05-03 | 1 | -0/+2 |
| * | remove minimal linux kernel headers•••these were at best of limited usefulness (for bootstrapping new
systems, mainly) and at worst caused real kernel headers to get
overwritten when upgrading libc.
in case they're needed by anyone, the exact same files are now
available in a new git repository:
git://git.etalabs.net/mini-lkh
| Rich Felker | 2012-05-01 | 5 | -621/+0 |
| * | support alternate glibc name pow10 for exp10 | Rich Felker | 2012-05-01 | 1 | -0/+3 |
| * | first try at writing an efficient and "correct" exp10•••this is a nonstandard function so it's not clear what conditions it
should satisfy. my intent is that it be fast and exact for positive
integral exponents when the result fits in the destination type, and
fast and correctly rounded for small negative integral exponents.
otherwise we aim for at most 1ulp error; it seems to differ from pow
by at most 1ulp and it's often 2-5 times faster than pow.
| Rich Felker | 2012-04-30 | 1 | -0/+4 |
| * | add linux-specific unshare syscall wrapper | Rich Felker | 2012-04-29 | 1 | -0/+1 |
| * | implement getusershell, etc. legacy functions•••I actually wrote these a month ago but forgot to integrate them. ugly,
probably-harmful-to-use functions, but some legacy apps want them...
| Rich Felker | 2012-04-22 | 1 | -0/+3 |