看板 DFBSD_commit 關於我們 聯絡資訊
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. 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