[llvm-commits] [compiler-rt] r164025 - /compiler-rt/trunk/SDKs/linux/usr/include/stdio.h

Benjamin Kramer benny.kra at googlemail.com
Mon Sep 17 03:23:05 PDT 2012


Author: d0k
Date: Mon Sep 17 05:23:05 2012
New Revision: 164025

URL: http://llvm.org/viewvc/llvm-project?rev=164025&view=rev
Log:
Update linux stdio.h to support the recent additions to GCDAProfiling.

Hopefully unbreaks compiler-rt build on linux.

Modified:
    compiler-rt/trunk/SDKs/linux/usr/include/stdio.h

Modified: compiler-rt/trunk/SDKs/linux/usr/include/stdio.h
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/SDKs/linux/usr/include/stdio.h?rev=164025&r1=164024&r2=164025&view=diff
==============================================================================
--- compiler-rt/trunk/SDKs/linux/usr/include/stdio.h (original)
+++ compiler-rt/trunk/SDKs/linux/usr/include/stdio.h Mon Sep 17 05:23:05 2012
@@ -26,10 +26,17 @@
 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__ */





More information about the llvm-commits mailing list