libc -- Initial fmemopen support.
authorVenkatesh Srinivas <me@endeavour.zapto.org>
Wed, 11 May 2011 17:31:35 +0000 (10:31 -0700)
committerVenkatesh Srinivas <me@endeavour.zapto.org>
Wed, 11 May 2011 17:31:35 +0000 (10:31 -0700)
commite5afb31fe927cd3559de706b736ec9266116ce01
treef336c4a71c5c5bfb80b604e12c1d08d0c377335b
parent72453240fe7f2d537cfd6cccd9a0b2f299efc3fc
libc -- Initial fmemopen support.

fmemopen allows wrapping a memory buffer in the FILE* interface.

fmemopen was added to POSIX 200809. This version is based around a patch
from Hiten Pandya for FreeBSD. This version does not currently support all of
POSIX's mode strings.
include/stdio.h
lib/libc/stdio/Makefile.inc
lib/libc/stdio/fmemopen.c [new file with mode: 0644]