| Commit message (Expand) | Author | Age | Files | Lines |
| * | improve headers to better deal with removed-in-posix-2008 features•••with this patch, setting _POSIX_SOURCE, or setting _POSIX_C_SOURCE or
_XOPEN_SOURCE to an old version, will bring back the interfaces that
were removed in POSIX 2008 - at least the ones i've covered so far,
which are gethostby*, usleep, and ualarm. if there are other functions
still in widespread use that were removed for which similar changes
would be beneficial, they can be added just like this.
| Rich Felker | 2012-08-15 | 2 | -13/+22 |
| * | add missing xattr functions•••not sure why these were originally omitted..
| Rich Felker | 2012-08-15 | 1 | -0/+3 |
| * | math: fix _BSD_SOURCE namespace in math.h | nsz | 2012-08-13 | 1 | -25/+26 |
| * | remove significandl•••this function never existed historically; since the float/double
functions it's based on are nonstandard and deprecated, there's really
no justification for its existence except that glibc has it. it can be
added back if there's ever really a need...
| Rich Felker | 2012-08-13 | 1 | -1/+0 |
| * | add significand[fl] math functions | Rich Felker | 2012-08-13 | 1 | -0/+4 |
| * | publicly expose getdents api under _BSD_SOURCE | Rich Felker | 2012-08-13 | 1 | -0/+7 |
| * | add bsd fgetln function•••optimized to avoid allocation and return lines directly out of the
stream buffer whenever possible.
| Rich Felker | 2012-08-11 | 1 | -0/+4 |
| * | fix socket.h on mips•••why does mips have to be gratuitously incompatible in every possible
imaginable way?
| Rich Felker | 2012-08-05 | 1 | -0/+3 |
| * | add ioperm/iopl syscalls•••based on patches by orc and Isaac Dunham, with some fixes. sys/io.h
exists and contains prototypes for these functions regardless of
whether the target arch has them; this is a bit unorthodox but I don't
think it will break anything. the function definitions do not exist
unless the appropriate SYS_* syscall number macro is defined, which
should make sure configure scripts looking for these functions don't
find them on other systems.
presently, sys/io.h does not have the inb/outb/etc. port io
macros/functions. I'd be surprised if ioperm/iopl are useful without
them, so they probably need to be added at some point in appropriate
bits/io.h files...
| Rich Felker | 2012-07-23 | 1 | -0/+13 |
| * | add splice and vmsplice syscalls•••based on patches by orc and Isaac Dunham.
| Rich Felker | 2012-07-23 | 1 | -0/+12 |
| * | add extended attributes syscalls•••based on patch by orc and Isaac Dunham, with some fixes.
| Rich Felker | 2012-07-23 | 1 | -0/+27 |
| * | add pipe2 syscall•••based on patch by orc and Isaac Dunham, with some details fixed.
| Rich Felker | 2012-07-23 | 1 | -0/+1 |
| * | fix namespace issue in prototypes in math.h | Rich Felker | 2012-07-22 | 1 | -2/+2 |
| * | fix wrong size for sigjmp_buf signal set array•••128 is the size in bytes, not longs.
| Rich Felker | 2012-07-22 | 1 | -1/+1 |
| * | fix typo in aio.h | Rich Felker | 2012-07-19 | 1 | -1/+1 |
| * | workaround another sendmsg kernel bug on 64-bit machines•••the kernel wrongly expects the cmsg length field to be size_t instead
of socklen_t. in order to work around the issue, we have to impose a
length limit and copy to a local buffer. the length limit should be
more than sufficient for any real-world use; these headers are only
used for passing file descriptors and permissions between processes
over unix sockets.
| Rich Felker | 2012-07-12 | 1 | -7/+0 |
| * | fix redef of sigprocmask constants on mips•••this fix is easier than trying to reorder the header stuff
| Rich Felker | 2012-07-12 | 1 | -2/+0 |
| * | more mips bits-header fixes•••signal handling was very broken because of this
| Rich Felker | 2012-07-12 | 1 | -0/+2 |
| * | add prototypes for getw/putw | Rich Felker | 2012-07-04 | 1 | -0/+2 |
| * | jmp_buf overhaul fixing several issues•••on arm, the location of the saved-signal-mask flag and mask were off
by one between sigsetjmp and siglongjmp, causing incorrect behavior
restoring the signal mask. this is because the siglongjmp code assumed
an extra slot was in the non-sig jmp_buf for the flag, but arm did not
have this. now, the extra slot is removed for all archs since it was
useless.
also, arm eabi requires jmp_buf to have 8-byte alignment. we achieve
that using long long as the type rather than with non-portable gcc
attribute tags.
| Rich Felker | 2012-07-03 | 1 | -1/+5 |
| * | replace old and ugly crypt implementation•••the new version is largely the work of Solar Designer, with minor
changes for integration with musl. compared to the old code, text size
is reduced by about 7k, stack space usage by about 70k, and
performance is greatly improved by avoiding expensive calculation of
constant tables on each run.
this version also adds support for extended des-based password hashes,
which allow for unlimited key (password) length and configurable
iteration counts.
i've also published the interface for crypt_r in a new crypt.h header.
especially since this is not a standard interface, i did not feel
compelled to match the glibc abi for the crypt_data structure. the
glibc structure is way too big to allocate on the stack; in fact it's
so big that the first usage may cause the main thread to exceed its
pre-committed stack size of 128k and thus could cause the program to
crash even on systems with overcommit disabled. the only legitimate
use of crypt_data for crypt_r is to store the hash string to return,
so i've reserved 256 bytes, which should be more than sufficient
(longest known password hashes are ~60 characters, and beyond that is
possibly even exceeding some implementations' passwd file field size
limit).
| Rich Felker | 2012-06-29 | 1 | -0/+20 |
| * | add process_vm_readv and process_vm_writev syscall wrappers•••based on a patch submitted by Kristian L. <email@thexception.net>
| Rich Felker | 2012-06-23 | 1 | -0/+9 |
| * | proper error handling for fcntl F_GETOWN on modern kernels•••on old kernels, there's no way to detect errors; we must assume
negative syscall return values are pgrp ids. but if the F_GETOWN_EX
fcntl works, we can get a reliable answer.
| Rich Felker | 2012-06-20 | 1 | -0/+11 |
| * | include declarations for new stdio_ext functions (gnulib support) | Rich Felker | 2012-06-19 | 1 | -0/+5 |
| * | 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 |