|
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:;}
|
|
Szabolcs Nagy |
338079 |
#define I(t,e) {t x[sizeof(t)==sizeof(e)] = {e};}
|
|
nsz |
f81126 |
static void f()
|
|
nsz |
f81126 |
{
|
|
nsz |
f81126 |
C(EXIT_FAILURE)
|
|
nsz |
f81126 |
C(EXIT_SUCCESS)
|
|
nsz |
f81126 |
C(RAND_MAX)
|
|
Szabolcs Nagy |
338079 |
I(size_t,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 |
0ef264 |
{void(*p)(int) = _Exit;}
|
|
nsz |
0ef264 |
{void(*p)(void) = abort;}
|
|
nsz |
0ef264 |
{int(*p)(int) = abs;}
|
|
nsz |
0ef264 |
{int(*p)(void(*)(void)) = atexit;}
|
|
nsz |
0ef264 |
{double(*p)(const char*) = atof;}
|
|
nsz |
0ef264 |
{int(*p)(const char*) = atoi;}
|
|
nsz |
0ef264 |
{long(*p)(const char*) = atol;}
|
|
nsz |
0ef264 |
{long long(*p)(const char*) = atoll;}
|
|
nsz |
0ef264 |
{void*(*p)(const void*,const void*,size_t,size_t,int(*)(const void*,const void*)) = bsearch;}
|
|
nsz |
0ef264 |
{void*(*p)(size_t,size_t) = calloc;}
|
|
nsz |
0ef264 |
{div_t(*p)(int,int) = div;}
|
|
nsz |
0ef264 |
{void(*p)(int) = exit;}
|
|
nsz |
0ef264 |
{void(*p)(void*) = free;}
|
|
nsz |
0ef264 |
{char*(*p)(const char*) = getenv;}
|
|
nsz |
0ef264 |
{int(*p)(char**,char*const*,char**) = getsubopt;}
|
|
nsz |
0ef264 |
{long(*p)(long) = labs;}
|
|
nsz |
0ef264 |
{ldiv_t(*p)(long,long) = ldiv;}
|
|
nsz |
0ef264 |
{long long(*p)(long long) = llabs;}
|
|
nsz |
0ef264 |
{lldiv_t(*p)(long long,long long) = lldiv;}
|
|
nsz |
0ef264 |
{void*(*p)(size_t) = malloc;}
|
|
nsz |
0ef264 |
{int(*p)(const char*,size_t) = mblen;}
|
|
nsz |
0ef264 |
{size_t(*p)(wchar_t*restrict,const char*restrict,size_t) = mbstowcs;}
|
|
nsz |
0ef264 |
{int(*p)(wchar_t*restrict,const char*restrict,size_t) = mbtowc;}
|
|
nsz |
0ef264 |
{int(*p)(void**,size_t,size_t) = posix_memalign;}
|
|
nsz |
0ef264 |
{void(*p)(void*,size_t,size_t,int(*)(const void*,const void*)) = qsort;}
|
|
nsz |
0ef264 |
{int(*p)(void) = rand;}
|
|
nsz |
0ef264 |
{void*(*p)(void*,size_t) = realloc;}
|
|
nsz |
0ef264 |
{void(*p)(unsigned) = srand;}
|
|
nsz |
0ef264 |
{double(*p)(const char*restrict,char**restrict) = strtod;}
|
|
nsz |
0ef264 |
{float(*p)(const char*restrict,char**restrict) = strtof;}
|
|
nsz |
0ef264 |
{long(*p)(const char*restrict,char**restrict,int) = strtol;}
|
|
nsz |
0ef264 |
{long double(*p)(const char*restrict,char**restrict) = strtold;}
|
|
nsz |
0ef264 |
{long long(*p)(const char*restrict,char**restrict,int) = strtoll;}
|
|
nsz |
0ef264 |
{unsigned long(*p)(const char*restrict,char**restrict,int) = strtoul;}
|
|
nsz |
0ef264 |
{unsigned long long(*p)(const char*restrict,char**restrict,int) = strtoull;}
|
|
nsz |
0ef264 |
{int(*p)(const char*) = system;}
|
|
nsz |
0ef264 |
{size_t(*p)(char*restrict,const wchar_t*restrict,size_t) = wcstombs;}
|
|
nsz |
0ef264 |
{int(*p)(char*,wchar_t) = wctomb;}
|
|
nsz |
f81126 |
#ifdef _POSIX_C_SOURCE
|
|
nsz |
0ef264 |
{char*(*p)(char*) = mkdtemp;}
|
|
nsz |
0ef264 |
{int(*p)(char*) = mkstemp;}
|
|
nsz |
0ef264 |
{int(*p)(const char*,const char*,int) = setenv;}
|
|
nsz |
0ef264 |
{int(*p)(const char*) = unsetenv;}
|
|
nsz |
f81126 |
#endif
|
|
nsz |
f81126 |
#ifdef _XOPEN_SOURCE
|
|
nsz |
0ef264 |
{long(*p)(const char*) = a64l;}
|
|
nsz |
0ef264 |
{double(*p)(void) = drand48;}
|
|
nsz |
0ef264 |
{double(*p)(unsigned short[]) = erand48;}
|
|
nsz |
0ef264 |
{int(*p)(int) = grantpt;}
|
|
nsz |
0ef264 |
{char*(*p)(unsigned,char*,size_t) = initstate;}
|
|
nsz |
0ef264 |
{long(*p)(unsigned short[]) = jrand48;}
|
|
nsz |
0ef264 |
{char*(*p)(long) = l64a;}
|
|
nsz |
0ef264 |
{void(*p)(unsigned short[]) = lcong48;}
|
|
nsz |
0ef264 |
{long(*p)(void) = lrand48;}
|
|
nsz |
0ef264 |
{long(*p)(void) = mrand48;}
|
|
nsz |
0ef264 |
{long(*p)(unsigned short[]) = nrand48;}
|
|
nsz |
0ef264 |
{char*(*p)(int) = ptsname;}
|
|
nsz |
0ef264 |
{int(*p)(char*) = putenv;}
|
|
nsz |
0ef264 |
{long(*p)(void) = random;}
|
|
nsz |
0ef264 |
{char*(*p)(const char*restrict,char*restrict) = realpath;}
|
|
nsz |
0ef264 |
{unsigned short*(*p)(unsigned short[]) = seed48;}
|
|
nsz |
0ef264 |
{void(*p)(const char*) = setkey;}
|
|
nsz |
0ef264 |
{char*(*p)(char*) = setstate;}
|
|
nsz |
0ef264 |
{void(*p)(long) = srand48;}
|
|
nsz |
0ef264 |
{void(*p)(unsigned) = srandom;}
|
|
nsz |
0ef264 |
{int(*p)(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 |
0ef264 |
{int(*p)(int) = posix_openpt;}
|
|
nsz |
f81126 |
}
|
|
nsz |
f81126 |
#endif
|
|
nsz |
f81126 |
|