update makefile
[musl-tables] / sizeof.c
index 4c1d725..9447bb1 100644 (file)
--- a/sizeof.c
+++ b/sizeof.c
 #define _GNU_SOURCE 1
-#define _LARGEFILE64_SOURCE 1 
-#define _FILE_OFFSET_BITS 64 
-
+#define _LARGEFILE64_SOURCE 1
+#define _FILE_OFFSET_BITS 64
+#define SYSLOG_NAMES 1
 #include <stddef.h>
-#include <stdint.h>
 #include <sys/types.h>
 
+#include <aio.h>
+#include <alloca.h>
+#include <ar.h>
+#include <arpa/ftp.h>
+#include <arpa/inet.h>
 #include <arpa/nameser.h>
-//#include <bits/alltypes.h>
-//#include <bits/fenv.h>
-#include <fenv.h>
-//#include <bits/in.h>
-#include <netinet/in.h>
-//#include <bits/ioctl.h>
-#include <sys/ioctl.h>
-//#include <bits/ipc.h>
-#include <sys/ipc.h>
-//#include <bits/msg.h>
-#include <sys/msg.h>
-//#include <bits/pthread.h>
-#include <pthread.h>
-//#include <bits/setjmp.h>
-//#include <bits/shm.h>
-#include <sys/shm.h>
-//#include <bits/signal.h>
-//#include <bits/socket.h>
-//#include <bits/stat.h>
-#include <sys/stat.h>
-//#include <bits/statfs.h>
-#include <sys/statfs.h>
-//#include <bits/termios.h>
-//#include <bits/user.h>
-#include <sys/user.h>
+#include <arpa/nameser_compat.h>
+#include <arpa/telnet.h>
+#include <arpa/tftp.h>
+#include <assert.h>
+#include <byteswap.h>
+#include <complex.h>
+#include <cpio.h>
+#include <crypt.h>
+#include <ctype.h>
 #include <dirent.h>
+#include <dlfcn.h>
 #include <elf.h>
+#include <endian.h>
+#include <err.h>
+#include <errno.h>
 #include <fcntl.h>
+#include <features.h>
+#include <fenv.h>
+#include <float.h>
+#include <fnmatch.h>
 #include <ftw.h>
 #include <getopt.h>
 #include <glob.h>
 #include <grp.h>
 #include <iconv.h>
+#include <ifaddrs.h>
 #include <inttypes.h>
-#include <linux/fb.h>
-#include <linux/kd.h>
-#include <linux/loop.h>
-#include <linux/vt.h>
+#include <iso646.h>
+#include <langinfo.h>
+#include <lastlog.h>
+#include <libgen.h>
+#include <libintl.h>
+#include <limits.h>
+#include <link.h>
 #include <locale.h>
+#include <malloc.h>
+#include <math.h>
+#include <memory.h>
 #include <mntent.h>
+#include <monetary.h>
 #include <mqueue.h>
 #include <net/ethernet.h>
 #include <net/if.h>
 #include <net/if_arp.h>
 #include <net/route.h>
 #include <netdb.h>
+#include <netinet/ether.h>
 #include <netinet/icmp6.h>
 #include <netinet/if_ether.h>
+#include <netinet/igmp.h>
 #include <netinet/in.h>
+#include <netinet/in_systm.h>
 #include <netinet/ip.h>
 #include <netinet/ip6.h>
 #include <netinet/ip_icmp.h>
+#include <netinet/tcp.h>
 #include <netinet/udp.h>
 #include <netpacket/packet.h>
 #include <nl_types.h>
+#include <paths.h>
 #include <poll.h>
+#include <pthread.h>
+#include <pty.h>
 #include <pwd.h>
 #include <regex.h>
 #include <resolv.h>
 #include <sched.h>
+#include <scsi/scsi.h>
+#include <scsi/scsi_ioctl.h>
+#include <scsi/sg.h>
+#include <search.h>
 #include <semaphore.h>
 #include <setjmp.h>
 #include <shadow.h>
 #include <signal.h>
 #include <spawn.h>
+//#include <stdalign.h>
+#include <stdarg.h>
 #include <stdbool.h>
+#include <stddef.h>
 #include <stdint.h>
 #include <stdio.h>
+#include <stdio_ext.h>
 #include <stdlib.h>
+//#include <stdnoreturn.h>
+#include <string.h>
+#include <strings.h>
+#include <stropts.h>
+#include <sys/acct.h>
+//#include <sys/cachectl.h>
+#include <sys/dir.h>
 #include <sys/epoll.h>
