diff --git a/headers/posix/stdio.h b/headers/posix/stdio.h index 5a695e1b07..b1853fe590 100644 --- a/headers/posix/stdio.h +++ b/headers/posix/stdio.h @@ -95,6 +95,10 @@ extern FILE *popen(const char *command, const char *mode); extern int pclose(FILE *stream); extern void perror(const char *errorPrefix); +/* memory streams */ +extern FILE *fmemopen(void *buf, size_t size, const char *mode); +extern FILE *open_memstream(void **buf, size_t *size); + /* file I/O */ extern int fflush(FILE *stream); extern int fflush_unlocked(FILE *stream); diff --git a/src/system/libroot/posix/glibc/libio/Jamfile b/src/system/libroot/posix/glibc/libio/Jamfile index 1c430f74ff..2e10d5ae7d 100644 --- a/src/system/libroot/posix/glibc/libio/Jamfile +++ b/src/system/libroot/posix/glibc/libio/Jamfile @@ -30,6 +30,7 @@ MergeObject posix_gnu_libio.o : filedoalloc.c fileops.c flockfile.c + fmemopen.c fputc.c fputc_u.c freopen.c @@ -49,6 +50,7 @@ MergeObject posix_gnu_libio.o : iofgets.c iofgets_u.c iofopen.c + iofopncook.c iofputs.c iofputs_u.c iofread.c @@ -72,6 +74,7 @@ MergeObject posix_gnu_libio.o : iovdprintf.c iovsprintf.c iovsscanf.c + memstream.c # obprintf.c pclose.c peekc.c