From 6ddcdb9da510ddf2b6309006ded0827f467e23b4 Mon Sep 17 00:00:00 2001
From: Eric Blake <eblake@redhat.com>
Date: Thu, 2 Aug 2007 20:23:06 +0000
Subject: Implement fmemopen and open_memstream. * libc/stdio/fmemopen.c
 (_fmemopen_r, fmemopen): New file. * libc/stdio/open_memstream.c
 (_open_memstream_r, open_memstream): New file. * libc/stdio/fopencookie.c
 (fcwriter): Minor optimization. * libc/include/stdio.h (dprintf, vdprintf):
 Group all POSIX 200x functions together. (fmemopen, open_memstream): Declare
 new functions. * libc/stdio/stdio.tex: Document them. *
 libc/stdio/Makefile.am (ELIX_4_SOURCES, CHEWOUT_FILES): Add fmemopen and
 open_memstream. * libc/stdio/Makefile.in: Regenerate.

---
 newlib/libc/stdio/stdio.tex | 8 ++++++++
 1 file changed, 8 insertions(+)

(limited to 'newlib/libc/stdio/stdio.tex')

diff --git a/newlib/libc/stdio/stdio.tex b/newlib/libc/stdio/stdio.tex
index f31271523..582f43e37 100644
--- a/newlib/libc/stdio/stdio.tex
+++ b/newlib/libc/stdio/stdio.tex
@@ -37,6 +37,7 @@ structure.
 * fgetpos::     Record position in a stream or file
 * fgets::       Get character string from a file or stream
 * fileno::      Get file descriptor associated with stream
+* fmemopen::    Open a stream around a fixed-length buffer
 * fopen::       Open a file
 * fopencookie:: Open a stream with custom callbacks
 * fputc::       Write a character on a stream or file
@@ -57,6 +58,7 @@ structure.
 * gets::        Get character string from standard input (obsolete)
 * getw::        Get a word (int) from a file or stream
 * mktemp::      Generate unused file name
+* open_memstream::	Open a write stream around an arbitrary-length buffer
 * perror::      Print an error message on standard error
 * putc::        Write a character on a stream or file (macro)
 * putc_unlocked::	Write a character on a stream or file (macro)
@@ -123,6 +125,9 @@ structure.
 @page
 @include stdio/fileno.def
 
+@page
+@include stdio/fmemopen.def
+
 @page
 @include stdio/fopen.def
 
@@ -183,6 +188,9 @@ structure.
 @page
 @include stdio/mktemp.def
 
+@page
+@include stdio/open_memstream.def
+
 @page
 @include stdio/perror.def
 
-- 
cgit v1.2.3

