aboutsummaryrefslogtreecommitdiff
path: root/src/internal/stdio_impl.h (unfollow)
Commit message (Collapse)AuthorFilesLines
2012-06-18fix iconv dest utf-16: unavailable chars must be replaced; EILSEQ is wrongRich Felker1-2/+2
2012-06-18fix erroneous utf-16 encoding with surrogates in iconvRich Felker1-0/+1
apparently this was never tested before.
2012-06-17change stdio_ext __freading/__fwriting semantics slightlyRich Felker1-2/+2
the old behavior was to only consider a stream to be "reading" or "writing" if it had buffered, unread/unwritten data. this reportedly differs from the traditional behavior of these functions, which is essentially to return true as much as possible without creating the possibility that both __freading and __fwriting could return true. gnulib expects __fwriting to return true as soon as a file is opened write-only, and possibly expects other cases that depend on the traditional behavior. and since these functions exist mostly for gnulib (does anything else use them??), they should match the expected behavior to avoid even more ugly hacks and workarounds...
2012-06-17fdopen should set errno when it fails due to invalid mode stringRich Felker1-1/+4
2012-06-15header file fixes: multiple include guard consistency and correctnessRich Felker10-18/+18
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)
2012-06-14direct syscall to open in __init_security needs O_LARGEFILERich Felker1-1/+1
it probably does not matter for /dev/null, but this should be done consistently anyway.
2012-06-14reorder exit code to defer stdio flush until after dtorsRich Felker1-4/+1
this is required in case dtors use stdio. also remove the old comments; one was cruft from when the code used to be using function pointers and conditional calls, and has little motivation now that we're using weak symbols. the other was just complaining about having to support dtors even though the cost was made essentially zero in the non-use case by the way it's done here.
2012-06-13revert one change in time.h; no evidence BSD_SOURCE should expose these..Rich Felker1-1/+1
2012-06-13fix feature test macros in time.hRich Felker1-5/+2
stime is not _XOPEN_SOURCE, and some functions were missing with _BSD_SOURCE..
2012-06-13add timegm function (inverse of gmtime), nonstandardRich Felker2-0/+12