From: Sebastien Bourdeauducq Date: Sun, 3 Jun 2012 19:32:36 +0000 (+0200) Subject: software/libbase: add fseek+ftell decls X-Git-Tag: 24jan2021_ls180~3136 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=ebed9ca6f8dac9ecce341015111ab8bc2925fdcf;p=litex.git software/libbase: add fseek+ftell decls --- diff --git a/software/include/base/stdio.h b/software/include/base/stdio.h index 58c908ec..91f59d7a 100644 --- a/software/include/base/stdio.h +++ b/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 */