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 3c60f4
#ifdef X_PS
nsz b80923
C(POSIX_SPAWN_SETSCHEDPARAM)
nsz b80923
C(POSIX_SPAWN_SETSCHEDULER)
nsz 3c60f4
#endif
nsz b80923
C(POSIX_SPAWN_SETSIGDEF)
nsz b80923
C(POSIX_SPAWN_SETSIGMASK)
nsz 0ef264
{int(*p)(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 0ef264
{int(*p)(posix_spawn_file_actions_t*,int) = posix_spawn_file_actions_addclose;}
nsz 0ef264
{int(*p)(posix_spawn_file_actions_t*,int,int) = posix_spawn_file_actions_adddup2;}
nsz 0ef264
{int(*p)(posix_spawn_file_actions_t*restrict,int,const char*restrict,int,mode_t) = posix_spawn_file_actions_addopen;}
nsz 0ef264
{int(*p)(posix_spawn_file_actions_t*) = posix_spawn_file_actions_destroy;}
nsz 0ef264
{int(*p)(posix_spawn_file_actions_t*) = posix_spawn_file_actions_init;}
nsz 0ef264
{int(*p)(posix_spawnattr_t*) = posix_spawnattr_destroy;}
nsz 0ef264
{int(*p)(const posix_spawnattr_t*restrict,short*restrict) = posix_spawnattr_getflags;}
nsz 0ef264
{int(*p)(const posix_spawnattr_t*restrict,pid_t*restrict) = posix_spawnattr_getpgroup;}
nsz 0ef264
{int(*p)(posix_spawnattr_t*) = posix_spawnattr_init;}
nsz 0ef264
{int(*p)(posix_spawnattr_t*,short) = posix_spawnattr_setflags;}
nsz 0ef264
{int(*p)(posix_spawnattr_t*,pid_t) = posix_spawnattr_setpgroup;}
nsz 0ef264
{int(*p)(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 0ef264
{int(*p)(const posix_spawnattr_t*restrict,sigset_t*restrict) = posix_spawnattr_getsigdefault;}
nsz 0ef264
{int(*p)(const posix_spawnattr_t*restrict,sigset_t*restrict) = posix_spawnattr_getsigmask;}
nsz 0ef264
{int(*p)(posix_spawnattr_t*restrict,const sigset_t*restrict) = posix_spawnattr_setsigdefault;}
nsz 0ef264
{int(*p)(posix_spawnattr_t*restrict,const sigset_t*restrict) = posix_spawnattr_setsigmask;}
nsz b80923
}
nsz 3c60f4
#ifdef X_PS
nsz b80923
#include <sched.h>
nsz b80923
static void h()
nsz b80923
{
nsz 0ef264
{int(*p)(const posix_spawnattr_t*restrict,struct sched_param*restrict) = posix_spawnattr_getschedparam;}
nsz 0ef264
{int(*p)(const posix_spawnattr_t*restrict,int*restrict) = posix_spawnattr_getschedpolicy;}
nsz 0ef264
{int(*p)(posix_spawnattr_t*restrict,const struct sched_param*restrict) = posix_spawnattr_setschedparam;}
nsz 0ef264
{int(*p)(posix_spawnattr_t*,int) = posix_spawnattr_setschedpolicy;}
nsz b80923
}
nsz 3c60f4
#endif