git://scm.lunaixsky.com
/
lunaix-os.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Framework for exporting system header to user space (#59)
[lunaix-os.git]
/
lunaix-os
/
usr
/
libc
/
src
/
posix
/
mann.c
diff --git
a/lunaix-os/usr/libc/src/posix/mann.c
b/lunaix-os/usr/libc/src/posix/mann.c
index f2fe1865fe4246e82331b5f988cdf785a0549623..1481c122a4a5ec6bbf522e07813573833219e0fe 100644
(file)
--- a/
lunaix-os/usr/libc/src/posix/mann.c
+++ b/
lunaix-os/usr/libc/src/posix/mann.c
@@
-1,6
+1,6
@@
-#include <
lunaix/
syscall.h>
-#include <
lunaix/man
n.h>
-#include <
lunaix
/types.h>
+#include <syscall.h>
+#include <
sys/mma
n.h>
+#include <
sys
/types.h>
void*
mmap(void* addr, size_t length, int proct, int flags, int fd, off_t offset)
void*
mmap(void* addr, size_t length, int proct, int flags, int fd, off_t offset)
@@
-14,11
+14,11
@@
mmap(void* addr, size_t length, int proct, int flags, int fd, off_t offset)
.offset = offset
};
.offset = offset
};
- return (void*)do_lunaix_syscall(__
SYSCALL
_sys_mmap, &mparam);
+ return (void*)do_lunaix_syscall(__
NR__lxsys
_sys_mmap, &mparam);
}
int
munmap(void* addr, size_t length)
{
}
int
munmap(void* addr, size_t length)
{
- return do_lunaix_syscall(__
SYSCALL
_munmap, addr, length);
+ return do_lunaix_syscall(__
NR__lxsys
_munmap, addr, length);
}
}