Skip to content


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Comparing changes

Choose two branches to see what's changed or to start a new pull request. If you need to, you can also compare across forks.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also compare across forks.
  • 2 commits
  • 2 files changed
  • 0 commit comments
  • 1 contributor
Showing with 13 additions and 0 deletions.
  1. +9 −0 software/include/base/stdio.h
  2. +4 −0 software/include/base/stdlib.h
9 software/include/base/stdio.h
@@ -21,6 +21,10 @@ int printf(const char *fmt, ...);
#define BUFSIZ 1024
+#ifndef EOF
+#define EOF -1
typedef int FILE;
extern FILE *stdin;
@@ -31,9 +35,14 @@ int fprintf(FILE *stream, const char *format, ...);
int fflush(FILE *stream);
FILE *fopen(const char *path, const char *mode);
+FILE *freopen(const char *path, const char *mode, FILE *stream);
char *fgets(char *s, int size, FILE *stream);
size_t fread(void *ptr, size_t size, size_t nmemb, FILE *stream);
size_t fwrite(const void *ptr, size_t size, size_t nmemb, FILE *stream);
+int getc(FILE *stream);
+int fputc(int c, FILE *stream);
+int ferror(FILE *stream);
+int feof(FILE *stream);
int fclose(FILE *fp);
#endif /* __STDIO_H */
4 software/include/base/stdlib.h
@@ -58,4 +58,8 @@ void abort(void);
char *getenv(const char *name);
+void *malloc(size_t size);
+void free(void *ptr);
+void *realloc(void *ptr, size_t size);
#endif /* __STDLIB_H */

No commit comments for this range

Something went wrong with that request. Please try again.