summaryrefslogtreecommitdiff
path: root/src/init/driver/ansiterm.c
diff options
context:
space:
mode:
authordzwdz2022-07-07 18:34:47 +0200
committerdzwdz2022-07-07 18:34:47 +0200
commit8dc3d7df4c73b320fa84b2e871732276a7c6e20f (patch)
tree8c0eae523e8349cdf7763e5deacd6b5e10c85f61 /src/init/driver/ansiterm.c
parentb935b0202ffeafcf775be96c95c8a67b62241a12 (diff)
shared: add a flags argument to _syscall_fs_respond
Diffstat (limited to 'src/init/driver/ansiterm.c')
-rw-r--r--src/init/driver/ansiterm.c8
1 files changed, 4 insertions, 4 deletions
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;
}
}