LibC: isatty() should return 1 for success, 0 for error

This commit is contained in:
Andreas Kling 2019-11-17 20:11:56 +01:00
commit 5eef2f78b0
Notes: sideshowbarker 2024-07-19 11:10:21 +09:00

View file

@ -331,7 +331,7 @@ int rmdir(const char* pathname)
int isatty(int fd)
{
struct termios dummy;
return tcgetattr(fd, &dummy);
return tcgetattr(fd, &dummy) == 0;
}
int getdtablesize()