summaryrefslogtreecommitdiffstats
path: root/compiler-rt/SDKs/linux/usr
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
commit7aa5b663eacf2e0abc31e0670836af0d88f4953f (patch)
tree30df9387084254077698f511f700ab01089e9da2 /compiler-rt/SDKs/linux/usr
parent2ae810a51fb682836019b5bc8717fe45ea23b3ec (diff)
downloadbcm5719-llvm-7aa5b663eacf2e0abc31e0670836af0d88f4953f.tar.gz
bcm5719-llvm-7aa5b663eacf2e0abc31e0670836af0d88f4953f.zip
Update linux stdio.h to support the recent additions to GCDAProfiling.
Hopefully unbreaks compiler-rt build on linux. llvm-svn: 164025
Diffstat (limited to 'compiler-rt/SDKs/linux/usr')
-rw-r--r--compiler-rt/SDKs/linux/usr/include/stdio.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/compiler-rt/SDKs/linux/usr/include/stdio.h b/compiler-rt/SDKs/linux/usr/include/stdio.h
index ddfe7554879..7c258d2aca1 100644
--- a/compiler-rt/SDKs/linux/usr/include/stdio.h
+++ b/compiler-rt/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__ */
OpenPOWER on IntegriCloud