summaryrefslogtreecommitdiff
path: root/arch/sh/bits/alltypes.h.in
diff options
context:
space:
mode:
authorRich Felker <dalias@aerifal.cx>2014-02-27 22:03:25 -0500
committerRich Felker <dalias@aerifal.cx>2014-02-27 22:03:25 -0500
commitaacd348637e38795dd7ae3c7c8c908d8c0cd24fd (patch)
tree3055797eea08dafe99dcdbd1e7efabd44bcb723b /arch/sh/bits/alltypes.h.in
parentb9f7f2e8762922a1a24d41358164ebe9ae437e31 (diff)
downloadmusl-aacd348637e38795dd7ae3c7c8c908d8c0cd24fd.tar.gz
rename superh port to "sh" for consistency
linux, gcc, etc. all use "sh" as the name for the superh arch. there was already some inconsistency internally in musl: the dynamic linker was searching for "ld-musl-sh.path" as its path file despite its own name being "ld-musl-superh.so.1". there was some sentiment in both directions as to how to resolve the inconsistency, but overall "sh" was favored.
Diffstat (limited to 'arch/sh/bits/alltypes.h.in')
-rw-r--r--arch/sh/bits/alltypes.h.in23
1 files changed, 23 insertions, 0 deletions
diff --git a/arch/sh/bits/alltypes.h.in b/arch/sh/bits/alltypes.h.in
new file mode 100644
index 00000000..e9d8dd8a
--- /dev/null
+++ b/arch/sh/bits/alltypes.h.in
@@ -0,0 +1,23 @@
+#define _Addr int
+#define _Int64 long long
+#define _Reg int
+
+TYPEDEF __builtin_va_list va_list;
+TYPEDEF __builtin_va_list __isoc_va_list;
+
+#ifndef __cplusplus
+TYPEDEF long wchar_t;
+#endif
+TYPEDEF unsigned wint_t;
+
+TYPEDEF float float_t;
+TYPEDEF double double_t;
+
+TYPEDEF long time_t;
+TYPEDEF long suseconds_t;
+
+TYPEDEF struct { union { int __i[9]; unsigned __s[9]; } __u; } pthread_attr_t;
+TYPEDEF struct { union { int __i[6]; void *__p[6]; } __u; } pthread_mutex_t;
+TYPEDEF struct { union { int __i[12]; void *__p[12]; } __u; } pthread_cond_t;
+TYPEDEF struct { union { int __i[8]; void *__p[8]; } __u; } pthread_rwlock_t;
+TYPEDEF struct { union { int __i[5]; void *__p[5]; } __u; } pthread_barrier_t;