Mercurial > hg > CbC > CbC_xv6
diff src/defs.h @ 30:6a7ab1d7001c
fix
author | mir3636 |
---|---|
date | Fri, 18 Jan 2019 11:50:48 +0900 |
parents | 1a64b5645cdd |
children | 96a5833d0d82 |
line wrap: on
line diff
--- a/src/defs.h Fri Jan 18 10:04:37 2019 +0900 +++ b/src/defs.h Fri Jan 18 11:50:48 2019 +0900 @@ -59,6 +59,7 @@ void consoleinit(void); void cprintf(char*, ...); void consoleintr(int(*)(void)); +__code cbc_panic(char*) __attribute__((noreturn)); void panic(char*) __attribute__((noreturn)); // exec.c @@ -69,6 +70,7 @@ void fileclose(struct file*); struct file* filedup(struct file*); void fileinit(void); +__code cbc_fileread (struct file*, char*, int, __code (*)(int)); int fileread(struct file*, char*, int n); int filestat(struct file*, struct stat*); int filewrite(struct file*, char*, int n); @@ -88,6 +90,7 @@ int namecmp(const char*, const char*); struct inode* namei(char*); struct inode* nameiparent(char*, char*); +__code cbc_readi (struct inode*, char*, uint, uint, __code (*)(int)); int readi(struct inode*, char*, uint, uint); void stati(struct inode*, struct stat*); int writei(struct inode*, char*, uint, uint);