From e83dca9817614d0dc77ce1e5dc13eed44b61eb2f Mon Sep 17 00:00:00 2001 From: dzwdz Date: Tue, 4 Oct 2022 13:59:21 +0200 Subject: user/libc: camellia_open, takes cwd into account --- src/user/lib/stdlib.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/user/lib/stdlib.c') diff --git a/src/user/lib/stdlib.c b/src/user/lib/stdlib.c index c1ee217..ffa9f15 100644 --- a/src/user/lib/stdlib.c +++ b/src/user/lib/stdlib.c @@ -1,4 +1,4 @@ -#include +#include #include #include #include @@ -10,7 +10,7 @@ _Noreturn void abort(void) { int mkstemp(char *template) { // TODO randomize template - handle_t h = _syscall_open(template, strlen(template), OPEN_CREATE | OPEN_RW); + handle_t h = camellia_open(template, OPEN_CREATE | OPEN_RW); if (h < 0) { errno = -h; return -1; -- cgit v1.2.3