X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;ds=sidebyside;f=abi_type.powerpc.cc;h=97f807109fb6e9376779f71f86c323daefcc8dc2;hb=ff45df5ea5bba5e2de7a840d44b81795dd47766c;hp=48f7fc051d9e696a22eb160f177bf7d6affdae5f;hpb=143828a650ebef591c283ec751b3106232cfd0e0;p=musl-tables diff --git a/abi_type.powerpc.cc b/abi_type.powerpc.cc index 48f7fc0..97f8071 100644 --- a/abi_type.powerpc.cc +++ b/abi_type.powerpc.cc @@ -85,7 +85,9 @@ #include #include #include -//#include +#ifndef __GLIBC__ +#include +#endif #include #include #include @@ -93,12 +95,14 @@ #include #include #include -//#include +#ifndef __GLIBC__ +#include +#endif #include #include #include #include -//#include +#include //#include #include #include @@ -156,7 +160,9 @@ #include #include #include -//#include +#ifndef __GLIBC__ +#include +#endif #include #include #include @@ -172,10 +178,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 @@ -262,7 +271,7 @@ T(,char16_t) T(,char32_t) T(,clock_t) T(,clockid_t) -//T(,cnd_t) +M(T(,cnd_t)) T(,comp_t) T(,cpu_set_t) T(,dev_t) @@ -288,6 +297,7 @@ T(,fpregset_t) T(,fsblkcnt_t) T(,fsfilcnt_t) T(,fsid_t) +T(,function_pointer) T(,gid_t) T(,glob_t) T(,greg_t) @@ -330,7 +340,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) @@ -351,8 +361,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) @@ -607,12 +618,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 +657,6 @@ T(union,sigval) T(,useconds_t) T(,ushort) T(,va_list) -P(,void) T(,vrregset_t) T(,wchar_t) T(,wctrans_t)