summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorchristos <christos@NetBSD.org>2014-10-13 00:47:03 +0000
committerchristos <christos@NetBSD.org>2014-10-13 00:47:03 +0000
commit87345be26696d45f9cfb13afa99b1f111ccc0e44 (patch)
treec57eb93acb2cbd9aa021b55477fb88c0f0c76557 /include
parent6d2bc409981eb040f2148774d36198ef22d80b7f (diff)
add open_{,w}memstream
Diffstat (limited to 'include')
-rw-r--r--include/stdio.h3
-rw-r--r--include/wchar.h7
2 files changed, 8 insertions, 2 deletions
diff --git a/include/stdio.h b/include/stdio.h
index 7bb363e6802..ce091e0c64b 100644
--- a/include/stdio.h
+++ b/include/stdio.h
@@ -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 @@ __END_DECLS
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 --git a/include/wchar.h b/include/wchar.h
index fce9d6a51ec..858709ff1e2 100644
--- a/include/wchar.h
+++ b/include/wchar.h
@@ -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 @@ unsigned long long int wcstoull(const wchar_t * __restrict,
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);