git: Update fmemopen from NetBSD.

Venkatesh Srinivas vsrinivas at crater.dragonflybsd.org
Sun Sep 11 20:15:53 PDT 2011


commit 395d17df7d6f2dcc98f215833bcec79ceed9897d
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.
    
    Changes:
    * 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(-)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/395d17df7d6f2dcc98f215833bcec79ceed9897d


-- 
DragonFly BSD source repository





More information about the Commits mailing list