aboutsummaryrefslogtreecommitdiff
path: root/src/stdlib/div.c (unfollow)
Commit message (Expand)AuthorFilesLines
2011-07-25comment non-obvious de bruijn sequence code in int parserRich Felker1-0/+2
2011-07-24fix resolution of weak symbols (hopefully right now) and vdsoRich Felker1-3/+9
2011-07-24workaround for gcc's optimizer breaking dynamic symbol resolutionRich Felker1-1/+2
2011-07-24load vdso, if present, into the dso listRich Felker1-2/+31
2011-07-24const correctness on function pointerRich Felker1-1/+1
2011-07-24simplify dynamic linker startup•••instead of creating temp dso objects on the stack and moving them to the heap if dlopen/dlsym are used, use static objects to begin with, and just donate them to malloc if we no longer need them. Rich Felker1-23/+17
2011-07-23some preliminaries for vdso clock support•••these changes also make it so clock_gettime(CLOCK_REALTIME, &ts) works even on pre-2.6 kernels, emulated via the gettimeofday syscall. there is no cost for the fallback check, as it falls under the error case that already must be checked for storing the error code in errno, but which would normally be hidden inside __syscall_ret. Rich Felker3-7/+35
2011-07-22check for fd exhaustion in forkpty•••we cannot report failure after forking, so the idea is to ensure prior to fork that fd 0,1,2 exist. this will prevent dup2 from possibly hitting a resource limit and failing in the child process. fcntl rather than dup2 is used prior to forking to avoid race conditions. Rich Felker1-2/+15
2011-07-22incorrect check for open failure in openpty function•••-1, not 0, indicates failure Rich Felker1-1/+1
2011-07-21socket headers macro adjustment - workaround for buggy programs•••some program was undefining AF_NETLINK and thereby breaking AF_ROUTE... Rich Felker2-2/+2
2011-07-21fix errno value when fdopendir is given an invalid file descriptor•••this resolves an issue reported by Vasiliy Kulikov Rich Felker1-1/+4
2011-07-16ensure in fork that child gets its own new robust mutex listRich Felker1-0/+1
2011-07-16fix logic error in fread•••fread was calling f->read without checking that the file was in reading mode. this could: 1. crash, if f->read was a null pointer 2. cause unwanted blocking on a terminal already at eof 3. allow reading on a write-only file Rich Felker1-6/+1
2011-07-14fix various bugs in new integer parser framework•••1. my interpretation of subject sequence definition was wrong. adjust parser to conform to the standard. 2. some code for handling tail overflow case was missing (forgot to finish writing it). 3. typo (= instead of ==) caused ERANGE to wrongly behave like EINVAL Rich Felker5-10/+15
2011-07-14fix wcsto[iu]max with high characters•••stopping without letting the parser see a stop character prevented getting a result. so treat all high chars as the null character and pass them into the parser. also eliminated ugly tmp var using compound literals. Rich Felker2-4/+2
2011-07-14new restartable integer parsing framework.•••this fixes a number of bugs in integer parsing due to lazy haphazard wrapping, as well as some misinterpretations of the standard. the new parser is able to work character-at-a-time or on whole strings, making it easy to support the wide functions without unbounded space for conversion. it will also be possible to update scanf to use the new parser. Rich Felker6-156/+197
2011-07-12gb18030 support in iconv (only from, not to)•••also support (and restrict to subsets) older chinese sets, and explicitly refuse to convert to cjk (since there's no code for it yet) Rich Felker2-2/+1887