forked from Bananymous/banan-os
LibC: Fix mmap()
mmap() did not pass fildes to the syscall structure.
This commit is contained in:
parent
db5d6a7f80
commit
d54c6b7f6b
|
@ -9,6 +9,7 @@ void* mmap(void* addr, size_t len, int prot, int flags, int fildes, off_t off)
|
||||||
.len = len,
|
.len = len,
|
||||||
.prot = prot,
|
.prot = prot,
|
||||||
.flags = flags,
|
.flags = flags,
|
||||||
|
.fildes = fildes,
|
||||||
.off = off
|
.off = off
|
||||||
};
|
};
|
||||||
long ret = syscall(SYS_MMAP, &args);
|
long ret = syscall(SYS_MMAP, &args);
|
||||||
|
|
Loading…
Reference in New Issue