2 #define _LARGEFILE64_SOURCE 1
3 #define _FILE_OFFSET_BITS 64
12 #include <arpa/inet.h>
13 #include <arpa/nameser.h>
14 #include <arpa/telnet.h>
52 #include <net/ethernet.h>
54 #include <net/if_arp.h>
55 #include <net/route.h>
57 #include <netinet/icmp6.h>
58 #include <netinet/if_ether.h>
59 #include <netinet/in.h>
60 #include <netinet/in_systm.h>
61 #include <netinet/ip.h>
62 #include <netinet/ip6.h>
63 #include <netinet/ip_icmp.h>
64 #include <netinet/tcp.h>
65 #include <netinet/udp.h>
66 #include <netpacket/packet.h>
76 #include <scsi/scsi.h>
79 #include <semaphore.h>
84 //#include <stdalign.h>
90 #include <stdio_ext.h>
92 //#include <stdnoreturn.h>
97 //#include <sys/cachectl.h>
98 #include <sys/epoll.h>
99 #include <sys/eventfd.h>
100 #include <sys/file.h>
101 #include <sys/fsuid.h>
102 #include <sys/inotify.h>
104 #include <sys/ioctl.h>
107 #include <sys/klog.h>
108 #include <sys/mman.h>
109 #include <sys/mount.h>
111 #include <sys/mtio.h>
112 #include <sys/param.h>
113 #include <sys/personality.h>
114 #include <sys/poll.h>
115 #include <sys/prctl.h>
116 #include <sys/procfs.h>
117 #include <sys/ptrace.h>
118 #include <sys/reboot.h>
120 #include <sys/resource.h>
121 #include <sys/select.h>
123 #include <sys/sendfile.h>
125 #include <sys/signalfd.h>
126 #include <sys/socket.h>
127 #include <sys/soundcard.h>
128 #include <sys/stat.h>
129 #include <sys/statfs.h>
130 #include <sys/statvfs.h>
131 #include <sys/stropts.h>
132 #include <sys/swap.h>
133 #include <sys/syscall.h>
134 #include <sys/sysctl.h>
135 #include <sys/sysinfo.h>
136 #include <sys/syslog.h>
137 #include <sys/sysmacros.h>
138 #include <sys/time.h>
139 #include <sys/timerfd.h>
140 #include <sys/times.h>
141 #include <sys/timex.h>
142 #include <sys/types.h>
143 #include <sys/ucontext.h>
146 #include <sys/user.h>
147 #include <sys/utsname.h>
150 #include <sys/wait.h>
151 #include <sys/xattr.h>
153 #include <sysexits.h>
159 #include <ucontext.h>
169 #define p(x) printf("%s\t%u\n", #x, sizeof(x));
331 p(ns_update_operation)
334 p(posix_spawn_file_actions_t)
343 p(pthread_barrierattr_t)
345 p(pthread_condattr_t)
348 p(pthread_mutexattr_t)
351 p(pthread_rwlockattr_t)
352 p(pthread_spinlock_t)
384 p(struct __res_state)
385 //p(struct __siginfo)
386 //p(struct __sigjmp_buf)
387 //p(struct __ucontext)
389 p(struct _ns_flagdata)
395 p(struct arpd_request)
400 p(struct ccs_modesel_head)
404 p(struct dl_phdr_info)
405 p(struct elf_prpsinfo)
406 p(struct elf_prstatus)
407 p(struct elf_siginfo)
408 p(struct epoll_event)
411 p(struct ether_header)
418 p(struct icmp6_filter)
420 p(struct icmp6_router_renum)
421 p(struct icmp_ra_addr)
423 p(struct if_nameindex)
432 p(struct in6_pktinfo)
436 p(struct inotify_event)
445 p(struct ip6_mtuinfo)
447 p(struct ip6_opt_jumbo)
448 p(struct ip6_opt_nsap)
449 p(struct ip6_opt_router)
450 p(struct ip6_opt_tunnel)
456 p(struct ip_timestamp)
473 p(struct mt_tape_info)
474 p(struct mtconfiginfo)
478 p(struct nd_neighbor_advert)
479 p(struct nd_neighbor_solicit)
480 p(struct nd_opt_adv_interval)
482 p(struct nd_opt_home_agent_info)
484 p(struct nd_opt_prefix_info)
485 p(struct nd_opt_rd_hdr)
486 p(struct nd_redirect)
487 p(struct nd_router_advert)
488 p(struct nd_router_solicit)
490 p(struct ns_tcp_tsig_state)
491 p(struct ns_tsig_key)
494 p(struct packet_mreq)
502 p(struct rr_pco_match)
507 p(struct sched_param)
515 p(struct sg_req_info)
523 p(struct signalfd_siginfo)
525 p(struct sockaddr_in)
526 p(struct sockaddr_in6)
527 p(struct sockaddr_ll)
528 p(struct sockaddr_storage)
529 p(struct sockaddr_un)
537 p(struct strfdinsert)
553 p(struct user_fpregs_struct)
554 //p(struct user_fpxregs_struct)
555 p(struct user_regs_struct)
591 //p(union __double_repr)
592 //p(union __float_repr)