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