#ifndef IO_H
#define IO_H
struct stat_struct;
int do_open(const char *fs_filename, int flags);
int do_close(int fd);
int do_dup(int fd);
int do_dup2(int fd, int newfd);
int do_pipe(int fs_fd[2]);
int do_fcntl(int fd, int cmd, long arg);
int do_read(int fd, char *fs_buf, unsigned int count);
int do_write(int fd, const char *fs_buf, unsigned int count);
int do_seek(int fd, long offset, int whence);
int do_stat(int fd, struct stat_struct *fs_buf);
int do_ioctl(int fd, int request, void *fs_arg);
int do_create(const char *fs_filename);
int do_remove(const char *fs_filename);
int do_mkdir(const char *fs_filename);
int do_rmdir(const char *fs_filename);
int do_rename(const char *fs_oldname, const char *fs_newname);
int do_mount(const char *fs_device, const char *fs_dir, const char *fs_type);
int do_umount(const char *fs_dir);
int do_reboot(int cmd);
int do_gettime(long *fs_time);
int do_mmap(void *addr, unsigned int len, int prot, int fd, long off);
int do_munmap(void *addr, unsigned int len);
int do_mprotect(void *addr, unsigned int len, int prot);
#endif