summaryrefslogtreecommitdiff
path: root/SDKs
diff options
context:
space:
mode:
authorBenjamin Kramer <benny.kra@googlemail.com>2012-09-17 10:23:05 +0000
committerBenjamin Kramer <benny.kra@googlemail.com>2012-09-17 10:23:05 +0000
commit7ad8ae259389e8652a5476681ac01185105c3d68 (patch)
treeb67ded736ab7bb51aa9530099a7915a22e1adbe2 /SDKs
parent9159a592ea0cb258a6cfe2f13ae1d03a517a981a (diff)
Update linux stdio.h to support the recent additions to GCDAProfiling.
Hopefully unbreaks compiler-rt build on linux. git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@164025 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'SDKs')
-rw-r--r--SDKs/linux/usr/include/stdio.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/SDKs/linux/usr/include/stdio.h b/SDKs/linux/usr/include/stdio.h
index ddfe75548..7c258d2ac 100644
--- a/SDKs/linux/usr/include/stdio.h
+++ b/SDKs/linux/usr/include/stdio.h
@@ -26,10 +26,17 @@ extern struct _IO_FILE *stdin;
extern struct _IO_FILE *stdout;
extern struct _IO_FILE *stderr;
+#define SEEK_SET 0 /* set file offset to offset */
+#define SEEK_CUR 1 /* set file offset to current plus offset */
+#define SEEK_END 2 /* set file offset to EOF plus offset */
+
extern int fclose(FILE *);
extern int fflush(FILE *);
extern FILE *fopen(const char * restrict, const char * restrict);
extern int fprintf(FILE * restrict, const char * restrict, ...);
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);
#endif /* __STDIO_H__ */