diff options
author | Eric Blake <eblake@redhat.com> | 2007-08-02 20:23:06 +0000 |
---|---|---|
committer | Eric Blake <eblake@redhat.com> | 2007-08-02 20:23:06 +0000 |
commit | 6ddcdb9da510ddf2b6309006ded0827f467e23b4 (patch) | |
tree | f0e349d3cc7ad6083b3a652e688d385215a41dc8 /newlib/libc/stdio/stdio.tex | |
parent | 191814588af712faa0093d21a08c51c97abae3f2 (diff) | |
download | cygnal-6ddcdb9da510ddf2b6309006ded0827f467e23b4.tar.gz cygnal-6ddcdb9da510ddf2b6309006ded0827f467e23b4.tar.bz2 cygnal-6ddcdb9da510ddf2b6309006ded0827f467e23b4.zip |
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.
Diffstat (limited to 'newlib/libc/stdio/stdio.tex')
-rw-r--r-- | newlib/libc/stdio/stdio.tex | 8 |
1 files changed, 8 insertions, 0 deletions
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) @@ -124,6 +126,9 @@ structure. @include stdio/fileno.def @page +@include stdio/fmemopen.def + +@page @include stdio/fopen.def @page @@ -184,6 +189,9 @@ structure. @include stdio/mktemp.def @page +@include stdio/open_memstream.def + +@page @include stdio/perror.def @page |