more changes

This commit is contained in:
Matheus
2025-02-16 00:05:59 -03:00
parent 28a2c6ea80
commit 065711df33
2 changed files with 3 additions and 0 deletions
+2
View File
@@ -19,6 +19,8 @@ static void ctor(scache_t *cache, void *obj) {
MUTEX_INIT(&file->mutex);
file->refcount = 1;
file->offset = 0;
file->flags = 0;
file->mode = 0;
}
static file_t* newfile() {
+1
View File
@@ -40,6 +40,7 @@ static void ctor(scache_t *cache, void *obj) {
futex_t *futex = obj;
POLL_INITHEADER(&futex->pollheader);
futex->waiting = 0;
futex->waking = 0;
}
syscallret_t syscall_futex(context_t *, uint32_t *futexp, int op, uint32_t value, timespec_t *tm) {