mirror of
https://github.com/fergalmoran/ladybird.git
synced 2026-04-23 21:14:31 +00:00
Kernel+LibC: Switch isatty() to use a fcntl()
We would want it to work with only stdio pledged.
This commit is contained in:
committed by
Andreas Kling
parent
f9cffda0e0
commit
7541122206
@@ -1845,6 +1845,8 @@ int Process::sys$fcntl(int fd, int cmd, u32 arg)
|
||||
case F_SETFL:
|
||||
description->set_file_flags(arg);
|
||||
break;
|
||||
case F_ISTTY:
|
||||
return description->is_tty();
|
||||
default:
|
||||
return -EINVAL;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user