summaryrefslogtreecommitdiff
path: root/nuttx/include/sys
diff options
context:
space:
mode:
authorGregory Nutt <gnutt@nuttx.org>2014-09-12 12:47:20 -0600
committerGregory Nutt <gnutt@nuttx.org>2014-09-12 12:47:20 -0600
commit6f24cca893d475106749cedaa10c0bcf70a6a746 (patch)
tree86fb02f14632ac86b4922d53e2dfbc89a12d193c /nuttx/include/sys
parent7050517c635715a3303d3cb25ca21e65622c72d5 (diff)
downloadnuttx-6f24cca893d475106749cedaa10c0bcf70a6a746.tar.gz
nuttx-6f24cca893d475106749cedaa10c0bcf70a6a746.tar.bz2
nuttx-6f24cca893d475106749cedaa10c0bcf70a6a746.zip
exevc, execvl, posix_spawn, and posix_spawnp were not properly integrated as system calls.
Diffstat (limited to 'nuttx/include/sys')
-rw-r--r--nuttx/include/sys/syscall.h20
1 files changed, 10 insertions, 10 deletions
diff --git a/nuttx/include/sys/syscall.h b/nuttx/include/sys/syscall.h
index 13b193045..6c936b04f 100644
--- a/nuttx/include/sys/syscall.h
+++ b/nuttx/include/sys/syscall.h
@@ -142,29 +142,29 @@
# ifdef CONFIG_SCHED_HAVE_PARENT
# define SYS_wait (__SYS_waitpid+1)
# define SYS_waitid (__SYS_waitpid+2)
-# define __SYS_posixspawn (__SYS_waitpid+3)
+# define __SYS_posix_spawn (__SYS_waitpid+3)
# else
-# define __SYS_posixspawn (__SYS_waitpid+1)
+# define __SYS_posix_spawn (__SYS_waitpid+1)
#endif
#else
-# define __SYS_posixspawn __SYS_waitpid
+# define __SYS_posix_spawn __SYS_waitpid
#endif
/* The following can only be defined if we are configured to execute
* programs from a file system.
*/
-#if defined(CONFIG_BINFMT_DISABLE) && defined(CONFIG_LIBC_EXECFUNCS)
+#if !defined(CONFIG_BINFMT_DISABLE) && defined(CONFIG_LIBC_EXECFUNCS)
# ifdef CONFIG_BINFMT_EXEPATH
-# define SYS_posixspawnp __SYS_posixspawn
+# define SYS_posix_spawnp __SYS_posix_spawn
# else
-# define SYS_posixspawn __SYS_posixspawn
+# define SYS_posix_spawn __SYS_posix_spawn
# endif
-# define SYS_execv (__SYS_posixspawn+1)
-# define SYS_execl (__SYS_posixspawn+2)
-# define __SYS_signals (__SYS_posixspawn+3)
+# define SYS_execv (__SYS_posix_spawn+1)
+# define SYS_execl (__SYS_posix_spawn+2)
+# define __SYS_signals (__SYS_posix_spawn+3)
#else
-# define __SYS_signals __SYS_posixspawn
+# define __SYS_signals __SYS_posix_spawn
#endif
/* The following are only defined is signals are supported in the NuttX