eldar@linux-tlto:~> gcc proof-of-concept.c -I /usr/src/linux/include
proof-of-concept.c:1: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘-’ token
In file included from /usr/include/_G_config.h:44,
from /usr/include/libio.h:32,
from /usr/include/stdio.h:75,
from proof-of-concept.c:10:
/usr/include/gconv.h:72: error: expected declaration specifiers or ‘...’ before ‘size_t’
/usr/include/gconv.h:88: error: expected declaration specifiers or ‘...’ before ‘size_t’
/usr/include/gconv.h:97: error: expected declaration specifiers or ‘...’ before ‘size_t’
/usr/include/gconv.h:174: error: expected specifier-qualifier-list before ‘size_t’
In file included from /usr/include/stdio.h:75,
from proof-of-concept.c:10:
/usr/include/libio.h:329: error: expected specifier-qualifier-list before ‘size_t’
/usr/include/libio.h:361: error: expected declaration specifiers or ‘...’ before ‘size_t’
/usr/include/libio.h:370: error: expected declaration specifiers or ‘...’ before ‘size_t’
/usr/include/libio.h:486: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘_IO_sgetn’
In file included from proof-of-concept.c:10:
/usr/include/stdio.h:296: error: expected declaration specifiers or ‘...’ before ‘size_t’
/usr/include/stdio.h:302: error: expected declaration specifiers or ‘...’ before ‘size_t’
/usr/include/stdio.h:314: error: expected declaration specifiers or ‘...’ before ‘size_t’
/usr/include/stdio.h:321: error: expected declaration specifiers or ‘...’ before ‘size_t’
/usr/include/stdio.h:363: error: expected declaration specifiers or ‘...’ before ‘size_t’
/usr/include/stdio.h:365: error: format string argument not a string type
/usr/include/stdio.h:367: error: expected declaration specifiers or ‘...’ before ‘size_t’
/usr/include/stdio.h:573: error: expected declaration specifiers or ‘...’ before ‘size_t’
/usr/include/stdio.h:576: error: expected declaration specifiers or ‘...’ before ‘size_t’
/usr/include/stdio.h:586: error: expected declaration specifiers or ‘...’ before ‘size_t’
/usr/include/stdio.h:616: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘fread’
/usr/include/stdio.h:622: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘fwrite’
/usr/include/stdio.h:644: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘fread_unlocked’
/usr/include/stdio.h:646: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘fwrite_unlocked’
In file included from proof-of-concept.c:12:
/usr/include/stdlib.h:140: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘__ctype_get_mb_cur_max’
In file included from proof-of-concept.c:12:
/usr/include/stdlib.h:455: error: expected declaration specifiers or ‘...’ before ‘size_t’
/usr/include/stdlib.h:485: error: expected declaration specifiers or ‘...’ before ‘size_t’
/usr/include/stdlib.h:487: error: nonnull argument with out-of-range operand number (argument 1, operand 4)
/usr/include/stdlib.h:589: error: expected ‘)’ before ‘__size’
/usr/include/stdlib.h:591: error: expected ‘)’ before ‘__nmemb’
/usr/include/stdlib.h:600: error: expected declaration specifiers or ‘...’ before ‘size_t’
In file included from /usr/include/stdlib.h:612,
from proof-of-concept.c:12:
/usr/include/alloca.h:33: error: expected ‘)’ before ‘__size’
In file included from proof-of-concept.c:12:
/usr/include/stdlib.h:617: error: expected ‘)’ before ‘__size’
/usr/include/stdlib.h:622: error: expected declaration specifiers or ‘...’ before ‘size_t’
/usr/include/stdlib.h:622: error: expected declaration specifiers or ‘...’ before ‘size_t’
/usr/include/stdlib.h:774: error: expected declaration specifiers or ‘...’ before ‘size_t’
/usr/include/stdlib.h:774: error: expected declaration specifiers or ‘...’ before ‘size_t’
/usr/include/stdlib.h:775: error: nonnull argument with out-of-range operand number (argument 1, operand 5)
/usr/include/stdlib.h:779: error: expected declaration specifiers or ‘...’ before ‘size_t’
/usr/include/stdlib.h:779: error: expected declaration specifiers or ‘...’ before ‘size_t’
/usr/include/stdlib.h:780: error: nonnull argument with out-of-range operand number (argument 1, operand 4)
/usr/include/stdlib.h:852: error: expected declaration specifiers or ‘...’ before ‘size_t’
/usr/include/stdlib.h:855: error: expected declaration specifiers or ‘...’ before ‘size_t’
/usr/include/stdlib.h:859: error: expected declaration specifiers or ‘...’ before ‘size_t’
/usr/include/stdlib.h:863: error: expected declaration specifiers or ‘...’ before ‘size_t’
/usr/include/stdlib.h:872: error: expected declaration specifiers or ‘...’ before ‘size_t’
/usr/include/stdlib.h:876: error: expected declaration specifiers or ‘...’ before ‘size_t’
/usr/include/stdlib.h:883: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘mbstowcs’
/usr/include/stdlib.h:886: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘wcstombs’
/usr/include/stdlib.h:949: error: expected declaration specifiers or ‘...’ before ‘size_t’
In file included from proof-of-concept.c:13:
/usr/include/string.h:39: error: expected declaration specifiers or ‘...’ before ‘size_t’
/usr/include/string.h:43: error: expected declaration specifiers or ‘...’ before ‘size_t’
/usr/include/string.h:52: error: expected declaration specifiers or ‘...’ before ‘size_t’
/usr/include/string.h:59: error: expected declaration specifiers or ‘...’ before ‘size_t’
/usr/include/string.h:62: error: expected declaration specifiers or ‘...’ before ‘size_t’
/usr/include/string.h:66: error: expected declaration specifiers or ‘...’ before ‘size_t’
/usr/include/string.h:77: error: expected declaration specifiers or ‘...’ before ‘size_t’
/usr/include/string.h:88: error: expected declaration specifiers or ‘...’ before ‘size_t’
/usr/include/string.h:96: error: expected declaration specifiers or ‘...’ before ‘size_t’
/usr/include/string.h:102: error: expected declaration specifiers or ‘...’ before ‘size_t’
/usr/include/string.h:109: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘strxfrm’
/usr/include/string.h:124: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘strxfrm_l’
/usr/include/string.h:138: error: expected declaration specifiers or ‘...’ before ‘size_t’
/usr/include/string.h:184: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘strcspn’
/usr/include/string.h:188: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘strspn’
/usr/include/string.h:225: error: expected declaration specifiers or ‘...’ before ‘size_t’
/usr/include/string.h:226: error: expected declaration specifiers or ‘...’ before ‘size_t’
/usr/include/string.h:227: error: nonnull argument with out-of-range operand number (argument 1, operand 3)
/usr/include/string.h:232: error: expected declaration specifiers or ‘...’ before ‘size_t’
/usr/include/string.h:235: error: expected declaration specifiers or ‘...’ before ‘size_t’
/usr/include/string.h:242: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘strlen’
/usr/include/string.h:249: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘strnlen’
/usr/include/string.h:281: error: expected declaration specifiers or ‘...’ before ‘size_t’
/usr/include/string.h:294: error: expected declaration specifiers or ‘...’ before ‘size_t’
/usr/include/string.h:298: error: expected declaration specifiers or ‘...’ before ‘size_t’
/usr/include/string.h:302: error: expected declaration specifiers or ‘...’ before ‘size_t’
/usr/include/string.h:305: error: expected declaration specifiers or ‘...’ before ‘size_t’
/usr/include/string.h:335: error: expected declaration specifiers or ‘...’ before ‘size_t’
/usr/include/string.h:347: error: expected declaration specifiers or ‘...’ before ‘size_t’
/usr/include/string.h:348: error: nonnull argument with out-of-range operand number (argument 1, operand 4)
/usr/include/string.h:376: error: expected declaration specifiers or ‘...’ before ‘size_t’
/usr/include/string.h:379: error: expected declaration specifiers or ‘...’ before ‘size_t’
/usr/include/string.h:386: error: expected declaration specifiers or ‘...’ before ‘size_t’
In file included from proof-of-concept.c:14:
/usr/include/malloc.h:49: error: expected ‘)’ before ‘__size’
/usr/include/malloc.h:52: error: expected ‘)’ before ‘__nmemb’
/usr/include/malloc.h:57: error: expected declaration specifiers or ‘...’ before ‘size_t’
/usr/include/malloc.h:67: error: expected ‘)’ before ‘__alignment’
/usr/include/malloc.h:71: error: expected ‘)’ before ‘__size’
/usr/include/malloc.h:76: error: expected ‘)’ before ‘__size’
/usr/include/malloc.h:132: error: expected ‘)’ before ‘__pad’
/usr/include/malloc.h:136: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘malloc_usable_size’
/usr/include/malloc.h:155: error: expected ‘)’ before ‘__size’
/usr/include/malloc.h:157: error: expected declaration specifiers or ‘...’ before ‘size_t’
/usr/include/malloc.h:159: error: expected ‘)’ before ‘__alignment’
In file included from /usr/include/signal.h:348,
from proof-of-concept.c:16:
/usr/include/bits/sigstack.h:54: error: expected specifier-qualifier-list before ‘size_t’
In file included from proof-of-concept.c:17:
/usr/include/unistd.h:327: error: expected declaration specifiers or ‘...’ before ‘size_t’
/usr/include/unistd.h:333: error: expected declaration specifiers or ‘...’ before ‘size_t’
/usr/include/unistd.h:343: error: expected declaration specifiers or ‘...’ before ‘size_t’
/usr/include/unistd.h:351: error: expected declaration specifiers or ‘...’ before ‘size_t’
/usr/include/unistd.h:371: error: expected declaration specifiers or ‘...’ before ‘size_t’
/usr/include/unistd.h:375: error: expected declaration specifiers or ‘...’ before ‘size_t’
/usr/include/unistd.h:471: error: expected declaration specifiers or ‘...’ before ‘size_t’
In file included from proof-of-concept.c:17:
/usr/include/unistd.h:568: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘confstr’
/usr/include/unistd.h:740: error: expected declaration specifiers or ‘...’ before ‘size_t’
/usr/include/unistd.h:776: error: expected declaration specifiers or ‘...’ before ‘size_t’
/usr/include/unistd.h:787: error: expected declaration specifiers or ‘...’ before ‘size_t’
/usr/include/unistd.h:823: error: expected declaration specifiers or ‘...’ before ‘size_t’
In file included from proof-of-concept.c:17:
/usr/include/unistd.h:845: error: expected declaration specifiers or ‘...’ before ‘size_t’
/usr/include/unistd.h:852: error: expected declaration specifiers or ‘...’ before ‘size_t’
/usr/include/unistd.h:863: error: expected declaration specifiers or ‘...’ before ‘size_t’
/usr/include/unistd.h:865: error: expected declaration specifiers or ‘...’ before ‘size_t’
/usr/include/unistd.h:883: error: expected declaration specifiers or ‘...’ before ‘size_t’
/usr/include/unistd.h:884: error: expected declaration specifiers or ‘...’ before ‘size_t’
In file included from /usr/include/sys/uio.h:29,
from proof-of-concept.c:18:
/usr/include/bits/uio.h:47: error: expected specifier-qualifier-list before ‘size_t’
In file included from proof-of-concept.c:19:
/usr/include/sys/mman.h:58: error: expected declaration specifiers or ‘...’ before ‘size_t’
/usr/include/sys/mman.h:71: error: expected declaration specifiers or ‘...’ before ‘size_t’
/usr/include/sys/mman.h:77: error: expected declaration specifiers or ‘...’ before ‘size_t’
/usr/include/sys/mman.h:82: error: expected declaration specifiers or ‘...’ before ‘size_t’
/usr/include/sys/mman.h:90: error: expected declaration specifiers or ‘...’ before ‘size_t’
/usr/include/sys/mman.h:95: error: expected declaration specifiers or ‘...’ before ‘size_t’
/usr/include/sys/mman.h:99: error: expected declaration specifiers or ‘...’ before ‘size_t’
/usr/include/sys/mman.h:104: error: expected declaration specifiers or ‘...’ before ‘size_t’
/usr/include/sys/mman.h:107: error: expected declaration specifiers or ‘...’ before ‘size_t’
/usr/include/sys/mman.h:124: error: expected declaration specifiers or ‘...’ before ‘size_t’
/usr/include/sys/mman.h:134: error: expected declaration specifiers or ‘...’ before ‘size_t’
/usr/include/sys/mman.h:134: error: expected declaration specifiers or ‘...’ before ‘size_t’
/usr/include/sys/mman.h:139: error: expected declaration specifiers or ‘...’ before ‘size_t’
/usr/include/sys/mman.h:140: error: expected declaration specifiers or ‘...’ before ‘size_t’
proof-of-concept.c: In function ‘main’:
proof-of-concept.c:182: error: ‘size_t’ undeclared (first use in this function)
proof-of-concept.c:182: error: (Each undeclared identifier is reported only once
proof-of-concept.c:182: error: for each function it appears in.)
proof-of-concept.c:182: error: expected ‘;’ before ‘map_size’
proof-of-concept.c:204: error: ‘map_size’ undeclared (first use in this function)
proof-of-concept.c:206: error: too many arguments to function ‘mmap’
proof-of-concept.c:210: error: too many arguments to function ‘memset’
proof-of-concept.c:226: error: too many arguments to function ‘mmap’
proof-of-concept.c:230: error: too many arguments to function ‘memset’
proof-of-concept.c:244: error: too many arguments to function ‘mmap’
proof-of-concept.c:247: error: too many arguments to function ‘memset’
proof-of-concept.c:254: error: too many arguments to function ‘mmap’
proof-of-concept.c:258: error: too many arguments to function ‘memset’
proof-of-concept.c:263: error: too many arguments to function ‘munmap’
proof-of-concept.c:271: error: ‘struct iovec’ has no member named ‘iov_len’