|
nsz |
6a2161 |
#include <unistd.h>
|
|
Szabolcs Nagy |
87b251 |
#include "options.h"
|
|
nsz |
6a2161 |
#define T(t) (t*)0;
|
|
nsz |
6a2161 |
#define F(t,n) {t *y = &x.;;}
|
|
nsz |
6a2161 |
#define C(n) switch(n){case n:;}
|
|
Szabolcs Nagy |
87b251 |
#define A(n) {char p[n];}
|
|
nsz |
6a2161 |
static void f()
|
|
nsz |
6a2161 |
{
|
|
Szabolcs Nagy |
87b251 |
A(_POSIX_VERSION >= 200809L)
|
|
Szabolcs Nagy |
87b251 |
A(_POSIX2_VERSION >= 200809L)
|
|
nsz |
ed43ea |
#ifdef _XOPEN_SOURCE
|
|
Szabolcs Nagy |
87b251 |
A(_XOPEN_VERSION >= 700)
|
|
Szabolcs Nagy |
87b251 |
// A(_XOPEN_CRYPT >= 0)
|
|
Szabolcs Nagy |
87b251 |
A(_XOPEN_ENH_I18N > 0)
|
|
Szabolcs Nagy |
87b251 |
// A(_XOPEN_REALTIME >= 0)
|
|
Szabolcs Nagy |
87b251 |
// A(_XOPEN_REALTIME_THREADS >= 0)
|
|
Szabolcs Nagy |
87b251 |
// A(_XOPEN_SHM >= 0)
|
|
Szabolcs Nagy |
87b251 |
A(_XOPEN_UNIX >= 0)
|
|
nsz |
6a2161 |
#endif
|
|
Szabolcs Nagy |
87b251 |
A(_POSIX_ASYNCHRONOUS_IO >= 200809L)
|
|
Szabolcs Nagy |
87b251 |
A(_POSIX_BARRIERS >= 200809L)
|
|
Szabolcs Nagy |
87b251 |
A(_POSIX_CHOWN_RESTRICTED >= 0)
|
|
Szabolcs Nagy |
87b251 |
A(_POSIX_CLOCK_SELECTION >= 200809L)
|
|
Szabolcs Nagy |
87b251 |
A(_POSIX_JOB_CONTROL > 0)
|
|
Szabolcs Nagy |
87b251 |
A(_POSIX_MAPPED_FILES >= 200809L)
|
|
Szabolcs Nagy |
87b251 |
A(_POSIX_MEMORY_PROTECTION >= 200809L)
|
|
Szabolcs Nagy |
87b251 |
A(_POSIX_NO_TRUNC >= 0)
|
|
Szabolcs Nagy |
87b251 |
A(_POSIX_READER_WRITER_LOCKS >= 200809L)
|
|
Szabolcs Nagy |
87b251 |
A(_POSIX_REALTIME_SIGNALS >= 200809L)
|
|
Szabolcs Nagy |
87b251 |
A(_POSIX_REGEXP > 0)
|
|
Szabolcs Nagy |
87b251 |
A(_POSIX_SAVED_IDS > 0)
|
|
Szabolcs Nagy |
87b251 |
A(_POSIX_SEMAPHORES >= 200809L)
|
|
Szabolcs Nagy |
87b251 |
A(_POSIX_SHELL > 0)
|
|
Szabolcs Nagy |
87b251 |
A(_POSIX_SPIN_LOCKS >= 200809L)
|
|
Szabolcs Nagy |
87b251 |
A(_POSIX_THREAD_SAFE_FUNCTIONS >= 200809L)
|
|
Szabolcs Nagy |
87b251 |
A(_POSIX_THREADS >= 200809L)
|
|
Szabolcs Nagy |
87b251 |
A(_POSIX_TIMEOUTS >= 200809L)
|
|
Szabolcs Nagy |
87b251 |
A(_POSIX_TIMERS >= 200809L)
|
|
Szabolcs Nagy |
87b251 |
#if _POSIX_V7_ILP32_OFFBIG<=0 && _POSIX_V7_LP64_OFF64<=0 && _POSIX_V7_LPBIG_OFFBIG<=0
|
|
Szabolcs Nagy |
87b251 |
#error _POSIX_V7_ILP32_OFFBIG<=0 && _POSIX_V7_LP64_OFF64<=0 && _POSIX_V7_LPBIG_OFFBIG<=0
|
|
Szabolcs Nagy |
87b251 |
#endif
|
|
Szabolcs Nagy |
87b251 |
A(_POSIX2_C_BIND >= 200809L)
|
|
Szabolcs Nagy |
87b251 |
// not required by the standard
|
|
Szabolcs Nagy |
87b251 |
A(_POSIX_ADVISORY_INFO >= 0)
|
|
Szabolcs Nagy |
87b251 |
A(_POSIX_CPUTIME >= 0)
|
|
Szabolcs Nagy |
87b251 |
A(_POSIX_FSYNC >= 0)
|
|
Szabolcs Nagy |
87b251 |
A(_POSIX_IPV6 >= 0)
|
|
Szabolcs Nagy |
87b251 |
A(_POSIX_MEMLOCK >= 0)
|
|
Szabolcs Nagy |
87b251 |
A(_POSIX_MEMLOCK_RANGE >= 0)
|
|
Szabolcs Nagy |
87b251 |
A(_POSIX_MESSAGE_PASSING >= 0)
|
|
Szabolcs Nagy |
87b251 |
A(_POSIX_MONOTONIC_CLOCK >= 0)
|
|
Szabolcs Nagy |
87b251 |
// A(_POSIX_PRIORITIZED_IO >= 0)
|
|
Szabolcs Nagy |
87b251 |
// A(_POSIX_PRIORITY_SCHEDULING >= 0)
|
|
Szabolcs Nagy |
87b251 |
A(_POSIX_RAW_SOCKETS >= 0)
|
|
Szabolcs Nagy |
87b251 |
// A(_POSIX_SHARED_MEMORY_OBJECTS >= 0)
|
|
Szabolcs Nagy |
87b251 |
A(_POSIX_SPAWN >= 0)
|
|
Szabolcs Nagy |
87b251 |
// A(_POSIX_SPORADIC_SERVER >= 0)
|
|
Szabolcs Nagy |
87b251 |
// A(_POSIX_SYNCHRONIZED_IO >= 0)
|
|
Szabolcs Nagy |
87b251 |
A(_POSIX_THREAD_ATTR_STACKADDR >= 0)
|
|
Szabolcs Nagy |
87b251 |
A(_POSIX_THREAD_ATTR_STACKSIZE >= 0)
|
|
Szabolcs Nagy |
87b251 |
A(_POSIX_THREAD_CPUTIME >= 0)
|
|
Szabolcs Nagy |
87b251 |
// A(_POSIX_THREAD_PRIO_INHERIT >= 0)
|
|
Szabolcs Nagy |
87b251 |
// A(_POSIX_THREAD_PRIO_PROTECT >= 0)
|
|
Szabolcs Nagy |
87b251 |
A(_POSIX_THREAD_PRIORITY_SCHEDULING >= 0)
|
|
Szabolcs Nagy |
87b251 |
A(_POSIX_THREAD_PROCESS_SHARED >= 0)
|
|
Szabolcs Nagy |
87b251 |
// A(_POSIX_THREAD_ROBUST_PRIO_INHERIT >= 0)
|
|
Szabolcs Nagy |
87b251 |
// A(_POSIX_THREAD_ROBUST_PRIO_PROTECT >= 0)
|
|
Szabolcs Nagy |
87b251 |
// A(_POSIX_THREAD_SPORADIC_SERVER >= 0)
|
|
Szabolcs Nagy |
87b251 |
// A(_POSIX_TYPED_MEMORY_OBJECTS >= 0)
|
|
nsz |
6a2161 |
C(F_OK)
|
|
nsz |
6a2161 |
C(R_OK)
|
|
nsz |
6a2161 |
C(W_OK)
|
|
nsz |
6a2161 |
C(X_OK)
|
|
nsz |
6a2161 |
C(_CS_PATH)
|
|
nsz |
6a2161 |
C(_CS_POSIX_V7_ILP32_OFF32_CFLAGS)
|
|
nsz |
6a2161 |
C(_CS_POSIX_V7_ILP32_OFF32_LDFLAGS)
|
|
nsz |
6a2161 |
C(_CS_POSIX_V7_ILP32_OFF32_LIBS)
|
|
nsz |
6a2161 |
C(_CS_POSIX_V7_ILP32_OFFBIG_CFLAGS)
|
|
nsz |
6a2161 |
C(_CS_POSIX_V7_ILP32_OFFBIG_LDFLAGS)
|
|
nsz |
6a2161 |
C(_CS_POSIX_V7_ILP32_OFFBIG_LIBS)
|
|
nsz |
6a2161 |
C(_CS_POSIX_V7_LP64_OFF64_CFLAGS)
|
|
nsz |
6a2161 |
C(_CS_POSIX_V7_LP64_OFF64_LDFLAGS)
|
|
nsz |
6a2161 |
C(_CS_POSIX_V7_LP64_OFF64_LIBS)
|
|
nsz |
6a2161 |
C(_CS_POSIX_V7_LPBIG_OFFBIG_CFLAGS)
|
|
nsz |
6a2161 |
C(_CS_POSIX_V7_LPBIG_OFFBIG_LDFLAGS)
|
|
nsz |
6a2161 |
C(_CS_POSIX_V7_LPBIG_OFFBIG_LIBS)
|
|
nsz |
6a2161 |
C(_CS_POSIX_V7_THREADS_CFLAGS)
|
|
nsz |
6a2161 |
C(_CS_POSIX_V7_THREADS_LDFLAGS)
|
|
nsz |
6a2161 |
C(_CS_POSIX_V7_WIDTH_RESTRICTED_ENVS)
|
|
nsz |
6a2161 |
C(_CS_V7_ENV)
|
|
nsz |
6a2161 |
C(SEEK_CUR)
|
|
nsz |
6a2161 |
C(SEEK_END)
|
|
nsz |
6a2161 |
C(SEEK_SET)
|
|
nsz |
6a2161 |
C(F_LOCK)
|
|
nsz |
6a2161 |
C(F_TEST)
|
|
nsz |
6a2161 |
C(F_TLOCK)
|
|
nsz |
6a2161 |
C(F_ULOCK)
|
|
nsz |
6a2161 |
C(_PC_2_SYMLINKS)
|
|
nsz |
6a2161 |
C(_PC_ALLOC_SIZE_MIN)
|
|
nsz |
6a2161 |
C(_PC_ASYNC_IO)
|
|
nsz |
6a2161 |
C(_PC_CHOWN_RESTRICTED)
|
|
nsz |
6a2161 |
C(_PC_FILESIZEBITS)
|
|
nsz |
6a2161 |
C(_PC_LINK_MAX)
|
|
nsz |
6a2161 |
C(_PC_MAX_CANON)
|
|
nsz |
6a2161 |
C(_PC_MAX_INPUT)
|
|
nsz |
6a2161 |
C(_PC_NAME_MAX)
|
|
nsz |
6a2161 |
C(_PC_NO_TRUNC)
|
|
nsz |
6a2161 |
C(_PC_PATH_MAX)
|
|
nsz |
6a2161 |
C(_PC_PIPE_BUF)
|
|
nsz |
6a2161 |
C(_PC_PRIO_IO)
|
|
nsz |
6a2161 |
C(_PC_REC_INCR_XFER_SIZE)
|
|
nsz |
6a2161 |
C(_PC_REC_MAX_XFER_SIZE)
|
|
nsz |
6a2161 |
C(_PC_REC_MIN_XFER_SIZE)
|
|
nsz |
6a2161 |
C(_PC_REC_XFER_ALIGN)
|
|
nsz |
6a2161 |
C(_PC_SYMLINK_MAX)
|
|
nsz |
6a2161 |
C(_PC_SYNC_IO)
|
|
nsz |
6a2161 |
C(_PC_TIMESTAMP_RESOLUTION)
|
|
nsz |
6a2161 |
C(_PC_VDISABLE)
|
|
nsz |
6a2161 |
C(_SC_2_C_BIND)
|
|
nsz |
6a2161 |
C(_SC_2_C_DEV)
|
|
nsz |
6a2161 |
C(_SC_2_CHAR_TERM)
|
|
nsz |
6a2161 |
C(_SC_2_FORT_DEV)
|
|
nsz |
6a2161 |
C(_SC_2_FORT_RUN)
|
|
nsz |
6a2161 |
C(_SC_2_LOCALEDEF)
|
|
nsz |
6a2161 |
C(_SC_2_PBS)
|
|
nsz |
6a2161 |
C(_SC_2_PBS_ACCOUNTING)
|
|
nsz |
6a2161 |
C(_SC_2_PBS_CHECKPOINT)
|
|
nsz |
6a2161 |
C(_SC_2_PBS_LOCATE)
|
|
nsz |
6a2161 |
C(_SC_2_PBS_MESSAGE)
|
|
nsz |
6a2161 |
C(_SC_2_PBS_TRACK)
|
|
nsz |
6a2161 |
C(_SC_2_SW_DEV)
|
|
nsz |
6a2161 |
C(_SC_2_UPE)
|
|
nsz |
6a2161 |
C(_SC_2_VERSION)
|
|
nsz |
6a2161 |
C(_SC_ADVISORY_INFO)
|
|
nsz |
6a2161 |
C(_SC_AIO_LISTIO_MAX)
|
|
nsz |
6a2161 |
C(_SC_AIO_MAX)
|
|
nsz |
6a2161 |
C(_SC_AIO_PRIO_DELTA_MAX)
|
|
nsz |
6a2161 |
C(_SC_ARG_MAX)
|
|
nsz |
6a2161 |
C(_SC_ASYNCHRONOUS_IO)
|
|
nsz |
6a2161 |
C(_SC_ATEXIT_MAX)
|
|
nsz |
6a2161 |
C(_SC_BARRIERS)
|
|
nsz |
6a2161 |
C(_SC_BC_BASE_MAX)
|
|
nsz |
6a2161 |
C(_SC_BC_DIM_MAX)
|
|
nsz |
6a2161 |
C(_SC_BC_SCALE_MAX)
|
|
nsz |
6a2161 |
C(_SC_BC_STRING_MAX)
|
|
nsz |
6a2161 |
C(_SC_CHILD_MAX)
|
|
nsz |
6a2161 |
C(_SC_CLK_TCK)
|
|
nsz |
6a2161 |
C(_SC_CLOCK_SELECTION)
|
|
nsz |
6a2161 |
C(_SC_COLL_WEIGHTS_MAX)
|
|
nsz |
6a2161 |
C(_SC_CPUTIME)
|
|
nsz |
6a2161 |
C(_SC_DELAYTIMER_MAX)
|
|
nsz |
6a2161 |
C(_SC_EXPR_NEST_MAX)
|
|
nsz |
6a2161 |
C(_SC_FSYNC)
|
|
nsz |
6a2161 |
C(_SC_GETGR_R_SIZE_MAX)
|
|
nsz |
6a2161 |
C(_SC_GETPW_R_SIZE_MAX)
|
|
nsz |
6a2161 |
C(_SC_HOST_NAME_MAX)
|
|
nsz |
6a2161 |
C(_SC_IOV_MAX)
|
|
nsz |
6a2161 |
C(_SC_IPV6)
|
|
nsz |
6a2161 |
C(_SC_JOB_CONTROL)
|
|
nsz |
6a2161 |
C(_SC_LINE_MAX)
|
|
nsz |
6a2161 |
C(_SC_LOGIN_NAME_MAX)
|
|
nsz |
6a2161 |
C(_SC_MAPPED_FILES)
|
|
nsz |
6a2161 |
C(_SC_MEMLOCK)
|
|
nsz |
6a2161 |
C(_SC_MEMLOCK_RANGE)
|
|
nsz |
6a2161 |
C(_SC_MEMORY_PROTECTION)
|
|
nsz |
6a2161 |
C(_SC_MESSAGE_PASSING)
|
|
nsz |
6a2161 |
C(_SC_MONOTONIC_CLOCK)
|
|
nsz |
6a2161 |
C(_SC_MQ_OPEN_MAX)
|
|
nsz |
6a2161 |
C(_SC_MQ_PRIO_MAX)
|
|
nsz |
6a2161 |
C(_SC_NGROUPS_MAX)
|
|
nsz |
6a2161 |
C(_SC_OPEN_MAX)
|
|
nsz |
6a2161 |
C(_SC_PAGE_SIZE)
|
|
nsz |
6a2161 |
C(_SC_PAGESIZE)
|
|
nsz |
6a2161 |
C(_SC_PRIORITIZED_IO)
|
|
nsz |
6a2161 |
C(_SC_PRIORITY_SCHEDULING)
|
|
nsz |
6a2161 |
C(_SC_RAW_SOCKETS)
|
|
nsz |
6a2161 |
C(_SC_RE_DUP_MAX)
|
|
nsz |
6a2161 |
C(_SC_READER_WRITER_LOCKS)
|
|
nsz |
6a2161 |
C(_SC_REALTIME_SIGNALS)
|
|
nsz |
6a2161 |
C(_SC_REGEXP)
|
|
nsz |
6a2161 |
C(_SC_RTSIG_MAX)
|
|
nsz |
6a2161 |
C(_SC_SAVED_IDS)
|
|
nsz |
6a2161 |
C(_SC_SEM_NSEMS_MAX)
|
|
nsz |
6a2161 |
C(_SC_SEM_VALUE_MAX)
|
|
nsz |
6a2161 |
C(_SC_SEMAPHORES)
|
|
nsz |
6a2161 |
C(_SC_SHARED_MEMORY_OBJECTS)
|
|
nsz |
6a2161 |
C(_SC_SHELL)
|
|
nsz |
6a2161 |
C(_SC_SIGQUEUE_MAX)
|
|
nsz |
6a2161 |
C(_SC_SPAWN)
|
|
nsz |
6a2161 |
C(_SC_SPIN_LOCKS)
|
|
nsz |
6a2161 |
C(_SC_SPORADIC_SERVER)
|
|
nsz |
6a2161 |
C(_SC_SS_REPL_MAX)
|
|
nsz |
6a2161 |
C(_SC_STREAM_MAX)
|
|
nsz |
6a2161 |
C(_SC_SYMLOOP_MAX)
|
|
nsz |
6a2161 |
C(_SC_SYNCHRONIZED_IO)
|
|
nsz |
6a2161 |
C(_SC_THREAD_ATTR_STACKADDR)
|
|
nsz |
6a2161 |
C(_SC_THREAD_ATTR_STACKSIZE)
|
|
nsz |
6a2161 |
C(_SC_THREAD_CPUTIME)
|
|
nsz |
6a2161 |
C(_SC_THREAD_DESTRUCTOR_ITERATIONS)
|
|
nsz |
6a2161 |
C(_SC_THREAD_KEYS_MAX)
|
|
nsz |
6a2161 |
C(_SC_THREAD_PRIO_INHERIT)
|
|
nsz |
6a2161 |
C(_SC_THREAD_PRIO_PROTECT)
|
|
nsz |
6a2161 |
C(_SC_THREAD_PRIORITY_SCHEDULING)
|
|
nsz |
6a2161 |
C(_SC_THREAD_PROCESS_SHARED)
|
|
nsz |
6a2161 |
C(_SC_THREAD_ROBUST_PRIO_INHERIT)
|
|
nsz |
6a2161 |
C(_SC_THREAD_ROBUST_PRIO_PROTECT)
|
|
nsz |
6a2161 |
C(_SC_THREAD_SAFE_FUNCTIONS)
|
|
nsz |
6a2161 |
C(_SC_THREAD_SPORADIC_SERVER)
|
|
nsz |
6a2161 |
C(_SC_THREAD_STACK_MIN)
|
|
nsz |
6a2161 |
C(_SC_THREAD_THREADS_MAX)
|
|
nsz |
6a2161 |
C(_SC_THREADS)
|
|
nsz |
6a2161 |
C(_SC_TIMEOUTS)
|
|
nsz |
6a2161 |
C(_SC_TIMER_MAX)
|
|
nsz |
6a2161 |
C(_SC_TIMERS)
|
|
nsz |
6a2161 |
C(_SC_TRACE)
|
|
nsz |
6a2161 |
C(_SC_TRACE_EVENT_FILTER)
|
|
nsz |
6a2161 |
C(_SC_TRACE_EVENT_NAME_MAX)
|
|
nsz |
6a2161 |
C(_SC_TRACE_INHERIT)
|
|
nsz |
6a2161 |
C(_SC_TRACE_LOG)
|
|
nsz |
6a2161 |
C(_SC_TRACE_NAME_MAX)
|
|
nsz |
6a2161 |
C(_SC_TRACE_SYS_MAX)
|
|
nsz |
6a2161 |
C(_SC_TRACE_USER_EVENT_MAX)
|
|
nsz |
6a2161 |
C(_SC_TTY_NAME_MAX)
|
|
nsz |
6a2161 |
C(_SC_TYPED_MEMORY_OBJECTS)
|
|
nsz |
6a2161 |
C(_SC_TZNAME_MAX)
|
|
nsz |
6a2161 |
C(_SC_V7_ILP32_OFF32)
|
|
nsz |
6a2161 |
C(_SC_V7_ILP32_OFFBIG)
|
|
nsz |
6a2161 |
C(_SC_V7_LP64_OFF64)
|
|
nsz |
6a2161 |
C(_SC_V7_LPBIG_OFFBIG)
|
|
nsz |
6a2161 |
C(_SC_VERSION)
|
|
nsz |
6a2161 |
C(_SC_XOPEN_CRYPT)
|
|
nsz |
6a2161 |
C(_SC_XOPEN_ENH_I18N)
|
|
nsz |
6a2161 |
C(_SC_XOPEN_REALTIME)
|
|
nsz |
6a2161 |
C(_SC_XOPEN_REALTIME_THREADS)
|
|
nsz |
6a2161 |
C(_SC_XOPEN_SHM)
|
|
nsz |
6a2161 |
C(_SC_XOPEN_STREAMS)
|
|
nsz |
6a2161 |
C(_SC_XOPEN_UNIX)
|
|
nsz |
6a2161 |
C(_SC_XOPEN_UUCP)
|
|
nsz |
6a2161 |
C(_SC_XOPEN_VERSION)
|
|
nsz |
6a2161 |
C(STDERR_FILENO)
|
|
nsz |
6a2161 |
C(STDIN_FILENO)
|
|
nsz |
6a2161 |
C(STDOUT_FILENO)
|
|
nsz |
6a2161 |
C(_POSIX_VDISABLE)
|
|
nsz |
6a2161 |
T(size_t)
|
|
nsz |
6a2161 |
T(ssize_t)
|
|
nsz |
6a2161 |
T(uid_t)
|
|
nsz |
6a2161 |
T(gid_t)
|
|
nsz |
6a2161 |
T(off_t)
|
|
nsz |
6a2161 |
T(pid_t)
|
|
nsz |
6a2161 |
T(intptr_t)
|
|
nsz |
0ef264 |
{void(*p)(int) = _exit;}
|
|
nsz |
0ef264 |
{int(*p)(const char*,int) = access;}
|
|
nsz |
0ef264 |
{unsigned(*p)(unsigned) = alarm;}
|
|
nsz |
0ef264 |
{int(*p)(const char*) = chdir;}
|
|
nsz |
0ef264 |
{int(*p)(const char*,uid_t,gid_t) = chown;}
|
|
nsz |
0ef264 |
{int(*p)(int) = close;}
|
|
nsz |
0ef264 |
{size_t(*p)(int,char*,size_t) = confstr;}
|
|
nsz |
0ef264 |
{int(*p)(int) = dup;}
|
|
nsz |
0ef264 |
{int(*p)(int,int) = dup2;}
|
|
nsz |
ed43ea |
{extern char **environ; char **x = environ;};
|
|
nsz |
0ef264 |
{int(*p)(const char*,const char*,...) = execl;}
|
|
nsz |
0ef264 |
{int(*p)(const char*,const char*,...) = execle;}
|
|
nsz |
0ef264 |
{int(*p)(const char*,const char*,...) = execlp;}
|
|
nsz |
0ef264 |
{int(*p)(const char*,char*const[]) = execv;}
|
|
nsz |
0ef264 |
{int(*p)(const char*,char*const[],char*const[]) = execve;}
|
|
nsz |
0ef264 |
{int(*p)(const char*,char*const[]) = execvp;}
|
|
nsz |
0ef264 |
{int(*p)(int,const char*,int,int) = faccessat;}
|
|
nsz |
0ef264 |
{int(*p)(int) = fchdir;}
|
|
nsz |
0ef264 |
{int(*p)(int,uid_t,gid_t) = fchown;}
|
|
nsz |
0ef264 |
{int(*p)(int,const char*,uid_t,gid_t,int) = fchownat;}
|
|
Szabolcs Nagy |
87b251 |
#ifdef POSIX_SYNCHRONIZED_IO
|
|
nsz |
0ef264 |
{int(*p)(int) = fdatasync;}
|
|
Szabolcs Nagy |
87b251 |
#endif
|
|
nsz |
0ef264 |
{int(*p)(int,char*const[],char*const[]) = fexecve;}
|
|
nsz |
0ef264 |
{pid_t(*p)(void) = fork;}
|
|
nsz |
0ef264 |
{long(*p)(int,int) = fpathconf;}
|
|
nsz |
0ef264 |
{int(*p)(int) = fsync;}
|
|
nsz |
0ef264 |
{int(*p)(int,off_t) = ftruncate;}
|
|
nsz |
0ef264 |
{char*(*p)(char*,size_t) = getcwd;}
|
|
nsz |
0ef264 |
{gid_t(*p)(void) = getegid;}
|
|
nsz |
0ef264 |
{uid_t(*p)(void) = geteuid;}
|
|
nsz |
0ef264 |
{gid_t(*p)(void) = getgid;}
|
|
nsz |
0ef264 |
{int(*p)(int,gid_t[]) = getgroups;}
|
|
nsz |
0ef264 |
{int(*p)(char*,size_t) = gethostname;}
|
|
nsz |
0ef264 |
{char*(*p)(void) = getlogin;}
|
|
nsz |
0ef264 |
{int(*p)(char*,size_t) = getlogin_r;}
|
|
nsz |
0ef264 |
{int(*p)(int,char*const[],const char*) = getopt;}
|
|
nsz |
0ef264 |
{pid_t(*p)(pid_t) = getpgid;}
|
|
nsz |
0ef264 |
{pid_t(*p)(void) = getpgrp;}
|
|
nsz |
0ef264 |
{pid_t(*p)(void) = getpid;}
|
|
nsz |
0ef264 |
{pid_t(*p)(void) = getppid;}
|
|
nsz |
0ef264 |
{pid_t(*p)(pid_t) = getsid;}
|
|
nsz |
0ef264 |
{uid_t(*p)(void) = getuid;}
|
|
nsz |
0ef264 |
{int(*p)(int) = isatty;}
|
|
nsz |
0ef264 |
{int(*p)(const char*,uid_t,gid_t) = lchown;}
|
|
nsz |
0ef264 |
{int(*p)(const char*,const char*) = link;}
|
|
nsz |
0ef264 |
{int(*p)(int,const char*,int,const char*,int) = linkat;}
|
|
nsz |
0ef264 |
{off_t(*p)(int,off_t,int) = lseek;}
|
|
nsz |
6a2161 |
{char *x = optarg;}
|
|
nsz |
6a2161 |
{int i = opterr;}
|
|
nsz |
6a2161 |
{int i = optind;}
|
|
nsz |
6a2161 |
{int i = optopt;}
|
|
nsz |
0ef264 |
{long(*p)(const char*,int) = pathconf;}
|
|
nsz |
0ef264 |
{int(*p)(void) = pause;}
|
|
nsz |
0ef264 |
{int(*p)(int[]) = pipe;}
|
|
nsz |
0ef264 |
{ssize_t(*p)(int,void*,size_t,off_t) = pread;}
|
|
nsz |
0ef264 |
{ssize_t(*p)(int,const void*,size_t,off_t) = pwrite;}
|
|
nsz |
0ef264 |
{ssize_t(*p)(int,void*,size_t) = read;}
|
|
nsz |
0ef264 |
{ssize_t(*p)(const char*restrict,char*restrict,size_t) = readlink;}
|
|
nsz |
0ef264 |
{ssize_t(*p)(int,const char*restrict,char*restrict,size_t) = readlinkat;}
|
|
nsz |
0ef264 |
{int(*p)(const char*) = rmdir;}
|
|
nsz |
0ef264 |
{int(*p)(gid_t) = setegid;}
|
|
nsz |
0ef264 |
{int(*p)(uid_t) = seteuid;}
|
|
nsz |
0ef264 |
{int(*p)(gid_t) = setgid;}
|
|
nsz |
0ef264 |
{int(*p)(pid_t,pid_t) = setpgid;}
|
|
nsz |
0ef264 |
{pid_t(*p)(void) = setsid;}
|
|
nsz |
0ef264 |
{int(*p)(uid_t) = setuid;}
|
|
nsz |
0ef264 |
{unsigned(*p)(unsigned) = sleep;}
|
|
nsz |
0ef264 |
{int(*p)(const char*,const char*) = symlink;}
|
|
nsz |
0ef264 |
{int(*p)(const char*,int,const char*) = symlinkat;}
|
|
nsz |
0ef264 |
{long(*p)(int) = sysconf;}
|
|
nsz |
0ef264 |
{pid_t(*p)(int) = tcgetpgrp;}
|
|
nsz |
0ef264 |
{int(*p)(int,pid_t) = tcsetpgrp;}
|
|
nsz |
0ef264 |
{int(*p)(const char*,off_t) = truncate;}
|
|
nsz |
0ef264 |
{char*(*p)(int) = ttyname;}
|
|
nsz |
0ef264 |
{int(*p)(int,char*,size_t) = ttyname_r;}
|
|
nsz |
0ef264 |
{int(*p)(const char*) = unlink;}
|
|
nsz |
0ef264 |
{int(*p)(int,const char*,int) = unlinkat;}
|
|
nsz |
0ef264 |
{ssize_t(*p)(int,const void*,size_t) = write;}
|
|
nsz |
6a2161 |
#ifdef _XOPEN_SOURCE
|
|
nsz |
0ef264 |
{char*(*p)(const char*,const char*) = crypt;}
|
|
nsz |
0ef264 |
{void(*p)(char[],int) = encrypt;}
|
|
nsz |
0ef264 |
{long(*p)(void) = gethostid;}
|
|
nsz |
0ef264 |
{int(*p)(int,int,off_t) = lockf;}
|
|
nsz |
0ef264 |
{int(*p)(int) = nice;}
|
|
nsz |
0ef264 |
{int(*p)(gid_t,gid_t) = setregid;}
|
|
nsz |
0ef264 |
{int(*p)(uid_t,uid_t) = setreuid;}
|
|
nsz |
0ef264 |
{void(*p)(const void*restrict,void*restrict,ssize_t) = swab;}
|
|
nsz |
0ef264 |
{void(*p)(void) = sync;}
|
|
nsz |
6a2161 |
#endif
|
|
nsz |
6a2161 |
}
|