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/2def20a0ca42
branches:  trunk
changeset: 332977:2def20a0ca42
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 f5f0377a32e9 -r 2def20a0ca42 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 f5f0377a32e9 -r 2def20a0ca42 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