summaryrefslogtreecommitdiff
path: root/src/unistd/isatty.c
diff options
context:
space:
mode:
authorJakob Kaivo <jkk@ung.org>2019-02-23 15:22:33 -0500
committerJakob Kaivo <jkk@ung.org>2019-02-23 15:22:33 -0500
commit1221e834f49adb91eb0b7443a57274f2611459c2 (patch)
tree7afb7ed5a203ddefd5559005af7ec61d801b972e /src/unistd/isatty.c
parentf546f27d1fdb8d2663b2fbb130f53ee32cac90b0 (diff)
compile in current environment
Diffstat (limited to 'src/unistd/isatty.c')
-rw-r--r--src/unistd/isatty.c8
1 files changed, 1 insertions, 7 deletions
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)