Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/include add open_{,w}memstream



details:   https://anonhg.NetBSD.org/src/rev/9444c9112dfb
branches:  trunk
changeset: 803119:9444c9112dfb
user:      christos <christos%NetBSD.org@localhost>
date:      Mon Oct 13 00:47:03 2014 +0000

description:
add open_{,w}memstream

diffstat:

 include/stdio.h |  3 ++-
 include/wchar.h |  7 ++++++-
 2 files changed, 8 insertions(+), 2 deletions(-)

diffs (38 lines):

diff -r 01c92d0b3a04 -r 9444c9112dfb include/stdio.h
--- a/include/stdio.h   Mon Oct 13 00:46:28 2014 +0000
+++ b/include/stdio.h   Mon Oct 13 00:47:03 2014 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: stdio.h,v 1.91 2014/08/07 17:24:03 christos Exp $      */
+/*     $NetBSD: stdio.h,v 1.92 2014/10/13 00:47:03 christos Exp $      */
 
 /*-
  * Copyright (c) 1990, 1993
@@ -526,6 +526,7 @@
     defined(_NETBSD_SOURCE)
 __BEGIN_DECLS
 FILE *fmemopen(void * __restrict, size_t, const char * __restrict);
+FILE *open_memstream(char **, size_t *);
 ssize_t         getdelim(char ** __restrict, size_t * __restrict, int,
            FILE * __restrict);
 ssize_t         getline(char ** __restrict, size_t * __restrict, FILE * __restrict);
diff -r 01c92d0b3a04 -r 9444c9112dfb include/wchar.h
--- a/include/wchar.h   Mon Oct 13 00:46:28 2014 +0000
+++ b/include/wchar.h   Mon Oct 13 00:47:03 2014 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: wchar.h,v 1.40 2013/11/21 09:09:52 degroote Exp $      */
+/*     $NetBSD: wchar.h,v 1.41 2014/10/13 00:47:03 christos Exp $      */
 
 /*-
  * Copyright (c)1999 Citrus Project,
@@ -158,6 +158,11 @@
        wchar_t ** __restrict, int);
 #endif
 
+#if (_POSIX_C_SOURCE - 0) >= 200809L || (_XOPEN_SOURCE - 0) >= 700 || \
+    defined(_NETBSD_SOURCE)
+FILE   *open_wmemstream(wchar_t **, size_t *);
+#endif
+
 wint_t ungetwc(wint_t, FILE *);
 wint_t fgetwc(FILE *);
 wchar_t *fgetws(wchar_t * __restrict, int, FILE * __restrict);



Home | Main Index | Thread Index | Old Index