summaryrefslogtreecommitdiff
path: root/src/user/app/iochk/iochk.c
diff options
context:
space:
mode:
authordzwdz2022-10-04 13:59:21 +0200
committerdzwdz2022-10-04 13:59:21 +0200
commite83dca9817614d0dc77ce1e5dc13eed44b61eb2f (patch)
tree71bcb994d9cb4199cb002d39c06769f38be1ece2 /src/user/app/iochk/iochk.c
parent710e9b2b5c16f74f66420c66d12455ad518d42c7 (diff)
user/libc: camellia_open, takes cwd into account
Diffstat (limited to 'src/user/app/iochk/iochk.c')
-rw-r--r--src/user/app/iochk/iochk.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/user/app/iochk/iochk.c b/src/user/app/iochk/iochk.c
index 92975be..e4b0346 100644
--- a/src/user/app/iochk/iochk.c
+++ b/src/user/app/iochk/iochk.c
@@ -1,5 +1,5 @@
#include <assert.h>
-#include <camellia/flags.h>
+#include <camellia.h>
#include <camellia/syscalls.h>
#include <stdbool.h>
#include <stdio.h>
@@ -85,7 +85,7 @@ int main(int argc, char **argv) {
for (; optind < argc; optind++) {
const char *path = argv[optind];
verbosef("checking %s...\n", path);
- handle_t h = _syscall_open(path, strlen(path), OPEN_READ);
+ handle_t h = camellia_open(path, OPEN_READ);
if (h < 0) {
eprintf("couldn't open %s", path);
continue;