From 48c8f8ddfc80551db7615e1eb3555c1dc3f6a657 Mon Sep 17 00:00:00 2001 From: Werner Koch Date: Tue, 18 Sep 2018 14:54:08 +0200 Subject: syscfg: Support ARC CPUs and simplify aliasing table. * src/mkheader.c (xmalloc): New. (xstrdup): Implement using xmalloc. (canon_host_triplet): Add supporr for arc CPU. Adjust alias table to also alias *-pc-*. Rename ibm to unknown. Add internal arg. Add unknown vendor hack. (main): New mode to just print the canonicalized form. * src/Makefile.am (lock_obj_pub): s/-(pc|ibm)-/-unknown/. Also rename files accordingly. -- config.sub does no real aliasing and thus we would need to add several vendors to the alising tables despite that this has no technical meanding. Instead we now replace the vendor with "unknown" for the 4-part-"triplets". This change will make maintenace easier. Signed-off-by: Werner Koch --- src/Makefile.am | 16 ++-- src/mkheader.c | 92 ++++++++++++++++++---- src/syscfg/lock-obj-pub.i686-pc-gnu.h | 24 ------ src/syscfg/lock-obj-pub.i686-pc-kfreebsd-gnu.h | 23 ------ src/syscfg/lock-obj-pub.i686-pc-linux-gnu.h | 23 ------ src/syscfg/lock-obj-pub.i686-unknown-gnu.h | 24 ++++++ .../lock-obj-pub.i686-unknown-kfreebsd-gnu.h | 23 ++++++ src/syscfg/lock-obj-pub.i686-unknown-linux-gnu.h | 23 ++++++ src/syscfg/lock-obj-pub.s390x-ibm-linux-gnu.h | 25 ------ src/syscfg/lock-obj-pub.s390x-unknown-linux-gnu.h | 25 ++++++ src/syscfg/lock-obj-pub.x86_64-pc-kfreebsd-gnu.h | 25 ------ src/syscfg/lock-obj-pub.x86_64-pc-linux-gnu.h | 25 ------ src/syscfg/lock-obj-pub.x86_64-pc-linux-gnux32.h | 24 ------ src/syscfg/lock-obj-pub.x86_64-pc-linux-musl.h | 25 ------ .../lock-obj-pub.x86_64-unknown-kfreebsd-gnu.h | 25 ++++++ src/syscfg/lock-obj-pub.x86_64-unknown-linux-gnu.h | 25 ++++++ .../lock-obj-pub.x86_64-unknown-linux-gnux32.h | 24 ++++++ .../lock-obj-pub.x86_64-unknown-linux-musl.h | 25 ++++++ 18 files changed, 279 insertions(+), 217 deletions(-) delete mode 100644 src/syscfg/lock-obj-pub.i686-pc-gnu.h delete mode 100644 src/syscfg/lock-obj-pub.i686-pc-kfreebsd-gnu.h delete mode 100644 src/syscfg/lock-obj-pub.i686-pc-linux-gnu.h create mode 100644 src/syscfg/lock-obj-pub.i686-unknown-gnu.h create mode 100644 src/syscfg/lock-obj-pub.i686-unknown-kfreebsd-gnu.h create mode 100644 src/syscfg/lock-obj-pub.i686-unknown-linux-gnu.h delete mode 100644 src/syscfg/lock-obj-pub.s390x-ibm-linux-gnu.h create mode 100644 src/syscfg/lock-obj-pub.s390x-unknown-linux-gnu.h delete mode 100644 src/syscfg/lock-obj-pub.x86_64-pc-kfreebsd-gnu.h delete mode 100644 src/syscfg/lock-obj-pub.x86_64-pc-linux-gnu.h delete mode 100644 src/syscfg/lock-obj-pub.x86_64-pc-linux-gnux32.h delete mode 100644 src/syscfg/lock-obj-pub.x86_64-pc-linux-musl.h create mode 100644 src/syscfg/lock-obj-pub.x86_64-unknown-kfreebsd-gnu.h create mode 100644 src/syscfg/lock-obj-pub.x86_64-unknown-linux-gnu.h create mode 100644 src/syscfg/lock-obj-pub.x86_64-unknown-linux-gnux32.h create mode 100644 src/syscfg/lock-obj-pub.x86_64-unknown-linux-musl.h diff --git a/src/Makefile.am b/src/Makefile.am index 380ea7c..914768c 100644 --- a/src/Makefile.am +++ b/src/Makefile.am @@ -52,9 +52,9 @@ lock_obj_pub = \ syscfg/lock-obj-pub.arm-apple-darwin.h \ syscfg/lock-obj-pub.hppa-unknown-linux-gnu.h \ syscfg/lock-obj-pub.i386-apple-darwin.h \ - syscfg/lock-obj-pub.i686-pc-gnu.h \ - syscfg/lock-obj-pub.i686-pc-kfreebsd-gnu.h \ - syscfg/lock-obj-pub.i686-pc-linux-gnu.h \ + syscfg/lock-obj-pub.i686-unknown-gnu.h \ + syscfg/lock-obj-pub.i686-unknown-kfreebsd-gnu.h \ + syscfg/lock-obj-pub.i686-unknown-linux-gnu.h \ syscfg/lock-obj-pub.m68k-unknown-linux-gnu.h \ syscfg/lock-obj-pub.mips-unknown-linux-gnu.h \ syscfg/lock-obj-pub.mips64el-unknown-linux-gnuabi64.h \ @@ -66,16 +66,16 @@ lock_obj_pub = \ syscfg/lock-obj-pub.powerpc64le-unknown-linux-gnu.h \ syscfg/lock-obj-pub.powerpc-unknown-linux-gnuspe.h \ syscfg/lock-obj-pub.riscv64-unknown-linux-gnu.h \ - syscfg/lock-obj-pub.s390x-ibm-linux-gnu.h \ + syscfg/lock-obj-pub.s390x-unknown-linux-gnu.h \ syscfg/lock-obj-pub.sh3-unknown-linux-gnu.h \ syscfg/lock-obj-pub.sh4-unknown-linux-gnu.h \ syscfg/lock-obj-pub.sparc-unknown-linux-gnu.h \ syscfg/lock-obj-pub.sparc64-unknown-linux-gnu.h \ syscfg/lock-obj-pub.x86_64-apple-darwin.h \ - syscfg/lock-obj-pub.x86_64-pc-kfreebsd-gnu.h \ - syscfg/lock-obj-pub.x86_64-pc-linux-gnu.h \ - syscfg/lock-obj-pub.x86_64-pc-linux-gnux32.h \ - syscfg/lock-obj-pub.x86_64-pc-linux-musl.h \ + syscfg/lock-obj-pub.x86_64-unknown-kfreebsd-gnu.h \ + syscfg/lock-obj-pub.x86_64-unknown-linux-gnu.h \ + syscfg/lock-obj-pub.x86_64-unknown-linux-gnux32.h \ + syscfg/lock-obj-pub.x86_64-unknown-linux-musl.h \ syscfg/lock-obj-pub.tilegx-unknown-linux-gnu.h \ syscfg/lock-obj-pub.ia64-unknown-linux-gnu.h \ syscfg/lock-obj-pub.mingw32.h diff --git a/src/mkheader.c b/src/mkheader.c index 2fc5fad..7a38a1b 100644 --- a/src/mkheader.c +++ b/src/mkheader.c @@ -51,17 +51,27 @@ xfree (void *a) static char * -xstrdup (const char *string) +xmalloc (size_t n) { char *p; - size_t len = strlen (string) + 1; - p = malloc (len); + p = malloc (n); if (!p) { fputs (PGM ": out of core\n", stderr); exit (1); } + return p; +} + + +static char * +xstrdup (const char *string) +{ + char *p; + size_t len = strlen (string) + 1; + + p = xmalloc (len); memcpy (p, string, len); return p; } @@ -69,23 +79,31 @@ xstrdup (const char *string) /* Return a malloced string with TRIPLET. If TRIPLET has an alias return that instead. In general build-aux/config.sub should do the - aliasing but some returned triplets are anyway identical and thus we - use this function to map it to the canonical form. */ + aliasing but some returned triplets are anyway identical and thus + we use this function to map it to the canonical form. + NO_VENDOR_HACK is for internal use; caller must call with 0. */ static char * -canon_host_triplet (const char *triplet) +canon_host_triplet (const char *triplet, int no_vendor_hack) { struct { const char *name; const char *alias; } tbl[] = { - {"i486-pc-linux-gnu", "i686-pc-linux-gnu" }, + {"i486-pc-linux-gnu", "i686-unknown-linux-gnu" }, {"i586-pc-linux-gnu" }, - {"i486-pc-gnu", "i686-pc-gnu"}, + {"i686-pc-linux-gnu" }, + {"arc-oe-linux-uclibc" }, /* Other CPU but same struct. */ + + {"i486-pc-gnu", "i686-unknown-gnu"}, {"i586-pc-gnu"}, - {"i486-pc-kfreebsd-gnu", "i686-pc-kfreebsd-gnu"}, + {"i686-pc-gnu"}, + + {"i486-pc-kfreebsd-gnu", "i686-unknown-kfreebsd-gnu"}, {"i586-pc-kfreebsd-gnu"}, + {"i686-pc-kfreebsd-gnu"}, - {"x86_64-pc-linux-gnuhardened1", "x86_64-pc-linux-gnu" }, + {"x86_64-pc-linux-gnuhardened1", "x86_64-unknown-linux-gnu" }, + {"x86_64-pc-linux-gnu" }, {"powerpc-unknown-linux-gnuspe", "powerpc-unknown-linux-gnu" }, @@ -98,6 +116,7 @@ canon_host_triplet (const char *triplet) }; int i; const char *lastalias = NULL; + const char *s; for (i=0; tbl[i].name; i++) { @@ -110,6 +129,36 @@ canon_host_triplet (const char *triplet) return xstrdup (lastalias); } } + for (i=0, s=triplet; *s; s++) + if (*s == '-') + i++; + if (i > 2 && !no_vendor_hack) + { + /* We have a 4 part "triplet": CPU-VENDOR-KERNEL-SYSTEM where + * the last two parts replace the OS part of a real triplet. + * The VENDOR part is then in general useless because + * KERNEL-SYSTEM is specific enough. We now do a second pass by + * replacing VENDOR with "unknown". */ + char *p; + char *buf = xmalloc (strlen (triplet) + 7 + 1); + + for (p=buf,s=triplet,i=0; *s; s++) + { + *p++ = *s; + if (*s == '-' && ++i == 1) + { + memcpy (p, "unknown-",8); + p += 8; + for (s++; *s != '-'; s++) + ; + } + } + *p = 0; + p = canon_host_triplet (buf, 1); + xfree (buf); + return p; + } + return xstrdup (triplet); } @@ -558,7 +607,7 @@ write_special (const char *fname, int lnr, const char *tag) int main (int argc, char **argv) { - FILE *fp; + FILE *fp = NULL; char line[LINESIZE]; int lnr = 0; const char *fname, *s; @@ -571,11 +620,22 @@ main (int argc, char **argv) argc--; argv++; } - if (argc != 6) + if (argc == 1) + { + /* Print just the canonicalized host triplet. */ + host_triplet = canon_host_triplet (argv[0], 0); + printf ("%s\n", host_triplet); + goto leave; + } + else if (argc == 6) + ; /* Standard operation. */ + else { fputs ("usage: " PGM " host_os host_triplet template.h config.h" - " version version_number\n", + " version version_number\n" + " " PGM + " host_triplet\n", stderr); return 1; } @@ -586,7 +646,7 @@ main (int argc, char **argv) hdr_version = argv[4]; hdr_version_number = argv[5]; - host_triplet = canon_host_triplet (host_triplet_raw); + host_triplet = canon_host_triplet (host_triplet_raw, 0); srcdir = malloc (strlen (fname) + 2 + 1); if (!srcdir) @@ -677,13 +737,15 @@ main (int argc, char **argv) "End:\n" "*/\n", stdout); + leave: if (ferror (stdout)) { fprintf (stderr, PGM ": error writing to stdout: %s\n", strerror (errno)); return 1; } - fclose (fp); + if (fp) + fclose (fp); xfree (host_triplet); return 0; diff --git a/src/syscfg/lock-obj-pub.i686-pc-gnu.h b/src/syscfg/lock-obj-pub.i686-pc-gnu.h deleted file mode 100644 index 0522462..0000000 --- a/src/syscfg/lock-obj-pub.i686-pc-gnu.h +++ /dev/null @@ -1,24 +0,0 @@ -## lock-obj-pub.i686-pc-gnu.h -## File created by gen-posix-lock-obj - DO NOT EDIT -## To be included by mkheader into gpg-error.h - -typedef struct -{ - long _vers; - union { - volatile char _priv[32]; - long _x_align; - long *_xp_align; - } u; -} gpgrt_lock_t; - -#define GPGRT_LOCK_INITIALIZER {1,{{0,0,0,0,0,0,0,0, \ - 0,0,0,0,0,0,0,0, \ - 0,0,0,0,0,0,0,0, \ - 0,0,0,0,0,0,0,0}}} -## -## Local Variables: -## mode: c -## buffer-read-only: t -## End: -## diff --git a/src/syscfg/lock-obj-pub.i686-pc-kfreebsd-gnu.h b/src/syscfg/lock-obj-pub.i686-pc-kfreebsd-gnu.h deleted file mode 100644 index 4cf12fc..0000000 --- a/src/syscfg/lock-obj-pub.i686-pc-kfreebsd-gnu.h +++ /dev/null @@ -1,23 +0,0 @@ -## lock-obj-pub.i686-pc-kfreebsd-gnu.h -## File created by gen-posix-lock-obj - DO NOT EDIT -## To be included by mkheader into gpg-error.h - -typedef struct -{ - long _vers; - union { - volatile char _priv[24]; - long _x_align; - long *_xp_align; - } u; -} gpgrt_lock_t; - -#define GPGRT_LOCK_INITIALIZER {1,{{0,0,0,0,0,0,0,0, \ - 0,0,0,0,0,0,0,0, \ - 0,0,0,0,0,0,0,0}}} -## -## Local Variables: -## mode: c -## buffer-read-only: t -## End: -## diff --git a/src/syscfg/lock-obj-pub.i686-pc-linux-gnu.h b/src/syscfg/lock-obj-pub.i686-pc-linux-gnu.h deleted file mode 100644 index b97273b..0000000 --- a/src/syscfg/lock-obj-pub.i686-pc-linux-gnu.h +++ /dev/null @@ -1,23 +0,0 @@ -## lock-obj-pub.i686-pc-linux-gnu.h -## File created by gen-posix-lock-obj - DO NOT EDIT -## To be included by mkheader into gpg-error.h - -typedef struct -{ - long _vers; - union { - volatile char _priv[24]; - long _x_align; - long *_xp_align; - } u; -} gpgrt_lock_t; - -#define GPGRT_LOCK_INITIALIZER {1,{{0,0,0,0,0,0,0,0, \ - 0,0,0,0,0,0,0,0, \ - 0,0,0,0,0,0,0,0}}} -## -## Local Variables: -## mode: c -## buffer-read-only: t -## End: -## diff --git a/src/syscfg/lock-obj-pub.i686-unknown-gnu.h b/src/syscfg/lock-obj-pub.i686-unknown-gnu.h new file mode 100644 index 0000000..0522462 --- /dev/null +++ b/src/syscfg/lock-obj-pub.i686-unknown-gnu.h @@ -0,0 +1,24 @@ +## lock-obj-pub.i686-pc-gnu.h +## File created by gen-posix-lock-obj - DO NOT EDIT +## To be included by mkheader into gpg-error.h + +typedef struct +{ + long _vers; + union { + volatile char _priv[32]; + long _x_align; + long *_xp_align; + } u; +} gpgrt_lock_t; + +#define GPGRT_LOCK_INITIALIZER {1,{{0,0,0,0,0,0,0,0, \ + 0,0,0,0,0,0,0,0, \ + 0,0,0,0,0,0,0,0, \ + 0,0,0,0,0,0,0,0}}} +## +## Local Variables: +## mode: c +## buffer-read-only: t +## End: +## diff --git a/src/syscfg/lock-obj-pub.i686-unknown-kfreebsd-gnu.h b/src/syscfg/lock-obj-pub.i686-unknown-kfreebsd-gnu.h new file mode 100644 index 0000000..4cf12fc --- /dev/null +++ b/src/syscfg/lock-obj-pub.i686-unknown-kfreebsd-gnu.h @@ -0,0 +1,23 @@ +## lock-obj-pub.i686-pc-kfreebsd-gnu.h +## File created by gen-posix-lock-obj - DO NOT EDIT +## To be included by mkheader into gpg-error.h + +typedef struct +{ + long _vers; + union { + volatile char _priv[24]; + long _x_align; + long *_xp_align; + } u; +} gpgrt_lock_t; + +#define GPGRT_LOCK_INITIALIZER {1,{{0,0,0,0,0,0,0,0, \ + 0,0,0,0,0,0,0,0, \ + 0,0,0,0,0,0,0,0}}} +## +## Local Variables: +## mode: c +## buffer-read-only: t +## End: +## diff --git a/src/syscfg/lock-obj-pub.i686-unknown-linux-gnu.h b/src/syscfg/lock-obj-pub.i686-unknown-linux-gnu.h new file mode 100644 index 0000000..b97273b --- /dev/null +++ b/src/syscfg/lock-obj-pub.i686-unknown-linux-gnu.h @@ -0,0 +1,23 @@ +## lock-obj-pub.i686-pc-linux-gnu.h +## File created by gen-posix-lock-obj - DO NOT EDIT +## To be included by mkheader into gpg-error.h + +typedef struct +{ + long _vers; + union { + volatile char _priv[24]; + long _x_align; + long *_xp_align; + } u; +} gpgrt_lock_t; + +#define GPGRT_LOCK_INITIALIZER {1,{{0,0,0,0,0,0,0,0, \ + 0,0,0,0,0,0,0,0, \ + 0,0,0,0,0,0,0,0}}} +## +## Local Variables: +## mode: c +## buffer-read-only: t +## End: +## diff --git a/src/syscfg/lock-obj-pub.s390x-ibm-linux-gnu.h b/src/syscfg/lock-obj-pub.s390x-ibm-linux-gnu.h deleted file mode 100644 index 70f6e33..0000000 --- a/src/syscfg/lock-obj-pub.s390x-ibm-linux-gnu.h +++ /dev/null @@ -1,25 +0,0 @@ -## lock-obj-pub.s390x-ibm-linux-gnu.h -## File created by gen-posix-lock-obj - DO NOT EDIT -## To be included by mkheader into gpg-error.h - -typedef struct -{ - long _vers; - union { - volatile char _priv[40]; - long _x_align; - long *_xp_align; - } u; -} gpgrt_lock_t; - -#define GPGRT_LOCK_INITIALIZER {1,{{0,0,0,0,0,0,0,0, \ - 0,0,0,0,0,0,0,0, \ - 0,0,0,0,0,0,0,0, \ - 0,0,0,0,0,0,0,0, \ - 0,0,0,0,0,0,0,0}}} -## -## Local Variables: -## mode: c -## buffer-read-only: t -## End: -## diff --git a/src/syscfg/lock-obj-pub.s390x-unknown-linux-gnu.h b/src/syscfg/lock-obj-pub.s390x-unknown-linux-gnu.h new file mode 100644 index 0000000..70f6e33 --- /dev/null +++ b/src/syscfg/lock-obj-pub.s390x-unknown-linux-gnu.h @@ -0,0 +1,25 @@ +## lock-obj-pub.s390x-ibm-linux-gnu.h +## File created by gen-posix-lock-obj - DO NOT EDIT +## To be included by mkheader into gpg-error.h + +typedef struct +{ + long _vers; + union { + volatile char _priv[40]; + long _x_align; + long *_xp_align; + } u; +} gpgrt_lock_t; + +#define GPGRT_LOCK_INITIALIZER {1,{{0,0,0,0,0,0,0,0, \ + 0,0,0,0,0,0,0,0, \ + 0,0,0,0,0,0,0,0, \ + 0,0,0,0,0,0,0,0, \ + 0,0,0,0,0,0,0,0}}} +## +## Local Variables: +## mode: c +## buffer-read-only: t +## End: +## diff --git a/src/syscfg/lock-obj-pub.x86_64-pc-kfreebsd-gnu.h b/src/syscfg/lock-obj-pub.x86_64-pc-kfreebsd-gnu.h deleted file mode 100644 index 7fb596c..0000000 --- a/src/syscfg/lock-obj-pub.x86_64-pc-kfreebsd-gnu.h +++ /dev/null @@ -1,25 +0,0 @@ -## lock-obj-pub.x86_64-pc-kfreebsd-gnu.h -## File created by gen-posix-lock-obj - DO NOT EDIT -## To be included by mkheader into gpg-error.h - -typedef struct -{ - long _vers; - union { - volatile char _priv[40]; - long _x_align; - long *_xp_align; - } u; -} gpgrt_lock_t; - -#define GPGRT_LOCK_INITIALIZER {1,{{0,0,0,0,0,0,0,0, \ - 0,0,0,0,0,0,0,0, \ - 0,0,0,0,0,0,0,0, \ - 0,0,0,0,0,0,0,0, \ - 0,0,0,0,0,0,0,0}}} -## -## Local Variables: -## mode: c -## buffer-read-only: t -## End: -## diff --git a/src/syscfg/lock-obj-pub.x86_64-pc-linux-gnu.h b/src/syscfg/lock-obj-pub.x86_64-pc-linux-gnu.h deleted file mode 100644 index 0dd6431..0000000 --- a/src/syscfg/lock-obj-pub.x86_64-pc-linux-gnu.h +++ /dev/null @@ -1,25 +0,0 @@ -## lock-obj-pub.x86_64-pc-linux-gnu.h -## File created by gen-posix-lock-obj - DO NOT EDIT -## To be included by mkheader into gpg-error.h - -typedef struct -{ - long _vers; - union { - volatile char _priv[40]; - long _x_align; - long *_xp_align; - } u; -} gpgrt_lock_t; - -#define GPGRT_LOCK_INITIALIZER {1,{{0,0,0,0,0,0,0,0, \ - 0,0,0,0,0,0,0,0, \ - 0,0,0,0,0,0,0,0, \ - 0,0,0,0,0,0,0,0, \ - 0,0,0,0,0,0,0,0}}} -## -## Local Variables: -## mode: c -## buffer-read-only: t -## End: -## diff --git a/src/syscfg/lock-obj-pub.x86_64-pc-linux-gnux32.h b/src/syscfg/lock-obj-pub.x86_64-pc-linux-gnux32.h deleted file mode 100644 index e85bd30..0000000 --- a/src/syscfg/lock-obj-pub.x86_64-pc-linux-gnux32.h +++ /dev/null @@ -1,24 +0,0 @@ -## lock-obj-pub.x86_64-pc-linux-gnux32.h -## File created by gen-posix-lock-obj - DO NOT EDIT -## To be included by mkheader into gpg-error.h - -typedef struct -{ - long _vers; - union { - volatile char _priv[32]; - long _x_align; - long *_xp_align; - } u; -} gpgrt_lock_t; - -#define GPGRT_LOCK_INITIALIZER {1,{{0,0,0,0,0,0,0,0, \ - 0,0,0,0,0,0,0,0, \ - 0,0,0,0,0,0,0,0, \ - 0,0,0,0,0,0,0,0}}} -## -## Local Variables: -## mode: c -## buffer-read-only: t -## End: -## diff --git a/src/syscfg/lock-obj-pub.x86_64-pc-linux-musl.h b/src/syscfg/lock-obj-pub.x86_64-pc-linux-musl.h deleted file mode 100644 index 1b059f4..0000000 --- a/src/syscfg/lock-obj-pub.x86_64-pc-linux-musl.h +++ /dev/null @@ -1,25 +0,0 @@ -## lock-obj-pub.x86_64-pc-linux-musl.h -## File created by gen-posix-lock-obj - DO NOT EDIT -## To be included by mkheader into gpg-error.h - -typedef struct -{ - long _vers; - union { - volatile char _priv[40]; - long _x_align; - long *_xp_align; - } u; -} gpgrt_lock_t; - -#define GPGRT_LOCK_INITIALIZER {1,{{0,0,0,0,0,0,0,0, \ - 0,0,0,0,0,0,0,0, \ - 0,0,0,0,0,0,0,0, \ - 0,0,0,0,0,0,0,0, \ - 0,0,0,0,0,0,0,0}}} -## -## Local Variables: -## mode: c -## buffer-read-only: t -## End: -## diff --git a/src/syscfg/lock-obj-pub.x86_64-unknown-kfreebsd-gnu.h b/src/syscfg/lock-obj-pub.x86_64-unknown-kfreebsd-gnu.h new file mode 100644 index 0000000..7fb596c --- /dev/null +++ b/src/syscfg/lock-obj-pub.x86_64-unknown-kfreebsd-gnu.h @@ -0,0 +1,25 @@ +## lock-obj-pub.x86_64-pc-kfreebsd-gnu.h +## File created by gen-posix-lock-obj - DO NOT EDIT +## To be included by mkheader into gpg-error.h + +typedef struct +{ + long _vers; + union { + volatile char _priv[40]; + long _x_align; + long *_xp_align; + } u; +} gpgrt_lock_t; + +#define GPGRT_LOCK_INITIALIZER {1,{{0,0,0,0,0,0,0,0, \ + 0,0,0,0,0,0,0,0, \ + 0,0,0,0,0,0,0,0, \ + 0,0,0,0,0,0,0,0, \ + 0,0,0,0,0,0,0,0}}} +## +## Local Variables: +## mode: c +## buffer-read-only: t +## End: +## diff --git a/src/syscfg/lock-obj-pub.x86_64-unknown-linux-gnu.h b/src/syscfg/lock-obj-pub.x86_64-unknown-linux-gnu.h new file mode 100644 index 0000000..0dd6431 --- /dev/null +++ b/src/syscfg/lock-obj-pub.x86_64-unknown-linux-gnu.h @@ -0,0 +1,25 @@ +## lock-obj-pub.x86_64-pc-linux-gnu.h +## File created by gen-posix-lock-obj - DO NOT EDIT +## To be included by mkheader into gpg-error.h + +typedef struct +{ + long _vers; + union { + volatile char _priv[40]; + long _x_align; + long *_xp_align; + } u; +} gpgrt_lock_t; + +#define GPGRT_LOCK_INITIALIZER {1,{{0,0,0,0,0,0,0,0, \ + 0,0,0,0,0,0,0,0, \ + 0,0,0,0,0,0,0,0, \ + 0,0,0,0,0,0,0,0, \ + 0,0,0,0,0,0,0,0}}} +## +## Local Variables: +## mode: c +## buffer-read-only: t +## End: +## diff --git a/src/syscfg/lock-obj-pub.x86_64-unknown-linux-gnux32.h b/src/syscfg/lock-obj-pub.x86_64-unknown-linux-gnux32.h new file mode 100644 index 0000000..e85bd30 --- /dev/null +++ b/src/syscfg/lock-obj-pub.x86_64-unknown-linux-gnux32.h @@ -0,0 +1,24 @@ +## lock-obj-pub.x86_64-pc-linux-gnux32.h +## File created by gen-posix-lock-obj - DO NOT EDIT +## To be included by mkheader into gpg-error.h + +typedef struct +{ + long _vers; + union { + volatile char _priv[32]; + long _x_align; + long *_xp_align; + } u; +} gpgrt_lock_t; + +#define GPGRT_LOCK_INITIALIZER {1,{{0,0,0,0,0,0,0,0, \ + 0,0,0,0,0,0,0,0, \ + 0,0,0,0,0,0,0,0, \ + 0,0,0,0,0,0,0,0}}} +## +## Local Variables: +## mode: c +## buffer-read-only: t +## End: +## diff --git a/src/syscfg/lock-obj-pub.x86_64-unknown-linux-musl.h b/src/syscfg/lock-obj-pub.x86_64-unknown-linux-musl.h new file mode 100644 index 0000000..1b059f4 --- /dev/null +++ b/src/syscfg/lock-obj-pub.x86_64-unknown-linux-musl.h @@ -0,0 +1,25 @@ +## lock-obj-pub.x86_64-pc-linux-musl.h +## File created by gen-posix-lock-obj - DO NOT EDIT +## To be included by mkheader into gpg-error.h + +typedef struct +{ + long _vers; + union { + volatile char _priv[40]; + long _x_align; + long *_xp_align; + } u; +} gpgrt_lock_t; + +#define GPGRT_LOCK_INITIALIZER {1,{{0,0,0,0,0,0,0,0, \ + 0,0,0,0,0,0,0,0, \ + 0,0,0,0,0,0,0,0, \ + 0,0,0,0,0,0,0,0, \ + 0,0,0,0,0,0,0,0}}} +## +## Local Variables: +## mode: c +## buffer-read-only: t +## End: +## -- cgit v1.2.3