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*)]){}
350 //T(,ns_tcp_tsig_state)
353 T(,ns_update_operation)
357 T(,posix_spawn_file_actions_t)
358 T(,posix_spawnattr_t)
365 T(,pthread_barrier_t)
366 T(,pthread_barrierattr_t)
368 T(,pthread_condattr_t)
371 T(,pthread_mutexattr_t)
374 T(,pthread_rwlockattr_t)
375 T(,pthread_spinlock_t)
405 T(struct,__jmp_buf_tag)
406 //T(struct,__locale_struct)
407 //T(struct,__mbstate_t)
411 T(struct,__res_state)
412 //T(struct,__sigset_t)
413 //T(struct,__ucontext)
414 T(struct,_ns_flagdata)
420 T(struct,arpd_request)
425 T(struct,ccs_modesel_head)
427 //T(struct,cpu_set_t)
430 T(struct,dl_phdr_info)
433 T(struct,elf_prpsinfo)
434 T(struct,elf_prstatus)
435 T(struct,elf_siginfo)
437 T(struct,epoll_event)
440 T(struct,ether_header)
443 T(struct,fanotify_event_metadata)
444 T(struct,fanotify_response)
447 T(struct,group_filter)
449 T(struct,group_source_req)
451 T(struct,hsearch_data)
453 T(struct,icmp6_filter)
455 T(struct,icmp6_router_renum)
456 T(struct,icmp_ra_addr)
458 T(struct,if_nameindex)
467 //T(struct,ih_rtradv)
469 T(struct,in6_pktinfo)
473 T(struct,inotify_event)
481 //T(struct,ip6_hdrctl)
482 T(struct,ip6_mtuinfo)
484 T(struct,ip6_opt_jumbo)
485 T(struct,ip6_opt_nsap)
486 T(struct,ip6_opt_router)
487 T(struct,ip6_opt_tunnel)
491 T(struct,ip_mreq_source)
493 T(struct,ip_msfilter)
495 T(struct,ip_timestamp)
513 T(struct,mt_tape_info)
514 T(struct,mtconfiginfo)
518 T(struct,nd_neighbor_advert)
519 T(struct,nd_neighbor_solicit)
520 T(struct,nd_opt_adv_interval)
522 T(struct,nd_opt_home_agent_info)
524 T(struct,nd_opt_prefix_info)
525 T(struct,nd_opt_rd_hdr)
526 T(struct,nd_redirect)
527 T(struct,nd_router_advert)
528 T(struct,nd_router_solicit)
530 T(struct,ns_tcp_tsig_state)
531 T(struct,ns_tsig_key)
534 T(struct,packet_mreq)
537 T(struct,prctl_mm_map)
540 //T(struct,ptrace_peeksiginfo_args)
543 T(struct,re_pattern_buffer)
546 T(struct,rr_pco_match)
551 T(struct,sched_param)
559 T(struct,sg_req_info)
565 T(struct,sigaltstack)
568 T(struct,signalfd_siginfo)
570 T(struct,sockaddr_in)
571 T(struct,sockaddr_in6)
572 T(struct,sockaddr_ll)
573 T(struct,sockaddr_storage)
574 T(struct,sockaddr_un)
582 T(struct,strfdinsert)
643 //T(union,_G_fpos64_t)