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