X-Git-Url: http://nsz.repo.hu/git/?p=musl-tables;a=blobdiff_plain;f=abi_type.sh.cc;h=0cec4ebe5f5712ad4533a5f259df6764d9570089;hp=17ea2ed8bccebff0412708f996ad06fb2799608c;hb=HEAD;hpb=e3fb638ce942fec47d0181b54f2160ad0afd3b39 diff --git a/abi_type.sh.cc b/abi_type.sh.cc index 17ea2ed..7e0a253 100644 --- a/abi_type.sh.cc +++ b/abi_type.sh.cc @@ -85,20 +85,25 @@ #include #include #include -//#include +#ifndef __GLIBC__ +#include +#endif #include #include +#include #include #include #include #include #include -//#include +#ifndef __GLIBC__ +#include +#endif #include #include #include #include -//#include +#include //#include #include #include @@ -110,8 +115,8 @@ //#include #include #include -//#include #include +#include #include #include #include @@ -122,6 +127,7 @@ #include #include #include +#include #include //#include #include @@ -156,7 +162,9 @@ #include #include #include -//#include +#ifndef __GLIBC__ +#include +#endif #include #include #include @@ -172,10 +180,13 @@ typedef long long long_long; typedef long double long_double; +typedef void *object_pointer; +typedef void (*function_pointer)(); struct size {char c;}; struct align {char c;}; +struct incomplete {char c;}; #define T(s,t) void x_##t(s t x, s t* ptr, size(*y)[sizeof(s t)], align(*z)[__alignof__(s t)]){} -#define P(s,t) void y_##t(s t* ptr, size(*y)[sizeof(s t*)], align(*z)[__alignof__(s t*)]){} +#define P(s,t) void x_##t(incomplete x, s t* ptr, incomplete y, incomplete z){} #ifdef __GLIBC__ #define M(x) #else @@ -188,6 +199,7 @@ P(,DIR) T(,Dl_info) T(,ENTRY) T(,Elf32_Addr) +T(,Elf32_Chdr) T(,Elf32_Conflict) T(,Elf32_Dyn) T(,Elf32_Ehdr) @@ -216,6 +228,7 @@ T(,Elf32_Xword) T(,Elf32_auxv_t) T(,Elf32_gptab) T(,Elf64_Addr) +T(,Elf64_Chdr) T(,Elf64_Dyn) T(,Elf64_Ehdr) T(,Elf64_Half) @@ -240,6 +253,7 @@ T(,Elf64_Versym) T(,Elf64_Word) T(,Elf64_Xword) T(,Elf64_auxv_t) +T(,Elf_MIPS_ABIFlags_v0) T(,Elf_Options) T(,Elf_Options_Hw) T(,Elf_Symndx) @@ -262,8 +276,13 @@ T(,char16_t) T(,char32_t) T(,clock_t) T(,clockid_t) -//T(,cnd_t) +M(T(,cnd_t)) T(,comp_t) +T(,cookie_close_function_t) +T(,cookie_io_functions_t) +T(,cookie_read_function_t) +T(,cookie_seek_function_t) +T(,cookie_write_function_t) T(,cpu_set_t) T(,dev_t) T(,div_t) @@ -286,6 +305,7 @@ T(,freg_t) T(,fsblkcnt_t) T(,fsfilcnt_t) T(,fsid_t) +T(,function_pointer) T(,gid_t) T(,glob_t) T(,greg_t) @@ -328,7 +348,7 @@ T(,mode_t) T(,mqd_t) T(,msglen_t) T(,msgqnum_t) -//T(,mtx_t) +M(T(,mtx_t)) T(,n_long) T(,n_short) T(,n_time) @@ -349,8 +369,9 @@ T(,ns_sect) //T(,ns_tsig_key) T(,ns_type) T(,ns_update_operation) +T(,object_pointer) T(,off_t) -//T(,once_flag) +M(T(,once_flag)) T(,pid_t) T(,posix_spawn_file_actions_t) T(,posix_spawnattr_t) @@ -399,6 +420,8 @@ T(,speed_t) T(,ssize_t) T(,stack_t) T(struct,FTW) +T(struct,_IO_FILE) +T(struct,_IO_cookie_io_functions_t) //T(struct,__fsid_t) T(struct,__jmp_buf_tag) //T(struct,__locale_struct) @@ -406,6 +429,8 @@ T(struct,__jmp_buf_tag) T(struct,__ns_msg) T(struct,__ns_rr) //T(struct,__ptcb) +T(struct,__ptrace_peeksiginfo_args) +T(struct,__ptrace_seccomp_metadata) T(struct,__res_state) //T(struct,__sigset_t) //T(struct,__ucontext) @@ -438,8 +463,11 @@ T(struct,ether_arp) T(struct,ether_header) T(struct,ethhdr) T(struct,f_owner_ex) +T(struct,fanotify_event_info_fid) +T(struct,fanotify_event_info_header) T(struct,fanotify_event_metadata) T(struct,fanotify_response) +T(struct,file_handle) T(struct,flock) T(struct,group) T(struct,group_filter) @@ -534,9 +562,6 @@ T(struct,passwd) T(struct,pollfd) T(struct,prctl_mm_map) T(struct,protoent) -T(struct,pt_dspregs) -T(struct,pt_regs) -//T(struct,ptrace_peeksiginfo_args) T(struct,qelem) T(struct,r_debug) T(struct,re_pattern_buffer) @@ -583,8 +608,11 @@ T(struct,strioctl) T(struct,strpeek) T(struct,strrecvfd) T(struct,sysinfo) +T(struct,tcp_diag_md5sig) T(struct,tcp_info) T(struct,tcp_md5sig) +T(struct,tcp_repair_window) +T(struct,tcp_zerocopy_receive) T(struct,tcphdr) T(struct,termios) T(struct,tftphdr) @@ -607,12 +635,12 @@ T(struct,winsize) T(,suseconds_t) T(,tcflag_t) //T(,tcp_seq) -//T(,thrd_start_t) -//T(,thrd_t) +M(T(,thrd_start_t)) +M(T(,thrd_t)) T(,time_t) T(,timer_t) -//T(,tss_dtor_t) -//T(,tss_t) +M(T(,tss_dtor_t)) +M(T(,tss_t)) T(,u_char) T(,u_int) T(,u_int16_t) @@ -646,7 +674,6 @@ T(union,sigval) T(,useconds_t) T(,ushort) T(,va_list) -P(,void) T(,wchar_t) T(,wctrans_t) T(,wctype_t)