Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

software/libbase: add fseek+ftell decls

  • Loading branch information...
commit ebed9ca6f8dac9ecce341015111ab8bc2925fdcf 1 parent 674b3f1
Sébastien Bourdeauducq authored

Showing 1 changed file with 16 additions and 0 deletions. Show diff stats Hide diff stats

  1. 16  software/include/base/stdio.h
16  software/include/base/stdio.h
@@ -31,6 +31,18 @@ typedef int dev_t;
31 31
 #define EOF -1
32 32
 #endif
33 33
 
  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
+
34 46
 typedef int FILE;
35 47
 
36 48
 extern FILE *stdin;
@@ -51,4 +63,8 @@ int ferror(FILE *stream);
51 63
 int feof(FILE *stream);
52 64
 int fclose(FILE *fp);
53 65
 
  66
+int fseek(FILE *stream, long offset, int whence);
  67
+long ftell(FILE *stream);
  68
+
  69
+
54 70
 #endif /* __STDIO_H */

0 notes on commit ebed9ca

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