From 843f359862fb8370eacf8aed4e749c46a92b2e38 Mon Sep 17 00:00:00 2001 From: Bill Wendling Date: Fri, 14 Sep 2012 18:55:32 +0000 Subject: 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. git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@163923 91177308-0d34-0410-b5e6-96231b3b80d8 --- SDKs/darwin/usr/include/stdio.h | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'SDKs') diff --git a/SDKs/darwin/usr/include/stdio.h b/SDKs/darwin/usr/include/stdio.h index 3b560369f..744138806 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__ */ -- cgit v1.2.3