Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
  • 2 commits
  • 2 files changed
  • 0 comments
  • 1 contributor
9  software/include/base/stdio.h
@@ -21,6 +21,10 @@ int printf(const char *fmt, ...);
21 21
 #define BUFSIZ 1024
22 22
 #endif
23 23
 
  24
+#ifndef EOF
  25
+#define EOF -1
  26
+#endif
  27
+
24 28
 typedef int FILE;
25 29
 
26 30
 extern FILE *stdin;
@@ -31,9 +35,14 @@ int fprintf(FILE *stream, const char *format, ...);
31 35
 int fflush(FILE *stream);
32 36
 
33 37
 FILE *fopen(const char *path, const char *mode);
  38
+FILE *freopen(const char *path, const char *mode, FILE *stream);
34 39
 char *fgets(char *s, int size, FILE *stream);
35 40
 size_t fread(void *ptr, size_t size, size_t nmemb, FILE *stream);
36 41
 size_t fwrite(const void *ptr, size_t size, size_t nmemb, FILE *stream);
  42
+int getc(FILE *stream);
  43
+int fputc(int c, FILE *stream);
  44
+int ferror(FILE *stream);
  45
+int feof(FILE *stream);
37 46
 int fclose(FILE *fp);
38 47
 
39 48
 #endif /* __STDIO_H */
4  software/include/base/stdlib.h
@@ -58,4 +58,8 @@ void abort(void);
58 58
 
59 59
 char *getenv(const char *name);
60 60
 
  61
+void *malloc(size_t size);
  62
+void free(void *ptr);
  63
+void *realloc(void *ptr, size_t size);
  64
+
61 65
 #endif /* __STDLIB_H */

No commit comments for this range

Something went wrong with that request. Please try again.