9447bb1b92b8bb8bbca7aad7d978d49ffc19a6df
[musl-tables] / sizeof.c
1 #define _GNU_SOURCE 1
2 #define _LARGEFILE64_SOURCE 1
3 #define _FILE_OFFSET_BITS 64
4 #define SYSLOG_NAMES 1
5 #include <stddef.h>
6 #include <sys/types.h>
7
8 #include <aio.h>
9 #include <alloca.h>
10 #include <ar.h>
11 #include <arpa/ftp.h>
12 #include <arpa/inet.h>
13 #include <arpa/nameser.h>
14 #include <arpa/nameser_compat.h>
15 #include <arpa/telnet.h>
16 #include <arpa/tftp.h>
17 #include <assert.h>
18 #include <byteswap.h>
19 #include <complex.h>
20 #include <cpio.h>
21 #include <crypt.h>
22 #include <ctype.h>
23 #include <dirent.h>
24 #include <dlfcn.h>
25 #include <elf.h>
26 #include <endian.h>
27 #include <err.h>
28 #include <errno.h>
29 #include <fcntl.h>
30 #include <features.h>
31 #include <fenv.h>
32 #include <float.h>
33 #include <fnmatch.h>
34 #include <ftw.h>
35 #include <getopt.h>
36 #include <glob.h>
37 #include <grp.h>
38 #include <iconv.h>
39 #include <ifaddrs.h>
40 #include <inttypes.h>
41 #include <iso646.h>
42 #include <langinfo.h>
43 #include <lastlog.h>
44 #include <libgen.h>
45 #include <libintl.h>
46 #include <limits.h>
47 #include <link.h>
48 #include <locale.h>
49 #include <malloc.h>
50 #include <math.h>
51 #include <memory.h>
52 #include <mntent.h>
53 #include <monetary.h>
54 #include <mqueue.h>
55 #include <net/ethernet.h>
56 #include <net/if.h>
57 #include <net/if_arp.h>
58 #include <net/route.h>
59 #include <netdb.h>
60 #include <netinet/ether.h>
61 #include <netinet/icmp6.h>
62 #include <netinet/if_ether.h>
63 #include <netinet/igmp.h>
64 #include <netinet/in.h>
65 #include <netinet/in_systm.h>
66 #include <netinet/ip.h>
67 #include <netinet/ip6.h>
68 #include <netinet/ip_icmp.h>
69 #include <netinet/tcp.h>
70 #include <netinet/udp.h>
71 #include <netpacket/packet.h>
72 #include <nl_types.h>
73 #include <paths.h>
74 #include <poll.h>
75 #include <pthread.h>
76 #include <pty.h>
77 #include <pwd.h>
78 #include <regex.h>
79 #include <resolv.h>
80 #include <sched.h>
81 #include <scsi/scsi.h>
82 #include <scsi/scsi_ioctl.h>
83 #include <scsi/sg.h>
84 #include <search.h>
85 #include <semaphore.h>
86 #include <setjmp.h>
87 #include <shadow.h>
88 #include <signal.h>
89 #include <spawn.h>
90 //#include <stdalign.h>
91 #include <stdarg.h>
92 #include <stdbool.h>
93 #include <stddef.h>
94 #include <stdint.h>
95 #include <stdio.h>
96 #include <stdio_ext.h>
97 #include <stdlib.h>
98 //#include <stdnoreturn.h>
99 #include <string.h>
100 #include <strings.h>
101 #include <stropts.h>
102 #include <sys/acct.h>
103 //#include <sys/cachectl.h>
104 #include <sys/dir.h>
105 #include <sys/epoll.h>
106 //#include <sys/errno.h>
107 #include <sys/eventfd.h>
108 #include <sys/fanotify.h>
109 //#include <sys/fcntl.h>
110 #include <sys/file.h>
111 #include <sys/fsuid.h>
112 #include <sys/inotify.h>
113 //#include <sys/io.h>
114 #include <sys/ioctl.h>
115 #include <sys/ipc.h>
116 //#include <sys/kd.h>
117 #include <sys/klog.h>
118 #include <sys/mman.h>
119 #include <sys/mount.h>
120 #include <sys/msg.h>
121 #include <sys/mtio.h>
122 #include <sys/param.h>
123 #include <sys/personality.h>
124 //#include <sys/poll.h>
125 #include <sys/prctl.h>
126 #include <sys/procfs.h>
127 #include <sys/ptrace.h>
128 #include <sys/quota.h>
129 #include <sys/reboot.h>
130 //#include <sys/reg.h>
131 #include <sys/resource.h>
132 #include <sys/select.h>
133 #include <sys/sem.h>
134 #include <sys/sendfile.h>
135 #include <sys/shm.h>
136 //#include <sys/signal.h>
137 #include <sys/signalfd.h>
138 #include <sys/socket.h>
139 //#include <sys/soundcard.h>
140 #include <sys/stat.h>
141 #include <sys/statfs.h>
142 #include <sys/statvfs.h>
143 #include <sys/stropts.h>
144 #include <sys/swap.h>
145 #include <sys/syscall.h>
146 //#include <sys/sysctl.h>
147 #include <sys/sysinfo.h>
148 #include <sys/syslog.h>
149 #include <sys/sysmacros.h>
150 //#include <sys/termios.h>
151 #include <sys/time.h>
152 #include <sys/timeb.h>
153 #include <sys/timerfd.h>
154 #include <sys/times.h>
155 #include <sys/timex.h>
156 #include <sys/ttydefaults.h>
157 #include <sys/types.h>
158 #include <sys/ucontext.h>
159 #include <sys/uio.h>
160 #include <sys/un.h>
161 #include <sys/user.h>
162 #include <sys/utsname.h>
163 #include <sys/vfs.h>
164 //#include <sys/vt.h>
165 #include <sys/wait.h>
166 #include <sys/xattr.h>
167 #include <syscall.h>
168 #include <sysexits.h>
169 #include <syslog.h>
170 #include <tar.h>
171 #include <termios.h>
172 #include <tgmath.h>
173 #include <time.h>
174 #include <ucontext.h>
175 #include <ulimit.h>
176 #include <unistd.h>
177 #include <utime.h>
178 #include <utmp.h>
179 #include <utmpx.h>
180 #include <values.h>
181 //#include <wait.h>
182 #include <wchar.h>
183 #include <wctype.h>
184 #include <wordexp.h>
185 #define p(x) printf("%s\t%u\n", #x, sizeof(x));
186 int main(){
187 p(ACTION)
188 p(CODE)
189 //p(DIR)
190 p(Dl_info)
191 p(ENTRY)
192 p(Elf32_Addr)
193 p(Elf32_Conflict)
194 p(Elf32_Dyn)
195 p(Elf32_Ehdr)
196 p(Elf32_Half)
197 p(Elf32_Lib)
198 p(Elf32_Move)
199 p(Elf32_Nhdr)
200 p(Elf32_Off)
201 p(Elf32_Phdr)
202 p(Elf32_RegInfo)
203 p(Elf32_Rel)
204 p(Elf32_Rela)
205 p(Elf32_Section)
206 p(Elf32_Shdr)
207 p(Elf32_Sword)
208 p(Elf32_Sxword)
209 p(Elf32_Sym)
210 p(Elf32_Syminfo)
211 p(Elf32_Verdaux)
212 p(Elf32_Verdef)
213 p(Elf32_Vernaux)
214 p(Elf32_Verneed)
215 p(Elf32_Versym)
216 p(Elf32_Word)
217 p(Elf32_Xword)
218 p(Elf32_auxv_t)
219 p(Elf32_gptab)
220 p(Elf64_Addr)
221 p(Elf64_Dyn)
222 p(Elf64_Ehdr)
223 p(Elf64_Half)
224 p(Elf64_Lib)
225 p(Elf64_Move)
226 p(Elf64_Nhdr)
227 p(Elf64_Off)
228 p(Elf64_Phdr)
229 p(Elf64_Rel)
230 p(Elf64_Rela)
231 p(Elf64_Section)
232 p(Elf64_Shdr)
233 p(Elf64_Sword)
234 p(Elf64_Sxword)
235 p(Elf64_Sym)
236 p(Elf64_Syminfo)
237 p(Elf64_Verdaux)
238 p(Elf64_Verdef)
239 p(Elf64_Vernaux)
240 p(Elf64_Verneed)
241 p(Elf64_Versym)
242 p(Elf64_Word)
243 p(Elf64_Xword)
244 p(Elf64_auxv_t)
245 p(Elf_Options)
246 p(Elf_Options_Hw)
247 p(Elf_Symndx)
248 //p(FILE)
249 p(HEADER)
250 p(Sg_io_hdr)
251 //p(Sg_io_vec)
252 p(Sg_req_info)
253 p(Sg_scsi_id)
254 p(VISIT)
255 p(_Bool)
256 //p(__isoc_va_list)
257 p(__jmp_buf)
258 p(blkcnt_t)
259 p(blksize_t)
260 p(caddr_t)
261 p(cc_t)
262 p(clock_t)
263 p(clockid_t)
264 p(comp_t)
265 p(cpu_set_t)
266 p(dev_t)
267 p(div_t)
268 p(double)
269 p(double_t)
270 p(elf_fpregset_t)
271 //p(elf_fpxregset_t)
272 p(elf_greg_t)
273 p(elf_gregset_t)
274 p(epoll_data_t)
275 p(eventfd_t)
276 p(fd_mask)
277 p(fd_set)
278 p(fenv_t)
279 p(fexcept_t)
280 p(float)
281 p(float_t)
282 p(fpos_t)
283 p(fpregset_t)
284 p(fsblkcnt_t)
285 p(fsfilcnt_t)
286 p(fsid_t)
287 p(gid_t)
288 p(glob_t)
289 p(greg_t)
290 p(gregset_t)
291 p(iconv_t)
292 p(id_t)
293 p(idtype_t)
294 p(imaxdiv_t)
295 p(in_addr_t)
296 p(in_port_t)
297 p(ino_t)
298 p(int)
299 p(int16_t)
300 p(int32_t)
301 p(int64_t)
302 p(int8_t)
303 p(int_fast16_t)
304 p(int_fast32_t)
305 p(int_fast64_t)
306 p(int_fast8_t)
307 p(int_least16_t)
308 p(int_least32_t)
309 p(int_least64_t)
310 p(int_least8_t)
311 p(intmax_t)
312 p(intptr_t)
313 p(jmp_buf)
314 p(key_t)
315 p(ldiv_t)
316 p(lldiv_t)
317 p(locale_t)
318 p(long)
319 p(long double)
320 p(long long)
321 p(lwpid_t)
322 p(mbstate_t)
323 p(mcontext_t)
324 p(mode_t)
325 p(mqd_t)
326 p(msglen_t)
327 p(msgqnum_t)
328 p(n_long)
329 p(n_short)
330 p(n_time)
331 p(nfds_t)
332 p(nl_catd)
333 p(nl_item)
334 p(nlink_t)
335 p(ns_cert_types)
336 p(ns_class)
337 p(ns_flag)
338 p(ns_key_types)
339 p(ns_msg)
340 p(ns_opcode)
341 p(ns_rcode)
342 p(ns_rr)
343 p(ns_sect)
344 p(ns_tcp_tsig_state)
345 p(ns_tsig_key)
346 p(ns_type)
347 p(ns_update_operation)
348 p(off_t)
349 p(pid_t)
350 p(posix_spawn_file_actions_t)
351 p(posix_spawnattr_t)
352 p(prfpregset_t)
353 p(prgregset_t)
354 p(prpsinfo_t)
355 p(prstatus_t)
356 p(psaddr_t)
357 p(pthread_attr_t)
358 p(pthread_barrier_t)
359 p(pthread_barrierattr_t)
360 p(pthread_cond_t)
361 p(pthread_condattr_t)
362 p(pthread_key_t)
363 p(pthread_mutex_t)
364 p(pthread_mutexattr_t)
365 p(pthread_once_t)
366 p(pthread_rwlock_t)
367 p(pthread_rwlockattr_t)
368 p(pthread_spinlock_t)
369 p(pthread_t)
370 p(ptrdiff_t)
371 p(quad_t)
372 p(regex_t)
373 p(register_t)
374 p(regmatch_t)
375 p(regoff_t)
376 p(res_state)
377 p(rlim_t)
378 p(sa_family_t)
379 p(sem_t)
380 p(sg_io_hdr_t)
381 p(sg_iovec_t)
382 p(sg_req_info_t)
383 p(shmatt_t)
384 p(short)
385 p(sig_atomic_t)
386 p(sig_t)
387 p(sighandler_t)
388 p(siginfo_t)
389 p(sigjmp_buf)
390 p(sigset_t)
391 p(size_t)
392 p(socklen_t)
393 p(speed_t)
394 p(ssize_t)
395 p(stack_t)
396 p(struct FTW)
397 //p(struct __CODE)
398 //p(struct __fsid_t)
399 p(struct __jmp_buf_tag)
400 //p(struct __mbstate_t)
401 p(struct __ns_msg)
402 p(struct __ns_rr)
403 //p(struct __ptcb)
404 p(struct __res_state)
405 //p(struct __sigset_t)
406 //p(struct __ucontext)
407 //p(struct _fpstate)
408 p(struct _ns_flagdata)
409 p(struct acct)
410 p(struct acct_v3)
411 p(struct addrinfo)
412 p(struct aiocb)
413 p(struct ar_hdr)
414 p(struct arpd_request)
415 p(struct arphdr)
416 p(struct arpreq)
417 p(struct arpreq_old)
418 p(struct bandinfo)
419 p(struct ccs_modesel_head)
420 p(struct cmsghdr)
421 //p(struct cpu_set_t)
422 p(struct crypt_data)
423 p(struct dirent)
424 p(struct dl_phdr_info)
425 p(struct dqblk)
426 p(struct dqinfo)
427 p(struct elf_prpsinfo)
428 p(struct elf_prstatus)
429 p(struct elf_siginfo)
430 p(struct entry)
431 p(struct epoll_event)
432 p(struct ether_addr)
433 p(struct ether_arp)
434 p(struct ether_header)
435 p(struct ethhdr)
436 p(struct f_owner_ex)
437 p(struct fanotify_event_metadata)
438 p(struct fanotify_response)
439 p(struct flock)
440 p(struct group)
441 p(struct group_filter)
442 p(struct group_req)
443 p(struct group_source_req)
444 p(struct hostent)
445 p(struct icmp)
446 p(struct icmp6_filter)
447 p(struct icmp6_hdr)
448 p(struct icmp6_router_renum)
449 p(struct icmp_ra_addr)
450 p(struct icmphdr)
451 p(struct if_nameindex)
452 p(struct ifaddr)
453 p(struct ifaddrs)
454 p(struct ifconf)
455 p(struct ifmap)
456 p(struct ifreq)
457 p(struct igmp)
458 p(struct ih_idseq)
459 p(struct ih_pmtu)
460 p(struct ih_rtradv)
461 p(struct in6_addr)
462 p(struct in6_pktinfo)
463 p(struct in6_rtmsg)
464 p(struct in_addr)
465 p(struct in_pktinfo)
466 p(struct inotify_event)
467 p(struct iovec)
468 p(struct ip)
469 p(struct ip6_dest)
470 p(struct ip6_ext)
471 p(struct ip6_frag)
472 p(struct ip6_hbh)
473 p(struct ip6_hdr)
474 p(struct ip6_hdrctl)
475 p(struct ip6_mtuinfo)
476 p(struct ip6_opt)
477 p(struct ip6_opt_jumbo)
478 p(struct ip6_opt_nsap)
479 p(struct ip6_opt_router)
480 p(struct ip6_opt_tunnel)
481 p(struct ip6_rthdr)
482 p(struct ip6_rthdr0)
483 p(struct ip_mreq)
484 p(struct ip_mreq_source)
485 p(struct ip_mreqn)
486 p(struct ip_msfilter)
487 p(struct ip_opts)
488 p(struct ip_timestamp)
489 p(struct ipc_perm)
490 p(struct iphdr)
491 p(struct ipv6_mreq)
492 p(struct itimerspec)
493 p(struct itimerval)
494 p(struct lastlog)
495 p(struct lconv)
496 p(struct linger)
497 p(struct link_map)
498 p(struct mld_hdr)
499 p(struct mntent)
500 p(struct mq_attr)
501 p(struct msgbuf)
502 p(struct msghdr)
503 p(struct msginfo)
504 p(struct msqid_ds)
505 p(struct mt_tape_info)
506 p(struct mtconfiginfo)
507 p(struct mtget)
508 p(struct mtop)
509 p(struct mtpos)
510 p(struct nd_neighbor_advert)
511 p(struct nd_neighbor_solicit)
512 p(struct nd_opt_adv_interval)
513 p(struct nd_opt_hdr)
514 p(struct nd_opt_home_agent_info)
515 p(struct nd_opt_mtu)
516 p(struct nd_opt_prefix_info)
517 p(struct nd_opt_rd_hdr)
518 p(struct nd_redirect)
519 p(struct nd_router_advert)
520 p(struct nd_router_solicit)
521 p(struct netent)
522 p(struct ns_tcp_tsig_state)
523 p(struct ns_tsig_key)
524 p(struct ntptimeval)
525 p(struct option)
526 p(struct packet_mreq)
527 p(struct passwd)
528 p(struct pollfd)
529 p(struct protoent)
530 //p(struct ptrace_peeksiginfo_args)
531 p(struct qelem)
532 p(struct r_debug)
533 p(struct re_pattern_buffer)
534 p(struct res_sym)
535 p(struct rlimit)
536 p(struct rr_pco_match)
537 p(struct rr_pco_use)
538 p(struct rr_result)
539 p(struct rtentry)
540 p(struct rusage)
541 p(struct sched_param)
542 p(struct sembuf)
543 p(struct semid_ds)
544 p(struct seminfo)
545 p(struct servent)
546 p(struct sg_header)
547 p(struct sg_io_hdr)
548 p(struct sg_iovec)
549 p(struct sg_req_info)
550 p(struct sg_scsi_id)
551 p(struct shm_info)
552 p(struct shmid_ds)
553 p(struct shminfo)
554 p(struct sigaction)
555 p(struct sigaltstack)
556 p(struct sigcontext)
557 p(struct sigevent)
558 p(struct signalfd_siginfo)
559 p(struct sockaddr)
560 p(struct sockaddr_in)
561 p(struct sockaddr_in6)
562 p(struct sockaddr_ll)
563 p(struct sockaddr_storage)
564 p(struct sockaddr_un)
565 p(struct spwd)
566 p(struct stat)
567 p(struct statfs)
568 p(struct statvfs)
569 p(struct str_list)
570 p(struct str_mlist)
571 p(struct strbuf)
572 p(struct strfdinsert)
573 p(struct strioctl)
574 p(struct strpeek)
575 p(struct strrecvfd)
576 p(struct sysinfo)
577 p(struct tcp_info)
578 p(struct tcp_md5sig)
579 p(struct tcphdr)
580 p(struct termios)
581 p(struct tftphdr)
582 p(struct timeb)
583 p(struct timespec)
584 p(struct timestamp)
585 p(struct timeval)
586 p(struct timex)
587 p(struct timezone)
588 p(struct tm)
589 p(struct tms)
590 p(struct ucred)
591 p(struct udphdr)
592 p(struct user)
593 p(struct user_fpregs_struct)
594 //p(struct user_fpxregs_struct)
595 p(struct user_regs_struct)
596 p(struct utimbuf)
597 p(struct utmpx)
598 p(struct utsname)
599 p(struct winsize)
600 p(suseconds_t)
601 p(tcflag_t)
602 p(time_t)
603 p(timer_t)
604 p(u_char)
605 p(u_int)
606 p(u_int16_t)
607 p(u_int32_t)
608 p(u_int64_t)
609 p(u_int8_t)
610 p(u_long)
611 p(u_quad_t)
612 p(u_short)
613 p(ucontext_t)
614 p(uid_t)
615 p(uint)
616 p(uint16_t)
617 p(uint32_t)
618 p(uint64_t)
619 p(uint8_t)
620 p(uint_fast16_t)
621 p(uint_fast32_t)
622 p(uint_fast64_t)
623 p(uint_fast8_t)
624 p(uint_least16_t)
625 p(uint_least32_t)
626 p(uint_least64_t)
627 p(uint_least8_t)
628 p(uintmax_t)
629 p(uintptr_t)
630 p(ulong)
631 //p(union _G_fpos64_t)
632 p(union epoll_data)
633 p(union sigval)
634 p(useconds_t)
635 p(ushort)
636 p(va_list)
637 p(void*)
638 p(wchar_t)
639 p(wctrans_t)
640 p(wctype_t)
641 p(wint_t)
642 p(wordexp_t)
643 return 0;}