2 #define _LARGEFILE64_SOURCE 1
3 #define _FILE_OFFSET_BITS 64
12 #include <arpa/inet.h>
13 #include <arpa/nameser.h>
14 #include <arpa/nameser_compat.h>
15 #include <arpa/telnet.h>
16 #include <arpa/tftp.h>
56 #include <net/ethernet.h>
58 #include <net/if_arp.h>
59 #include <net/route.h>
61 #include <netinet/ether.h>
62 #include <netinet/icmp6.h>
63 #include <netinet/if_ether.h>
64 #include <netinet/igmp.h>
65 #include <netinet/in.h>
66 #include <netinet/in_systm.h>
67 #include <netinet/ip.h>
68 #include <netinet/ip6.h>
69 #include <netinet/ip_icmp.h>
70 #include <netinet/tcp.h>
71 #include <netinet/udp.h>
72 #include <netpacket/packet.h>
82 #include <scsi/scsi.h>
83 #include <scsi/scsi_ioctl.h>
86 #include <semaphore.h>
91 //#include <stdalign.h>
97 #include <stdio_ext.h>
99 //#include <stdnoreturn.h>
103 #include <sys/acct.h>
104 //#include <sys/auxv.h>
105 //#include <sys/cachectl.h>
107 #include <sys/epoll.h>
108 //#include <sys/errno.h>
109 #include <sys/eventfd.h>
110 #include <sys/fanotify.h>
111 //#include <sys/fcntl.h>
112 #include <sys/file.h>
113 #include <sys/fsuid.h>
114 #include <sys/inotify.h>
116 #include <sys/ioctl.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/poll.h>
127 #include <sys/prctl.h>
128 #include <sys/procfs.h>
129 #include <sys/ptrace.h>
130 #include <sys/quota.h>
131 #include <sys/reboot.h>
133 #include <sys/resource.h>
134 #include <sys/select.h>
136 #include <sys/sendfile.h>
138 //#include <sys/signal.h>
139 #include <sys/signalfd.h>
140 #include <sys/socket.h>
141 //#include <sys/soundcard.h>
142 #include <sys/stat.h>
143 #include <sys/statfs.h>
144 #include <sys/statvfs.h>
145 #include <sys/stropts.h>
146 #include <sys/swap.h>
147 #include <sys/syscall.h>
148 #include <sys/sysinfo.h>
149 #include <sys/syslog.h>
150 #include <sys/sysmacros.h>
151 //#include <sys/termios.h>
152 #include <sys/time.h>
153 #include <sys/timeb.h>
154 #include <sys/timerfd.h>
155 #include <sys/times.h>
156 #include <sys/timex.h>
157 #include <sys/ttydefaults.h>
158 #include <sys/types.h>
159 #include <sys/ucontext.h>
162 #include <sys/user.h>
163 #include <sys/utsname.h>
166 #include <sys/wait.h>
167 #include <sys/xattr.h>
169 #include <sysexits.h>
174 //#include <threads.h>
177 #include <ucontext.h>
188 typedef long long long_long; typedef long double long_double;
189 struct size{int i;}; struct align{int i;};
190 #define p(s,t) void x_##t(s t x, s t* ptr, size(*y)[sizeof(s t)], align(*z)[__alignof__(s t)]){}
191 #define pp(s,t) void x_##t(s t* ptr, size(*y)[sizeof(s t*)], align(*z)[__alignof__(s t*)]){}
354 //p(,ns_tcp_tsig_state)
357 p(,ns_update_operation)
361 p(,posix_spawn_file_actions_t)
362 p(,posix_spawnattr_t)
369 p(,pthread_barrier_t)
370 p(,pthread_barrierattr_t)
372 p(,pthread_condattr_t)
375 p(,pthread_mutexattr_t)
378 p(,pthread_rwlockattr_t)
379 p(,pthread_spinlock_t)
409 p(struct,__jmp_buf_tag)
410 //p(struct,__mbstate_t)
414 p(struct,__res_state)
415 //p(struct,__sigset_t)
416 //p(struct,__ucontext)
418 p(struct,_ns_flagdata)
424 p(struct,arpd_request)
429 p(struct,ccs_modesel_head)
431 //p(struct,cpu_set_t)
434 p(struct,dl_phdr_info)
437 p(struct,elf_prpsinfo)
438 p(struct,elf_prstatus)
439 p(struct,elf_siginfo)
441 p(struct,epoll_event)
444 p(struct,ether_header)
447 p(struct,fanotify_event_metadata)
448 p(struct,fanotify_response)
451 p(struct,group_filter)
453 p(struct,group_source_req)
455 p(struct,hsearch_data)
457 p(struct,icmp6_filter)
459 p(struct,icmp6_router_renum)
460 p(struct,icmp_ra_addr)
462 p(struct,if_nameindex)
471 //p(struct,ih_rtradv)
473 p(struct,in6_pktinfo)
477 p(struct,inotify_event)
485 //p(struct,ip6_hdrctl)
486 p(struct,ip6_mtuinfo)
488 p(struct,ip6_opt_jumbo)
489 p(struct,ip6_opt_nsap)
490 p(struct,ip6_opt_router)
491 p(struct,ip6_opt_tunnel)
495 p(struct,ip_mreq_source)
497 p(struct,ip_msfilter)
499 p(struct,ip_timestamp)
517 p(struct,mt_tape_info)
518 p(struct,mtconfiginfo)
522 p(struct,nd_neighbor_advert)
523 p(struct,nd_neighbor_solicit)
524 p(struct,nd_opt_adv_interval)
526 p(struct,nd_opt_home_agent_info)
528 p(struct,nd_opt_prefix_info)
529 p(struct,nd_opt_rd_hdr)
530 p(struct,nd_redirect)
531 p(struct,nd_router_advert)
532 p(struct,nd_router_solicit)
534 p(struct,ns_tcp_tsig_state)
535 p(struct,ns_tsig_key)
538 p(struct,packet_mreq)
541 p(struct,prctl_mm_map)
543 //p(struct,ptrace_peeksiginfo_args)
546 p(struct,re_pattern_buffer)
549 p(struct,rr_pco_match)
554 p(struct,sched_param)
562 p(struct,sg_req_info)
568 p(struct,sigaltstack)
571 p(struct,signalfd_siginfo)
573 p(struct,sockaddr_in)
574 p(struct,sockaddr_in6)
575 p(struct,sockaddr_ll)
576 p(struct,sockaddr_storage)
577 p(struct,sockaddr_un)
585 p(struct,strfdinsert)
606 p(struct,user_fpregs_struct)
607 p(struct,user_regs_struct)
648 //p(union,_G_fpos64_t)