Implement fseek

This commit is contained in:
Alex
2023-05-05 19:19:44 +03:00
parent d0ec077c09
commit f48511c6ff
3 changed files with 8 additions and 16 deletions

View File

@ -3,6 +3,7 @@
#include <stdarg.h>
#include <stddef.h>
#include <sys/stat.h>
#define SEEK_SET 0
#define SEEK_CUR 1
@ -29,7 +30,7 @@ extern "C"
FILE *fopen(const char *filename, const char *mode);
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 fseek(FILE *stream, long offset, int whence);
off_t fseek(FILE *stream, long offset, int whence);
long ftell(FILE *stream);
int fclose(FILE *fp);
int fflush(FILE *stream);

View File

@ -4,7 +4,7 @@
typedef unsigned int _dev_t;
typedef unsigned short _ino_t;
typedef unsigned short _mode_t;
typedef int _off_t;
typedef long _off_t;
#define dev_t _dev_t
#define ino_t _ino_t