BSD syscall#244
svc · unix #244
posix_spawn
Atomically fork + exec — creates a new process running a given program in one syscall.
Prototype
int posix_spawn(pid_t *pid, const char *path, const struct _posix_spawn_args_desc *adesc, char **argv, char **envp);Returns: int
Arguments
| Name | Type | Dir | Description |
|---|---|---|---|
| pid | pid_t | - | |
| path | const char | - | |
| adesc | const struct _posix_spawn_args_desc | - | |
| argv | char | - | |
| envp | char | - |
Version history
| XNU tag | macOS | # |
|---|---|---|
| xnu-1456.1.26 | macOS 10.6 Snow Leopard | 244 |
| xnu-1486.2.11 | — | 244 |
| xnu-1504.15.3 | — | 244 |
| xnu-1504.3.12 | — | 244 |
| xnu-1504.7.4 | — | 244 |
| xnu-1504.9.17 | — | 244 |
| xnu-1504.9.26 | — | 244 |
| xnu-1504.9.37 | — | 244 |
Notes
No prose documentation yet.