2 #define _LARGEFILE64_SOURCE 1
3 #define _FILE_OFFSET_BITS 64
10 #include <arpa/nameser.h>
11 #include <arpa/telnet.h>
23 //#include <features.h>
40 #include <linux/loop.h>
41 #include <linux/version.h>
48 #include <net/ethernet.h>
50 #include <net/if_arp.h>
51 #include <net/route.h>
53 #include <netinet/icmp6.h>
54 #include <netinet/if_ether.h>
55 #include <netinet/in.h>
56 #include <netinet/ip.h>
57 #include <netinet/ip6.h>
58 #include <netinet/ip_icmp.h>
59 #include <netinet/tcp.h>
60 #include <netinet/udp.h>
61 #include <netpacket/packet.h>
72 #include <semaphore.h>
82 #include <stdio_ext.h>
87 #include <sys/epoll.h>
88 #include <sys/eventfd.h>
90 #include <sys/inotify.h>
91 #include <sys/ioctl.h>
96 #include <sys/mount.h>
98 #include <sys/param.h>
100 #include <sys/prctl.h>
101 #include <sys/procfs.h>
102 #include <sys/ptrace.h>
103 #include <sys/reboot.h>
105 #include <sys/resource.h>
106 #include <sys/select.h>
108 #include <sys/sendfile.h>
110 #include <sys/signalfd.h>
111 #include <sys/socket.h>
112 #include <sys/soundcard.h>
113 #include <sys/stat.h>
114 #include <sys/statfs.h>
115 #include <sys/statvfs.h>
116 #include <sys/stropts.h>
117 #include <sys/swap.h>
118 #include <sys/syscall.h>
119 #include <sys/sysctl.h>
120 #include <sys/sysinfo.h>
121 #include <sys/syslog.h>
122 #include <sys/sysmacros.h>
123 #include <sys/time.h>
124 #include <sys/times.h>
125 #include <sys/timex.h>
126 #include <sys/types.h>
127 #include <sys/ucontext.h>
130 #include <sys/user.h>
131 #include <sys/utsname.h>
134 #include <sys/wait.h>
135 #include <sysexits.h>
140 #include <ucontext.h>
149 #define p(x) printf("%s\t%u\n", #x, sizeof(x));
291 p(ns_update_operation)
294 p(posix_spawn_file_actions_t)
303 p(pthread_barrierattr_t)
305 p(pthread_condattr_t)
308 p(pthread_mutexattr_t)
311 p(pthread_rwlockattr_t)
312 p(pthread_spinlock_t)
337 //p(struct __fpstate)
341 p(struct __res_state)
342 //p(struct __siginfo)
343 //p(struct __ucontext)
344 p(struct _ns_flagdata)
347 p(struct arpd_request)
353 p(struct console_font_op)
354 p(struct consolefontdesc)
356 p(struct elf_prpsinfo)
357 p(struct elf_prstatus)
358 p(struct elf_siginfo)
359 p(struct epoll_event)
362 p(struct ether_header)
364 p(struct fb_bitfield)
366 p(struct fb_con2fbmap)
367 p(struct fb_copyarea)
369 p(struct fb_fillrect)
370 p(struct fb_fix_screeninfo)
372 p(struct fb_var_screeninfo)
379 p(struct icmp6_filter)
381 p(struct icmp6_router_renum)
382 p(struct icmp_ra_addr)
384 p(struct if_nameindex)
393 //p(struct in6_mutinfo)
394 p(struct in6_pktinfo)
398 p(struct inotify_event)
408 p(struct ip6_opt_jumbo)
409 p(struct ip6_opt_nsap)
410 p(struct ip6_opt_router)
411 p(struct ip6_opt_tunnel)
417 p(struct ip_timestamp)
432 p(struct loop_info64)
439 p(struct nd_neighbor_advert)
440 p(struct nd_neighbor_solicit)
441 p(struct nd_opt_adv_interval)
443 p(struct nd_opt_home_agent_info)
445 p(struct nd_opt_prefix_info)
446 p(struct nd_opt_rd_hdr)
447 p(struct nd_redirect)
448 p(struct nd_router_advert)
449 p(struct nd_router_solicit)
451 //p(struct npttimeval)
452 p(struct ns_tcp_tsig_state)
453 p(struct ns_tsig_key)
455 p(struct packet_mreq)
461 p(struct rr_pco_match)
466 p(struct sched_param)
477 p(struct signalfd_siginfo)
479 p(struct sockaddr_in)
480 p(struct sockaddr_in6)
481 p(struct sockaddr_ll)
482 p(struct sockaddr_storage)
483 p(struct sockaddr_un)
491 p(struct strfdinsert)
510 p(struct user_fpregs_struct)
511 p(struct user_fpxregs_struct)
512 p(struct user_regs_struct)