return fseek(fp, off, whence);
}
-int fs_file_flush(FILE *fp) {
- /* Invokes file_exception on windows if fp is null */
- return fflush(fp);
-}
-
long int fs_file_tell(FILE *fp) {
/* Invokes file_exception on windows if fp is null */
return ftell(fp);
#else
# if !defined(__MINGW32__)
# include <sys/stat.h> /* mkdir */
-# include <unistd.h> /* chdir */
int fs_dir_make(const char *path) {
return mkdir(path, 0700);
return readdir(dir);
}
-int fs_dir_change(const char *path) {
- return chdir(path);
-}
-
#endif /*! defined(_WIN32) && !defined(__MINGW32__) */