syscall/: Adapt the conditional compile logic on when to include the vfork() syscall proxy and stub to the logic used for vfork() itself.

This commit is contained in:
Michael Jung 2019-07-10 07:25:00 -06:00 committed by Gregory Nutt
parent ffb4f00da9
commit 6aaea06da9
3 changed files with 3 additions and 3 deletions

View File

@ -141,7 +141,7 @@
/* The following can be individually enabled */
#ifdef CONFIG_ARCH_HAVE_VFORK
#if defined(CONFIG_SCHED_WAITPID) && defined(CONFIG_ARCH_HAVE_VFORK)
# define SYS_vfork __SYS_vfork
# define __SYS_atexit (__SYS_vfork + 1)
#else

View File

@ -177,7 +177,7 @@
"unsetenv","stdlib.h","!defined(CONFIG_DISABLE_ENVIRON)","int","const char*"
"up_assert","assert.h","","void","FAR const uint8_t*","int"
#"up_assert","assert.h","","void"
"vfork","unistd.h","defined(CONFIG_ARCH_HAVE_VFORK)","pid_t"
"vfork","unistd.h","defined(CONFIG_SCHED_WAITPID) && defined(CONFIG_ARCH_HAVE_VFORK)","pid_t"
"wait","sys/wait.h","defined(CONFIG_SCHED_WAITPID) && defined(CONFIG_SCHED_HAVE_PARENT)","pid_t","int*"
"waitid","sys/wait.h","defined(CONFIG_SCHED_WAITPID) && defined(CONFIG_SCHED_HAVE_PARENT)","int","idtype_t","id_t"," FAR siginfo_t *","int"
"waitpid","sys/wait.h","defined(CONFIG_SCHED_WAITPID)","pid_t","pid_t","int*","int"

Can't render this file because it has a wrong number of fields in line 2.

View File

@ -96,7 +96,7 @@ SYSCALL_LOOKUP(up_assert, 2, STUB_up_assert)
/* The following can be individually enabled */
#ifdef CONFIG_ARCH_HAVE_VFORK
#if defined(CONFIG_SCHED_WAITPID) && defined(CONFIG_ARCH_HAVE_VFORK)
SYSCALL_LOOKUP(vfork, 0, STUB_vfork)
#endif