isatty syscall

This commit is contained in:
Matheus
2022-08-20 12:18:54 -03:00
parent fce640c0f9
commit b3b5981f7a
6 changed files with 62 additions and 1 deletions
+9
View File
@@ -47,6 +47,15 @@ int devman_read(int *error, int dev, void* buff, size_t count, size_t offset){
}
int devman_isatty(int dev){
if(major(dev) > highestmajor)
return ENOTTY;
return majorcalls[major(dev)]->isatty(minor(dev));
}
void devman_init(){
devfs_init();