git: Update fmemopen from NetBSD.
vsrinivas at crater.dragonflybsd.org
Sun Sep 11 20:15:53 PDT 2011
Author: Venkatesh Srinivas <me at endeavour.zapto.org>
Date: Sun Sep 11 19:33:22 2011 -0700
Update fmemopen from NetBSD.
NetBSD's version of fmemopen() was more correct than our own wrt error
handling and handling seeks at the tail of buffers. We now pass the ATF
fmemopen test set, with the exception of test08; that problem is related to
malloc return for SIZE_MAX requests.
* Modified NetBSD's fmemopen to work with our libc's private FILE struct
* Modified fmemopen_read() to use bcopy() rather than a byte-at-a-time loop
Summary of changes:
lib/libc/stdio/fmemopen.c | 315 +++++++++++++++++++++++----------------------
1 files changed, 160 insertions(+), 155 deletions(-)
DragonFly BSD source repository
More information about the Commits