From 8dc3d7df4c73b320fa84b2e871732276a7c6e20f Mon Sep 17 00:00:00 2001 From: dzwdz Date: Thu, 7 Jul 2022 18:34:47 +0200 Subject: shared: add a flags argument to _syscall_fs_respond --- src/init/driver/ansiterm.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/init/driver/ansiterm.c') diff --git a/src/init/driver/ansiterm.c b/src/init/driver/ansiterm.c index 2d8ef1f..4d98972 100644 --- a/src/init/driver/ansiterm.c +++ b/src/init/driver/ansiterm.c @@ -79,22 +79,22 @@ void ansiterm_drv(void) { switch (res.op) { case VFSOP_OPEN: if (res.flags & OPEN_CREATE) { - _syscall_fs_respond(NULL, -1); + _syscall_fs_respond(NULL, -1, 0); break; } // TODO check path - _syscall_fs_respond(NULL, 1); + _syscall_fs_respond(NULL, 1, 0); break; case VFSOP_WRITE: for (size_t i = 0; i < res.len; i++) in_char(buf[i]); /* if (pendingFlush) */ flush(); - _syscall_fs_respond(NULL, res.len); + _syscall_fs_respond(NULL, res.len, 0); break; default: - _syscall_fs_respond(NULL, -1); + _syscall_fs_respond(NULL, -1, 0); break; } } -- cgit v1.2.3