Skip to content

Commit ebed9ca

Browse files
author
Sebastien Bourdeauducq
committedJun 3, 2012
software/libbase: add fseek+ftell decls
1 parent 674b3f1 commit ebed9ca

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed
 

‎software/include/base/stdio.h

+16
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,18 @@ typedef int dev_t;
3131
#define EOF -1
3232
#endif
3333

34+
#ifndef SEEK_SET
35+
#define SEEK_SET 0
36+
#endif
37+
38+
#ifndef SEEK_CUR
39+
#define SEEK_CUR 1
40+
#endif
41+
42+
#ifndef SEEK_END
43+
#define SEEK_END 2
44+
#endif
45+
3446
typedef int FILE;
3547

3648
extern FILE *stdin;
@@ -51,4 +63,8 @@ int ferror(FILE *stream);
5163
int feof(FILE *stream);
5264
int fclose(FILE *fp);
5365

66+
int fseek(FILE *stream, long offset, int whence);
67+
long ftell(FILE *stream);
68+
69+
5470
#endif /* __STDIO_H */

0 commit comments

Comments
 (0)
Please sign in to comment.