Module Name:    src
Committed By:   christos
Date:           Mon Oct 13 00:47:03 UTC 2014

Modified Files:
        src/include: stdio.h wchar.h

Log Message:
add open_{,w}memstream


To generate a diff of this commit:
cvs rdiff -u -r1.91 -r1.92 src/include/stdio.h
cvs rdiff -u -r1.40 -r1.41 src/include/wchar.h

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/include/stdio.h
diff -u src/include/stdio.h:1.91 src/include/stdio.h:1.92
--- src/include/stdio.h:1.91	Thu Aug  7 13:24:03 2014
+++ src/include/stdio.h	Sun Oct 12 20:47:03 2014
@@ -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);

Index: src/include/wchar.h
diff -u src/include/wchar.h:1.40 src/include/wchar.h:1.41
--- src/include/wchar.h:1.40	Thu Nov 21 04:09:52 2013
+++ src/include/wchar.h	Sun Oct 12 20:47:03 2014
@@ -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 wc
 	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);

Reply via email to