From 99e5c8e046dfff53c331eb35394bfbcab4629fd0 Mon Sep 17 00:00:00 2001 From: Anton Kling Date: Fri, 17 Nov 2023 21:24:33 +0100 Subject: Kernel: Add isatty syscall --- kernel/socket.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'kernel/socket.c') diff --git a/kernel/socket.c b/kernel/socket.c index ebc83a9..1922a93 100644 --- a/kernel/socket.c +++ b/kernel/socket.c @@ -90,7 +90,7 @@ handle_incoming_tcp_connection(u8 ip[4], u16 n_port, NULL /*stat*/); vfs_fd_t *fd; - int n = vfs_create_fd(O_RDWR | O_NONBLOCK, 0, inode, &fd); + int n = vfs_create_fd(O_RDWR | O_NONBLOCK, 0, 0 /*is_tty*/, inode, &fd); fd->reference_count++; s->incoming_fd = fd; @@ -282,7 +282,7 @@ int socket(int domain, int type, int protocol) { NULL /*truncate*/, NULL /*stat*/); vfs_fd_t *fd; - int n = vfs_create_fd(O_RDWR | O_NONBLOCK, 0, inode, &fd); + int n = vfs_create_fd(O_RDWR | O_NONBLOCK, 0, 0/*is_tty*/, inode, &fd); new_socket->domain = domain; new_socket->type = type; -- cgit v1.2.3