mirror of
https://github.com/Mathewnd/Astral.git
synced 2026-10-29 13:48:21 +00:00
syscalls: fix for os-test
This commit is contained in:
@@ -17,11 +17,13 @@ static void open(file_t *file, vnode_t *node, int flags) {
|
||||
}
|
||||
|
||||
syscallret_t syscall_pipe2(context_t *, int flags) {
|
||||
__assert((flags & ~(O_CLOEXEC | O_NONBLOCK)) == 0);
|
||||
syscallret_t ret = {
|
||||
.ret = -1
|
||||
};
|
||||
|
||||
if (flags & ~(O_CLOEXEC | O_NONBLOCK))
|
||||
printf("pipe2: unknown %x\n", flags);
|
||||
|
||||
vnode_t *node = NULL;
|
||||
int readfd, writefd;
|
||||
file_t *readfile = NULL;
|
||||
|
||||
Reference in New Issue
Block a user