diff options
| author | christos <christos@NetBSD.org> | 2014-10-13 00:47:03 +0000 |
|---|---|---|
| committer | christos <christos@NetBSD.org> | 2014-10-13 00:47:03 +0000 |
| commit | 87345be26696d45f9cfb13afa99b1f111ccc0e44 (patch) | |
| tree | c57eb93acb2cbd9aa021b55477fb88c0f0c76557 /include | |
| parent | 6d2bc409981eb040f2148774d36198ef22d80b7f (diff) | |
add open_{,w}memstream
Diffstat (limited to 'include')
| -rw-r--r-- | include/stdio.h | 3 | ||||
| -rw-r--r-- | include/wchar.h | 7 |
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); |
