diff options
author | Anton Kling <anton@kling.gg> | 2023-11-17 21:24:33 +0100 |
---|---|---|
committer | Anton Kling <anton@kling.gg> | 2023-11-17 21:27:26 +0100 |
commit | 99e5c8e046dfff53c331eb35394bfbcab4629fd0 (patch) | |
tree | 690994f164306688bfb3346f218c79301c0f0452 /kernel/socket.c | |
parent | 6723c96863425bda541e321127f6944bf008446a (diff) |
Kernel: Add isatty syscall
Diffstat (limited to 'kernel/socket.c')
-rw-r--r-- | kernel/socket.c | 4 |
1 files changed, 2 insertions, 2 deletions
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; |