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));
298 p(ns_update_operation)
301 p(posix_spawn_file_actions_t)
310 p(pthread_barrierattr_t)
312 p(pthread_condattr_t)
315 p(pthread_mutexattr_t)
318 p(pthread_rwlockattr_t)
319 p(pthread_spinlock_t)
345 //p(struct __fpstate)
349 p(struct __res_state)
350 //p(struct __siginfo)
351 //p(struct __ucontext)
352 p(struct _ns_flagdata)
355 p(struct arpd_request)
361 p(struct console_font_op)
362 p(struct consolefontdesc)
364 p(struct elf_prpsinfo)
365 p(struct elf_prstatus)
366 p(struct elf_siginfo)
367 p(struct epoll_event)
370 p(struct ether_header)
372 p(struct fb_bitfield)
374 p(struct fb_con2fbmap)
375 p(struct fb_copyarea)
377 p(struct fb_fillrect)
378 p(struct fb_fix_screeninfo)
380 p(struct fb_var_screeninfo)
387 p(struct icmp6_filter)
389 p(struct icmp6_router_renum)
390 p(struct icmp_ra_addr)
392 p(struct if_nameindex)
401 p(struct in6_pktinfo)
405 p(struct inotify_event)
414 p(struct ip6_mtuinfo)
416 p(struct ip6_opt_jumbo)
417 p(struct ip6_opt_nsap)
418 p(struct ip6_opt_router)
419 p(struct ip6_opt_tunnel)
425 p(struct ip_timestamp)
440 p(struct loop_info64)
447 p(struct nd_neighbor_advert)
448 p(struct nd_neighbor_solicit)
449 p(struct nd_opt_adv_interval)
451 p(struct nd_opt_home_agent_info)
453 p(struct nd_opt_prefix_info)
454 p(struct nd_opt_rd_hdr)
455 p(struct nd_redirect)
456 p(struct nd_router_advert)
457 p(struct nd_router_solicit)
459 p(struct ns_tcp_tsig_state)
460 p(struct ns_tsig_key)
463 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)