Browse Source

Enable fmemopen(3) and open_{w,}memstream(3)

commiting on behalf of mpi@
OPENBSD_5_4
eric 11 years ago
parent
commit
edb5d34b17
2 changed files with 9 additions and 2 deletions
  1. +6
    -1
      src/include/stdio.h
  2. +3
    -1
      src/include/wchar.h

+ 6
- 1
src/include/stdio.h View File

@ -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 $ */ /* $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); int putchar_unlocked(int);
#endif /* __POSIX_VISIBLE >= 199506 */ #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 #if __XPG_VISIBLE
char *tempnam(const char *, const char *); char *tempnam(const char *, const char *);
#endif #endif


+ 3
- 1
src/include/wchar.h View File

@ -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 $ */ /* $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); int base);
#if __POSIX_VISIBLE >= 200809 #if __POSIX_VISIBLE >= 200809
FILE *open_wmemstream(wchar_t **, size_t *);
wchar_t *wcsdup(const wchar_t *); wchar_t *wcsdup(const wchar_t *);
int wcscasecmp(const wchar_t *, const wchar_t *); int wcscasecmp(const wchar_t *, const wchar_t *);
int wcsncasecmp(const wchar_t *, const wchar_t *, size_t); int wcsncasecmp(const wchar_t *, const wchar_t *, size_t);


Loading…
Cancel
Save