summaryrefslogtreecommitdiffstats
path: root/lib/libc/stdio/open_memstream.c (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Fix a comparison in open_memstream not to confuse when a negativeyasuoka2019-05-021-3/+3
| | | | | | value is given for the off. found by nagasaka at IIJ. ok deraadt
* Use recallocarray() to avoid leaving detritus in memory when resizingderaadt2017-03-171-2/+2
| | | | | | buffers. We don't bother doing this for objects containing pointers, but focus on controllable data. ok millert
* Add framework for resolving (pun intended) libc namespace issues, usingguenther2015-08-311-1/+2
| | | | | | | | | | | | wrapper .h files and asm labels to let internal calls resolve directly and not be overridable or use the PLT. Then, apply that framework to most of the functions in stdio.h, string.h, err.h, and wchar.h. Delete the should-have-been-hidden-all-along _v?(err|warn)[cx]? symbols while here. tests clean on i386, amd64, sparc64, powerpc, and mips64 naming feedback from kettenis@ and millert@ ok kettenis@
* Include stdint.h, not limits.h to get SIZE_MAX. OK guenther@millert2015-02-051-2/+2
|
* Move to the <limits.h> universe.deraadt2015-01-161-4/+4
| | | | review by millert, binary checking process with doug, concept with guenther
* Set the stream orientation in open_{,w}memstream().guenther2013-04-031-1/+2
| | | | | | Check it in the regress test ok mpi@
* Add an open_wmemstream(3) implementation and fix various issues formpi2013-03-271-34/+25
| | | | | | fmemopen(3) and open_memstream(3). With inputs from millert@, stsp@, guenther@, tedu@ and matthew@
* Add an implementation based on tedu@'s design of fmemopen(3) andmpi2013-01-011-0/+166
open_memstream(3) so they can be polished in-tree. One of the manpages comes from NetBSD with some tweaks. Prodded by espie@, krw@, guenther@