summaryrefslogtreecommitdiffstats
path: root/compiler-rt/SDKs/darwin/usr/include/stdio.h
diff options
context:
space:
mode:
authorBill Wendling <isanbard@gmail.com>2012-09-14 18:55:32 +0000
committerBill Wendling <isanbard@gmail.com>2012-09-14 18:55:32 +0000
commit66429fe1c7997628eec2881ce15a8c5604ff6b39 (patch)
treec4a096d50a2a1ffc52598f37f9bbd5a5be14202c /compiler-rt/SDKs/darwin/usr/include/stdio.h
parent2ac6f7d6f6aeee1c749877d9001ab5ae52096922 (diff)
downloadbcm5719-llvm-66429fe1c7997628eec2881ce15a8c5604ff6b39.tar.gz
bcm5719-llvm-66429fe1c7997628eec2881ce15a8c5604ff6b39.zip
Add support for reading the GCDA file and merging the arc information.
With the advent of the __llvm_gcov_flush function, we need to be able to merge counts into the .gcda files in an intelligent manner. This involves reading the file if it exists, adding the counts together, and then writing the results. <rdar://problem/12185886> llvm-svn: 163923
Diffstat (limited to 'compiler-rt/SDKs/darwin/usr/include/stdio.h')
-rw-r--r--compiler-rt/SDKs/darwin/usr/include/stdio.h13
1 files changed, 13 insertions, 0 deletions
diff --git a/compiler-rt/SDKs/darwin/usr/include/stdio.h b/compiler-rt/SDKs/darwin/usr/include/stdio.h
index 3b560369f32..74413880606 100644
--- a/compiler-rt/SDKs/darwin/usr/include/stdio.h
+++ b/compiler-rt/SDKs/darwin/usr/include/stdio.h
@@ -51,11 +51,24 @@ typedef __SIZE_TYPE__ size_t;
# define stderr __stderrp
extern FILE *__stderrp;
+#ifndef SEEK_SET
+#define SEEK_SET 0 /* set file offset to offset */
+#endif
+#ifndef SEEK_CUR
+#define SEEK_CUR 1 /* set file offset to current plus offset */
+#endif
+#ifndef SEEK_END
+#define SEEK_END 2 /* set file offset to EOF plus offset */
+#endif
+
int fclose(FILE *);
int fflush(FILE *);
FILE *fopen(const char * restrict, const char * restrict) __asm(__FOPEN_NAME);
int fprintf(FILE * restrict, const char * restrict, ...);
size_t fwrite(const void * restrict, size_t, size_t, FILE * restrict)
__asm(__FWRITE_NAME);
+size_t fread(void * __restrict, size_t, size_t, FILE * __restrict);
+long ftell(FILE *);
+int fseek(FILE *, long, int);
#endif /* __STDIO_H__ */
OpenPOWER on IntegriCloud