summaryrefslogtreecommitdiff
path: root/src/user/app/init
diff options
context:
space:
mode:
Diffstat (limited to 'src/user/app/init')
-rw-r--r--src/user/app/init/driver/ansiterm.c2
-rw-r--r--src/user/app/init/driver/termcook.c4
2 files changed, 3 insertions, 3 deletions
diff --git a/src/user/app/init/driver/ansiterm.c b/src/user/app/init/driver/ansiterm.c
index b5d3772..5daab41 100644
--- a/src/user/app/init/driver/ansiterm.c
+++ b/src/user/app/init/driver/ansiterm.c
@@ -20,7 +20,7 @@ static void flush(void) {
/* we have to do multiple write() calls if we're behind a shitty passthrough fs
* i don't like this either */
while (off < sizeof(vga))
- off += _syscall_write(vga_fd, (void*)vga + off, sizeof(vga) - off, off);
+ off += _syscall_write(vga_fd, (void*)vga + off, sizeof(vga) - off, off, 0);
dirty = false;
pendingFlush = false;
}
diff --git a/src/user/app/init/driver/termcook.c b/src/user/app/init/driver/termcook.c
index 3dc6f32..83b46be 100644
--- a/src/user/app/init/driver/termcook.c
+++ b/src/user/app/init/driver/termcook.c
@@ -6,7 +6,7 @@
static void w_output(handle_t output, const char *buf, size_t len) {
size_t pos = 0;
while (pos < len) {
- int ret = _syscall_write(output, buf + pos, len - pos, pos);
+ int ret = _syscall_write(output, buf + pos, len - pos, pos, 0);
if (ret < 0) break;
pos += ret;
}
@@ -33,7 +33,7 @@ static void line_editor(handle_t input, handle_t output) {
w_output(output, linebuf, linepos);
linepos = 0;
} else {
- _syscall_write(output, NULL, 0, 0); // eof
+ _syscall_write(output, NULL, 0, 0, 0); // eof
}
break;
case '\n':