From 1221e834f49adb91eb0b7443a57274f2611459c2 Mon Sep 17 00:00:00 2001 From: Jakob Kaivo Date: Sat, 23 Feb 2019 15:22:33 -0500 Subject: compile in current environment --- src/unistd/isatty.c | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) (limited to 'src/unistd/isatty.c') diff --git a/src/unistd/isatty.c b/src/unistd/isatty.c index baafa508..1b502d75 100644 --- a/src/unistd/isatty.c +++ b/src/unistd/isatty.c @@ -6,13 +6,7 @@ int isatty(int fildes) { - SCNO(scno, "isatty", 0); - int r = __libc.syscall(scno, fildes); - if (r < 0) { - errno = -r; - return 0; - } - return r; + SYSCALL("isatty", int, -1, fildes, 0, 0, 0, 0, 0); } /* POSIX(1) -- cgit v1.2.1