Files
NJU_PA/nanos-lite/include/fs.h
tracer-ics2023 ffcd9fbbab > compile NEMU
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
 12:26:49 up 6 days, 21:24,  1 user,  load average: 0.72, 0.73, 0.62
2024-09-24 12:26:53 +08:00

17 lines
362 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