summaryrefslogtreecommitdiff
path: root/kernel/syscalls/isatty.c
diff options
context:
space:
mode:
Diffstat (limited to 'kernel/syscalls/isatty.c')
-rw-r--r--kernel/syscalls/isatty.c14
1 files changed, 0 insertions, 14 deletions
diff --git a/kernel/syscalls/isatty.c b/kernel/syscalls/isatty.c
deleted file mode 100644
index de3e918..0000000
--- a/kernel/syscalls/isatty.c
+++ /dev/null
@@ -1,14 +0,0 @@
-#include <errno.h>
-#include <fs/vfs.h>
-#include <syscalls.h>
-
-int syscall_isatty(int fd) {
- vfs_fd_t *fd_ptr = get_vfs_fd(fd, NULL);
- if (!fd_ptr) {
- return -EBADF;
- }
- if (!fd_ptr->is_tty) {
- return -ENOTTY;
- }
- return 1;
-}