Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

software/libbase: add fseek+ftell decls

  • Loading branch information...
commit ebed9ca6f8dac9ecce341015111ab8bc2925fdcf 1 parent 674b3f1
@sbourdeauducq sbourdeauducq authored
Showing with 16 additions and 0 deletions.
  1. +16 −0 software/include/base/stdio.h
View
16 software/include/base/stdio.h
@@ -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 */

0 comments on commit ebed9ca

Please sign in to comment.
Something went wrong with that request. Please try again.