aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorH. Peter Anvin <hpa@linux.intel.com>2012-05-15 16:04:17 -0700
committerH. Peter Anvin <hpa@linux.intel.com>2012-05-15 16:04:17 -0700
commit9967afc718ffdd27abf0a4f02d3cc73329c824bc (patch)
tree05cacffb74e37d859faef5af7068d562655c6e27
parent1053f60019a911b6338d3279b2e6fba406bbc1eb (diff)
downloadklibc-9967afc718ffdd27abf0a4f02d3cc73329c824bc.tar.gz
[klibc] Define fseeko and ftello as macros
We ignore the "long" requirement for fseek/ftell and really have fseeko/ftello as the only implementation, but #define those names so properly written software will do the right thing. Signed-off-by: H. Peter Anvin <hpa@linux.intel.com>
-rw-r--r--usr/include/stdio.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/usr/include/stdio.h b/usr/include/stdio.h
index bfc7b4bee04d3e..0d4c7d890076a1 100644
--- a/usr/include/stdio.h
+++ b/usr/include/stdio.h
@@ -49,6 +49,7 @@ __extern FILE *fopen(const char *, const char *);
__extern FILE *fdopen(int, const char *);
__extern int fclose(FILE *);
__extern int fseek(FILE *, off_t, int);
+#define fseeko fseek
__extern void rewind(FILE *);
__extern int fputs(const char *, FILE *);
__extern int puts(const char *);
@@ -93,6 +94,7 @@ __extern size_t fread(void *, size_t, size_t, FILE *);
__extern size_t fwrite(const void *, size_t, size_t, FILE *);
__extern off_t ftell(FILE *__f);
+#define ftello ftell
__extern int ferror(FILE * );
__extern int feof(FILE *);