diff options
author | Eric Faurot <eric@cvs.openbsd.org> | 2013-03-28 16:37:15 +0000 |
---|---|---|
committer | Eric Faurot <eric@cvs.openbsd.org> | 2013-03-28 16:37:15 +0000 |
commit | b579127f62f14e7d9be821d04764992d5632d5f7 (patch) | |
tree | 673840367256605c7de067a147c9361670dc9e78 /include | |
parent | 259da6eb12f03ddfe324d8469d70fbcdb71a5386 (diff) |
Enable fmemopen(3) and open_{w,}memstream(3)
commiting on behalf of mpi@
Diffstat (limited to 'include')
-rw-r--r-- | include/stdio.h | 7 | ||||
-rw-r--r-- | include/wchar.h | 4 |
2 files changed, 9 insertions, 2 deletions
diff --git a/include/stdio.h b/include/stdio.h index 72fc43784fe..67d85d79dce 100644 --- a/include/stdio.h +++ b/include/stdio.h @@ -1,4 +1,4 @@ -/* $OpenBSD: stdio.h,v 1.43 2013/01/30 00:08:13 brad Exp $ */ +/* $OpenBSD: stdio.h,v 1.44 2013/03/28 16:37:14 eric Exp $ */ /* $NetBSD: stdio.h,v 1.18 1996/04/25 18:29:21 jtc Exp $ */ /*- @@ -335,6 +335,11 @@ int putc_unlocked(int, FILE *); int putchar_unlocked(int); #endif /* __POSIX_VISIBLE >= 199506 */ +#if __POSIX_VISIBLE >= 200809 +FILE *fmemopen(void *, size_t, const char *); +FILE *open_memstream(char **, size_t *); +#endif /* __POSIX_VISIBLE >= 200809 */ + #if __XPG_VISIBLE char *tempnam(const char *, const char *); #endif diff --git a/include/wchar.h b/include/wchar.h index d91204f12b3..442e89f9db2 100644 --- a/include/wchar.h +++ b/include/wchar.h @@ -1,4 +1,4 @@ -/* $OpenBSD: wchar.h,v 1.23 2012/06/06 16:58:02 matthew Exp $ */ +/* $OpenBSD: wchar.h,v 1.24 2013/03/28 16:37:14 eric Exp $ */ /* $NetBSD: wchar.h,v 1.16 2003/03/07 07:11:35 tshiozak Exp $ */ /*- @@ -155,6 +155,8 @@ unsigned long int wcstoul(const wchar_t * __restrict, wchar_t ** __restrict, int base); #if __POSIX_VISIBLE >= 200809 +FILE *open_wmemstream(wchar_t **, size_t *); + wchar_t *wcsdup(const wchar_t *); int wcscasecmp(const wchar_t *, const wchar_t *); int wcsncasecmp(const wchar_t *, const wchar_t *, size_t); |