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>
55 #include <net/ethernet.h>
57 #include <net/if_arp.h>
58 #include <net/route.h>
60 #include <netinet/ether.h>
61 #include <netinet/icmp6.h>
62 #include <netinet/if_ether.h>
63 #include <netinet/igmp.h>
64 #include <netinet/in.h>
65 #include <netinet/in_systm.h>
66 #include <netinet/ip.h>
67 #include <netinet/ip6.h>
68 #include <netinet/ip_icmp.h>
69 #include <netinet/tcp.h>
70 #include <netinet/udp.h>
71 #include <netpacket/packet.h>
81 #include <scsi/scsi.h>
82 #include <scsi/scsi_ioctl.h>
85 #include <semaphore.h>
90 //#include <stdalign.h>
96 #include <stdio_ext.h>
98 //#include <stdnoreturn.h>
102 #include <sys/acct.h>
103 //#include <sys/cachectl.h>
105 #include <sys/epoll.h>
106 //#include <sys/errno.h>
107 #include <sys/eventfd.h>
108 #include <sys/fanotify.h>
109 //#include <sys/fcntl.h>
110 #include <sys/file.h>
111 #include <sys/fsuid.h>
112 #include <sys/inotify.h>
114 #include <sys/ioctl.h>
117 #include <sys/klog.h>
118 #include <sys/mman.h>
119 #include <sys/mount.h>
121 #include <sys/mtio.h>
122 #include <sys/param.h>
123 #include <sys/personality.h>
124 //#include <sys/poll.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>
131 #include <sys/resource.h>
132 #include <sys/select.h>
134 #include <sys/sendfile.h>
136 //#include <sys/signal.h>
137 #include <sys/signalfd.h>
138 #include <sys/socket.h>
139 //#include <sys/soundcard.h>
140 #include <sys/stat.h>
141 #include <sys/statfs.h>
142 #include <sys/statvfs.h>
143 #include <sys/stropts.h>
144 #include <sys/swap.h>
145 #include <sys/syscall.h>
146 //#include <sys/sysctl.h>
147 #include <sys/sysinfo.h>
148 #include <sys/syslog.h>
149 #include <sys/sysmacros.h>
150 //#include <sys/termios.h>
151 #include <sys/time.h>
152 #include <sys/timeb.h>
153 #include <sys/timerfd.h>
154 #include <sys/times.h>
155 #include <sys/timex.h>
156 #include <sys/ttydefaults.h>
157 #include <sys/types.h>
158 #include <sys/ucontext.h>
161 #include <sys/user.h>
162 #include <sys/utsname.h>
165 #include <sys/wait.h>
166 #include <sys/xattr.h>
168 #include <sysexits.h>
174 #include <ucontext.h>
185 #define p(x) printf("%s\t%u\n", #x, sizeof(x));
347 p(ns_update_operation)
350 p(posix_spawn_file_actions_t)
359 p(pthread_barrierattr_t)
361 p(pthread_condattr_t)
364 p(pthread_mutexattr_t)
367 p(pthread_rwlockattr_t)
368 p(pthread_spinlock_t)
399 p(struct __jmp_buf_tag)
400 //p(struct __mbstate_t)
404 p(struct __res_state)
405 //p(struct __sigset_t)
406 //p(struct __ucontext)
408 p(struct _ns_flagdata)
414 p(struct arpd_request)
419 p(struct ccs_modesel_head)
421 //p(struct cpu_set_t)
424 p(struct dl_phdr_info)
427 p(struct elf_prpsinfo)
428 p(struct elf_prstatus)
429 p(struct elf_siginfo)
431 p(struct epoll_event)
434 p(struct ether_header)
437 p(struct fanotify_event_metadata)
438 p(struct fanotify_response)
441 p(struct group_filter)
443 p(struct group_source_req)
446 p(struct icmp6_filter)
448 p(struct icmp6_router_renum)
449 p(struct icmp_ra_addr)
451 p(struct if_nameindex)
462 p(struct in6_pktinfo)
466 p(struct inotify_event)
475 p(struct ip6_mtuinfo)
477 p(struct ip6_opt_jumbo)
478 p(struct ip6_opt_nsap)
479 p(struct ip6_opt_router)
480 p(struct ip6_opt_tunnel)
484 p(struct ip_mreq_source)
486 p(struct ip_msfilter)
488 p(struct ip_timestamp)
505 p(struct mt_tape_info)
506 p(struct mtconfiginfo)
510 p(struct nd_neighbor_advert)
511 p(struct nd_neighbor_solicit)
512 p(struct nd_opt_adv_interval)
514 p(struct nd_opt_home_agent_info)
516 p(struct nd_opt_prefix_info)
517 p(struct nd_opt_rd_hdr)
518 p(struct nd_redirect)
519 p(struct nd_router_advert)
520 p(struct nd_router_solicit)
522 p(struct ns_tcp_tsig_state)
523 p(struct ns_tsig_key)
526 p(struct packet_mreq)
530 //p(struct ptrace_peeksiginfo_args)
533 p(struct re_pattern_buffer)
536 p(struct rr_pco_match)
541 p(struct sched_param)
549 p(struct sg_req_info)
555 p(struct sigaltstack)
558 p(struct signalfd_siginfo)
560 p(struct sockaddr_in)
561 p(struct sockaddr_in6)
562 p(struct sockaddr_ll)
563 p(struct sockaddr_storage)
564 p(struct sockaddr_un)
572 p(struct strfdinsert)
593 p(struct user_fpregs_struct)
594 //p(struct user_fpxregs_struct)
595 p(struct user_regs_struct)
631 //p(union _G_fpos64_t)