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>
88 //#include <stdalign.h>
94 #include <stdio_ext.h>
96 //#include <stdnoreturn.h>
100 #include <sys/acct.h>
101 //#include <sys/auxv.h>
102 //#include <sys/cachectl.h>
104 #include <sys/epoll.h>
105 #include <sys/eventfd.h>
106 #include <sys/fanotify.h>
107 #include <sys/file.h>
108 #include <sys/fsuid.h>
109 #include <sys/inotify.h>
110 //#include <sys/io.h>
111 #include <sys/ioctl.h>
113 //#include <sys/kd.h>
114 #include <sys/klog.h>
115 #include <sys/mman.h>
116 #include <sys/mount.h>
118 #include <sys/mtio.h>
119 #include <sys/param.h>
120 #include <sys/personality.h>
121 #include <sys/prctl.h>
122 #include <sys/procfs.h>
123 #include <sys/ptrace.h>
124 #include <sys/quota.h>
125 #include <sys/reboot.h>
126 //#include <sys/reg.h>
127 #include <sys/resource.h>
128 #include <sys/select.h>
130 #include <sys/sendfile.h>
132 #include <sys/signalfd.h>
133 #include <sys/socket.h>
134 #include <sys/stat.h>
135 #include <sys/statfs.h>
136 #include <sys/statvfs.h>
137 #include <sys/swap.h>
138 #include <sys/syscall.h>
139 #include <sys/sysinfo.h>
140 #include <sys/sysmacros.h>
141 #include <sys/time.h>
142 #include <sys/timeb.h>
143 #include <sys/timerfd.h>
144 #include <sys/times.h>
145 #include <sys/timex.h>
146 #include <sys/ttydefaults.h>
147 #include <sys/types.h>
150 #include <sys/user.h>
151 #include <sys/utsname.h>
152 #include <sys/wait.h>
153 #include <sys/xattr.h>
154 #include <sysexits.h>
159 //#include <threads.h>
162 #include <ucontext.h>
173 typedef long long long_long;
174 typedef long double long_double;
175 struct size {char c;};
176 struct align {char c;};
177 #define T(s,t) void x_##t(s t x, s t* ptr, size(*y)[sizeof(s t)], align(*z)[__alignof__(s t)]){}
178 #define P(s,t) void y_##t(s t* ptr, size(*y)[sizeof(s t*)], align(*z)[__alignof__(s t*)]){}
343 //T(,ns_tcp_tsig_state)
346 T(,ns_update_operation)
350 T(,posix_spawn_file_actions_t)
351 T(,posix_spawnattr_t)
358 T(,pthread_barrier_t)
359 T(,pthread_barrierattr_t)
361 T(,pthread_condattr_t)
364 T(,pthread_mutexattr_t)
367 T(,pthread_rwlockattr_t)
368 T(,pthread_spinlock_t)
398 T(struct,__jmp_buf_tag)
399 //T(struct,__locale_struct)
400 //T(struct,__mbstate_t)
404 T(struct,__res_state)
405 //T(struct,__sigset_t)
406 //T(struct,__ucontext)
407 T(struct,_ns_flagdata)
413 T(struct,arpd_request)
418 T(struct,ccs_modesel_head)
420 //T(struct,cpu_set_t)
423 T(struct,dl_phdr_info)
426 T(struct,elf_prpsinfo)
427 T(struct,elf_prstatus)
428 T(struct,elf_siginfo)
430 T(struct,epoll_event)
433 T(struct,ether_header)
436 T(struct,fanotify_event_metadata)
437 T(struct,fanotify_response)
440 T(struct,group_filter)
442 T(struct,group_source_req)
444 T(struct,hsearch_data)
446 T(struct,icmp6_filter)
448 T(struct,icmp6_router_renum)
449 T(struct,icmp_ra_addr)
451 T(struct,if_nameindex)
460 //T(struct,ih_rtradv)
462 T(struct,in6_pktinfo)
466 T(struct,inotify_event)
474 //T(struct,ip6_hdrctl)
475 T(struct,ip6_mtuinfo)
477 T(struct,ip6_opt_jumbo)
478 T(struct,ip6_opt_nsap)
479 T(struct,ip6_opt_router)
480 T(struct,ip6_opt_tunnel)
484 T(struct,ip_mreq_source)
486 T(struct,ip_msfilter)
488 T(struct,ip_timestamp)
506 T(struct,mt_tape_info)
507 T(struct,mtconfiginfo)
511 T(struct,nd_neighbor_advert)
512 T(struct,nd_neighbor_solicit)
513 T(struct,nd_opt_adv_interval)
515 T(struct,nd_opt_home_agent_info)
517 T(struct,nd_opt_prefix_info)
518 T(struct,nd_opt_rd_hdr)
519 T(struct,nd_redirect)
520 T(struct,nd_router_advert)
521 T(struct,nd_router_solicit)
523 T(struct,ns_tcp_tsig_state)
524 T(struct,ns_tsig_key)
527 T(struct,packet_mreq)
530 T(struct,prctl_mm_map)
532 //T(struct,ptrace_peeksiginfo_args)
535 T(struct,re_pattern_buffer)
538 T(struct,rr_pco_match)
543 T(struct,sched_param)
551 T(struct,sg_req_info)
557 T(struct,sigaltstack)
560 T(struct,signalfd_siginfo)
562 T(struct,sockaddr_in)
563 T(struct,sockaddr_in6)
564 T(struct,sockaddr_ll)
565 T(struct,sockaddr_storage)
566 T(struct,sockaddr_un)
574 T(struct,strfdinsert)
634 //T(union,_G_fpos64_t)