+//#include <sys/errno.h>
 #include <sys/eventfd.h>
+#include <sys/fanotify.h>
+//#include <sys/fcntl.h>
+#include <sys/file.h>
+#include <sys/fsuid.h>
 #include <sys/inotify.h>
+//#include <sys/io.h>
+#include <sys/ioctl.h>
+#include <sys/ipc.h>
+//#include <sys/kd.h>
+#include <sys/klog.h>
+#include <sys/mman.h>
+#include <sys/mount.h>
 #include <sys/msg.h>
+#include <sys/mtio.h>
+#include <sys/param.h>
+#include <sys/personality.h>
+//#include <sys/poll.h>
+#include <sys/prctl.h>
 #include <sys/procfs.h>
+#include <sys/ptrace.h>
+#include <sys/quota.h>
+#include <sys/reboot.h>
+//#include <sys/reg.h>
 #include <sys/resource.h>
 #include <sys/select.h>
 #include <sys/sem.h>
+#include <sys/sendfile.h>
 #include <sys/shm.h>
+//#include <sys/signal.h>
 #include <sys/signalfd.h>
 #include <sys/socket.h>
+//#include <sys/soundcard.h>
+#include <sys/stat.h>
+#include <sys/statfs.h>
+#include <sys/statvfs.h>
+#include <sys/stropts.h>
+#include <sys/swap.h>
+#include <sys/syscall.h>
+//#include <sys/sysctl.h>
 #include <sys/sysinfo.h>
+#include <sys/syslog.h>
+#include <sys/sysmacros.h>
+//#include <sys/termios.h>
 #include <sys/time.h>
+#include <sys/timeb.h>
+#include <sys/timerfd.h>
 #include <sys/times.h>
 #include <sys/timex.h>
+#include <sys/ttydefaults.h>
 #include <sys/types.h>
+#include <sys/ucontext.h>
+#include <sys/uio.h>
 #include <sys/un.h>
+#include <sys/user.h>
 #include <sys/utsname.h>
+#include <sys/vfs.h>
+//#include <sys/vt.h>
 #include <sys/wait.h>
+#include <sys/xattr.h>
+#include <syscall.h>
+#include <sysexits.h>
 #include <syslog.h>
+#include <tar.h>
 #include <termios.h>
+#include <tgmath.h>
 #include <time.h>
+#include <ucontext.h>
+#include <ulimit.h>
+#include <unistd.h>
 #include <utime.h>
+#include <utmp.h>
 #include <utmpx.h>
+#include <values.h>
+//#include <wait.h>
 #include <wchar.h>
