1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 22:57:44 +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:
Sergey Bugaev 2020-05-19 20:34:45 +03:00 committed by Andreas Kling
parent f9cffda0e0
commit 7541122206
4 changed files with 5 additions and 2 deletions

View file

@ -413,8 +413,7 @@ int rmdir(const char* pathname)
int isatty(int fd)
{
struct termios dummy;
return tcgetattr(fd, &dummy) == 0;
return fcntl(fd, F_ISTTY);
}
int dup(int old_fd)