aboutsummaryrefslogtreecommitdiff
path: root/src/stdio/asprintf.c (unfollow)
Commit message (Expand)AuthorFilesLines
2012-06-19minor cleanup in fflushRich Felker1-5/+1
2012-06-19remove flush hook cruft that was never used from stdio•••there is no need/use for a flush hook. the write function serves this purpose already. i originally created the hook for implementing mem streams based on a mistaken reading of posix, and later realized it wasn't useful but never removed it until now. Rich Felker3-5/+1
2012-06-18fix multiple iconv bugs reading utf-16/32 and wchar_tRich Felker1-8/+8
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 iconv•••apparently this was never tested before. Rich Felker1-0/+1
2012-06-17change stdio_ext __freading/__fwriting semantics slightly•••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... Rich Felker1-2/+2
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 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 Felker10-18/+18
2012-06-14direct syscall to open in __init_security needs O_LARGEFILE•••it probably does not matter for /dev/null, but this should be done consistently anyway. Rich Felker1-1/+1
2012-06-14reorder exit code to defer stdio flush until after dtors•••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. Rich Felker1-4/+1
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.h•••stime is not _XOPEN_SOURCE, and some functions were missing with _BSD_SOURCE.. Rich Felker1-5/+2
2012-06-13add timegm function (inverse of gmtime), nonstandardRich Felker2-0/+12