From a4b413135535c83a25a8b2d661bf1c75006dfa15 Mon Sep 17 00:00:00 2001 From: Adhemerval Zanella Date: Fri, 17 Dec 2021 09:18:52 -0300 Subject: Set default __TIMESIZE default to 64 This is expected size for newer ABIs. --- sysdeps/mach/hurd/bits/timesize.h | 20 ++++++++++++++++++ sysdeps/unix/sysv/linux/arc/bits/timesize.h | 21 ------------------- sysdeps/unix/sysv/linux/arm/bits/timesize.h | 20 ++++++++++++++++++ sysdeps/unix/sysv/linux/csky/bits/timesize.h | 20 ++++++++++++++++++ sysdeps/unix/sysv/linux/hppa/bits/timesize.h | 20 ++++++++++++++++++ sysdeps/unix/sysv/linux/m68k/bits/timesize.h | 20 ++++++++++++++++++ sysdeps/unix/sysv/linux/microblaze/bits/timesize.h | 20 ++++++++++++++++++ sysdeps/unix/sysv/linux/mips/bits/timesize.h | 24 ++++++++++++++++++++++ sysdeps/unix/sysv/linux/nios2/bits/timesize.h | 20 ++++++++++++++++++ .../sysv/linux/powerpc/powerpc32/bits/timesize.h | 20 ++++++++++++++++++ sysdeps/unix/sysv/linux/riscv/bits/timesize.h | 22 -------------------- .../unix/sysv/linux/s390/s390-32/bits/timesize.h | 20 ++++++++++++++++++ sysdeps/unix/sysv/linux/sh/bits/timesize.h | 20 ++++++++++++++++++ .../unix/sysv/linux/sparc/sparc32/bits/timesize.h | 20 ++++++++++++++++++ sysdeps/unix/sysv/linux/x86/bits/timesize.h | 2 ++ 15 files changed, 246 insertions(+), 43 deletions(-) create mode 100644 sysdeps/mach/hurd/bits/timesize.h delete mode 100644 sysdeps/unix/sysv/linux/arc/bits/timesize.h create mode 100644 sysdeps/unix/sysv/linux/arm/bits/timesize.h create mode 100644 sysdeps/unix/sysv/linux/csky/bits/timesize.h create mode 100644 sysdeps/unix/sysv/linux/hppa/bits/timesize.h create mode 100644 sysdeps/unix/sysv/linux/m68k/bits/timesize.h create mode 100644 sysdeps/unix/sysv/linux/microblaze/bits/timesize.h create mode 100644 sysdeps/unix/sysv/linux/mips/bits/timesize.h create mode 100644 sysdeps/unix/sysv/linux/nios2/bits/timesize.h create mode 100644 sysdeps/unix/sysv/linux/powerpc/powerpc32/bits/timesize.h delete mode 100644 sysdeps/unix/sysv/linux/riscv/bits/timesize.h create mode 100644 sysdeps/unix/sysv/linux/s390/s390-32/bits/timesize.h create mode 100644 sysdeps/unix/sysv/linux/sh/bits/timesize.h create mode 100644 sysdeps/unix/sysv/linux/sparc/sparc32/bits/timesize.h (limited to 'sysdeps') diff --git a/sysdeps/mach/hurd/bits/timesize.h b/sysdeps/mach/hurd/bits/timesize.h new file mode 100644 index 0000000..bf94764 --- /dev/null +++ b/sysdeps/mach/hurd/bits/timesize.h @@ -0,0 +1,20 @@ +/* Bit size of the time_t type at glibc build time, Hurd. + Copyright (C) 2021 Free Software Foundation, Inc. + This file is part of the GNU C Library. + + The GNU C Library is free software; you can redistribute it and/or + modify it under the terms of the GNU Lesser General Public + License as published by the Free Software Foundation; either + version 2.1 of the License, or (at your option) any later version. + + The GNU C Library is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + Lesser General Public License for more details. + + You should have received a copy of the GNU Lesser General Public + License along with the GNU C Library; if not, see + . */ + +/* Size in bits of the 'time_t' type of the default ABI. */ +#define __TIMESIZE 32 diff --git a/sysdeps/unix/sysv/linux/arc/bits/timesize.h b/sysdeps/unix/sysv/linux/arc/bits/timesize.h deleted file mode 100644 index 44fea80..0000000 --- a/sysdeps/unix/sysv/linux/arc/bits/timesize.h +++ /dev/null @@ -1,21 +0,0 @@ -/* Bit size of the time_t type at glibc build time, general case. - Copyright (C) 2020-2021 Free Software Foundation, Inc. - This file is part of the GNU C Library. - - The GNU C Library is free software; you can redistribute it and/or - modify it under the terms of the GNU Lesser General Public - License as published by the Free Software Foundation; either - version 2.1 of the License, or (at your option) any later version. - - The GNU C Library is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - Lesser General Public License for more details. - - You should have received a copy of the GNU Lesser General Public - License along with the GNU C Library; if not, see - . */ - -#include - -#define __TIMESIZE 64 diff --git a/sysdeps/unix/sysv/linux/arm/bits/timesize.h b/sysdeps/unix/sysv/linux/arm/bits/timesize.h new file mode 100644 index 0000000..4d3e7c2 --- /dev/null +++ b/sysdeps/unix/sysv/linux/arm/bits/timesize.h @@ -0,0 +1,20 @@ +/* Bit size of the time_t type at glibc build time, Linux/ARM. + Copyright (C) 2021 Free Software Foundation, Inc. + This file is part of the GNU C Library. + + The GNU C Library is free software; you can redistribute it and/or + modify it under the terms of the GNU Lesser General Public + License as published by the Free Software Foundation; either + version 2.1 of the License, or (at your option) any later version. + + The GNU C Library is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + Lesser General Public License for more details. + + You should have received a copy of the GNU Lesser General Public + License along with the GNU C Library; if not, see + . */ + +/* Size in bits of the 'time_t' type of the default ABI. */ +#define __TIMESIZE 32 diff --git a/sysdeps/unix/sysv/linux/csky/bits/timesize.h b/sysdeps/unix/sysv/linux/csky/bits/timesize.h new file mode 100644 index 0000000..1a29926 --- /dev/null +++ b/sysdeps/unix/sysv/linux/csky/bits/timesize.h @@ -0,0 +1,20 @@ +/* Bit size of the time_t type at glibc build time, Linux/csky. + Copyright (C) 2021 Free Software Foundation, Inc. + This file is part of the GNU C Library. + + The GNU C Library is free software; you can redistribute it and/or + modify it under the terms of the GNU Lesser General Public + License as published by the Free Software Foundation; either + version 2.1 of the License, or (at your option) any later version. + + The GNU C Library is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + Lesser General Public License for more details. + + You should have received a copy of the GNU Lesser General Public + License along with the GNU C Library; if not, see + . */ + +/* Size in bits of the 'time_t' type of the default ABI. */ +#define __TIMESIZE 32 diff --git a/sysdeps/unix/sysv/linux/hppa/bits/timesize.h b/sysdeps/unix/sysv/linux/hppa/bits/timesize.h new file mode 100644 index 0000000..ec57054 --- /dev/null +++ b/sysdeps/unix/sysv/linux/hppa/bits/timesize.h @@ -0,0 +1,20 @@ +/* Bit size of the time_t type at glibc build time, Linux/HPPA. + Copyright (C) 2021 Free Software Foundation, Inc. + This file is part of the GNU C Library. + + The GNU C Library is free software; you can redistribute it and/or + modify it under the terms of the GNU Lesser General Public + License as published by the Free Software Foundation; either + version 2.1 of the License, or (at your option) any later version. + + The GNU C Library is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + Lesser General Public License for more details. + + You should have received a copy of the GNU Lesser General Public + License along with the GNU C Library; if not, see + . */ + +/* Size in bits of the 'time_t' type of the default ABI. */ +#define __TIMESIZE 32 diff --git a/sysdeps/unix/sysv/linux/m68k/bits/timesize.h b/sysdeps/unix/sysv/linux/m68k/bits/timesize.h new file mode 100644 index 0000000..9da243e --- /dev/null +++ b/sysdeps/unix/sysv/linux/m68k/bits/timesize.h @@ -0,0 +1,20 @@ +/* Bit size of the time_t type at glibc build time, Linux/m68k. + Copyright (C) 2021 Free Software Foundation, Inc. + This file is part of the GNU C Library. + + The GNU C Library is free software; you can redistribute it and/or + modify it under the terms of the GNU Lesser General Public + License as published by the Free Software Foundation; either + version 2.1 of the License, or (at your option) any later version. + + The GNU C Library is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + Lesser General Public License for more details. + + You should have received a copy of the GNU Lesser General Public + License along with the GNU C Library; if not, see + . */ + +/* Size in bits of the 'time_t' type of the default ABI. */ +#define __TIMESIZE 32 diff --git a/sysdeps/unix/sysv/linux/microblaze/bits/timesize.h b/sysdeps/unix/sysv/linux/microblaze/bits/timesize.h new file mode 100644 index 0000000..2f02147 --- /dev/null +++ b/sysdeps/unix/sysv/linux/microblaze/bits/timesize.h @@ -0,0 +1,20 @@ +/* Bit size of the time_t type at glibc build time, Linux/MicroBlaze. + Copyright (C) 2021 Free Software Foundation, Inc. + This file is part of the GNU C Library. + + The GNU C Library is free software; you can redistribute it and/or + modify it under the terms of the GNU Lesser General Public + License as published by the Free Software Foundation; either + version 2.1 of the License, or (at your option) any later version. + + The GNU C Library is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + Lesser General Public License for more details. + + You should have received a copy of the GNU Lesser General Public + License along with the GNU C Library; if not, see + . */ + +/* Size in bits of the 'time_t' type of the default ABI. */ +#define __TIMESIZE 32 diff --git a/sysdeps/unix/sysv/linux/mips/bits/timesize.h b/sysdeps/unix/sysv/linux/mips/bits/timesize.h new file mode 100644 index 0000000..95a27ad --- /dev/null +++ b/sysdeps/unix/sysv/linux/mips/bits/timesize.h @@ -0,0 +1,24 @@ +/* Bit size of the time_t type at glibc build time, Linux/MIPS. + Copyright (C) 2021 Free Software Foundation, Inc. + This file is part of the GNU C Library. + + The GNU C Library is free software; you can redistribute it and/or + modify it under the terms of the GNU Lesser General Public + License as published by the Free Software Foundation; either + version 2.1 of the License, or (at your option) any later version. + + The GNU C Library is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + Lesser General Public License for more details. + + You should have received a copy of the GNU Lesser General Public + License along with the GNU C Library; if not, see + . */ + +/* Size in bits of the 'time_t' type of the default ABI. */ +#if _MIPS_SIM == _ABI64 +# define __TIMESIZE 64 +#else +# define __TIMESIZE 32 +#endif diff --git a/sysdeps/unix/sysv/linux/nios2/bits/timesize.h b/sysdeps/unix/sysv/linux/nios2/bits/timesize.h new file mode 100644 index 0000000..29d1730 --- /dev/null +++ b/sysdeps/unix/sysv/linux/nios2/bits/timesize.h @@ -0,0 +1,20 @@ +/* Bit size of the time_t type at glibc build time, Linux/NIOS2. + Copyright (C) 2021 Free Software Foundation, Inc. + This file is part of the GNU C Library. + + The GNU C Library is free software; you can redistribute it and/or + modify it under the terms of the GNU Lesser General Public + License as published by the Free Software Foundation; either + version 2.1 of the License, or (at your option) any later version. + + The GNU C Library is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + Lesser General Public License for more details. + + You should have received a copy of the GNU Lesser General Public + License along with the GNU C Library; if not, see + . */ + +/* Size in bits of the 'time_t' type of the default ABI. */ +#define __TIMESIZE 32 diff --git a/sysdeps/unix/sysv/linux/powerpc/powerpc32/bits/timesize.h b/sysdeps/unix/sysv/linux/powerpc/powerpc32/bits/timesize.h new file mode 100644 index 0000000..33a8bf9 --- /dev/null +++ b/sysdeps/unix/sysv/linux/powerpc/powerpc32/bits/timesize.h @@ -0,0 +1,20 @@ +/* Bit size of the time_t type at glibc build time, Linux/PowerPC 32-bits. + Copyright (C) 2021 Free Software Foundation, Inc. + This file is part of the GNU C Library. + + The GNU C Library is free software; you can redistribute it and/or + modify it under the terms of the GNU Lesser General Public + License as published by the Free Software Foundation; either + version 2.1 of the License, or (at your option) any later version. + + The GNU C Library is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + Lesser General Public License for more details. + + You should have received a copy of the GNU Lesser General Public + License along with the GNU C Library; if not, see + . */ + +/* Size in bits of the 'time_t' type of the default ABI. */ +#define __TIMESIZE 32 diff --git a/sysdeps/unix/sysv/linux/riscv/bits/timesize.h b/sysdeps/unix/sysv/linux/riscv/bits/timesize.h deleted file mode 100644 index 1843ad5..0000000 --- a/sysdeps/unix/sysv/linux/riscv/bits/timesize.h +++ /dev/null @@ -1,22 +0,0 @@ -/* Bit size of the time_t type at glibc build time, RISC-V case. - Copyright (C) 2020-2021 Free Software Foundation, Inc. - This file is part of the GNU C Library. - - The GNU C Library is free software; you can redistribute it and/or - modify it under the terms of the GNU Lesser General Public - License as published by the Free Software Foundation; either - version 2.1 of the License, or (at your option) any later version. - - The GNU C Library is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - Lesser General Public License for more details. - - You should have received a copy of the GNU Lesser General Public - License along with the GNU C Library; if not, see - . */ - -#include - -/* RV32 and RV64 both use 64-bit time_t */ -#define __TIMESIZE 64 diff --git a/sysdeps/unix/sysv/linux/s390/s390-32/bits/timesize.h b/sysdeps/unix/sysv/linux/s390/s390-32/bits/timesize.h new file mode 100644 index 0000000..a3eb945 --- /dev/null +++ b/sysdeps/unix/sysv/linux/s390/s390-32/bits/timesize.h @@ -0,0 +1,20 @@ +/* Bit size of the time_t type at glibc build time, Linux/s390 32-bits. + Copyright (C) 2021 Free Software Foundation, Inc. + This file is part of the GNU C Library. + + The GNU C Library is free software; you can redistribute it and/or + modify it under the terms of the GNU Lesser General Public + License as published by the Free Software Foundation; either + version 2.1 of the License, or (at your option) any later version. + + The GNU C Library is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + Lesser General Public License for more details. + + You should have received a copy of the GNU Lesser General Public + License along with the GNU C Library; if not, see + . */ + +/* Size in bits of the 'time_t' type of the default ABI. */ +#define __TIMESIZE 32 diff --git a/sysdeps/unix/sysv/linux/sh/bits/timesize.h b/sysdeps/unix/sysv/linux/sh/bits/timesize.h new file mode 100644 index 0000000..a9ad07b --- /dev/null +++ b/sysdeps/unix/sysv/linux/sh/bits/timesize.h @@ -0,0 +1,20 @@ +/* Bit size of the time_t type at glibc build time, Linux/sh. + Copyright (C) 2021 Free Software Foundation, Inc. + This file is part of the GNU C Library. + + The GNU C Library is free software; you can redistribute it and/or + modify it under the terms of the GNU Lesser General Public + License as published by the Free Software Foundation; either + version 2.1 of the License, or (at your option) any later version. + + The GNU C Library is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + Lesser General Public License for more details. + + You should have received a copy of the GNU Lesser General Public + License along with the GNU C Library; if not, see + . */ + +/* Size in bits of the 'time_t' type of the default ABI. */ +#define __TIMESIZE 32 diff --git a/sysdeps/unix/sysv/linux/sparc/sparc32/bits/timesize.h b/sysdeps/unix/sysv/linux/sparc/sparc32/bits/timesize.h new file mode 100644 index 0000000..586f4d9 --- /dev/null +++ b/sysdeps/unix/sysv/linux/sparc/sparc32/bits/timesize.h @@ -0,0 +1,20 @@ +/* Bit size of the time_t type at glibc build time, Linux/sparc 32-bits. + Copyright (C) 2021 Free Software Foundation, Inc. + This file is part of the GNU C Library. + + The GNU C Library is free software; you can redistribute it and/or + modify it under the terms of the GNU Lesser General Public + License as published by the Free Software Foundation; either + version 2.1 of the License, or (at your option) any later version. + + The GNU C Library is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + Lesser General Public License for more details. + + You should have received a copy of the GNU Lesser General Public + License along with the GNU C Library; if not, see + . */ + +/* Size in bits of the 'time_t' type of the default ABI. */ +#define __TIMESIZE 32 diff --git a/sysdeps/unix/sysv/linux/x86/bits/timesize.h b/sysdeps/unix/sysv/linux/x86/bits/timesize.h index 17e943a..e8f5cd8 100644 --- a/sysdeps/unix/sysv/linux/x86/bits/timesize.h +++ b/sysdeps/unix/sysv/linux/x86/bits/timesize.h @@ -16,6 +16,8 @@ License along with the GNU C Library; if not, see . */ +#include + #if defined __x86_64__ && defined __ILP32__ /* For x32, time is 64-bit even though word size is 32-bit. */ # define __TIMESIZE 64 -- cgit v1.1