summaryrefslogtreecommitdiff
path: root/kernel/fs/tmpfs.c
diff options
context:
space:
mode:
authorAnton Kling <anton@kling.gg>2023-11-17 21:24:33 +0100
committerAnton Kling <anton@kling.gg>2023-11-17 21:27:26 +0100
commit99e5c8e046dfff53c331eb35394bfbcab4629fd0 (patch)
tree690994f164306688bfb3346f218c79301c0f0452 /kernel/fs/tmpfs.c
parent6723c96863425bda541e321127f6944bf008446a (diff)
Kernel: Add isatty syscall
Diffstat (limited to 'kernel/fs/tmpfs.c')
-rw-r--r--kernel/fs/tmpfs.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/kernel/fs/tmpfs.c b/kernel/fs/tmpfs.c
index 0e82a16..d213005 100644
--- a/kernel/fs/tmpfs.c
+++ b/kernel/fs/tmpfs.c
@@ -52,7 +52,7 @@ void dual_pipe(int fd[2]) {
assert(inode);
vfs_fd_t *fd_ptr;
- fd[i] = vfs_create_fd(O_RDWR | O_NONBLOCK, 0, inode, &fd_ptr);
+ fd[i] = vfs_create_fd(O_RDWR | O_NONBLOCK, 0, 0/*is_tty*/, inode, &fd_ptr);
assert(-1 != fd[i]);
}
vfs_inode_t *f_inode = get_current_task()->file_descriptors[fd[0]]->inode;
@@ -78,11 +78,11 @@ void pipe(int fd[2]) {
0 /*inode_num*/, 0 /*type*/, has_data, can_write, is_open,
internal_object, 0 /*file_size*/, NULL /*open*/, NULL /*create_file*/,
tmp_read, tmp_write, tmp_close, NULL /*create_directory*/,
- NULL /*get_vm_object*/, NULL /*truncate*/, NULL/*stat*/);
+ NULL /*get_vm_object*/, NULL /*truncate*/, NULL /*stat*/);
assert(inode);
vfs_fd_t *fd_ptr;
- fd[i] = vfs_create_fd(O_RDWR, 0, inode, &fd_ptr);
+ fd[i] = vfs_create_fd(O_RDWR, 0, 0 /*is_tty*/, inode, &fd_ptr);
assert(-1 != fd[i]);
}
vfs_inode_t *f_inode = get_current_task()->file_descriptors[fd[0]]->inode;