src/libc/spawn.c
raw| 1 | /* SPDX-License-Identifier: LGPL-2.1-or-later */ |
| 2 | |
| 3 | #include <spawn.h> |
| 4 | |
| 5 | #include "libc-shim.h" |
| 6 | |
| 7 | DEFINE_LIBC_SHIM(pidfd_spawn, int, |
| 8 | pid_t *restrict, pidfd, |
| 9 | const char *restrict, path, |
| 10 | const posix_spawn_file_actions_t *restrict, file_actions, |
| 11 | const posix_spawnattr_t *restrict, attrp, |
| 12 | char *const *restrict, argv, |
| 13 | char *const *restrict, envp) |
| 14 | |
| 15 | DEFINE_LIBC_SHIM(posix_spawnattr_setcgroup_np, int, |
| 16 | posix_spawnattr_t *, attr, |
| 17 | int, cgroup) |