summaryrefslogtreecommitdiff
path: root/fs/tmpfs.c
diff options
context:
space:
mode:
authorAnton Kling <anton@kling.gg>2023-10-23 22:13:19 +0200
committerAnton Kling <anton@kling.gg>2023-10-23 23:36:34 +0200
commite05d72ba8f09866b768f3da7776b807072ed7b9b (patch)
treedc9a1ec45802df7c74ddc9fdd78436b23122e44a /fs/tmpfs.c
parent6458875860cde6421a06031702788d9969e0a5db (diff)
VFS/libc: Create a syscall for mkdir and add the function to libc
Diffstat (limited to 'fs/tmpfs.c')
-rw-r--r--fs/tmpfs.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/fs/tmpfs.c b/fs/tmpfs.c
index 2c5974b..575ab0c 100644
--- a/fs/tmpfs.c
+++ b/fs/tmpfs.c
@@ -47,7 +47,8 @@ void dual_pipe(int fd[2]) {
vfs_inode_t *inode = vfs_create_inode(
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 /*get_vm_object*/);
+ tmp_read, tmp_write, tmp_close, NULL /*create_directory*/,
+ NULL /*get_vm_object*/);
assert(inode);
vfs_fd_t *fd_ptr;
@@ -76,7 +77,7 @@ void pipe(int fd[2]) {
vfs_inode_t *inode = vfs_create_inode(
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 /*get_vm_object*/);
+ tmp_read, tmp_write, tmp_close, NULL/*create_directory*/, NULL /*get_vm_object*/);
assert(inode);
vfs_fd_t *fd_ptr;