mirror of
https://github.com/apache/nuttx.git
synced 2026-05-26 02:36:11 +08:00
Create a build structure that will (eventually) support using the VFS to manage named semaphores
This commit is contained in:
+3
-3
@@ -99,13 +99,13 @@
|
||||
"sched_yield","sched.h","","int"
|
||||
"seekdir","dirent.h","CONFIG_NFILE_DESCRIPTORS > 0","void","FAR DIR*","off_t"
|
||||
"select","sys/select.h","!defined(CONFIG_DISABLE_POLL) && (CONFIG_NSOCKET_DESCRIPTORS > 0 || CONFIG_NFILE_DESCRIPTORS > 0)","int","int","FAR fd_set*","FAR fd_set*","FAR fd_set*","FAR struct timeval*"
|
||||
"sem_close","semaphore.h","","int","FAR sem_t*"
|
||||
"sem_close","semaphore.h","defined(CONFIG_FS_NAMED_SEMAPHORES)","int","FAR sem_t*"
|
||||
"sem_destroy","semaphore.h","","int","FAR sem_t*"
|
||||
"sem_open","semaphore.h","","FAR sem_t*","FAR const char*","int","..."
|
||||
"sem_open","semaphore.h","defined(CONFIG_FS_NAMED_SEMAPHORES)","FAR sem_t*","FAR const char*","int","..."
|
||||
"sem_post","semaphore.h","","int","FAR sem_t*"
|
||||
"sem_timedwait","semaphore.h","","int","FAR sem_t*","FAR const struct timespec *"
|
||||
"sem_trywait","semaphore.h","","int","FAR sem_t*"
|
||||
"sem_unlink","semaphore.h","","int","FAR const char*"
|
||||
"sem_unlink","semaphore.h","defined(CONFIG_FS_NAMED_SEMAPHORES)","int","FAR const char*"
|
||||
"sem_wait","semaphore.h","","int","FAR sem_t*"
|
||||
"send","sys/socket.h","CONFIG_NSOCKET_DESCRIPTORS > 0 && defined(CONFIG_NET)","ssize_t","int","FAR const void*","size_t","int"
|
||||
"sendfile","sys/sendfile.h","CONFIG_NFILE_DESCRIPTORS > 0 && defined(CONFIG_NET_SENDFILE)","ssize_t","int","int","FAR off_t*","size_t"
|
||||
|
||||
|
@@ -56,15 +56,24 @@ SYSCALL_LOOKUP(sched_setparam, 2, STUB_sched_setparam)
|
||||
SYSCALL_LOOKUP(sched_setscheduler, 3, STUB_sched_setscheduler)
|
||||
SYSCALL_LOOKUP(sched_unlock, 0, STUB_sched_unlock)
|
||||
SYSCALL_LOOKUP(sched_yield, 0, STUB_sched_yield)
|
||||
SYSCALL_LOOKUP(sem_close, 1, STUB_sem_close)
|
||||
SYSCALL_LOOKUP(set_errno, 1, STUB_set_errno)
|
||||
|
||||
/* Semaphores */
|
||||
|
||||
SYSCALL_LOOKUP(sem_destroy, 2, STUB_sem_destroy)
|
||||
SYSCALL_LOOKUP(sem_open, 6, STUB_sem_open)
|
||||
SYSCALL_LOOKUP(sem_post, 1, STUB_sem_post)
|
||||
SYSCALL_LOOKUP(sem_timedwait, 2, STUB_sem_timedwait)
|
||||
SYSCALL_LOOKUP(sem_trywait, 1, STUB_sem_trywait)
|
||||
SYSCALL_LOOKUP(sem_unlink, 1, STUB_sem_unlink)
|
||||
SYSCALL_LOOKUP(sem_wait, 1, STUB_sem_wait)
|
||||
SYSCALL_LOOKUP(set_errno, 1, STUB_set_errno)
|
||||
|
||||
/* Named semaphores */
|
||||
|
||||
#ifdef defined(CONFIG_FS_NAMED_SEMAPHORES)
|
||||
SYSCALL_LOOKUP(sem_open, 6, STUB_sem_open)
|
||||
SYSCALL_LOOKUP(sem_close, 1, STUB_sem_close)
|
||||
SYSCALL_LOOKUP(sem_unlink, 1, STUB_sem_unlink)
|
||||
#endif
|
||||
|
||||
#ifndef CONFIG_BUILD_KERNEL
|
||||
SYSCALL_LOOKUP(task_create, 5, STUB_task_create)
|
||||
#else
|
||||
|
||||
Reference in New Issue
Block a user