pipefs: prepare pipefs_open for named pipe support

This commit is contained in:
Matheus
2024-08-11 12:25:17 -03:00
parent ca2ad66dc6
commit f02a63473f
3 changed files with 62 additions and 18 deletions
+1 -1
View File
@@ -11,7 +11,7 @@ static void open(file_t *file, vnode_t *node, int flags) {
file->flags = flags;
file->offset = 0;
file->mode = 0777;
VOP_OPEN(&node, fileflagstovnodeflags(flags), &_cpu()->thread->proc->cred);
VOP_OPEN(&node, fileflagstovnodeflags(flags) | V_FFLAGS_NONBLOCKING, &_cpu()->thread->proc->cred);
}
syscallret_t syscall_pipe2(context_t *, int flags) {