Mercurial > hg > Members > innparusu > xv6-rpi
comparison src/defs.h @ 30:6a7ab1d7001c
fix
author | mir3636 |
---|---|
date | Fri, 18 Jan 2019 11:50:48 +0900 |
parents | 1a64b5645cdd |
children | 96a5833d0d82 |
comparison
equal
deleted
inserted
replaced
29:a672d603ccb2 | 30:6a7ab1d7001c |
---|---|
57 | 57 |
58 // console.c | 58 // console.c |
59 void consoleinit(void); | 59 void consoleinit(void); |
60 void cprintf(char*, ...); | 60 void cprintf(char*, ...); |
61 void consoleintr(int(*)(void)); | 61 void consoleintr(int(*)(void)); |
62 __code cbc_panic(char*) __attribute__((noreturn)); | |
62 void panic(char*) __attribute__((noreturn)); | 63 void panic(char*) __attribute__((noreturn)); |
63 | 64 |
64 // exec.c | 65 // exec.c |
65 int exec(char*, char**); | 66 int exec(char*, char**); |
66 | 67 |
67 // file.c | 68 // file.c |
68 struct file* filealloc(void); | 69 struct file* filealloc(void); |
69 void fileclose(struct file*); | 70 void fileclose(struct file*); |
70 struct file* filedup(struct file*); | 71 struct file* filedup(struct file*); |
71 void fileinit(void); | 72 void fileinit(void); |
73 __code cbc_fileread (struct file*, char*, int, __code (*)(int)); | |
72 int fileread(struct file*, char*, int n); | 74 int fileread(struct file*, char*, int n); |
73 int filestat(struct file*, struct stat*); | 75 int filestat(struct file*, struct stat*); |
74 int filewrite(struct file*, char*, int n); | 76 int filewrite(struct file*, char*, int n); |
75 | 77 |
76 // fs.c | 78 // fs.c |
86 void iunlockput(struct inode*); | 88 void iunlockput(struct inode*); |
87 void iupdate(struct inode*); | 89 void iupdate(struct inode*); |
88 int namecmp(const char*, const char*); | 90 int namecmp(const char*, const char*); |
89 struct inode* namei(char*); | 91 struct inode* namei(char*); |
90 struct inode* nameiparent(char*, char*); | 92 struct inode* nameiparent(char*, char*); |
93 __code cbc_readi (struct inode*, char*, uint, uint, __code (*)(int)); | |
91 int readi(struct inode*, char*, uint, uint); | 94 int readi(struct inode*, char*, uint, uint); |
92 void stati(struct inode*, struct stat*); | 95 void stati(struct inode*, struct stat*); |
93 int writei(struct inode*, char*, uint, uint); | 96 int writei(struct inode*, char*, uint, uint); |
94 | 97 |
95 // ide.c | 98 // ide.c |