aboutsummaryrefslogtreecommitdiff
path: root/src/stdio/fopen.c (follow)
Commit message (Expand)AuthorAgeFilesLines
* add 'e' modifier (close-on-exec) to fopen and fdopen•••this feature will be in the next version of POSIX, and can be used internally immediately. there are many internal uses of fopen where close-on-exec is needed to fix bugs. Rich Felker2012-09-291-0/+1
* use restrict everywhere it's required by c99 and/or posix 2008•••to deal with the fact that the public headers may be used with pre-c99 compilers, __restrict is used in place of restrict, and defined appropriately for any supported compiler. we also avoid the form [restrict] since older versions of gcc rejected it due to a bug in the original c99 standard, and instead use the form *restrict. Rich Felker2012-09-061-1/+1
* implement "low hanging fruit" from C11•••based on Gregor's patch sent to the list. includes: - stdalign.h - removing gets in C11 mode - adding aligned_alloc and adjusting other functions to use it - adding 'x' flag to fopen for exclusive mode Rich Felker2012-08-251-2/+2
* make stdio open, read, and write operations cancellation points•••it should be noted that only the actual underlying buffer flush and fill operations are cancellable, not reads from or writes to the buffer. this behavior is compatible with POSIX, which makes all cancellation points in stdio optional, and it achieves the goal of allowing cancellation of a thread that's "stuck" on IO (due to a non-responsive socket/pipe peer, slow/stuck hardware, etc.) without imposing any measurable performance cost. Rich Felker2012-02-021-1/+1
* debloat: use __syscall instead of syscall where possible•••don't waste time (and significant code size due to function call overhead!) setting errno when the result of a syscall does not matter or when it can't fail. Rich Felker2011-04-171-1/+1
* global cleanup to use the new syscall interfaceRich Felker2011-03-201-2/+2
* initial check-in, version 0.5.0Rich Felker2011-02-121-0/+34