summaryrefslogtreecommitdiff
path: root/src/stdio/fmemopen.c
AgeCommit message (Collapse)AuthorFilesLines
2011-09-04more fmemopen null termination fixesRich Felker1-2/+3
null termination is only added when current size grows. in update modes, null termination is not added if it does not fit (i.e. it is not allowed to clobber data). these rules make very little sense, but that's how it goes..
2011-09-04fix some fmemopen behaviorsRich Felker1-4/+7
read should not be allowed past "current size". append mode should write at "current size", not buffer size. null termination should not be written except when "current size" grows.
2011-09-04fmemopen: fix eof handling, hopefully right this timeRich Felker1-3/+4
2011-09-04fmemopen fixesRich Felker1-1/+3
disallow seek past end of buffer (per posix) fix position accounting to include data buffered for read don't set eof flag when no data was requested
2011-09-03implement fmemopenRich Felker1-18/+66
testing so far has been minimal. may need further work.
2011-03-14partially-written draft of fmemopen, still in #if 0Rich Felker1-3/+48
2011-02-12initial check-in, version 0.5.0v0.5.0Rich Felker1-0/+16