devman and vfs: check if a function is not implemented before calling

This commit is contained in:
Matheus
2022-10-25 19:27:47 -03:00
parent 8ed219638b
commit 9dd308599b
8 changed files with 37 additions and 37 deletions
+1 -5
View File
@@ -121,10 +121,6 @@ int write(int* error, int minor, void* buff, size_t count, size_t offset){
return count;
}
int isatty(int minor){
return ENOTTY;
}
static int isseekable(int minor, size_t* max){
if(minor >= fbcount)
@@ -201,7 +197,7 @@ static map(int minor, void* addr, size_t len, size_t offset, size_t mmuflags){
}
static devcalls calls = {
read, write, isatty, isseekable, ioctl, NULL, map
read, write, NULL, isseekable, ioctl, NULL, map
};