
221220000 张三 Linux zzy 5.15.146.1-microsoft-standard-WSL2 #1 SMP Thu Jan 11 04:09:03 UTC 2024 x86_64 x86_64 x86_64 GNU/Linux 17:16:20 up 7 days, 2:13, 1 user, load average: 0.74, 0.65, 0.61
17 lines
357 B
C
17 lines
357 B
C
#ifndef __FS_H__
|
|
#define __FS_H__
|
|
|
|
#include <common.h>
|
|
|
|
#ifndef SEEK_SET
|
|
enum {SEEK_SET, SEEK_CUR, SEEK_END};
|
|
#endif
|
|
|
|
int fs_open(const char *pathname, int flags, int mode);
|
|
size_t fs_read(int fd, void *buf, size_t len);
|
|
size_t fs_write(int fd, const void *buf, size_t len);
|
|
size_t fs_lseek(int fd, size_t offset, int whence);
|
|
int fs_close(int fd);
|
|
|
|
#endif
|