2 #define _LARGEFILE64_SOURCE 1
3 #define _FILE_OFFSET_BITS 64
10 #include <arpa/inet.h>
11 #include <arpa/nameser.h>
12 #include <arpa/telnet.h>
24 //#include <features.h>
41 #include <linux/loop.h>
42 #include <linux/version.h>
49 #include <net/ethernet.h>
51 #include <net/if_arp.h>
52 #include <net/route.h>
54 #include <netinet/icmp6.h>
55 #include <netinet/if_ether.h>
56 #include <netinet/in.h>
57 #include <netinet/ip.h>
58 #include <netinet/ip6.h>
59 #include <netinet/ip_icmp.h>
60 #include <netinet/tcp.h>
61 #include <netinet/udp.h>
62 #include <netpacket/packet.h>
73 #include <semaphore.h>
83 #include <stdio_ext.h>
88 #include <sys/epoll.h>
89 #include <sys/eventfd.h>
91 #include <sys/inotify.h>
92 #include <sys/ioctl.h>
97 #include <sys/mount.h>
99 #include <sys/param.h>
100 #include <sys/poll.h>
101 #include <sys/prctl.h>
102 #include <sys/procfs.h>
103 #include <sys/ptrace.h>
104 #include <sys/reboot.h>
106 #include <sys/resource.h>
107 #include <sys/select.h>
109 #include <sys/sendfile.h>
111 #include <sys/signalfd.h>
112 #include <sys/socket.h>
113 #include <sys/soundcard.h>
114 #include <sys/stat.h>
115 #include <sys/statfs.h>
116 #include <sys/statvfs.h>
117 #include <sys/stropts.h>
118 #include <sys/swap.h>
119 #include <sys/syscall.h>
120 #include <sys/sysctl.h>
121 #include <sys/sysinfo.h>
122 #include <sys/syslog.h>
123 #include <sys/sysmacros.h>
124 #include <sys/time.h>
125 #include <sys/times.h>
126 #include <sys/timex.h>
127 #include <sys/types.h>
128 #include <sys/ucontext.h>
131 #include <sys/user.h>
132 #include <sys/utsname.h>
135 #include <sys/wait.h>
136 #include <sysexits.h>
141 #include <ucontext.h>
150 #define p(x) printf("%s\t%u\n", #x, sizeof(x));
297 p(ns_update_operation)
300 p(posix_spawn_file_actions_t)
309 p(pthread_barrierattr_t)
311 p(pthread_condattr_t)
314 p(pthread_mutexattr_t)
317 p(pthread_rwlockattr_t)
318 p(pthread_spinlock_t)
344 //p(struct __fpstate)
348 p(struct __res_state)
349 //p(struct __siginfo)
350 //p(struct __ucontext)
351 p(struct _ns_flagdata)
354 p(struct arpd_request)
360 p(struct console_font_op)
361 p(struct consolefontdesc)
363 p(struct elf_prpsinfo)
364 p(struct elf_prstatus)
365 p(struct elf_siginfo)
366 p(struct epoll_event)
369 p(struct ether_header)
371 p(struct fb_bitfield)
373 p(struct fb_con2fbmap)
374 p(struct fb_copyarea)
376 p(struct fb_fillrect)
377 p(struct fb_fix_screeninfo)
379 p(struct fb_var_screeninfo)
386 p(struct icmp6_filter)
388 p(struct icmp6_router_renum)
389 p(struct icmp_ra_addr)
391 p(struct if_nameindex)
400 p(struct in6_pktinfo)
404 p(struct inotify_event)
413 p(struct ip6_mtuinfo)
415 p(struct ip6_opt_jumbo)
416 p(struct ip6_opt_nsap)
417 p(struct ip6_opt_router)
418 p(struct ip6_opt_tunnel)
424 p(struct ip_timestamp)
439 p(struct loop_info64)
446 p(struct nd_neighbor_advert)
447 p(struct nd_neighbor_solicit)
448 p(struct nd_opt_adv_interval)
450 p(struct nd_opt_home_agent_info)
452 p(struct nd_opt_prefix_info)
453 p(struct nd_opt_rd_hdr)
454 p(struct nd_redirect)
455 p(struct nd_router_advert)
456 p(struct nd_router_solicit)
458 p(struct ns_tcp_tsig_state)
459 p(struct ns_tsig_key)
462 p(struct packet_mreq)
469 p(struct rr_pco_match)
474 p(struct sched_param)
485 p(struct signalfd_siginfo)
487 p(struct sockaddr_in)
488 p(struct sockaddr_in6)
489 p(struct sockaddr_ll)
490 p(struct sockaddr_storage)
491 p(struct sockaddr_un)
499 p(struct strfdinsert)
518 p(struct user_fpregs_struct)
519 p(struct user_fpxregs_struct)
520 p(struct user_regs_struct)