blob: 2b436002f5f25d23d2abbd3f968b79c7f0afff41 [file] [log] [blame]
Elliott Hughes13da6002025-02-03 10:42:13 -08001// Copyright (C) 2017 The Android Open Source Project
2// SPDX-License-Identifier: BSD-2-Clause
Elliott Hughes21b56eb2017-10-20 17:57:17 -07003
4#include <spawn.h>
5
6#include "header_checks.h"
7
8static void spawn_h() {
9 TYPE(posix_spawnattr_t);
10 TYPE(posix_spawn_file_actions_t);
11
12 TYPE(mode_t);
13 TYPE(pid_t);
14
15 TYPE(sigset_t);
16
17 TYPE(struct sched_param*);
18
19 MACRO(POSIX_SPAWN_RESETIDS);
20 MACRO(POSIX_SPAWN_SETPGROUP);
21 MACRO(POSIX_SPAWN_SETSCHEDPARAM);
22 MACRO(POSIX_SPAWN_SETSCHEDULER);
23 MACRO(POSIX_SPAWN_SETSIGDEF);
24 MACRO(POSIX_SPAWN_SETSIGMASK);
25
26 FUNCTION(posix_spawn, int (*f)(pid_t*, const char*, const posix_spawn_file_actions_t*, const posix_spawnattr_t*, char* const[], char* const[]));
27 FUNCTION(posix_spawn_file_actions_addclose, int (*f)(posix_spawn_file_actions_t*, int));
28 FUNCTION(posix_spawn_file_actions_adddup2, int (*f)(posix_spawn_file_actions_t*, int, int));
29 FUNCTION(posix_spawn_file_actions_addopen, int (*f)(posix_spawn_file_actions_t*, int, const char*, int, mode_t));
30 FUNCTION(posix_spawn_file_actions_destroy, int (*f)(posix_spawn_file_actions_t*));
31 FUNCTION(posix_spawn_file_actions_init, int (*f)(posix_spawn_file_actions_t*));
32 FUNCTION(posix_spawnattr_destroy, int (*f)(posix_spawnattr_t*));
33 FUNCTION(posix_spawnattr_getflags, int (*f)(const posix_spawnattr_t*, short*));
34 FUNCTION(posix_spawnattr_getpgroup, int (*f)(const posix_spawnattr_t*, pid_t*));
35 FUNCTION(posix_spawnattr_getschedparam, int (*f)(const posix_spawnattr_t*, struct sched_param*));
36 FUNCTION(posix_spawnattr_getschedpolicy, int (*f)(const posix_spawnattr_t*, int*));
37 FUNCTION(posix_spawnattr_getsigdefault, int (*f)(const posix_spawnattr_t*, sigset_t*));
38 FUNCTION(posix_spawnattr_getsigmask, int (*f)(const posix_spawnattr_t*, sigset_t*));
39 FUNCTION(posix_spawnattr_init, int (*f)(posix_spawnattr_t*));
40 FUNCTION(posix_spawnattr_setflags, int (*f)(posix_spawnattr_t*, short));
41 FUNCTION(posix_spawnattr_setpgroup, int (*f)(posix_spawnattr_t*, pid_t));
42 FUNCTION(posix_spawnattr_setschedparam, int (*f)(posix_spawnattr_t*, const struct sched_param*));
43 FUNCTION(posix_spawnattr_setsigdefault, int (*f)(posix_spawnattr_t*, const sigset_t*));
44 FUNCTION(posix_spawnattr_setsigmask, int (*f)(posix_spawnattr_t*, const sigset_t*));
45 FUNCTION(posix_spawnp, int (*f)(pid_t*, const char*, const posix_spawn_file_actions_t*, const posix_spawnattr_t*, char* const[], char* const[]));
46}