mirror of
https://github.com/apache/nuttx.git
synced 2026-06-06 00:14:22 +08:00
include/sys/syscall.h and syscall/: Added support for munmap() syscall.
This commit is contained in:
@@ -48,6 +48,7 @@
|
||||
"mkdir","sys/stat.h","!defined(CONFIG_DISABLE_MOUNTPOINT)","int","FAR const char*","mode_t"
|
||||
"mkfifo2","nuttx/drivers/drivers.h","defined(CONFIG_PIPES) && CONFIG_DEV_FIFO_SIZE > 0","int","FAR const char*","mode_t","size_t"
|
||||
"mmap","sys/mman.h","","FAR void*","FAR void*","size_t","int","int","int","off_t"
|
||||
"munmap","sys/mman.h","","int","FAR void*","size_t"
|
||||
"modhandle","nuttx/module.h","defined(CONFIG_MODULE)","FAR void *","FAR const char *"
|
||||
"mount","sys/mount.h","!defined(CONFIG_DISABLE_MOUNTPOINT) && defined(CONFIG_FS_READABLE)","int","const char*","const char*","const char*","unsigned long","const void*"
|
||||
"mq_close","mqueue.h","!defined(CONFIG_DISABLE_MQUEUE)","int","mqd_t"
|
||||
|
||||
|
@@ -234,6 +234,7 @@ SYSCALL_LOOKUP(up_assert, 2, STUB_up_assert)
|
||||
SYSCALL_LOOKUP(fcntl, 6, STUB_fcntl)
|
||||
SYSCALL_LOOKUP(lseek, 3, STUB_lseek)
|
||||
SYSCALL_LOOKUP(mmap, 6, STUB_mmap)
|
||||
SYSCALL_LOOKUP(munmap, 2, STUB_munmap)
|
||||
SYSCALL_LOOKUP(open, 6, STUB_open)
|
||||
SYSCALL_LOOKUP(opendir, 1, STUB_opendir)
|
||||
SYSCALL_LOOKUP(readdir, 1, STUB_readdir)
|
||||
|
||||
@@ -244,6 +244,7 @@ uintptr_t STUB_lseek(int nbr, uintptr_t parm1, uintptr_t parm2,
|
||||
uintptr_t STUB_mmap(int nbr, uintptr_t parm1, uintptr_t parm2,
|
||||
uintptr_t parm3, uintptr_t parm4, uintptr_t parm5,
|
||||
uintptr_t parm6);
|
||||
uintptr_t STUB_munmap(int nbr, uintptr_t parm1, uintptr_t parm2);
|
||||
uintptr_t STUB_open(int nbr, uintptr_t parm1, uintptr_t parm2,
|
||||
uintptr_t parm3, uintptr_t parm4, uintptr_t parm5,
|
||||
uintptr_t parm6);
|
||||
|
||||
Reference in New Issue
Block a user