summaryrefslogtreecommitdiffstats
path: root/include/stdio.h
diff options
context:
space:
mode:
authorgahr <gahr@FreeBSD.org>2013-01-30 14:59:26 +0000
committergahr <gahr@FreeBSD.org>2013-01-30 14:59:26 +0000
commite7ca48d15b0d2114430b38f3d1cd793d3e50a3ae (patch)
tree6bbe6632836c64feeb815c9657b3e9f53e585f21 /include/stdio.h
parent7b6927c4af42d3e6a1b704f87f0eae971121b096 (diff)
downloadFreeBSD-src-e7ca48d15b0d2114430b38f3d1cd793d3e50a3ae.zip
FreeBSD-src-e7ca48d15b0d2114430b38f3d1cd793d3e50a3ae.tar.gz
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
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 2fd9125..4fc78b8 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 *);
OpenPOWER on IntegriCloud