1570af302Sopenharmony_ci#include <stdio.h>
2570af302Sopenharmony_ci#define T(t) (t*)0;
3570af302Sopenharmony_ci#define F(t,n) {t *y = &x.n;}
4570af302Sopenharmony_ci#define C(n) switch(n){case n:;}
5570af302Sopenharmony_cistatic void f()
6570af302Sopenharmony_ci{
7570af302Sopenharmony_ciT(FILE)
8570af302Sopenharmony_ciT(fpos_t)
9570af302Sopenharmony_ciT(off_t)
10570af302Sopenharmony_ciT(size_t)
11570af302Sopenharmony_ciC(BUFSIZ)
12570af302Sopenharmony_ci#ifdef _POSIX_C_SOURCE
13570af302Sopenharmony_ciT(ssize_t)
14570af302Sopenharmony_ciT(va_list)
15570af302Sopenharmony_ciC(L_ctermid)
16570af302Sopenharmony_ci#endif
17570af302Sopenharmony_ci#ifdef OBSOLETE
18570af302Sopenharmony_ciC(L_tmpnam)
19570af302Sopenharmony_ci#endif
20570af302Sopenharmony_ciC(_IOFBF)
21570af302Sopenharmony_ciC(_IOLBF)
22570af302Sopenharmony_ciC(_IONBF)
23570af302Sopenharmony_ciC(SEEK_CUR)
24570af302Sopenharmony_ciC(SEEK_END)
25570af302Sopenharmony_ciC(SEEK_SET)
26570af302Sopenharmony_ciC(FILENAME_MAX)
27570af302Sopenharmony_ciC(FOPEN_MAX)
28570af302Sopenharmony_ciC(EOF)
29570af302Sopenharmony_ci{void *x=NULL;}
30570af302Sopenharmony_ci{FILE *x=stderr;}
31570af302Sopenharmony_ci{FILE *x=stdin;}
32570af302Sopenharmony_ci{FILE *x=stdout;}
33570af302Sopenharmony_ci{void(*p)(FILE*) = clearerr;}
34570af302Sopenharmony_ci{char*(*p)(char*) = ctermid;}
35570af302Sopenharmony_ci{int(*p)(int,const char*restrict,...) = dprintf;}
36570af302Sopenharmony_ci{int(*p)(FILE*) = fclose;}
37570af302Sopenharmony_ci{FILE*(*p)(int,const char*) = fdopen;}
38570af302Sopenharmony_ci{int(*p)(FILE*) = feof;}
39570af302Sopenharmony_ci{int(*p)(FILE*) = ferror;}
40570af302Sopenharmony_ci{int(*p)(FILE*) = fflush;}
41570af302Sopenharmony_ci{int(*p)(FILE*) = fgetc;}
42570af302Sopenharmony_ci{int(*p)(FILE*restrict,fpos_t*restrict) = fgetpos;}
43570af302Sopenharmony_ci{char*(*p)(char*restrict,int,FILE*restrict) = fgets;}
44570af302Sopenharmony_ci{int(*p)(FILE*) = fileno;}
45570af302Sopenharmony_ci{void(*p)(FILE*) = flockfile;}
46570af302Sopenharmony_ci{FILE*(*p)(void*restrict,size_t,const char*restrict) = fmemopen;}
47570af302Sopenharmony_ci{FILE*(*p)(const char*restrict,const char*restrict) = fopen;}
48570af302Sopenharmony_ci{int(*p)(FILE*restrict,const char*restrict,...) = fprintf;}
49570af302Sopenharmony_ci{int(*p)(int,FILE*) = fputc;}
50570af302Sopenharmony_ci{int(*p)(const char*restrict,FILE*restrict) = fputs;}
51570af302Sopenharmony_ci{size_t(*p)(void*restrict,size_t,size_t,FILE*restrict) = fread;}
52570af302Sopenharmony_ci{FILE*(*p)(const char*restrict,const char*restrict,FILE*restrict) = freopen;}
53570af302Sopenharmony_ci{int(*p)(FILE*restrict,const char*restrict,...) = fscanf;}
54570af302Sopenharmony_ci{int(*p)(FILE*,long,int) = fseek;}
55570af302Sopenharmony_ci{int(*p)(FILE*,off_t,int) = fseeko;}
56570af302Sopenharmony_ci{int(*p)(FILE*,const fpos_t*) = fsetpos;}
57570af302Sopenharmony_ci{long(*p)(FILE*) = ftell;}
58570af302Sopenharmony_ci{off_t(*p)(FILE*) = ftello;}
59570af302Sopenharmony_ci{int(*p)(FILE*) = ftrylockfile;}
60570af302Sopenharmony_ci{void(*p)(FILE*) = funlockfile;}
61570af302Sopenharmony_ci{size_t(*p)(const void*restrict,size_t,size_t,FILE*restrict) = fwrite;}
62570af302Sopenharmony_ci{int(*p)(FILE*) = getc;}
63570af302Sopenharmony_ci{int(*p)(FILE*) = getc_unlocked;}
64570af302Sopenharmony_ci{int(*p)(void) = getchar;}
65570af302Sopenharmony_ci{int(*p)(void) = getchar_unlocked;}
66570af302Sopenharmony_ci{ssize_t(*p)(char**restrict,size_t*restrict,int,FILE*restrict) = getdelim;}
67570af302Sopenharmony_ci{ssize_t(*p)(char**restrict,size_t*restrict,FILE*restrict) = getline;}
68570af302Sopenharmony_ci{char*(*p)(char*) = gets;}
69570af302Sopenharmony_ci{FILE*(*p)(char**,size_t*) = open_memstream;}
70570af302Sopenharmony_ci{int(*p)(FILE*) = pclose;}
71570af302Sopenharmony_ci{void(*p)(const char*) = perror;}
72570af302Sopenharmony_ci{FILE*(*p)(const char*,const char*) = popen;}
73570af302Sopenharmony_ci{int(*p)(const char*restrict,...) = printf;}
74570af302Sopenharmony_ci{int(*p)(int,FILE*) = putc;}
75570af302Sopenharmony_ci{int(*p)(int,FILE*) = putc_unlocked;}
76570af302Sopenharmony_ci{int(*p)(int) = putchar;}
77570af302Sopenharmony_ci{int(*p)(int) = putchar_unlocked;}
78570af302Sopenharmony_ci{int(*p)(const char*) = puts;}
79570af302Sopenharmony_ci{int(*p)(const char*) = remove;}
80570af302Sopenharmony_ci{int(*p)(const char*,const char*) = rename;}
81570af302Sopenharmony_ci{int(*p)(int,const char*,int,const char*) = renameat;}
82570af302Sopenharmony_ci{void(*p)(FILE*) = rewind;}
83570af302Sopenharmony_ci{int(*p)(const char*restrict,...) = scanf;}
84570af302Sopenharmony_ci{void(*p)(FILE*restrict,char*restrict) = setbuf;}
85570af302Sopenharmony_ci{int(*p)(FILE*restrict,char*restrict,int,size_t) = setvbuf;}
86570af302Sopenharmony_ci{int(*p)(char*restrict,size_t,const char*restrict,...) = snprintf;}
87570af302Sopenharmony_ci{int(*p)(char*restrict,const char*restrict,...) = sprintf;}
88570af302Sopenharmony_ci{int(*p)(const char*restrict,const char*restrict,...) = sscanf;}
89570af302Sopenharmony_ci{char*(*p)(const char*,const char*) = tempnam;}
90570af302Sopenharmony_ci{FILE*(*p)(void) = tmpfile;}
91570af302Sopenharmony_ci{char*(*p)(char*) = tmpnam;}
92570af302Sopenharmony_ci{int(*p)(int,FILE*) = ungetc;}
93570af302Sopenharmony_ci}
94570af302Sopenharmony_ci#include <wchar.h>
95570af302Sopenharmony_cistatic void g()
96570af302Sopenharmony_ci{
97570af302Sopenharmony_ci{wint_t(*p)(int) = btowc;}
98570af302Sopenharmony_ci{wint_t(*p)(FILE*) = fgetwc;}
99570af302Sopenharmony_ci{wchar_t*(*p)(wchar_t*restrict,int,FILE*restrict) = fgetws;}
100570af302Sopenharmony_ci{wint_t(*p)(wchar_t,FILE*) = fputwc;}
101570af302Sopenharmony_ci{int(*p)(const wchar_t*restrict,FILE*restrict) = fputws;}
102570af302Sopenharmony_ci{int(*p)(FILE*,int) = fwide;}
103570af302Sopenharmony_ci{int(*p)(FILE*restrict,const wchar_t*restrict,...) = fwprintf;}
104570af302Sopenharmony_ci{int(*p)(FILE*restrict,const wchar_t*restrict,...) = fwscanf;}
105570af302Sopenharmony_ci{wint_t(*p)(FILE*) = getwc;}
106570af302Sopenharmony_ci{wint_t(*p)(wchar_t,FILE*) = putwc;}
107570af302Sopenharmony_ci{int(*p)(wchar_t*restrict,size_t,const wchar_t*restrict,...) = swprintf;}
108570af302Sopenharmony_ci{int(*p)(const wchar_t*restrict,const wchar_t*restrict,...) = swscanf;}
109570af302Sopenharmony_ci{wint_t(*p)(wint_t,FILE*) = ungetwc;}
110570af302Sopenharmony_ci{int(*p)(wint_t) = wctob;}
111570af302Sopenharmony_ci{int(*p)(const wchar_t*restrict,...) = wprintf;}
112570af302Sopenharmony_ci{int(*p)(const wchar_t*restrict,...) = wscanf;}
113570af302Sopenharmony_ci}
114570af302Sopenharmony_ci#include <stdarg.h>
115570af302Sopenharmony_cistatic void h()
116570af302Sopenharmony_ci{
117570af302Sopenharmony_ci{int(*p)(int,const char*restrict,va_list) = vdprintf;}
118570af302Sopenharmony_ci{int(*p)(FILE*restrict,const char*restrict,va_list) = vfprintf;}
119570af302Sopenharmony_ci{int(*p)(FILE*restrict,const char*restrict,va_list) = vfscanf;}
120570af302Sopenharmony_ci{int(*p)(const char*restrict,va_list) = vprintf;}
121570af302Sopenharmony_ci{int(*p)(const char*restrict,va_list) = vscanf;}
122570af302Sopenharmony_ci{int(*p)(char*restrict,size_t,const char*restrict,va_list) = vsnprintf;}
123570af302Sopenharmony_ci{int(*p)(char*restrict,const char*restrict,va_list) = vsprintf;}
124570af302Sopenharmony_ci{int(*p)(const char*restrict,const char*restrict,va_list) = vsscanf;}
125570af302Sopenharmony_ci
126570af302Sopenharmony_ci{int(*p)(FILE*restrict,const wchar_t*restrict,va_list) = vfwprintf;}
127570af302Sopenharmony_ci{int(*p)(FILE*restrict,const wchar_t*restrict,va_list) = vfwscanf;}
128570af302Sopenharmony_ci{int(*p)(wchar_t*restrict,size_t,const wchar_t*restrict,va_list) = vswprintf;}
129570af302Sopenharmony_ci{int(*p)(const wchar_t*restrict,const wchar_t*restrict,va_list) = vswscanf;}
130570af302Sopenharmony_ci{int(*p)(const wchar_t*restrict,va_list) = vwprintf;}
131570af302Sopenharmony_ci{int(*p)(const wchar_t*restrict,va_list) = vwscanf;}
132570af302Sopenharmony_ci}
133