From d34f4f5b775e35865255c1d527263741d1948799 Mon Sep 17 00:00:00 2001 From: nsz Date: Tue, 20 Sep 2011 18:25:43 +0200 Subject: [PATCH] add sizeof data to the repo --- Makefile | 2 +- data/glibc.sizeof | 401 ++++++++++++++++++++++++++++++++++++++++++++++ data/musl.sizeof | 401 ++++++++++++++++++++++++++++++++++++++++++++++ data/sizeof.diff | 49 ++++++ 4 files changed, 852 insertions(+), 1 deletion(-) create mode 100644 data/glibc.sizeof create mode 100644 data/musl.sizeof create mode 100644 data/sizeof.diff diff --git a/Makefile b/Makefile index fe4a91c..825593e 100644 --- a/Makefile +++ b/Makefile @@ -11,7 +11,7 @@ tables: sizeof: sizeof-glibc sizeof-musl ./sizeof-glibc >data/glibc.sizeof ./sizeof-musl >data/musl.sizeof - diff -u data/glibc.sizeof data/musl.sizeof >sizeof.diff || true + diff -u data/glibc.sizeof data/musl.sizeof >data/sizeof.diff || true LIBGCC=`gcc -print-file-name=libgcc.a |sed 's,/libgcc.a$$,,'` # when compiling with pcc diff --git a/data/glibc.sizeof b/data/glibc.sizeof new file mode 100644 index 0000000..d27f892 --- /dev/null +++ b/data/glibc.sizeof @@ -0,0 +1,401 @@ +ACTION 4 +ENTRY 8 +Elf32_Addr 4 +Elf32_Conflict 4 +Elf32_Dyn 8 +Elf32_Ehdr 52 +Elf32_Half 2 +Elf32_Lib 20 +Elf32_Move 20 +Elf32_Nhdr 12 +Elf32_Off 4 +Elf32_Phdr 32 +Elf32_RegInfo 24 +Elf32_Rel 8 +Elf32_Rela 12 +Elf32_Section 2 +Elf32_Shdr 40 +Elf32_Sword 4 +Elf32_Sxword 8 +Elf32_Sym 16 +Elf32_Syminfo 4 +Elf32_Verdaux 8 +Elf32_Verdef 20 +Elf32_Vernaux 16 +Elf32_Verneed 16 +Elf32_Versym 2 +Elf32_Word 4 +Elf32_Xword 8 +Elf32_auxv_t 8 +Elf32_gptab 8 +Elf64_Addr 8 +Elf64_Dyn 16 +Elf64_Ehdr 64 +Elf64_Half 2 +Elf64_Lib 20 +Elf64_Move 28 +Elf64_Nhdr 12 +Elf64_Off 8 +Elf64_Phdr 56 +Elf64_Rel 16 +Elf64_Rela 24 +Elf64_Section 2 +Elf64_Shdr 64 +Elf64_Sword 4 +Elf64_Sxword 8 +Elf64_Sym 24 +Elf64_Syminfo 4 +Elf64_Verdaux 8 +Elf64_Verdef 20 +Elf64_Vernaux 16 +Elf64_Verneed 16 +Elf64_Versym 2 +Elf64_Word 4 +Elf64_Xword 8 +Elf64_auxv_t 16 +Elf_Options 8 +Elf_Options_Hw 8 +HEADER 12 +VISIT 4 +__uint16_t 2 +__uint32_t 4 +__uint64_t 8 +blkcnt_t 8 +blksize_t 4 +bool 1 +caddr_t 4 +cc_t 1 +clock_t 4 +clockid_t 4 +dev_t 8 +div_t 8 +elf_fpregset_t 108 +elf_fpregset_t 108 +elf_fpxregset_t 512 +elf_greg_t 4 +elf_gregset_t 68 +epoll_data_t 8 +eventfd_t 8 +fd_mask 4 +fd_set 128 +fenv_t 28 +fexcept_t 2 +fpos_t 16 +fsblkcnt_t 8 +fsfilcnt_t 8 +fsid_t 8 +gid_t 4 +glob_t 36 +iconv_t 4 +id_t 4 +idtype_t 4 +imaxdiv_t 16 +in_addr_t 4 +in_port_t 2 +ino_t 8 +int16_t 2 +int32_t 4 +int64_t 8 +int8_t 1 +int_fast16_t 4 +int_fast32_t 4 +int_fast64_t 8 +int_fast8_t 1 +int_least16_t 2 +int_least32_t 4 +int_least64_t 8 +int_least8_t 1 +intmax_t 8 +intptr_t 4 +jmp_buf 156 +key_t 4 +ldiv_t 8 +lldiv_t 16 +locale_t 4 +lwpid_t 4 +mbstate_t 8 +mcontext_t 88 +mode_t 4 +mqd_t 4 +msglen_t 4 +msgqnum_t 4 +nfds_t 4 +nl_catd 4 +nl_item 4 +nlink_t 4 +ns_cert_types 4 +ns_class 4 +ns_flag 4 +ns_key_types 4 +ns_msg 48 +ns_opcode 4 +ns_rcode 4 +ns_rr 1044 +ns_sect 4 +ns_tcp_tsig_state 528 +ns_tsig_key 2060 +ns_type 4 +ns_update_operation 4 +off_t 8 +pid_t 4 +posix_spawn_file_actions_t 76 +posix_spawnattr_t 336 +prfpregset_t 108 +prgregset_t 68 +prpsinfo_t 124 +prstatus_t 144 +psaddr_t 4 +pthread_attr_t 36 +pthread_barrier_t 20 +pthread_barrierattr_t 4 +pthread_cond_t 48 +pthread_condattr_t 4 +pthread_key_t 4 +pthread_mutex_t 24 +pthread_mutexattr_t 4 +pthread_once_t 4 +pthread_rwlock_t 32 +pthread_rwlockattr_t 8 +pthread_spinlock_t 4 +pthread_t 4 +ptrdiff_t 4 +quad_t 8 +regex_t 32 +register_t 4 +regmatch_t 8 +regoff_t 4 +res_state 4 +rlim_t 8 +sa_family_t 2 +scrnmap_t 1 +sem_t 16 +sig_atomic_t 4 +sighandler_t 4 +siginfo_t 128 +sigjmp_buf 156 +sigset_t 128 +size_t 4 +socklen_t 4 +speed_t 4 +ssize_t 4 +stack_t 12 +struct FTW 8 +struct __ns_msg 48 +struct __ns_rr 1044 +struct __res_state 512 +struct _ns_flagdata 8 +struct addrinfo 32 +struct aiocb 144 +struct arpd_request 28 +struct arphdr 8 +struct arpreq 68 +struct arpreq_old 52 +struct bandinfo 8 +struct cmsghdr 12 +struct console_font_op 24 +struct consolefontdesc 8 +struct dirent 276 +struct elf_prpsinfo 124 +struct elf_prstatus 144 +struct elf_siginfo 12 +struct epoll_event 12 +struct ether_addr 6 +struct ether_arp 28 +struct ether_header 14 +struct ethhdr 14 +struct fb_bitfield 12 +struct fb_cmap 24 +struct fb_con2fbmap 8 +struct fb_copyarea 24 +struct fb_cursor 72 +struct fb_fillrect 24 +struct fb_fix_screeninfo 68 +struct fb_image 56 +struct fb_var_screeninfo 160 +struct fb_vblank 32 +struct fbcurpos 4 +struct flock 24 +struct group 16 +struct hostent 20 +struct icmp 28 +struct icmp6_filter 32 +struct icmp6_hdr 8 +struct icmp6_router_renum 16 +struct icmp_ra_addr 8 +struct icmphdr 8 +struct if_nameindex 8 +struct ifaddr 40 +struct ifconf 8 +struct ifmap 16 +struct ifreq 32 +struct ih_idseq 4 +struct ih_pmtu 4 +struct ih_rtradv 4 +struct in6_addr 16 +struct in6_pktinfo 20 +struct in6_rtmsg 72 +struct in_addr 4 +struct in_pktinfo 12 +struct inotify_event 16 +struct iovec 8 +struct ip 20 +struct ip6_dest 2 +struct ip6_ext 2 +struct ip6_frag 8 +struct ip6_hbh 2 +struct ip6_hdr 40 +struct ip6_hdrctl 8 +struct ip6_opt 2 +struct ip6_opt_jumbo 6 +struct ip6_opt_nsap 4 +struct ip6_opt_router 4 +struct ip6_opt_tunnel 3 +struct ip6_rthdr 4 +struct ip6_rthdr0 8 +struct ip_mreq 8 +struct ip_mreqn 12 +struct ip_opts 44 +struct ip_timestamp 40 +struct ipc_perm 36 +struct iphdr 20 +struct ipv6_mreq 20 +struct itimerspec 16 +struct itimerval 16 +struct kbd_repeat 8 +struct kbdiacr 3 +struct kbdiacrs 772 +struct kbentry 4 +struct kbkeycode 8 +struct kbsentry 513 +struct lconv 56 +struct linger 8 +struct loop_info 140 +struct loop_info64 232 +struct mld_hdr 24 +struct mntent 24 +struct mq_attr 32 +struct msghdr 28 +struct msginfo 32 +struct msqid_ds 88 +struct nd_neighbor_advert 24 +struct nd_neighbor_solicit 24 +struct nd_opt_adv_interval 8 +struct nd_opt_hdr 2 +struct nd_opt_home_agent_info 8 +struct nd_opt_mtu 8 +struct nd_opt_prefix_info 32 +struct nd_opt_rd_hdr 8 +struct nd_redirect 40 +struct nd_router_advert 16 +struct nd_router_solicit 8 +struct netent 16 +struct ns_tcp_tsig_state 528 +struct ns_tsig_key 2060 +struct option 16 +struct packet_mreq 16 +struct passwd 28 +struct pollfd 8 +struct protoent 12 +struct res_sym 12 +struct rlimit 16 +struct rr_pco_match 24 +struct rr_pco_use 32 +struct rr_result 24 +struct rtentry 84 +struct rusage 72 +struct sched_param 4 +struct sembuf 6 +struct semid_ds 64 +struct seminfo 40 +struct servent 16 +struct shm_info 24 +struct shmid_ds 84 +struct shminfo 36 +struct sigaction 140 +struct sigcontext 88 +struct sigevent 64 +struct signalfd_siginfo 128 +struct sockaddr 16 +struct sockaddr_in 16 +struct sockaddr_in6 28 +struct sockaddr_ll 20 +struct sockaddr_storage 128 +struct sockaddr_un 110 +struct spwd 36 +struct stat 96 +struct statfs 84 +struct statvfs 96 +struct str_list 8 +struct str_mlist 9 +struct strbuf 12 +struct strfdinsert 36 +struct strioctl 16 +struct strpeek 28 +struct strrecvfd 20 +struct sysinfo 64 +struct termios 60 +struct timespec 8 +struct timestamp 40 +struct timeval 8 +struct timex 128 +struct timezone 8 +struct tm 44 +struct tms 16 +struct ucred 12 +struct udphdr 8 +struct unimapdesc 8 +struct unimapinit 6 +struct unipair 4 +struct user 284 +struct user_fpregs_struct 108 +struct user_fpxregs_struct 512 +struct user_regs_struct 68 +struct utimbuf 8 +struct utmpx 384 +struct utsname 390 +struct vt_consize 12 +struct vt_mode 8 +struct vt_sizes 6 +struct vt_stat 6 +struct winsize 8 +suseconds_t 4 +tcflag_t 4 +time_t 4 +timer_t 4 +u_char 1 +u_int 4 +u_int16_t 2 +u_int32_t 4 +u_int64_t 8 +u_int8_t 1 +u_long 4 +u_quad_t 8 +u_short 2 +ucontext_t 348 +uid_t 4 +uint 4 +uint16_t 2 +uint32_t 4 +uint64_t 8 +uint8_t 1 +uint_fast16_t 4 +uint_fast32_t 4 +uint_fast64_t 8 +uint_fast8_t 1 +uint_least16_t 2 +uint_least32_t 4 +uint_least64_t 8 +uint_least8_t 1 +uintmax_t 8 +uintptr_t 4 +ulong 4 +union epoll_data 8 +union sigval 4 +ushort 2 +va_list 4 +va_list 4 +wctrans_t 4 +wctype_t 4 +wint_t 4 +wordexp_t 12 +wchar_t 4 diff --git a/data/musl.sizeof b/data/musl.sizeof new file mode 100644 index 0000000..0bf94a9 --- /dev/null +++ b/data/musl.sizeof @@ -0,0 +1,401 @@ +ACTION 4 +ENTRY 8 +Elf32_Addr 4 +Elf32_Conflict 4 +Elf32_Dyn 8 +Elf32_Ehdr 52 +Elf32_Half 2 +Elf32_Lib 20 +Elf32_Move 20 +Elf32_Nhdr 12 +Elf32_Off 4 +Elf32_Phdr 32 +Elf32_RegInfo 24 +Elf32_Rel 8 +Elf32_Rela 12 +Elf32_Section 2 +Elf32_Shdr 40 +Elf32_Sword 4 +Elf32_Sxword 8 +Elf32_Sym 16 +Elf32_Syminfo 4 +Elf32_Verdaux 8 +Elf32_Verdef 20 +Elf32_Vernaux 16 +Elf32_Verneed 16 +Elf32_Versym 2 +Elf32_Word 4 +Elf32_Xword 8 +Elf32_auxv_t 8 +Elf32_gptab 8 +Elf64_Addr 8 +Elf64_Dyn 16 +Elf64_Ehdr 64 +Elf64_Half 2 +Elf64_Lib 20 +Elf64_Move 28 +Elf64_Nhdr 12 +Elf64_Off 8 +Elf64_Phdr 56 +Elf64_Rel 16 +Elf64_Rela 24 +Elf64_Section 2 +Elf64_Shdr 64 +Elf64_Sword 4 +Elf64_Sxword 8 +Elf64_Sym 24 +Elf64_Syminfo 4 +Elf64_Verdaux 8 +Elf64_Verdef 20 +Elf64_Vernaux 16 +Elf64_Verneed 16 +Elf64_Versym 2 +Elf64_Word 4 +Elf64_Xword 8 +Elf64_auxv_t 16 +Elf_Options 8 +Elf_Options_Hw 8 +HEADER 12 +VISIT 4 +__uint16_t 2 +__uint32_t 4 +__uint64_t 8 +blkcnt_t 8 +blksize_t 4 +bool 1 +caddr_t 4 +cc_t 1 +clock_t 4 +clockid_t 4 +dev_t 8 +div_t 8 +elf_fpregset_t 108 +elf_fpregset_t 108 +elf_fpxregset_t 512 +elf_greg_t 4 +elf_gregset_t 68 +epoll_data_t 8 +eventfd_t 8 +fd_mask 4 +fd_set 128 +fenv_t 32 +fexcept_t 2 +fpos_t 16 +fsblkcnt_t 8 +fsfilcnt_t 8 +fsid_t 8 +gid_t 4 +glob_t 36 +iconv_t 4 +id_t 4 +idtype_t 4 +imaxdiv_t 16 +in_addr_t 4 +in_port_t 2 +ino_t 8 +int16_t 2 +int32_t 4 +int64_t 8 +int8_t 1 +int_fast16_t 4 +int_fast32_t 4 +int_fast64_t 8 +int_fast8_t 1 +int_least16_t 2 +int_least32_t 4 +int_least64_t 8 +int_least8_t 1 +intmax_t 8 +intptr_t 4 +jmp_buf 156 +key_t 4 +ldiv_t 8 +lldiv_t 16 +locale_t 4 +lwpid_t 4 +mbstate_t 8 +mcontext_t 88 +mode_t 4 +mqd_t 4 +msglen_t 4 +msgqnum_t 4 +nfds_t 4 +nl_catd 4 +nl_item 4 +nlink_t 4 +ns_cert_types 4 +ns_class 4 +ns_flag 4 +ns_key_types 4 +ns_msg 48 +ns_opcode 4 +ns_rcode 4 +ns_rr 1044 +ns_sect 4 +ns_tcp_tsig_state 528 +ns_tsig_key 2060 +ns_type 4 +ns_update_operation 4 +off_t 8 +pid_t 4 +posix_spawn_file_actions_t 76 +posix_spawnattr_t 336 +prfpregset_t 108 +prgregset_t 68 +prpsinfo_t 124 +prstatus_t 144 +psaddr_t 4 +pthread_attr_t 36 +pthread_barrier_t 20 +pthread_barrierattr_t 4 +pthread_cond_t 48 +pthread_condattr_t 4 +pthread_key_t 4 +pthread_mutex_t 24 +pthread_mutexattr_t 4 +pthread_once_t 4 +pthread_rwlock_t 32 +pthread_rwlockattr_t 8 +pthread_spinlock_t 4 +pthread_t 4 +ptrdiff_t 4 +quad_t 8 +regex_t 28 +register_t 4 +regmatch_t 8 +regoff_t 4 +res_state 4 +rlim_t 8 +sa_family_t 2 +scrnmap_t 1 +sem_t 16 +sig_atomic_t 4 +sighandler_t 4 +siginfo_t 128 +sigjmp_buf 156 +sigset_t 128 +size_t 4 +socklen_t 4 +speed_t 4 +ssize_t 4 +stack_t 12 +struct FTW 8 +struct __ns_msg 48 +struct __ns_rr 1044 +struct __res_state 512 +struct _ns_flagdata 8 +struct addrinfo 32 +struct aiocb 144 +struct arpd_request 28 +struct arphdr 8 +struct arpreq 68 +struct arpreq_old 52 +struct bandinfo 8 +struct cmsghdr 12 +struct console_font_op 24 +struct consolefontdesc 8 +struct dirent 276 +struct elf_prpsinfo 124 +struct elf_prstatus 144 +struct elf_siginfo 12 +struct epoll_event 12 +struct ether_addr 6 +struct ether_arp 28 +struct ether_header 14 +struct ethhdr 14 +struct fb_bitfield 12 +struct fb_cmap 24 +struct fb_con2fbmap 8 +struct fb_copyarea 24 +struct fb_cursor 72 +struct fb_fillrect 24 +struct fb_fix_screeninfo 68 +struct fb_image 56 +struct fb_var_screeninfo 160 +struct fb_vblank 32 +struct fbcurpos 4 +struct flock 24 +struct group 16 +struct hostent 20 +struct icmp 28 +struct icmp6_filter 32 +struct icmp6_hdr 8 +struct icmp6_router_renum 16 +struct icmp_ra_addr 8 +struct icmphdr 8 +struct if_nameindex 8 +struct ifaddr 40 +struct ifconf 8 +struct ifmap 16 +struct ifreq 32 +struct ih_idseq 4 +struct ih_pmtu 4 +struct ih_rtradv 4 +struct in6_addr 16 +struct in6_pktinfo 20 +struct in6_rtmsg 72 +struct in_addr 4 +struct in_pktinfo 12 +struct inotify_event 16 +struct iovec 8 +struct ip 20 +struct ip6_dest 2 +struct ip6_ext 2 +struct ip6_frag 8 +struct ip6_hbh 2 +struct ip6_hdr 40 +struct ip6_hdrctl 8 +struct ip6_opt 2 +struct ip6_opt_jumbo 6 +struct ip6_opt_nsap 4 +struct ip6_opt_router 4 +struct ip6_opt_tunnel 3 +struct ip6_rthdr 4 +struct ip6_rthdr0 8 +struct ip_mreq 8 +struct ip_mreqn 12 +struct ip_opts 44 +struct ip_timestamp 40 +struct ipc_perm 36 +struct iphdr 20 +struct ipv6_mreq 20 +struct itimerspec 16 +struct itimerval 16 +struct kbd_repeat 8 +struct kbdiacr 3 +struct kbdiacrs 772 +struct kbentry 4 +struct kbkeycode 8 +struct kbsentry 513 +struct lconv 56 +struct linger 8 +struct loop_info 140 +struct loop_info64 232 +struct mld_hdr 24 +struct mntent 24 +struct mq_attr 32 +struct msghdr 28 +struct msginfo 32 +struct msqid_ds 88 +struct nd_neighbor_advert 24 +struct nd_neighbor_solicit 24 +struct nd_opt_adv_interval 8 +struct nd_opt_hdr 2 +struct nd_opt_home_agent_info 8 +struct nd_opt_mtu 8 +struct nd_opt_prefix_info 32 +struct nd_opt_rd_hdr 8 +struct nd_redirect 40 +struct nd_router_advert 16 +struct nd_router_solicit 8 +struct netent 16 +struct ns_tcp_tsig_state 528 +struct ns_tsig_key 2060 +struct option 16 +struct packet_mreq 16 +struct passwd 28 +struct pollfd 8 +struct protoent 12 +struct res_sym 12 +struct rlimit 16 +struct rr_pco_match 24 +struct rr_pco_use 32 +struct rr_result 24 +struct rtentry 84 +struct rusage 136 +struct sched_param 28 +struct sembuf 6 +struct semid_ds 64 +struct seminfo 40 +struct servent 16 +struct shm_info 24 +struct shmid_ds 84 +struct shminfo 36 +struct sigaction 140 +struct sigcontext 88 +struct sigevent 64 +struct signalfd_siginfo 128 +struct sockaddr 16 +struct sockaddr_in 16 +struct sockaddr_in6 28 +struct sockaddr_ll 20 +struct sockaddr_storage 132 +struct sockaddr_un 110 +struct spwd 36 +struct stat 96 +struct statfs 84 +struct statvfs 96 +struct str_list 8 +struct str_mlist 9 +struct strbuf 12 +struct strfdinsert 36 +struct strioctl 16 +struct strpeek 28 +struct strrecvfd 20 +struct sysinfo 348 +struct termios 60 +struct timespec 8 +struct timestamp 40 +struct timeval 8 +struct timex 128 +struct timezone 8 +struct tm 44 +struct tms 16 +struct ucred 12 +struct udphdr 8 +struct unimapdesc 8 +struct unimapinit 6 +struct unipair 4 +struct user 284 +struct user_fpregs_struct 108 +struct user_fpxregs_struct 512 +struct user_regs_struct 68 +struct utimbuf 8 +struct utmpx 384 +struct utsname 390 +struct vt_consize 12 +struct vt_mode 8 +struct vt_sizes 6 +struct vt_stat 6 +struct winsize 8 +suseconds_t 4 +tcflag_t 4 +time_t 4 +timer_t 4 +u_char 1 +u_int 4 +u_int16_t 2 +u_int32_t 4 +u_int64_t 8 +u_int8_t 1 +u_long 4 +u_quad_t 8 +u_short 2 +ucontext_t 348 +uid_t 4 +uint 4 +uint16_t 2 +uint32_t 4 +uint64_t 8 +uint8_t 1 +uint_fast16_t 4 +uint_fast32_t 4 +uint_fast64_t 8 +uint_fast8_t 1 +uint_least16_t 2 +uint_least32_t 4 +uint_least64_t 8 +uint_least8_t 1 +uintmax_t 8 +uintptr_t 4 +ulong 4 +union epoll_data 8 +union sigval 4 +ushort 2 +va_list 4 +va_list 4 +wctrans_t 4 +wctype_t 4 +wint_t 4 +wordexp_t 12 +wchar_t 4 diff --git a/data/sizeof.diff b/data/sizeof.diff new file mode 100644 index 0000000..653b51a --- /dev/null +++ b/data/sizeof.diff @@ -0,0 +1,49 @@ +--- data/glibc.sizeof 2011-09-20 18:22:17.000000000 +0200 ++++ data/musl.sizeof 2011-09-20 18:22:17.000000000 +0200 +@@ -78,7 +78,7 @@ + eventfd_t 8 + fd_mask 4 + fd_set 128 +-fenv_t 28 ++fenv_t 32 + fexcept_t 2 + fpos_t 16 + fsblkcnt_t 8 +@@ -160,7 +160,7 @@ + pthread_t 4 + ptrdiff_t 4 + quad_t 8 +-regex_t 32 ++regex_t 28 + register_t 4 + regmatch_t 8 + regoff_t 4 +@@ -302,8 +302,8 @@ + struct rr_pco_use 32 + struct rr_result 24 + struct rtentry 84 +-struct rusage 72 +-struct sched_param 4 ++struct rusage 136 ++struct sched_param 28 + struct sembuf 6 + struct semid_ds 64 + struct seminfo 40 +@@ -319,7 +319,7 @@ + struct sockaddr_in 16 + struct sockaddr_in6 28 + struct sockaddr_ll 20 +-struct sockaddr_storage 128 ++struct sockaddr_storage 132 + struct sockaddr_un 110 + struct spwd 36 + struct stat 96 +@@ -332,7 +332,7 @@ + struct strioctl 16 + struct strpeek 28 + struct strrecvfd 20 +-struct sysinfo 64 ++struct sysinfo 348 + struct termios 60 + struct timespec 8 + struct timestamp 40 -- 2.20.1