DragonFly BSD
DragonFly commits List (threaded) for 2011-09
[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]

git: Update fmemopen from NetBSD.

From: Venkatesh Srinivas <vsrinivas@xxxxxxxxxxxxxxxxxxxxxxx>
Date: Sun, 11 Sep 2011 20:14:46 -0700 (PDT)

commit 395d17df7d6f2dcc98f215833bcec79ceed9897d
Author: Venkatesh Srinivas <me@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

[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]