|
nsz |
f81126 |
#include <stdlib.h>
|
|
nsz |
f81126 |
#define T(t) (t*)0;
|
|
nsz |
f81126 |
#define F(t,n) {t *y = &x.;;}
|
|
nsz |
f81126 |
#define C(n) switch(n){case n:;}
|
|
nsz |
f81126 |
static void f()
|
|
nsz |
f81126 |
{
|
|
nsz |
f81126 |
C(EXIT_FAILURE)
|
|
nsz |
f81126 |
C(EXIT_SUCCESS)
|
|
nsz |
f81126 |
C(RAND_MAX)
|
|
nsz |
f81126 |
C(MB_CUR_MAX)
|
|
nsz |
f81126 |
{void *x=NULL;}
|
|
nsz |
f81126 |
T(div_t)
|
|
nsz |
f81126 |
T(ldiv_t)
|
|
nsz |
f81126 |
T(lldiv_t)
|
|
nsz |
f81126 |
T(size_t)
|
|
nsz |
f81126 |
T(wchar_t)
|
|
nsz |
f81126 |
#ifdef _POSIX_C_SOURCE
|
|
nsz |
f81126 |
C(WEXITSTATUS(0))
|
|
nsz |
f81126 |
C(WIFEXITED(0))
|
|
nsz |
f81126 |
C(WIFSIGNALED(0))
|
|
nsz |
f81126 |
C(WIFSTOPPED(0))
|
|
nsz |
f81126 |
C(WNOHANG)
|
|
nsz |
f81126 |
C(WSTOPSIG(0))
|
|
nsz |
f81126 |
C(WTERMSIG(0))
|
|
nsz |
f81126 |
C(WUNTRACED)
|
|
nsz |
f81126 |
#endif
|
|
nsz |
f81126 |
void(*p__Exit)(int) = _Exit;
|
|
nsz |
f81126 |
void(*p_abort)(void) = abort;
|
|
nsz |
f81126 |
int(*p_abs)(int) = abs;
|
|
nsz |
f81126 |
int(*p_atexit)(void(*)(void)) = atexit;
|
|
nsz |
f81126 |
double(*p_atof)(const char*) = atof;
|
|
nsz |
f81126 |
int(*p_atoi)(const char*) = atoi;
|
|
nsz |
f81126 |
long(*p_atol)(const char*) = atol;
|
|
nsz |
f81126 |
long long(*p_atoll)(const char*) = atoll;
|
|
nsz |
f81126 |
void*(*p_bsearch)(const void*,const void*,size_t,size_t,int(*)(const void*,const void*)) = bsearch;
|
|
nsz |
f81126 |
void*(*p_calloc)(size_t,size_t) = calloc;
|
|
nsz |
f81126 |
div_t(*p_div)(int,int) = div;
|
|
nsz |
f81126 |
void(*p_exit)(int) = exit;
|
|
nsz |
f81126 |
void(*p_free)(void*) = free;
|
|
nsz |
f81126 |
char*(*p_getenv)(const char*) = getenv;
|
|
nsz |
f81126 |
int(*p_getsubopt)(char**,char*const*,char**) = getsubopt;
|
|
nsz |
f81126 |
long(*p_labs)(long) = labs;
|
|
nsz |
f81126 |
ldiv_t(*p_ldiv)(long,long) = ldiv;
|
|
nsz |
f81126 |
long long(*p_llabs)(long long) = llabs;
|
|
nsz |
f81126 |
lldiv_t(*p_lldiv)(long long,long long) = lldiv;
|
|
nsz |
f81126 |
void*(*p_malloc)(size_t) = malloc;
|
|
nsz |
f81126 |
int(*p_mblen)(const char*,size_t) = mblen;
|
|
nsz |
f81126 |
size_t(*p_mbstowcs)(wchar_t*restrict,const char*restrict,size_t) = mbstowcs;
|
|
nsz |
f81126 |
int(*p_mbtowc)(wchar_t*restrict,const char*restrict,size_t) = mbtowc;
|
|
nsz |
f81126 |
int(*p_posix_memalign)(void**,size_t,size_t) = posix_memalign;
|
|
nsz |
f81126 |
void(*p_qsort)(void*,size_t,size_t,int(*)(const void*,const void*)) = qsort;
|
|
nsz |
f81126 |
int(*p_rand)(void) = rand;
|
|
nsz |
f81126 |
void*(*p_realloc)(void*,size_t) = realloc;
|
|
nsz |
f81126 |
void(*p_srand)(unsigned) = srand;
|
|
nsz |
f81126 |
double(*p_strtod)(const char*restrict,char**restrict) = strtod;
|
|
nsz |
f81126 |
float(*p_strtof)(const char*restrict,char**restrict) = strtof;
|
|
nsz |
f81126 |
long(*p_strtol)(const char*restrict,char**restrict,int) = strtol;
|
|
nsz |
f81126 |
long double(*p_strtold)(const char*restrict,char**restrict) = strtold;
|
|
nsz |
f81126 |
long long(*p_strtoll)(const char*restrict,char**restrict,int) = strtoll;
|
|
nsz |
f81126 |
unsigned long(*p_strtoul)(const char*restrict,char**restrict,int) = strtoul;
|
|
nsz |
f81126 |
unsigned long long(*p_strtoull)(const char*restrict,char**restrict,int) = strtoull;
|
|
nsz |
f81126 |
int(*p_system)(const char*) = system;
|
|
nsz |
f81126 |
size_t(*p_wcstombs)(char*restrict,const wchar_t*restrict,size_t) = wcstombs;
|
|
nsz |
f81126 |
int(*p_wctomb)(char*,wchar_t) = wctomb;
|
|
nsz |
f81126 |
#ifdef _POSIX_C_SOURCE
|
|
nsz |
f81126 |
char*(*p_mkdtemp)(char*) = mkdtemp;
|
|
nsz |
f81126 |
int(*p_mkstemp)(char*) = mkstemp;
|
|
nsz |
f81126 |
int(*p_setenv)(const char*,const char*,int) = setenv;
|
|
nsz |
f81126 |
int(*p_unsetenv)(const char*) = unsetenv;
|
|
nsz |
f81126 |
#endif
|
|
nsz |
f81126 |
#ifdef _XOPEN_SOURCE
|
|
nsz |
f81126 |
long(*p_a64l)(const char*) = a64l;
|
|
nsz |
f81126 |
double(*p_drand48)(void) = drand48;
|
|
nsz |
f81126 |
double(*p_erand48)(unsigned short[]) = erand48;
|
|
nsz |
f81126 |
int(*p_grantpt)(int) = grantpt;
|
|
nsz |
f81126 |
char*(*p_initstate)(unsigned,char*,size_t) = initstate;
|
|
nsz |
f81126 |
long(*p_jrand48)(unsigned short[]) = jrand48;
|
|
nsz |
f81126 |
char*(*p_l64a)(long) = l64a;
|
|
nsz |
f81126 |
void(*p_lcong48)(unsigned short[]) = lcong48;
|
|
nsz |
f81126 |
long(*p_lrand48)(void) = lrand48;
|
|
nsz |
f81126 |
long(*p_mrand48)(void) = mrand48;
|
|
nsz |
f81126 |
long(*p_nrand48)(unsigned short[]) = nrand48;
|
|
nsz |
f81126 |
char*(*p_ptsname)(int) = ptsname;
|
|
nsz |
f81126 |
int(*p_putenv)(char*) = putenv;
|
|
nsz |
f81126 |
long(*p_random)(void) = random;
|
|
nsz |
f81126 |
char*(*p_realpath)(const char*restrict,char*restrict) = realpath;
|
|
nsz |
f81126 |
unsigned short*(*p_seed48)(unsigned short[]) = seed48;
|
|
nsz |
f81126 |
void(*p_setkey)(const char*) = setkey;
|
|
nsz |
f81126 |
char*(*p_setstate)(char*) = setstate;
|
|
nsz |
f81126 |
void(*p_srand48)(long) = srand48;
|
|
nsz |
f81126 |
void(*p_srandom)(unsigned) = srandom;
|
|
nsz |
f81126 |
int(*p_unlockpt)(int) = unlockpt;
|
|
nsz |
f81126 |
#endif
|
|
nsz |
f81126 |
}
|
|
nsz |
f81126 |
|
|
nsz |
f81126 |
#ifdef _XOPEN_SOURCE
|
|
nsz |
f81126 |
#include <fcntl.h>
|
|
nsz |
f81126 |
static void g()
|
|
nsz |
f81126 |
{
|
|
nsz |
f81126 |
int(*p_posix_openpt)(int) = posix_openpt;
|
|
nsz |
f81126 |
}
|
|
nsz |
f81126 |
#endif
|
|
nsz |
f81126 |
|