diff options
author | Bill Wendling <isanbard@gmail.com> | 2012-09-14 18:55:32 +0000 |
---|---|---|
committer | Bill Wendling <isanbard@gmail.com> | 2012-09-14 18:55:32 +0000 |
commit | 843f359862fb8370eacf8aed4e749c46a92b2e38 (patch) | |
tree | 0683abd7f51ce2671162a09a937d0eba10384744 /SDKs | |
parent | 78103db90782ca30593d7b1066b77792ca2f3459 (diff) | |
download | compiler-rt-843f359862fb8370eacf8aed4e749c46a92b2e38.tar.gz compiler-rt-843f359862fb8370eacf8aed4e749c46a92b2e38.tar.bz2 compiler-rt-843f359862fb8370eacf8aed4e749c46a92b2e38.tar.xz |
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>
git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@163923 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'SDKs')
-rw-r--r-- | SDKs/darwin/usr/include/stdio.h | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/SDKs/darwin/usr/include/stdio.h b/SDKs/darwin/usr/include/stdio.h index 3b560369..74413880 100644 --- a/SDKs/darwin/usr/include/stdio.h +++ b/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__ */ |