aboutsummaryrefslogtreecommitdiffstats
path: root/include/stdio.h
diff options
context:
space:
mode:
authorPietro Cerutti <gahr@FreeBSD.org>2013-01-30 14:59:26 +0000
committerPietro Cerutti <gahr@FreeBSD.org>2013-01-30 14:59:26 +0000
commit96c95412cafecdd39aaf1539ce712e4a24975c52 (patch)
tree6bbe6632836c64feeb815c9657b3e9f53e585f21 /include/stdio.h
parent9005607c8fa7317a759f1fc16cae4738f9a2fbb3 (diff)
downloadsrc-96c95412cafecdd39aaf1539ce712e4a24975c52.tar.gz
src-96c95412cafecdd39aaf1539ce712e4a24975c52.zip
Add fmemopen(3), an interface to get a FILE * from a buffer in memory, along
with the respective regression test. See http://pubs.opengroup.org/onlinepubs/9699919799/functions/fmemopen.html Reviewed by: cognet Approved by: cognet
Notes
Notes: svn path=/head/; revision=246120
Diffstat (limited to 'include/stdio.h')
-rw-r--r--include/stdio.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/stdio.h b/include/stdio.h
index 2fd91259e800..4fc78b833abd 100644
--- a/include/stdio.h
+++ b/include/stdio.h
@@ -343,6 +343,7 @@ char *tempnam(const char *, const char *);
#endif
#if __BSD_VISIBLE || __POSIX_VISIBLE >= 200809
+FILE *fmemopen(void * __restrict, size_t, const char * __restrict);
ssize_t getdelim(char ** __restrict, size_t * __restrict, int,
FILE * __restrict);
int renameat(int, const char *, int, const char *);