diff options
author | H. Peter Anvin <hpa@linux.intel.com> | 2012-05-15 16:04:17 -0700 |
---|---|---|
committer | H. Peter Anvin <hpa@linux.intel.com> | 2012-05-15 16:04:17 -0700 |
commit | 9967afc718ffdd27abf0a4f02d3cc73329c824bc (patch) | |
tree | 05cacffb74e37d859faef5af7068d562655c6e27 | |
parent | 1053f60019a911b6338d3279b2e6fba406bbc1eb (diff) | |
download | klibc-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.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/usr/include/stdio.h b/usr/include/stdio.h index bfc7b4bee04d3..0d4c7d890076a 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 *); |