17 extern t_ssize
read_file(
int fd,
void *buf, t_size count);
18 extern t_ssize
write_file(
int fd,
const void *buf, t_size count);
19 extern t_ssize
seek_file(
int fd, t_ssize offset,
int whence);
30 extern int chmod_file(
const uchar *path,
unsigned char flag);
32 extern int mkfs_file(
const uchar *path,
unsigned char part,
unsigned short alloc);
37 #define SIZE_STR "X.XM" 38 #define SIZE_STR_LEN ((unsigned int)sizeof(SIZE_STR)) 39 char *size2str(
char *str, t_size size);
unsigned char uchar
GadgetSeedの文字(列)は unsigned char 型となる
t_ssize seek_file(int fd, t_ssize offset, int whence)
ファイルアクセス位置の設定
struct st_filesystem * get_filesystem(const uchar *path)
ファイル名からファイルシステムを調べる
int stat_file(const uchar *path, FS_FILEINFO *finfo)
ファイルステータスを読み出す
int rename_file(const uchar *oldpath, const uchar *newpath)
ファイル/ディレクトリ名を変更する
t_ssize write_file(int fd, const void *buf, t_size count)
ファイルにデータを書き込む
int close_file(int fd)
ファイルを閉じる
t_size tell_file(int fd)
ファイルアクセス位置の取得
FS_DIR * opendir_file(const uchar *name)
ディレクトリを開く
int mkdir_file(const uchar *path)
ディレクトリを作成する
int closedir_file(FS_DIR *dir)
ディレクトリを閉じる
int open_file(const uchar *path, int flags)
ファイルを開く
void init_file(void)
全てのファイルディスクリプタを初期化する
int sync_file(int fd)
キャッシュされたデータをフラッシュする
int readdir_file(FS_DIR *dir, FS_FILEINFO *finfo)
ディレクトリを読み出す
uchar * get_last_filename(uchar *filename, const uchar *fullpath, unsigned int len)
ファイルパスからファイル名のみを取得する
int getfree_file(const uchar *path, unsigned long *sect, void **fs)
論理ドライブの未使用クラスタ数を取得する
t_ssize read_file(int fd, void *buf, t_size count)
ファイルからデータを読み出す
uchar * get_filename_extension(uchar *ext, const uchar *filename, unsigned int len)
ファイル拡張子を取得する
int unlink_file(const uchar *path)
ファイルを消去する