2 #define _LARGEFILE64_SOURCE 1
3 #define _FILE_OFFSET_BITS 64
9 #include <arpa/nameser.h>
10 //#include <bits/alltypes.h>
11 //#include <bits/fenv.h>
13 //#include <bits/in.h>
14 #include <netinet/in.h>
15 //#include <bits/ioctl.h>
16 #include <sys/ioctl.h>
17 //#include <bits/ipc.h>
19 //#include <bits/msg.h>
21 //#include <bits/pthread.h>
23 //#include <bits/setjmp.h>
24 //#include <bits/shm.h>
26 //#include <bits/signal.h>
27 //#include <bits/socket.h>
28 //#include <bits/stat.h>
30 //#include <bits/statfs.h>
31 #include <sys/statfs.h>
32 //#include <bits/termios.h>
33 //#include <bits/user.h>
46 #include <linux/loop.h>
51 #include <net/ethernet.h>
53 #include <net/if_arp.h>
54 #include <net/route.h>
56 #include <netinet/icmp6.h>
57 #include <netinet/if_ether.h>
58 #include <netinet/in.h>
59 #include <netinet/ip.h>
60 #include <netinet/ip6.h>
61 #include <netinet/ip_icmp.h>
62 #include <netinet/udp.h>
63 #include <netpacket/packet.h>
70 #include <semaphore.h>
79 #include <sys/epoll.h>
80 #include <sys/eventfd.h>
81 #include <sys/inotify.h>
83 #include <sys/procfs.h>
84 #include <sys/resource.h>
85 #include <sys/select.h>
88 #include <sys/signalfd.h>
89 #include <sys/socket.h>
90 #include <sys/sysinfo.h>
92 #include <sys/times.h>
93 #include <sys/timex.h>
94 #include <sys/types.h>
96 #include <sys/utsname.h>
105 #define p(x) printf("%s\t%u\n", #x, sizeof(x));
242 p(ns_update_operation
)
245 p(posix_spawn_file_actions_t
)
254 p(pthread_barrierattr_t
)
256 p(pthread_condattr_t
)
259 p(pthread_mutexattr_t
)
262 p(pthread_rwlockattr_t
)
263 p(pthread_spinlock_t
)
288 //p(struct __fpstate)
292 p(struct __res_state
)
293 //p(struct __siginfo)
294 //p(struct __ucontext)
295 p(struct _ns_flagdata
)
297 p(struct arpd_request
)
302 p(struct console_font_op
)
303 p(struct consolefontdesc
)
305 p(struct elf_prpsinfo
)
306 p(struct elf_prstatus
)
307 p(struct elf_siginfo
)
308 p(struct epoll_event
)
311 p(struct ether_header
)
313 p(struct fb_bitfield
)
315 p(struct fb_con2fbmap
)
316 p(struct fb_copyarea
)
318 p(struct fb_fillrect
)
319 p(struct fb_fix_screeninfo
)
321 p(struct fb_var_screeninfo
)
328 p(struct icmp6_filter
)
330 p(struct icmp6_router_renum
)
331 p(struct icmp_ra_addr
)
333 p(struct if_nameindex
)
342 //p(struct in6_mutinfo)
343 p(struct in6_pktinfo
)
347 p(struct inotify_event
)
357 p(struct ip6_opt_jumbo
)
358 p(struct ip6_opt_nsap
)
359 p(struct ip6_opt_router
)
360 p(struct ip6_opt_tunnel
)
366 p(struct ip_timestamp
)
381 p(struct loop_info64
)
388 p(struct nd_neighbor_advert
)
389 p(struct nd_neighbor_solicit
)
390 p(struct nd_opt_adv_interval
)
392 p(struct nd_opt_home_agent_info
)
394 p(struct nd_opt_prefix_info
)
395 p(struct nd_opt_rd_hdr
)
396 p(struct nd_redirect
)
397 p(struct nd_router_advert
)
398 p(struct nd_router_solicit
)
400 //p(struct npttimeval)
401 p(struct ns_tcp_tsig_state
)
402 p(struct ns_tsig_key
)
404 p(struct packet_mreq
)
410 p(struct rr_pco_match
)
415 p(struct sched_param
)
426 p(struct signalfd_siginfo
)
428 p(struct sockaddr_in
)
429 p(struct sockaddr_in6
)
430 p(struct sockaddr_ll
)
431 p(struct sockaddr_storage
)
432 p(struct sockaddr_un
)
451 p(struct user_fpregs_struct
)
452 //p(struct user_fpxregs_struct)
453 p(struct user_regs_struct
)