minor fix to the type table
[musl-tables] / sizeof.c
index fee47e2..7811bbc 100644 (file)
--- a/sizeof.c
+++ b/sizeof.c
@@ -1,6 +1,7 @@
 #define _GNU_SOURCE 1
 #define _LARGEFILE64_SOURCE 1
 #define _FILE_OFFSET_BITS 64
+#define SYSLOG_NAMES 1
 #include <stddef.h>
 #include <sys/types.h>
 
 #define p(x) printf("%s\t%u\n", #x, sizeof(x));
 int main(){
 p(ACTION)
-//p(CODE)
+p(CODE)
 //p(DIR)
 p(ENTRY)
 p(Elf32_Addr)
@@ -210,21 +211,21 @@ p(Elf_Options_Hw)
 //p(FILE)
 p(HEADER)
 p(VISIT)
+p(_Bool)
 p(__uint16_t)
 p(__uint32_t)
 p(__uint64_t)
 p(blkcnt_t)
 p(blksize_t)
-p(bool)
 p(caddr_t)
 p(cc_t)
 p(clock_t)
 p(clockid_t)
 p(dev_t)
 p(div_t)
+p(double)
 p(elf_fpregset_t)
-p(elf_fpregset_t)
-p(elf_fpxregset_t)
+//p(elf_fpxregset_t)
 p(elf_greg_t)
 p(elf_gregset_t)
 p(epoll_data_t)
@@ -233,6 +234,7 @@ p(fd_mask)
 p(fd_set)
 p(fenv_t)
 p(fexcept_t)
+p(float)
 p(fpos_t)
 p(fsblkcnt_t)
 p(fsfilcnt_t)
@@ -246,6 +248,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)
@@ -265,6 +268,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)
@@ -322,6 +328,7 @@ p(rlim_t)
 p(sa_family_t)
 p(scrnmap_t)
 p(sem_t)
+p(short)
 p(sig_atomic_t)
 p(sighandler_t)
 p(siginfo_t)
@@ -390,7 +397,6 @@ 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)
@@ -404,6 +410,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)
@@ -448,14 +455,15 @@ 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 qelem)
 p(struct res_sym)
 p(struct rlimit)
 p(struct rr_pco_match)
@@ -553,10 +561,10 @@ p(union epoll_data)
 p(union sigval)
 p(ushort)
 p(va_list)
-p(va_list)
+p(void*)
+p(wchar_t)
 p(wctrans_t)
 p(wctype_t)
 p(wint_t)
 p(wordexp_t)
-p(wchar_t)
 return 0;}