diff options
author | Bill Wendling <isanbard@gmail.com> | 2013-05-15 21:31:22 +0000 |
---|---|---|
committer | Bill Wendling <isanbard@gmail.com> | 2013-05-15 21:31:22 +0000 |
commit | 2a46a60510948b5005d62025fbba307a0323ed8d (patch) | |
tree | bcf69b34828332f3755ef9d593b43018af34e2e4 /SDKs/linux/usr/include/stdio.h | |
parent | 0bdc46c7ee03e8c4e4da7c5ac43edac237aa53e2 (diff) |
Try to improve performance by using a read/write buffer instead of I/O.
The calls to fwrite/fread can be very expensive. GCC avoids this by using a
buffer to read and write from the file, thus limiting the number of fwrite/fread
calls.
<rdar://problem/13466086>
git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@181924 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'SDKs/linux/usr/include/stdio.h')
-rw-r--r-- | SDKs/linux/usr/include/stdio.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/SDKs/linux/usr/include/stdio.h b/SDKs/linux/usr/include/stdio.h index 7c258d2ac..0ca10fabe 100644 --- a/SDKs/linux/usr/include/stdio.h +++ b/SDKs/linux/usr/include/stdio.h @@ -38,5 +38,6 @@ extern size_t fwrite(const void * restrict, size_t, size_t, FILE * restrict); extern size_t fread(void * restrict, size_t, size_t, FILE * restrict); extern long ftell(FILE *); extern int fseek(FILE *, long, int); +extern void setbuf(FILE * restrict, char * restrict); #endif /* __STDIO_H__ */ |