mirror of
https://github.com/Mathewnd/Astral.git
synced 2026-11-01 15:08:21 +00:00
more changes
This commit is contained in:
@@ -19,6 +19,8 @@ static void ctor(scache_t *cache, void *obj) {
|
|||||||
MUTEX_INIT(&file->mutex);
|
MUTEX_INIT(&file->mutex);
|
||||||
file->refcount = 1;
|
file->refcount = 1;
|
||||||
file->offset = 0;
|
file->offset = 0;
|
||||||
|
file->flags = 0;
|
||||||
|
file->mode = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
static file_t* newfile() {
|
static file_t* newfile() {
|
||||||
|
|||||||
@@ -40,6 +40,7 @@ static void ctor(scache_t *cache, void *obj) {
|
|||||||
futex_t *futex = obj;
|
futex_t *futex = obj;
|
||||||
POLL_INITHEADER(&futex->pollheader);
|
POLL_INITHEADER(&futex->pollheader);
|
||||||
futex->waiting = 0;
|
futex->waiting = 0;
|
||||||
|
futex->waking = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
syscallret_t syscall_futex(context_t *, uint32_t *futexp, int op, uint32_t value, timespec_t *tm) {
|
syscallret_t syscall_futex(context_t *, uint32_t *futexp, int op, uint32_t value, timespec_t *tm) {
|
||||||
|
|||||||
Reference in New Issue
Block a user