Blame src/api/spawn.c

nsz b80923
#include <spawn.h>
nsz b80923
#define T(t) (t*)0;
nsz b80923
#define C(n) switch(n){case n:;}
nsz b80923
static void f()
nsz b80923
{
nsz b80923
T(posix_spawnattr_t)
nsz b80923
T(posix_spawn_file_actions_t)
nsz b80923
T(mode_t)
nsz b80923
T(pid_t)
nsz b80923
T(sigset_t)
nsz b80923
T(struct sched_param)
nsz b80923
C(POSIX_SPAWN_RESETIDS)
nsz b80923
C(POSIX_SPAWN_SETPGROUP)
nsz b80923
C(POSIX_SPAWN_SETSCHEDPARAM)
nsz b80923
C(POSIX_SPAWN_SETSCHEDULER)
nsz b80923
C(POSIX_SPAWN_SETSIGDEF)
nsz b80923
C(POSIX_SPAWN_SETSIGMASK)
nsz b80923
int(*p_posix_spawn)(pid_t*restrict,const char*restrict,const posix_spawn_file_actions_t*,const posix_spawnattr_t*restrict,char*const[restrict],char*const[restrict]) = posix_spawn;
nsz b80923
int(*p_posix_spawn_file_actions_addclose)(posix_spawn_file_actions_t*,int) = posix_spawn_file_actions_addclose;
nsz b80923
int(*p_posix_spawn_file_actions_adddup2)(posix_spawn_file_actions_t*,int,int) = posix_spawn_file_actions_adddup2;
nsz b80923
int(*p_posix_spawn_file_actions_addopen)(posix_spawn_file_actions_t*restrict,int,const char*restrict,int,mode_t) = posix_spawn_file_actions_addopen;
nsz b80923
int(*p_posix_spawn_file_actions_destroy)(posix_spawn_file_actions_t*) = posix_spawn_file_actions_destroy;
nsz b80923
int(*p_posix_spawn_file_actions_init)(posix_spawn_file_actions_t*) = posix_spawn_file_actions_init;
nsz b80923
int(*p_posix_spawnattr_destroy)(posix_spawnattr_t*) = posix_spawnattr_destroy;
nsz b80923
int(*p_posix_spawnattr_getflags)(const posix_spawnattr_t*restrict,short*restrict) = posix_spawnattr_getflags;
nsz b80923
int(*p_posix_spawnattr_getpgroup)(const posix_spawnattr_t*restrict,pid_t*restrict) = posix_spawnattr_getpgroup;
nsz b80923
int(*p_posix_spawnattr_init)(posix_spawnattr_t*) = posix_spawnattr_init;
nsz b80923
int(*p_posix_spawnattr_setflags)(posix_spawnattr_t*,short) = posix_spawnattr_setflags;
nsz b80923
int(*p_posix_spawnattr_setpgroup)(posix_spawnattr_t*,pid_t) = posix_spawnattr_setpgroup;
nsz b80923
int(*p_posix_spawnp)(pid_t*restrict,const char*restrict,const posix_spawn_file_actions_t*,const posix_spawnattr_t*restrict,char*const[restrict],char*const[restrict]) = posix_spawnp;
nsz b80923
}
nsz b80923
#include <signal.h>
nsz b80923
static void g()
nsz b80923
{
nsz b80923
int(*p_posix_spawnattr_getsigdefault)(const posix_spawnattr_t*restrict,sigset_t*restrict) = posix_spawnattr_getsigdefault;
nsz b80923
int(*p_posix_spawnattr_getsigmask)(const posix_spawnattr_t*restrict,sigset_t*restrict) = posix_spawnattr_getsigmask;
nsz b80923
int(*p_posix_spawnattr_setsigdefault)(posix_spawnattr_t*restrict,const sigset_t*restrict) = posix_spawnattr_setsigdefault;
nsz b80923
int(*p_posix_spawnattr_setsigmask)(posix_spawnattr_t*restrict,const sigset_t*restrict) = posix_spawnattr_setsigmask;
nsz b80923
}
nsz b80923
#include <sched.h>
nsz b80923
static void h()
nsz b80923
{
nsz b80923
int(*p_posix_spawnattr_getschedparam)(const posix_spawnattr_t*restrict,struct sched_param*restrict) = posix_spawnattr_getschedparam;
nsz b80923
int(*p_posix_spawnattr_getschedpolicy)(const posix_spawnattr_t*restrict,int*restrict) = posix_spawnattr_getschedpolicy;
nsz b80923
int(*p_posix_spawnattr_setschedparam)(posix_spawnattr_t*restrict,const struct sched_param*restrict) = posix_spawnattr_setschedparam;
nsz b80923
int(*p_posix_spawnattr_setschedpolicy)(posix_spawnattr_t*,int) = posix_spawnattr_setschedpolicy;
nsz b80923
}