syscall/ and related: Fix an error found in build testing. Inconsistent conditional compilation led to link errors in certain configurations.

This commit is contained in:
Gregory Nutt
2019-08-27 16:41:07 -06:00
parent ac151e05e7
commit 5f02b0335f
6 changed files with 11 additions and 5 deletions
+1 -1
View File
@@ -63,7 +63,7 @@
"mq_timedreceive","mqueue.h","!defined(CONFIG_DISABLE_MQUEUE)","ssize_t","mqd_t","char*","size_t","FAR unsigned int*","const struct timespec*"
"mq_timedsend","mqueue.h","!defined(CONFIG_DISABLE_MQUEUE)","int","mqd_t","const char*","size_t","unsigned int","const struct timespec*"
"mq_unlink","mqueue.h","!defined(CONFIG_DISABLE_MQUEUE)","int","const char*"
"nx_task_spawn","nuttx/spawn.h","!defined(CONFIG_BUILD_KERNEL) && defined(CONFIG_LIB_SYSCALL)","int","FAR const struct spawn_syscall_parms_s *"
"nx_task_spawn","nuttx/spawn.h","defined(CONFIG_BUILD_PROTECTED)","int","FAR const struct spawn_syscall_parms_s *"
"nx_vsyslog","nuttx/syslog/syslog.h","","int","int","FAR const IPTR char*","FAR va_list*"
"on_exit","stdlib.h","defined(CONFIG_SCHED_ONEXIT)","int","CODE void (*)(int, FAR void *)","FAR void *"
"open","fcntl.h","","int","const char*","int","..."
1 _exit unistd.h void int
63 mq_timedreceive mqueue.h !defined(CONFIG_DISABLE_MQUEUE) ssize_t mqd_t
64 mq_timedsend mqueue.h !defined(CONFIG_DISABLE_MQUEUE) int mqd_t
65 mq_unlink mqueue.h !defined(CONFIG_DISABLE_MQUEUE) int const char*
66 nx_task_spawn nuttx/spawn.h !defined(CONFIG_BUILD_KERNEL) && defined(CONFIG_LIB_SYSCALL) defined(CONFIG_BUILD_PROTECTED) int FAR const struct spawn_syscall_parms_s *
67 nx_vsyslog nuttx/syslog/syslog.h int int
68 on_exit stdlib.h defined(CONFIG_SCHED_ONEXIT) int CODE void (*)(int, FAR void *)
69 open fcntl.h int const char*
+2
View File
@@ -90,7 +90,9 @@ SYSCALL_LOOKUP(sem_unlink, 1, STUB_sem_unlink)
#ifndef CONFIG_BUILD_KERNEL
SYSCALL_LOOKUP(task_create, 5, STUB_task_create)
#ifdef CONFIG_BUILD_PROTECTED
SYSCALL_LOOKUP(nx_task_spawn, 1, STUB_nx_task_spawn)
#endif
#else
SYSCALL_LOOKUP(pgalloc, 2, STUB_pgalloc)
#endif