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