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>
96 #include <stdio_ext.h>
99 #include <stdnoreturn.h>
104 #include <sys/acct.h>
105 #include <sys/auxv.h>
106 //#include <sys/cachectl.h>
108 #include <sys/epoll.h>
109 #include <sys/eventfd.h>
110 #include <sys/fanotify.h>
111 #include <sys/file.h>
112 #include <sys/fsuid.h>
113 #include <sys/inotify.h>
114 //#include <sys/io.h>
115 #include <sys/ioctl.h>
117 //#include <sys/kd.h>
118 #include <sys/klog.h>
119 #include <sys/mman.h>
120 #include <sys/mount.h>
122 #include <sys/mtio.h>
123 #include <sys/param.h>
124 #include <sys/personality.h>
125 #include <sys/prctl.h>
126 #include <sys/procfs.h>
127 #include <sys/ptrace.h>
128 #include <sys/quota.h>
129 #include <sys/reboot.h>
130 //#include <sys/reg.h>
131 #include <sys/resource.h>
132 #include <sys/select.h>
134 #include <sys/sendfile.h>
136 #include <sys/signalfd.h>
137 #include <sys/socket.h>
138 #include <sys/stat.h>
139 #include <sys/statfs.h>
140 #include <sys/statvfs.h>
141 #include <sys/swap.h>
142 #include <sys/syscall.h>
143 #include <sys/sysinfo.h>
144 #include <sys/sysmacros.h>
145 #include <sys/time.h>
146 #include <sys/timeb.h>
147 #include <sys/timerfd.h>
148 #include <sys/times.h>
149 #include <sys/timex.h>
150 #include <sys/ttydefaults.h>
151 #include <sys/types.h>
154 #include <sys/user.h>
155 #include <sys/utsname.h>
156 #include <sys/wait.h>
157 #include <sys/xattr.h>
158 #include <sysexits.h>
168 #include <ucontext.h>
179 typedef long long long_long;
180 typedef long double long_double;
181 typedef void *object_pointer;
182 typedef void (*function_pointer)();
183 struct size {char c;};
184 struct align {char c;};
185 struct incomplete {char c;};
186 #define T(s,t) void x_##t(s t x, s t* ptr, size(*y)[sizeof(s t)], align(*z)[__alignof__(s t)]){}
187 #define P(s,t) void x_##t(incomplete x, s t* ptr, incomplete y, incomplete z){}
357 //T(,ns_tcp_tsig_state)
360 T(,ns_update_operation)
365 T(,posix_spawn_file_actions_t)
366 T(,posix_spawnattr_t)
373 T(,pthread_barrier_t)
374 T(,pthread_barrierattr_t)
376 T(,pthread_condattr_t)
379 T(,pthread_mutexattr_t)
382 T(,pthread_rwlockattr_t)
383 T(,pthread_spinlock_t)
413 T(struct,__jmp_buf_tag)
414 //T(struct,__locale_struct)
415 //T(struct,__mbstate_t)
419 T(struct,__res_state)
420 //T(struct,__sigset_t)
421 //T(struct,__ucontext)
423 T(struct,_ns_flagdata)
429 T(struct,arpd_request)
434 T(struct,ccs_modesel_head)
436 //T(struct,cpu_set_t)
439 T(struct,dl_phdr_info)
442 T(struct,elf_prpsinfo)
443 T(struct,elf_prstatus)
444 T(struct,elf_siginfo)
446 T(struct,epoll_event)
449 T(struct,ether_header)
452 T(struct,fanotify_event_metadata)
453 T(struct,fanotify_response)
456 T(struct,group_filter)
458 T(struct,group_source_req)
460 T(struct,hsearch_data)
462 T(struct,icmp6_filter)
464 T(struct,icmp6_router_renum)
465 T(struct,icmp_ra_addr)
467 T(struct,if_nameindex)
476 //T(struct,ih_rtradv)
478 T(struct,in6_pktinfo)
482 T(struct,inotify_event)
490 //T(struct,ip6_hdrctl)
491 T(struct,ip6_mtuinfo)
493 T(struct,ip6_opt_jumbo)
494 T(struct,ip6_opt_nsap)
495 T(struct,ip6_opt_router)
496 T(struct,ip6_opt_tunnel)
500 T(struct,ip_mreq_source)
502 T(struct,ip_msfilter)
504 T(struct,ip_timestamp)
522 T(struct,mt_tape_info)
523 T(struct,mtconfiginfo)
527 T(struct,nd_neighbor_advert)
528 T(struct,nd_neighbor_solicit)
529 T(struct,nd_opt_adv_interval)
531 T(struct,nd_opt_home_agent_info)
533 T(struct,nd_opt_prefix_info)
534 T(struct,nd_opt_rd_hdr)
535 T(struct,nd_redirect)
536 T(struct,nd_router_advert)
537 T(struct,nd_router_solicit)
539 T(struct,ns_tcp_tsig_state)
540 T(struct,ns_tsig_key)
543 T(struct,packet_mreq)
546 T(struct,prctl_mm_map)
548 //T(struct,ptrace_peeksiginfo_args)
551 T(struct,re_pattern_buffer)
554 T(struct,rr_pco_match)
559 T(struct,sched_param)
567 T(struct,sg_req_info)
573 T(struct,sigaltstack)
576 T(struct,signalfd_siginfo)
578 T(struct,sockaddr_in)
579 T(struct,sockaddr_in6)
580 T(struct,sockaddr_ll)
581 T(struct,sockaddr_storage)
582 T(struct,sockaddr_un)
590 T(struct,strfdinsert)
611 T(struct,user_fpregs_struct)
612 T(struct,user_regs_struct)
653 //T(union,_G_fpos64_t)