aboutsummaryrefslogtreecommitdiff
path: root/src/stdlib/strtol.c (unfollow)
Commit message (Expand)AuthorFilesLines
2012-08-15add missing xattr functions•••not sure why these were originally omitted.. Rich Felker2-0/+18
2012-08-15update copyright/credits for recent code additionsRich Felker1-2/+12
2012-08-14support configuring cross compiling with CROSS_COMPILE prefix variableRich Felker1-3/+6
2012-08-13math: fix _BSD_SOURCE namespace in math.hnsz1-25/+26
2012-08-13remove 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 Felker2-8/+0
2012-08-13add significand[fl] math functionsRich Felker4-0/+25
2012-08-13publicly expose getdents api under _BSD_SOURCERich Felker1-0/+7
2012-08-11memcpy asm for i386 and x86_64Rich Felker2-0/+51
2012-08-11avoid need for -march=mips2 to compile mips atomic.h asm•••linux guarantees ll/sc are always available. on mips1, they will be emulated by the kernel. thus they are part of the linux mips1 abi and safe to use. Rich Felker1-0/+8
2012-08-11remove unused but buggy code from strstr.cRich Felker1-10/+0
2012-08-11remove buggy short-string wcsstr implementation; always use twoway•••since this interface is rarely used, it's probably best to lean towards keeping code size down anyway. one-character needles will still be found immediately by the initial wcschr call anyway. Rich Felker1-9/+0
2012-08-11add bsd fgetln function•••optimized to avoid allocation and return lines directly out of the stream buffer whenever possible. Rich Felker4-1/+25
2012-08-10minor but worthwhile optimization in printf: avoid expensive strspn•••the strspn call was made for every format specifier and end-of-string, even though the expected return value was 1-2 for normal usage. replace with simple loop. Rich Felker1-4/+2
2012-08-10trivial optimization to printf: avoid wasted call frame•••amusingly, this cuts more than 10% off the run time of printf("a"); on the machine i tested it on. sadly the same optimization is not possible for snprintf without duplicating all the pseudo-FILE setup code, which is not worth it. Rich Felker1-1/+1
2012-08-10use int instead of long for ptrdiff_t on all 32-bit archs•••this is needed to match the underlying "ABI" standards. it's not really an ABI issue since the binary representations are the same, but having the wrong type can lead to errors when the type arising from a difference-of-pointers expression does not match the defined type of ptrdiff_t. most of the problems affect C++, not C. Rich Felker2-2/+2
2012-08-10fix incorrect ptrdiff_t type on mipsRich Felker1-1/+1
2012-08-10add blowfish hash support to crypt•••there are still some discussions going on about tweaking the code, but at least thing brings us to the point of having something working in the repository. hopefully the remaining major hashes (md5,sha) will follow soon. Rich Felker3-8/+806
2012-08-09fix (hopefully) all hard-coded 8's for kernel sigset_t size•••some minor changes to how hard-coded sets for thread-related purposes are handled were also needed, since the old object sizes were not necessarily sufficient. things have gotten a bit ugly in this area, and i think a cleanup is in order at some point, but for now the goal is just to get the code working on all supported archs including mips, which was badly broken by linux rejecting syscalls with the wrong sigset_t size. Rich Felker14-20/+31
2012-08-09add defines for number of sigset_t bytes syscalls expect•••yet another gratuitous mips incompatibility... Rich Felker4-0/+8
2012-08-09make crypt return an unmatchable hash rather than NULL on failure•••unfortunately, a large portion of programs which call crypt are not prepared for its failure and do not check that the return value is non-null before using it. thus, always "succeeding" but giving an unmatchable hash is reportedly a better behavior than failing on error. it was suggested that we could do this the same way as other implementations and put the null-to-unmatchable translation in the wrapper rather than the individual crypt modules like crypt_des, but when i tried to do it, i found it was making the logic in __crypt_r for keeping track of which hash type we're working with and whether it succeeded or failed much more complex, and potentially error-prone. the way i'm doing it now seems to have essentially zero cost, anyway. Rich Felker1-5/+2
2012-08-08math: fix exp.s on i386 and x86_64 so the exception flags are correct•••exp(inf), exp(-inf), exp(nan) used to raise wrong flags nsz2-40/+35
2012-08-07further fixes for mips ioctl.h header•••untested; hopefully it's right now Rich Felker1-4/+4
2012-08-07fix another mips gratuitous-incompatibility bug: ioctl numbersRich Felker1-2/+2
2012-08-07fix bug dlsym bug that slipped in during dynamic linker cleanupRich Felker1-1/+1
2012-08-05make configure accept mipselRich Felker1-1/+1