O'Reilly logo

Parallel and Distributed Programming Using C++ by Tracey Hughes, Cameron Hughes

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Appendix B. System Interfaces

28273 NAME28274       posix_spawn, posix_spawnp—spawn a process (ADVANCED REALTIME)

28275 SYNOPSIS

28276 SPN   #include <spawn.h>

28277       int posix_spawn (pid_t *restrict pid, const char *restrict path,
28278           const posix_spawn_file_actions_t * file_actions,
28279           const posix_spawnattr_t *restrict attrp,
28280           char *const argv[restrict], char *const envp[restrict]);
28281       int posix_spawnp (pid_t *restrict pid, const char *restrict file,
28282           const posix_spawn_file_actions_t * file_actions,
28283           const posix_spawnattr_t *restrict attrp,
28284           char *const argv[restrict], char * const envp[restrict]);
28285

28286 DESCRIPTION28287       The posix_spawn() and posix_spawnp() functions shall create a new process (child process) from28288       the specified process image. The new process image shall be constructed from a regular28289       executable file called the new process image file.28290       When a C program is executed as the result of this call, it shall be entered as a C-language28291       function call as follows:28292       int main (int  ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required