diff options
author | Rich Felker <dalias@aerifal.cx> | 2019-10-17 19:35:17 -0400 |
---|---|---|
committer | Rich Felker <dalias@aerifal.cx> | 2019-10-17 19:35:17 -0400 |
commit | 2d3083e746cf314c16048875e919305b1018bf8b (patch) | |
tree | 75c9d485a26165f8d8960a3708083854a9edfcdd /arch/x32/bits | |
parent | 7cc79d10afd43811a486fd5e9fcdf8e45ac599e0 (diff) | |
download | musl-2d3083e746cf314c16048875e919305b1018bf8b.tar.gz musl-2d3083e746cf314c16048875e919305b1018bf8b.tar.bz2 musl-2d3083e746cf314c16048875e919305b1018bf8b.tar.xz musl-2d3083e746cf314c16048875e919305b1018bf8b.zip |
move pthread types out of per-arch alltypes.h
policy has long been that these definitions are purely a function of
whether long/pointer is 32- or 64-bit, and that they are not allowed
to vary per-arch. move the definition to the shared alltypes.h.in
fragment, using integer constant expressions in terms of sizeof to
vary the array dimensions appropriately. I'm not sure whether this is
more or less ugly than using preprocessor conditionals and two sets of
definitions here, but either way is a lot less ugly than repeating the
same thing for every arch.
Diffstat (limited to 'arch/x32/bits')
-rw-r--r-- | arch/x32/bits/alltypes.h.in | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/arch/x32/bits/alltypes.h.in b/arch/x32/bits/alltypes.h.in index 0c2dd106..655d189b 100644 --- a/arch/x32/bits/alltypes.h.in +++ b/arch/x32/bits/alltypes.h.in @@ -25,11 +25,3 @@ TYPEDEF struct { long long __ll; long double __ld; } max_align_t; TYPEDEF long long time_t; TYPEDEF long long suseconds_t; - -TYPEDEF struct { union { int __i[9]; volatile int __vi[9]; unsigned __s[9]; } __u; } pthread_attr_t; -TYPEDEF struct { union { int __i[6]; volatile int __vi[6]; volatile void *volatile __p[6]; } __u; } pthread_mutex_t; -TYPEDEF struct { union { int __i[6]; volatile int __vi[6]; volatile void *volatile __p[6]; } __u; } mtx_t; -TYPEDEF struct { union { int __i[12]; volatile int __vi[12]; void *__p[12]; } __u; } pthread_cond_t; -TYPEDEF struct { union { int __i[12]; volatile int __vi[12]; void *__p[12]; } __u; } cnd_t; -TYPEDEF struct { union { int __i[8]; volatile int __vi[8]; void *__p[8]; } __u; } pthread_rwlock_t; -TYPEDEF struct { union { int __i[5]; volatile int __vi[5]; void *__p[5]; } __u; } pthread_barrier_t; |