software/libbase: add fseek+ftell decls

This commit is contained in:
Sebastien Bourdeauducq 2012-06-03 21:32:36 +02:00
parent 674b3f1a8c
commit ebed9ca6f8
1 changed files with 16 additions and 0 deletions

View File

@ -31,6 +31,18 @@ typedef int dev_t;
#define EOF -1
#endif
#ifndef SEEK_SET
#define SEEK_SET 0
#endif
#ifndef SEEK_CUR
#define SEEK_CUR 1
#endif
#ifndef SEEK_END
#define SEEK_END 2
#endif
typedef int FILE;
extern FILE *stdin;
@ -51,4 +63,8 @@ int ferror(FILE *stream);
int feof(FILE *stream);
int fclose(FILE *fp);
int fseek(FILE *stream, long offset, int whence);
long ftell(FILE *stream);
#endif /* __STDIO_H */