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  ...

Get Parallel and Distributed Programming Using C++ now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.