Skip to content

Commit

Permalink
software/libbase: add fseek+ftell decls
Browse files Browse the repository at this point in the history
  • Loading branch information
Sebastien Bourdeauducq committed Jun 3, 2012
1 parent 674b3f1 commit ebed9ca
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions software/include/base/stdio.h
Expand Up @@ -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;
Expand All @@ -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 */

0 comments on commit ebed9ca

Please sign in to comment.