3 #define _FILE_OFFSET_BITS 64
12 #include <arpa/inet.h>
13 #include <arpa/nameser.h>
14 #include <arpa/telnet.h>
15 #include <arpa/tftp.h>
53 #include <net/ethernet.h>
55 #include <net/if_arp.h>
56 #include <net/route.h>
58 #include <netinet/ether.h>
59 #include <netinet/icmp6.h>
60 #include <netinet/if_ether.h>
61 #include <netinet/igmp.h>
62 #include <netinet/in.h>
63 #include <netinet/in_systm.h>
64 #include <netinet/ip.h>
65 #include <netinet/ip6.h>
66 #include <netinet/ip_icmp.h>
67 #include <netinet/tcp.h>
68 #include <netinet/udp.h>
69 #include <netpacket/packet.h>
79 #include <scsi/scsi.h>
80 #include <scsi/scsi_ioctl.h>
83 #include <semaphore.h>
93 #include <stdc-predef.h>
97 #include <stdio_ext.h>
100 #include <stdnoreturn.h>
105 #include <sys/acct.h>
106 #include <sys/auxv.h>
107 //#include <sys/cachectl.h>
109 #include <sys/epoll.h>
110 #include <sys/eventfd.h>
111 #include <sys/fanotify.h>
112 #include <sys/file.h>
113 #include <sys/fsuid.h>
114 #include <sys/inotify.h>
115 //#include <sys/io.h>
116 #include <sys/ioctl.h>
118 //#include <sys/kd.h>
119 #include <sys/klog.h>
120 #include <sys/mman.h>
121 #include <sys/mount.h>
123 #include <sys/mtio.h>
124 #include <sys/param.h>
125 #include <sys/personality.h>
126 #include <sys/prctl.h>
127 #include <sys/procfs.h>
128 #include <sys/ptrace.h>
129 #include <sys/quota.h>
130 #include <sys/reboot.h>
131 //#include <sys/reg.h>
132 #include <sys/resource.h>
133 #include <sys/select.h>
135 #include <sys/sendfile.h>
137 #include <sys/signalfd.h>
138 #include <sys/socket.h>
139 #include <sys/stat.h>
140 #include <sys/statfs.h>
141 #include <sys/statvfs.h>
142 #include <sys/swap.h>
143 #include <sys/syscall.h>
144 #include <sys/sysinfo.h>
145 #include <sys/sysmacros.h>
146 #include <sys/time.h>
147 #include <sys/timeb.h>
148 #include <sys/timerfd.h>
149 #include <sys/times.h>
150 #include <sys/timex.h>
151 #include <sys/ttydefaults.h>
152 #include <sys/types.h>
155 #include <sys/user.h>
156 #include <sys/utsname.h>
157 #include <sys/wait.h>
158 #include <sys/xattr.h>
159 #include <sysexits.h>
169 #include <ucontext.h>
180 typedef long long long_long
;
181 typedef long double long_double
;
182 typedef void *object_pointer
;
183 typedef void (*function_pointer
)();
184 struct size
{char c
;};
185 struct align
{char c
;};
186 struct incomplete
{char c
;};
187 #define T(s,t) void x_##t(s t x, s t* ptr, size(*y)[sizeof(s t)], align(*z)[__alignof__(s t)]){}
188 #define P(s,t) void x_##t(incomplete x, s t* ptr, incomplete y, incomplete z){}
255 T(,Elf_MIPS_ABIFlags_v0
)
361 //T(,ns_tcp_tsig_state)
364 T(,ns_update_operation
)
369 T(,posix_spawn_file_actions_t
)
370 T(,posix_spawnattr_t
)
377 T(,pthread_barrier_t
)
378 T(,pthread_barrierattr_t
)
380 T(,pthread_condattr_t
)
383 T(,pthread_mutexattr_t
)
386 T(,pthread_rwlockattr_t
)
387 T(,pthread_spinlock_t
)
417 T(struct,__jmp_buf_tag
)
418 //T(struct,__locale_struct)
419 //T(struct,__mbstate_t)
423 T(struct,__res_state
)
424 //T(struct,__sigset_t)
425 //T(struct,__ucontext)
427 T(struct,_ns_flagdata
)
433 T(struct,arpd_request
)
438 T(struct,ccs_modesel_head
)
440 //T(struct,cpu_set_t)
443 T(struct,dl_phdr_info
)
446 T(struct,elf_prpsinfo
)
447 T(struct,elf_prstatus
)
448 T(struct,elf_siginfo
)
450 T(struct,epoll_event
)
453 T(struct,ether_header
)
456 T(struct,fanotify_event_metadata
)
457 T(struct,fanotify_response
)
460 T(struct,group_filter
)
462 T(struct,group_source_req
)
464 T(struct,hsearch_data
)
466 T(struct,icmp6_filter
)
468 T(struct,icmp6_router_renum
)
469 T(struct,icmp_ra_addr
)
471 T(struct,if_nameindex
)
480 //T(struct,ih_rtradv)
482 T(struct,in6_pktinfo
)
486 T(struct,inotify_event
)
494 //T(struct,ip6_hdrctl)
495 T(struct,ip6_mtuinfo
)
497 T(struct,ip6_opt_jumbo
)
498 T(struct,ip6_opt_nsap
)
499 T(struct,ip6_opt_router
)
500 T(struct,ip6_opt_tunnel
)
504 T(struct,ip_mreq_source
)
506 T(struct,ip_msfilter
)
508 T(struct,ip_timestamp
)
526 T(struct,mt_tape_info
)
527 T(struct,mtconfiginfo
)
531 T(struct,nd_neighbor_advert
)
532 T(struct,nd_neighbor_solicit
)
533 T(struct,nd_opt_adv_interval
)
535 T(struct,nd_opt_home_agent_info
)
537 T(struct,nd_opt_prefix_info
)
538 T(struct,nd_opt_rd_hdr
)
539 T(struct,nd_redirect
)
540 T(struct,nd_router_advert
)
541 T(struct,nd_router_solicit
)
543 T(struct,ns_tcp_tsig_state
)
544 T(struct,ns_tsig_key
)
547 T(struct,packet_mreq
)
550 T(struct,prctl_mm_map
)
552 //T(struct,ptrace_peeksiginfo_args)
555 T(struct,re_pattern_buffer
)
558 T(struct,rr_pco_match
)
563 T(struct,sched_param
)
571 T(struct,sg_req_info
)
577 T(struct,sigaltstack
)
580 T(struct,signalfd_siginfo
)
582 T(struct,sockaddr_in
)
583 T(struct,sockaddr_in6
)
584 T(struct,sockaddr_ll
)
585 T(struct,sockaddr_storage
)
586 T(struct,sockaddr_un
)
594 T(struct,strfdinsert
)
615 T(struct,user_fpregs_struct
)
616 T(struct,user_regs_struct
)
657 //T(union,_G_fpos64_t)