+#include <wctype.h>
 #include <wordexp.h>
 #define p(x) printf("%s\t%u\n", #x, sizeof(x));
 int main(){
-//p(CODE)
+p(ACTION)
+p(CODE)
 //p(DIR)
+p(Dl_info)
+p(ENTRY)
 p(Elf32_Addr)
 p(Elf32_Conflict)
 p(Elf32_Dyn)
@@ -161,20 +244,29 @@ p(Elf64_Xword)
 p(Elf64_auxv_t)
 p(Elf_Options)
 p(Elf_Options_Hw)
+p(Elf_Symndx)
 //p(FILE)
 p(HEADER)
-p(__uint16_t)
-p(__uint32_t)
-p(__uint64_t)
+p(Sg_io_hdr)
+//p(Sg_io_vec)
+p(Sg_req_info)
+p(Sg_scsi_id)
+p(VISIT)
+p(_Bool)
+//p(__isoc_va_list)
+p(__jmp_buf)
 p(blkcnt_t)
 p(blksize_t)
-p(bool)
 p(caddr_t)
 p(cc_t)
 p(clock_t)
 p(clockid_t)
+p(comp_t)
+p(cpu_set_t)
 p(dev_t)
 p(div_t)
+p(double)
+p(double_t)
 p(elf_fpregset_t)
 //p(elf_fpxregset_t)
 p(elf_greg_t)
@@ -185,11 +277,17 @@ p(fd_mask)
 p(fd_set)
 p(fenv_t)
 p(fexcept_t)
+p(float)
+p(float_t)
 p(fpos_t)
+p(fpregset_t)
 p(fsblkcnt_t)
 p(fsfilcnt_t)
+p(fsid_t)
 p(gid_t)
 p(glob_t)
+p(greg_t)
+p(gregset_t)
 p(iconv_t)
 p(id_t)
 p(idtype_t)
@@ -197,6 +295,7 @@ p(imaxdiv_t)
 p(in_addr_t)
 p(in_port_t)
 p(ino_t)
+p(int)
 p(int16_t)
 p(int32_t)
 p(int64_t)
@@ -216,6 +315,9 @@ p(key_t)
 p(ldiv_t)
 p(lldiv_t)
 p(locale_t)
+p(long)
+p(long double)
+p(long long)
 p(lwpid_t)
 p(mbstate_t)
 p(mcontext_t)
@@ -223,6 +325,9 @@ p(mode_t)
 p(mqd_t)
 p(msglen_t)
 p(msgqnum_t)
+p(n_long)
+p(n_short)
+p(n_time)
 p(nfds_t)
 p(nl_catd)
 p(nl_item)
@@ -271,9 +376,14 @@ p(regoff_t)
 p(res_state)
 p(rlim_t)
 p(sa_family_t)
-p(scrnmap_t)
-//p(sem_t)
+p(sem_t)
+p(sg_io_hdr_t)
+p(sg_iovec_t)
+p(sg_req_info_t)
+p(shmatt_t)
+p(short)
 p(sig_atomic_t)
+p(sig_t)
 p(sighandler_t)
 p(siginfo_t)
 p(sigjmp_buf)
@@ -285,44 +395,52 @@ p(ssize_t)
 p(stack_t)
 p(struct FTW)
 //p(struct __CODE)
-//p(struct __fpstate)
+//p(struct __fsid_t)
+p(struct __jmp_buf_tag)
+//p(struct __mbstate_t)
 p(struct __ns_msg)
 p(struct __ns_rr)
 //p(struct __ptcb)
 p(struct __res_state)
-//p(struct __siginfo)
+//p(struct __sigset_t)
 //p(struct __ucontext)
+//p(struct _fpstate)
 p(struct _ns_flagdata)
+p(struct acct)
+p(struct acct_v3)
 p(struct addrinfo)
+p(struct aiocb)
+p(struct ar_hdr)
 p(struct arpd_request)
 p(struct arphdr)
 p(struct arpreq)
 p(struct arpreq_old)
+p(struct bandinfo)
+p(struct ccs_modesel_head)
 p(struct cmsghdr)
-p(struct console_font_op)
-p(struct consolefontdesc)
+//p(struct cpu_set_t)
+p(struct crypt_data)
 p(struct dirent)
+p(struct dl_phdr_info)
+p(struct dqblk)
+p(struct dqinfo)
 p(struct elf_prpsinfo)
 p(struct elf_prstatus)
 p(struct elf_siginfo)
+p(struct entry)
 p(struct epoll_event)
 p(struct ether_addr)
 p(struct ether_arp)
 p(struct ether_header)
 p(struct ethhdr)
-p(struct fb_bitfield)
-p(struct fb_cmap)
-p(struct fb_con2fbmap)
-p(struct fb_copyarea)
-p(struct fb_cursor)
-p(struct fb_fillrect)
-p(struct fb_fix_screeninfo)
-p(struct fb_image)
-p(struct fb_var_screeninfo)
-p(struct fb_vblank)
-p(struct fbcurpos)
+p(struct f_owner_ex)
+p(struct fanotify_event_metadata)
+p(struct fanotify_response)
 p(struct flock)
 p(struct group)
+p(struct group_filter)
+p(struct group_req)
+p(struct group_source_req)
 p(struct hostent)
 p(struct icmp)
 p(struct icmp6_filter)
@@ -332,14 +450,15 @@ p(struct icmp_ra_addr)
 p(struct icmphdr)
 p(struct if_nameindex)
 p(struct ifaddr)
+p(struct ifaddrs)
 p(struct ifconf)
 p(struct ifmap)
 p(struct ifreq)
+p(struct igmp)
 p(struct ih_idseq)
 p(struct ih_pmtu)
 p(struct ih_rtradv)
 p(struct in6_addr)
-//p(struct in6_mutinfo)
 p(struct in6_pktinfo)
 p(struct in6_rtmsg)
 p(struct in_addr)
@@ -353,6 +472,7 @@ p(struct ip6_frag)
 p(struct ip6_hbh)
 p(struct ip6_hdr)
 p(struct ip6_hdrctl)
+p(struct ip6_mtuinfo)
 p(struct ip6_opt)
 p(struct ip6_opt_jumbo)
 p(struct ip6_opt_nsap)
@@ -361,7 +481,9 @@ p(struct ip6_opt_tunnel)
 p(struct ip6_rthdr)
 p(struct ip6_rthdr0)
 p(struct ip_mreq)
+p(struct ip_mreq_source)
 p(struct ip_mreqn)
+p(struct ip_msfilter)
 p(struct ip_opts)
 p(struct ip_timestamp)
 p(struct ipc_perm)
@@ -369,22 +491,22 @@ p(struct iphdr)
 p(struct ipv6_mreq)
 p(struct itimerspec)
 p(struct itimerval)
-p(struct kbd_repeat)
-p(struct kbdiacr)
-p(struct kbdiacrs)
-p(struct kbentry)
-p(struct kbkeycode)
-p(struct kbsentry)
+p(struct lastlog)
 p(struct lconv)
 p(struct linger)
-p(struct loop_info)
-p(struct loop_info64)
+p(struct link_map)
 p(struct mld_hdr)
 p(struct mntent)
 p(struct mq_attr)
+p(struct msgbuf)
 p(struct msghdr)
 p(struct msginfo)
 p(struct msqid_ds)
+p(struct mt_tape_info)
+p(struct mtconfiginfo)
+p(struct mtget)
+p(struct mtop)
+p(struct mtpos)
 p(struct nd_neighbor_advert)
 p(struct nd_neighbor_solicit)
 p(struct nd_opt_adv_interval)
@@ -397,14 +519,18 @@ p(struct nd_redirect)
 p(struct nd_router_advert)
 p(struct nd_router_solicit)
 p(struct netent)
-//p(struct npttimeval)
 p(struct ns_tcp_tsig_state)
 p(struct ns_tsig_key)
+p(struct ntptimeval)
 p(struct option)
 p(struct packet_mreq)
 p(struct passwd)
 p(struct pollfd)
 p(struct protoent)
+//p(struct ptrace_peeksiginfo_args)
+p(struct qelem)
+p(struct r_debug)
+p(struct re_pattern_buffer)
 p(struct res_sym)
 p(struct rlimit)
 p(struct rr_pco_match)
@@ -417,10 +543,16 @@ p(struct sembuf)
 p(struct semid_ds)
 p(struct seminfo)
 p(struct servent)
+p(struct sg_header)
+p(struct sg_io_hdr)
+p(struct sg_iovec)
+p(struct sg_req_info)
+p(struct sg_scsi_id)
 p(struct shm_info)
 p(struct shmid_ds)
 p(struct shminfo)
 p(struct sigaction)
+p(struct sigaltstack)
 p(struct sigcontext)
 p(struct sigevent)
 p(struct signalfd_siginfo)
@@ -432,9 +564,22 @@ p(struct sockaddr_storage)
 p(struct sockaddr_un)
 p(struct spwd)
 p(struct stat)
-//p(struct statvfs)
+p(struct statfs)
+p(struct statvfs)
+p(struct str_list)
+p(struct str_mlist)
+p(struct strbuf)
+p(struct strfdinsert)
+p(struct strioctl)
+p(struct strpeek)
+p(struct strrecvfd)
 p(struct sysinfo)
+p(struct tcp_info)
+p(struct tcp_md5sig)
+p(struct tcphdr)
 p(struct termios)
+p(struct tftphdr)
+p(struct timeb)
 p(struct timespec)
 p(struct timestamp)
 p(struct timeval)
@@ -444,9 +589,6 @@ p(struct tm)
 p(struct tms)
 p(struct ucred)
 p(struct udphdr)
-p(struct unimapdesc)
-p(struct unimapinit)
-p(struct unipair)
 p(struct user)
 p(struct user_fpregs_struct)
 //p(struct user_fpxregs_struct)
@@ -454,10 +596,6 @@ p(struct user_regs_struct)
 p(struct utimbuf)
 p(struct utmpx)
 p(struct utsname)
-p(struct vt_consize)
-p(struct vt_mode)
-p(struct vt_sizes)
-p(struct vt_stat)
 p(struct winsize)
 p(suseconds_t)
 p(tcflag_t)
@@ -490,13 +628,16 @@ p(uint_least8_t)
 p(uintmax_t)
 p(uintptr_t)
 p(ulong)
+//p(union _G_fpos64_t)
 p(union epoll_data)
 p(union sigval)
+p(useconds_t)
 p(ushort)
 p(va_list)
+p(void*)
 p(wchar_t)
-//p(wctrans_t)
-//p(wctype_t)
+p(wctrans_t)
+p(wctype_t)
 p(wint_t)
 p(wordexp_t)
 return 0;}