git: Update fmemopen from NetBSD.

看板DFBSD_commit作者時間14年前 (2011/10/22 18:03), 編輯推噓0(000)
留言0則, 0人參與, 最新討論串1/1
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
文章代碼(AID): #1EefJLBI (DFBSD_commit)