update glibc headers to 2.32

This commit is contained in:
Andrew Kelley 2020-08-30 21:27:30 -07:00
parent eeadd55d15
commit dd8cc6b0f1
262 changed files with 3876 additions and 3424 deletions

View File

@ -53,4 +53,23 @@
#define HWCAP_SSBS (1 << 28) #define HWCAP_SSBS (1 << 28)
#define HWCAP_SB (1 << 29) #define HWCAP_SB (1 << 29)
#define HWCAP_PACA (1 << 30) #define HWCAP_PACA (1 << 30)
#define HWCAP_PACG (1UL << 31) #define HWCAP_PACG (1UL << 31)
#define HWCAP2_DCPODP (1 << 0)
#define HWCAP2_SVE2 (1 << 1)
#define HWCAP2_SVEAES (1 << 2)
#define HWCAP2_SVEPMULL (1 << 3)
#define HWCAP2_SVEBITPERM (1 << 4)
#define HWCAP2_SVESHA3 (1 << 5)
#define HWCAP2_SVESM4 (1 << 6)
#define HWCAP2_FLAGM2 (1 << 7)
#define HWCAP2_FRINT (1 << 8)
#define HWCAP2_SVEI8MM (1 << 9)
#define HWCAP2_SVEF32MM (1 << 10)
#define HWCAP2_SVEF64MM (1 << 11)
#define HWCAP2_SVEBF16 (1 << 12)
#define HWCAP2_I8MM (1 << 13)
#define HWCAP2_BF16 (1 << 14)
#define HWCAP2_DGH (1 << 15)
#define HWCAP2_RNG (1 << 16)
#define HWCAP2_BTI (1 << 17)

View File

@ -18,4 +18,4 @@
/* long double is distinct from double, so there is nothing to /* long double is distinct from double, so there is nothing to
define here. */ define here. */
#define __LONG_DOUBLE_USES_FLOAT128 0 #define __LDOUBLE_REDIRECTS_TO_FLOAT128_ABI 0

View File

@ -1,5 +1,5 @@
/* Define where padding goes in struct semid_ds. SPARC version. /* Definitions for POSIX memory map interface. Linux/AArch64 version.
Copyright (C) 2018-2020 Free Software Foundation, Inc. Copyright (C) 2020 Free Software Foundation, Inc.
This file is part of the GNU C Library. This file is part of the GNU C Library.
The GNU C Library is free software; you can redistribute it and/or The GNU C Library is free software; you can redistribute it and/or
@ -16,11 +16,16 @@
License along with the GNU C Library; if not, see License along with the GNU C Library; if not, see
<https://www.gnu.org/licenses/>. */ <https://www.gnu.org/licenses/>. */
#ifndef _SYS_SEM_H #ifndef _SYS_MMAN_H
# error "Never use <bits/sem-pad.h> directly; include <sys/sem.h> instead." # error "Never use <bits/mman.h> directly; include <sys/mman.h> instead."
#endif #endif
#include <bits/timesize.h> /* AArch64 specific definitions, should be in sync with
arch/arm64/include/uapi/asm/mman.h. */
#define __SEM_PAD_AFTER_TIME 0 #define PROT_BTI 0x10
#define __SEM_PAD_BEFORE_TIME (__TIMESIZE == 32)
#include <bits/mman-map-flags-generic.h>
/* Include generic Linux declarations. */
#include <bits/mman-linux.h>

View File

@ -26,31 +26,45 @@
/* See <bits/types.h> for the meaning of these macros. This file exists so /* See <bits/types.h> for the meaning of these macros. This file exists so
that <bits/types.h> need not vary across different GNU platforms. */ that <bits/types.h> need not vary across different GNU platforms. */
#if __TIMESIZE == 64 && __WORDSIZE == 32
/* These are the "new" y2038 types defined for architectures added after
the 5.1 kernel. */
# define __INO_T_TYPE __UQUAD_TYPE
# define __OFF_T_TYPE __SQUAD_TYPE
# define __RLIM_T_TYPE __UQUAD_TYPE
# define __BLKCNT_T_TYPE __SQUAD_TYPE
# define __FSBLKCNT_T_TYPE __UQUAD_TYPE
# define __FSFILCNT_T_TYPE __UQUAD_TYPE
# define __TIME_T_TYPE __SQUAD_TYPE
# define __SUSECONDS_T_TYPE __SQUAD_TYPE
#else
# define __INO_T_TYPE __ULONGWORD_TYPE
# define __OFF_T_TYPE __SLONGWORD_TYPE
# define __RLIM_T_TYPE __ULONGWORD_TYPE
# define __BLKCNT_T_TYPE __SLONGWORD_TYPE
# define __FSBLKCNT_T_TYPE __ULONGWORD_TYPE
# define __FSFILCNT_T_TYPE __ULONGWORD_TYPE
# define __TIME_T_TYPE __SLONGWORD_TYPE
# define __SUSECONDS_T_TYPE __SLONGWORD_TYPE
#endif
#define __DEV_T_TYPE __UQUAD_TYPE #define __DEV_T_TYPE __UQUAD_TYPE
#define __UID_T_TYPE __U32_TYPE #define __UID_T_TYPE __U32_TYPE
#define __GID_T_TYPE __U32_TYPE #define __GID_T_TYPE __U32_TYPE
#define __INO_T_TYPE __ULONGWORD_TYPE
#define __INO64_T_TYPE __UQUAD_TYPE #define __INO64_T_TYPE __UQUAD_TYPE
#define __MODE_T_TYPE __U32_TYPE #define __MODE_T_TYPE __U32_TYPE
#define __NLINK_T_TYPE __U32_TYPE #define __NLINK_T_TYPE __U32_TYPE
#define __OFF_T_TYPE __SLONGWORD_TYPE
#define __OFF64_T_TYPE __SQUAD_TYPE #define __OFF64_T_TYPE __SQUAD_TYPE
#define __PID_T_TYPE __S32_TYPE #define __PID_T_TYPE __S32_TYPE
#define __RLIM_T_TYPE __ULONGWORD_TYPE
#define __RLIM64_T_TYPE __UQUAD_TYPE #define __RLIM64_T_TYPE __UQUAD_TYPE
#define __BLKCNT_T_TYPE __SLONGWORD_TYPE
#define __BLKCNT64_T_TYPE __SQUAD_TYPE #define __BLKCNT64_T_TYPE __SQUAD_TYPE
#define __FSBLKCNT_T_TYPE __ULONGWORD_TYPE
#define __FSBLKCNT64_T_TYPE __UQUAD_TYPE #define __FSBLKCNT64_T_TYPE __UQUAD_TYPE
#define __FSFILCNT_T_TYPE __ULONGWORD_TYPE
#define __FSFILCNT64_T_TYPE __UQUAD_TYPE #define __FSFILCNT64_T_TYPE __UQUAD_TYPE
#define __FSWORD_T_TYPE __SWORD_TYPE #define __FSWORD_T_TYPE __SWORD_TYPE
#define __ID_T_TYPE __U32_TYPE #define __ID_T_TYPE __U32_TYPE
#define __CLOCK_T_TYPE __SLONGWORD_TYPE #define __CLOCK_T_TYPE __SLONGWORD_TYPE
#define __TIME_T_TYPE __SLONGWORD_TYPE
#define __USECONDS_T_TYPE __U32_TYPE #define __USECONDS_T_TYPE __U32_TYPE
#define __SUSECONDS_T_TYPE __SLONGWORD_TYPE #define __SUSECONDS64_T_TYPE __SQUAD_TYPE
#define __DADDR_T_TYPE __S32_TYPE #define __DADDR_T_TYPE __S32_TYPE
#define __KEY_T_TYPE __S32_TYPE #define __KEY_T_TYPE __S32_TYPE
#define __CLOCKID_T_TYPE __S32_TYPE #define __CLOCKID_T_TYPE __S32_TYPE
@ -62,7 +76,7 @@
#define __SYSCALL_ULONG_TYPE __ULONGWORD_TYPE #define __SYSCALL_ULONG_TYPE __ULONGWORD_TYPE
#define __CPU_MASK_TYPE __ULONGWORD_TYPE #define __CPU_MASK_TYPE __ULONGWORD_TYPE
#ifdef __LP64__ #if defined __LP64__ || (__TIMESIZE == 64 && __WORDSIZE == 32)
/* Tell the libc code that off_t and off64_t are actually the same type /* Tell the libc code that off_t and off64_t are actually the same type
for all ABI purposes, even if possibly expressed as different base types for all ABI purposes, even if possibly expressed as different base types
for C type-checking purposes. */ for C type-checking purposes. */
@ -76,11 +90,17 @@
/* And for fsblkcnt_t, fsblkcnt64_t, fsfilcnt_t and fsfilcnt64_t. */ /* And for fsblkcnt_t, fsblkcnt64_t, fsfilcnt_t and fsfilcnt64_t. */
# define __STATFS_MATCHES_STATFS64 1 # define __STATFS_MATCHES_STATFS64 1
/* And for getitimer, setitimer and rusage */
# define __KERNEL_OLD_TIMEVAL_MATCHES_TIMEVAL64 (__WORDSIZE == 64)
#else #else
# define __RLIM_T_MATCHES_RLIM64_T 0 # define __RLIM_T_MATCHES_RLIM64_T 0
# define __STATFS_MATCHES_STATFS64 0 # define __STATFS_MATCHES_STATFS64 0
# define __KERNEL_OLD_TIMEVAL_MATCHES_TIMEVAL64 0
#endif #endif
/* Number of descriptors that can fit in an `fd_set'. */ /* Number of descriptors that can fit in an `fd_set'. */
#define __FD_SETSIZE 1024 #define __FD_SETSIZE 1024

View File

@ -20,8 +20,6 @@
#define LIBNSS_FILES_SO "libnss_files.so.2" #define LIBNSS_FILES_SO "libnss_files.so.2"
#define LIBNSS_HESIOD_SO "libnss_hesiod.so.2" #define LIBNSS_HESIOD_SO "libnss_hesiod.so.2"
#define LIBNSS_LDAP_SO "libnss_ldap.so.2" #define LIBNSS_LDAP_SO "libnss_ldap.so.2"
#define LIBNSS_NISPLUS_SO "libnss_nisplus.so.2"
#define LIBNSS_NIS_SO "libnss_nis.so.2"
#define LIBNSS_TEST1_SO "libnss_test1.so.2" #define LIBNSS_TEST1_SO "libnss_test1.so.2"
#define LIBNSS_TEST2_SO "libnss_test2.so.2" #define LIBNSS_TEST2_SO "libnss_test2.so.2"
#define LIBPTHREAD_SO "libpthread.so.0" #define LIBPTHREAD_SO "libpthread.so.0"

View File

@ -15,10 +15,7 @@
#define __stub_chflags #define __stub_chflags
#define __stub_fchflags #define __stub_fchflags
#define __stub_gtty #define __stub_gtty
#define __stub_lchmod
#define __stub_revoke #define __stub_revoke
#define __stub_setlogin #define __stub_setlogin
#define __stub_sigreturn #define __stub_sigreturn
#define __stub_sstk #define __stub_stty
#define __stub_stty
#define __stub_sysctl

View File

@ -53,4 +53,23 @@
#define HWCAP_SSBS (1 << 28) #define HWCAP_SSBS (1 << 28)
#define HWCAP_SB (1 << 29) #define HWCAP_SB (1 << 29)
#define HWCAP_PACA (1 << 30) #define HWCAP_PACA (1 << 30)
#define HWCAP_PACG (1UL << 31) #define HWCAP_PACG (1UL << 31)
#define HWCAP2_DCPODP (1 << 0)
#define HWCAP2_SVE2 (1 << 1)
#define HWCAP2_SVEAES (1 << 2)
#define HWCAP2_SVEPMULL (1 << 3)
#define HWCAP2_SVEBITPERM (1 << 4)
#define HWCAP2_SVESHA3 (1 << 5)
#define HWCAP2_SVESM4 (1 << 6)
#define HWCAP2_FLAGM2 (1 << 7)
#define HWCAP2_FRINT (1 << 8)
#define HWCAP2_SVEI8MM (1 << 9)
#define HWCAP2_SVEF32MM (1 << 10)
#define HWCAP2_SVEF64MM (1 << 11)
#define HWCAP2_SVEBF16 (1 << 12)
#define HWCAP2_I8MM (1 << 13)
#define HWCAP2_BF16 (1 << 14)
#define HWCAP2_DGH (1 << 15)
#define HWCAP2_RNG (1 << 16)
#define HWCAP2_BTI (1 << 17)

View File

@ -18,4 +18,4 @@
/* long double is distinct from double, so there is nothing to /* long double is distinct from double, so there is nothing to
define here. */ define here. */
#define __LONG_DOUBLE_USES_FLOAT128 0 #define __LDOUBLE_REDIRECTS_TO_FLOAT128_ABI 0

View File

@ -1,5 +1,5 @@
/* Define where padding goes in struct shmid_ds. SPARC version. /* Definitions for POSIX memory map interface. Linux/AArch64 version.
Copyright (C) 2018-2020 Free Software Foundation, Inc. Copyright (C) 2020 Free Software Foundation, Inc.
This file is part of the GNU C Library. This file is part of the GNU C Library.
The GNU C Library is free software; you can redistribute it and/or The GNU C Library is free software; you can redistribute it and/or
@ -16,13 +16,16 @@
License along with the GNU C Library; if not, see License along with the GNU C Library; if not, see
<https://www.gnu.org/licenses/>. */ <https://www.gnu.org/licenses/>. */
#ifndef _SYS_SHM_H #ifndef _SYS_MMAN_H
# error "Never use <bits/shm-pad.h> directly; include <sys/shm.h> instead." # error "Never use <bits/mman.h> directly; include <sys/mman.h> instead."
#endif #endif
#include <bits/timesize.h> /* AArch64 specific definitions, should be in sync with
arch/arm64/include/uapi/asm/mman.h. */
#define __SHM_PAD_AFTER_TIME 0 #define PROT_BTI 0x10
#define __SHM_PAD_BEFORE_TIME (__TIMESIZE == 32)
#define __SHM_SEGSZ_AFTER_TIME 1 #include <bits/mman-map-flags-generic.h>
#define __SHM_PAD_BETWEEN_TIME_AND_SEGSZ 0
/* Include generic Linux declarations. */
#include <bits/mman-linux.h>

View File

@ -26,31 +26,45 @@
/* See <bits/types.h> for the meaning of these macros. This file exists so /* See <bits/types.h> for the meaning of these macros. This file exists so
that <bits/types.h> need not vary across different GNU platforms. */ that <bits/types.h> need not vary across different GNU platforms. */
#if __TIMESIZE == 64 && __WORDSIZE == 32
/* These are the "new" y2038 types defined for architectures added after
the 5.1 kernel. */
# define __INO_T_TYPE __UQUAD_TYPE
# define __OFF_T_TYPE __SQUAD_TYPE
# define __RLIM_T_TYPE __UQUAD_TYPE
# define __BLKCNT_T_TYPE __SQUAD_TYPE
# define __FSBLKCNT_T_TYPE __UQUAD_TYPE
# define __FSFILCNT_T_TYPE __UQUAD_TYPE
# define __TIME_T_TYPE __SQUAD_TYPE
# define __SUSECONDS_T_TYPE __SQUAD_TYPE
#else
# define __INO_T_TYPE __ULONGWORD_TYPE
# define __OFF_T_TYPE __SLONGWORD_TYPE
# define __RLIM_T_TYPE __ULONGWORD_TYPE
# define __BLKCNT_T_TYPE __SLONGWORD_TYPE
# define __FSBLKCNT_T_TYPE __ULONGWORD_TYPE
# define __FSFILCNT_T_TYPE __ULONGWORD_TYPE
# define __TIME_T_TYPE __SLONGWORD_TYPE
# define __SUSECONDS_T_TYPE __SLONGWORD_TYPE
#endif
#define __DEV_T_TYPE __UQUAD_TYPE #define __DEV_T_TYPE __UQUAD_TYPE
#define __UID_T_TYPE __U32_TYPE #define __UID_T_TYPE __U32_TYPE
#define __GID_T_TYPE __U32_TYPE #define __GID_T_TYPE __U32_TYPE
#define __INO_T_TYPE __ULONGWORD_TYPE
#define __INO64_T_TYPE __UQUAD_TYPE #define __INO64_T_TYPE __UQUAD_TYPE
#define __MODE_T_TYPE __U32_TYPE #define __MODE_T_TYPE __U32_TYPE
#define __NLINK_T_TYPE __U32_TYPE #define __NLINK_T_TYPE __U32_TYPE
#define __OFF_T_TYPE __SLONGWORD_TYPE
#define __OFF64_T_TYPE __SQUAD_TYPE #define __OFF64_T_TYPE __SQUAD_TYPE
#define __PID_T_TYPE __S32_TYPE #define __PID_T_TYPE __S32_TYPE
#define __RLIM_T_TYPE __ULONGWORD_TYPE
#define __RLIM64_T_TYPE __UQUAD_TYPE #define __RLIM64_T_TYPE __UQUAD_TYPE
#define __BLKCNT_T_TYPE __SLONGWORD_TYPE
#define __BLKCNT64_T_TYPE __SQUAD_TYPE #define __BLKCNT64_T_TYPE __SQUAD_TYPE
#define __FSBLKCNT_T_TYPE __ULONGWORD_TYPE
#define __FSBLKCNT64_T_TYPE __UQUAD_TYPE #define __FSBLKCNT64_T_TYPE __UQUAD_TYPE
#define __FSFILCNT_T_TYPE __ULONGWORD_TYPE
#define __FSFILCNT64_T_TYPE __UQUAD_TYPE #define __FSFILCNT64_T_TYPE __UQUAD_TYPE
#define __FSWORD_T_TYPE __SWORD_TYPE #define __FSWORD_T_TYPE __SWORD_TYPE
#define __ID_T_TYPE __U32_TYPE #define __ID_T_TYPE __U32_TYPE
#define __CLOCK_T_TYPE __SLONGWORD_TYPE #define __CLOCK_T_TYPE __SLONGWORD_TYPE
#define __TIME_T_TYPE __SLONGWORD_TYPE
#define __USECONDS_T_TYPE __U32_TYPE #define __USECONDS_T_TYPE __U32_TYPE
#define __SUSECONDS_T_TYPE __SLONGWORD_TYPE #define __SUSECONDS64_T_TYPE __SQUAD_TYPE
#define __DADDR_T_TYPE __S32_TYPE #define __DADDR_T_TYPE __S32_TYPE
#define __KEY_T_TYPE __S32_TYPE #define __KEY_T_TYPE __S32_TYPE
#define __CLOCKID_T_TYPE __S32_TYPE #define __CLOCKID_T_TYPE __S32_TYPE
@ -62,7 +76,7 @@
#define __SYSCALL_ULONG_TYPE __ULONGWORD_TYPE #define __SYSCALL_ULONG_TYPE __ULONGWORD_TYPE
#define __CPU_MASK_TYPE __ULONGWORD_TYPE #define __CPU_MASK_TYPE __ULONGWORD_TYPE
#ifdef __LP64__ #if defined __LP64__ || (__TIMESIZE == 64 && __WORDSIZE == 32)
/* Tell the libc code that off_t and off64_t are actually the same type /* Tell the libc code that off_t and off64_t are actually the same type
for all ABI purposes, even if possibly expressed as different base types for all ABI purposes, even if possibly expressed as different base types
for C type-checking purposes. */ for C type-checking purposes. */
@ -76,11 +90,17 @@
/* And for fsblkcnt_t, fsblkcnt64_t, fsfilcnt_t and fsfilcnt64_t. */ /* And for fsblkcnt_t, fsblkcnt64_t, fsfilcnt_t and fsfilcnt64_t. */
# define __STATFS_MATCHES_STATFS64 1 # define __STATFS_MATCHES_STATFS64 1
/* And for getitimer, setitimer and rusage */
# define __KERNEL_OLD_TIMEVAL_MATCHES_TIMEVAL64 (__WORDSIZE == 64)
#else #else
# define __RLIM_T_MATCHES_RLIM64_T 0 # define __RLIM_T_MATCHES_RLIM64_T 0
# define __STATFS_MATCHES_STATFS64 0 # define __STATFS_MATCHES_STATFS64 0
# define __KERNEL_OLD_TIMEVAL_MATCHES_TIMEVAL64 0
#endif #endif
/* Number of descriptors that can fit in an `fd_set'. */ /* Number of descriptors that can fit in an `fd_set'. */
#define __FD_SETSIZE 1024 #define __FD_SETSIZE 1024

View File

@ -20,8 +20,6 @@
#define LIBNSS_FILES_SO "libnss_files.so.2" #define LIBNSS_FILES_SO "libnss_files.so.2"
#define LIBNSS_HESIOD_SO "libnss_hesiod.so.2" #define LIBNSS_HESIOD_SO "libnss_hesiod.so.2"
#define LIBNSS_LDAP_SO "libnss_ldap.so.2" #define LIBNSS_LDAP_SO "libnss_ldap.so.2"
#define LIBNSS_NISPLUS_SO "libnss_nisplus.so.2"
#define LIBNSS_NIS_SO "libnss_nis.so.2"
#define LIBNSS_TEST1_SO "libnss_test1.so.2" #define LIBNSS_TEST1_SO "libnss_test1.so.2"
#define LIBNSS_TEST2_SO "libnss_test2.so.2" #define LIBNSS_TEST2_SO "libnss_test2.so.2"
#define LIBPTHREAD_SO "libpthread.so.0" #define LIBPTHREAD_SO "libpthread.so.0"

View File

@ -15,10 +15,7 @@
#define __stub_chflags #define __stub_chflags
#define __stub_fchflags #define __stub_fchflags
#define __stub_gtty #define __stub_gtty
#define __stub_lchmod
#define __stub_revoke #define __stub_revoke
#define __stub_setlogin #define __stub_setlogin
#define __stub_sigreturn #define __stub_sigreturn
#define __stub_sstk #define __stub_stty
#define __stub_stty
#define __stub_sysctl

View File

@ -37,4 +37,17 @@
#ifndef __NO_LONG_DOUBLE_MATH #ifndef __NO_LONG_DOUBLE_MATH
# define __NO_LONG_DOUBLE_MATH 1 # define __NO_LONG_DOUBLE_MATH 1
#endif #endif
#define __LONG_DOUBLE_USES_FLOAT128 0
/* The macro __LDOUBLE_REDIRECTS_TO_FLOAT128_ABI is used to determine the
choice of the underlying ABI of long double. It will always assume
a constant value for each translation unit.
If the value is non-zero, any API which is parameterized by the long
double type (i.e the scanf/printf family of functions or the explicitly
parameterized math.h functions) will be redirected to a compatible
implementation using _Float128 ABI via symbols suffixed with ieee128.
The mechanism this macro uses to acquire may be a function
of architecture, or target specific options used to invoke the
compiler. */
#define __LDOUBLE_REDIRECTS_TO_FLOAT128_ABI 0

View File

@ -37,4 +37,17 @@
#ifndef __NO_LONG_DOUBLE_MATH #ifndef __NO_LONG_DOUBLE_MATH
# define __NO_LONG_DOUBLE_MATH 1 # define __NO_LONG_DOUBLE_MATH 1
#endif #endif
#define __LONG_DOUBLE_USES_FLOAT128 0
/* The macro __LDOUBLE_REDIRECTS_TO_FLOAT128_ABI is used to determine the
choice of the underlying ABI of long double. It will always assume
a constant value for each translation unit.
If the value is non-zero, any API which is parameterized by the long
double type (i.e the scanf/printf family of functions or the explicitly
parameterized math.h functions) will be redirected to a compatible
implementation using _Float128 ABI via symbols suffixed with ieee128.
The mechanism this macro uses to acquire may be a function
of architecture, or target specific options used to invoke the
compiler. */
#define __LDOUBLE_REDIRECTS_TO_FLOAT128_ABI 0

View File

@ -37,4 +37,17 @@
#ifndef __NO_LONG_DOUBLE_MATH #ifndef __NO_LONG_DOUBLE_MATH
# define __NO_LONG_DOUBLE_MATH 1 # define __NO_LONG_DOUBLE_MATH 1
#endif #endif
#define __LONG_DOUBLE_USES_FLOAT128 0
/* The macro __LDOUBLE_REDIRECTS_TO_FLOAT128_ABI is used to determine the
choice of the underlying ABI of long double. It will always assume
a constant value for each translation unit.
If the value is non-zero, any API which is parameterized by the long
double type (i.e the scanf/printf family of functions or the explicitly
parameterized math.h functions) will be redirected to a compatible
implementation using _Float128 ABI via symbols suffixed with ieee128.
The mechanism this macro uses to acquire may be a function
of architecture, or target specific options used to invoke the
compiler. */
#define __LDOUBLE_REDIRECTS_TO_FLOAT128_ABI 0

View File

@ -37,4 +37,17 @@
#ifndef __NO_LONG_DOUBLE_MATH #ifndef __NO_LONG_DOUBLE_MATH
# define __NO_LONG_DOUBLE_MATH 1 # define __NO_LONG_DOUBLE_MATH 1
#endif #endif
#define __LONG_DOUBLE_USES_FLOAT128 0
/* The macro __LDOUBLE_REDIRECTS_TO_FLOAT128_ABI is used to determine the
choice of the underlying ABI of long double. It will always assume
a constant value for each translation unit.
If the value is non-zero, any API which is parameterized by the long
double type (i.e the scanf/printf family of functions or the explicitly
parameterized math.h functions) will be redirected to a compatible
implementation using _Float128 ABI via symbols suffixed with ieee128.
The mechanism this macro uses to acquire may be a function
of architecture, or target specific options used to invoke the
compiler. */
#define __LDOUBLE_REDIRECTS_TO_FLOAT128_ABI 0

View File

@ -554,7 +554,8 @@ __NTH (__option_is_end (const struct argp_option *__opt))
# endif # endif
#endif /* Use extern inlines. */ #endif /* Use extern inlines. */
#ifdef __LDBL_COMPAT #include <bits/floatn.h>
#if defined __LDBL_COMPAT || __LDOUBLE_REDIRECTS_TO_FLOAT128_ABI == 1
# include <bits/argp-ldbl.h> # include <bits/argp-ldbl.h>
#endif #endif

View File

@ -290,7 +290,8 @@ struct f_owner_ex
#ifdef __USE_GNU #ifdef __USE_GNU
/* Hint values for F_{GET,SET}_RW_HINT. */ /* Hint values for F_{GET,SET}_RW_HINT. */
# define RWF_WRITE_LIFE_NOT_SET 0 # define RWH_WRITE_LIFE_NOT_SET 0
# define RWF_WRITE_LIFE_NOT_SET RWH_WRITE_LIFE_NOT_SET
# define RWH_WRITE_LIFE_NONE 1 # define RWH_WRITE_LIFE_NONE 1
# define RWH_WRITE_LIFE_SHORT 2 # define RWH_WRITE_LIFE_SHORT 2
# define RWH_WRITE_LIFE_MEDIUM 3 # define RWH_WRITE_LIFE_MEDIUM 3

View File

@ -1,8 +0,0 @@
/* This file provides inline versions of floating-pint environment
handling functions. If there were any. */
#ifndef __NO_MATH_INLINES
/* Here is where the code would go. */
#endif

View File

@ -1,4 +1,4 @@
/* Macros to control TS 18661-3 glibc features on MIPS platforms. /* Macros to control TS 18661-3 glibc features on ldbl-128 platforms.
Copyright (C) 2017-2020 Free Software Foundation, Inc. Copyright (C) 2017-2020 Free Software Foundation, Inc.
This file is part of the GNU C Library. This file is part of the GNU C Library.

View File

@ -21,4 +21,4 @@
#if !defined __NO_LONG_DOUBLE_MATH && _MIPS_SIM == _ABIO32 #if !defined __NO_LONG_DOUBLE_MATH && _MIPS_SIM == _ABIO32
# define __NO_LONG_DOUBLE_MATH 1 # define __NO_LONG_DOUBLE_MATH 1
#endif #endif
#define __LONG_DOUBLE_USES_FLOAT128 0 #define __LDOUBLE_REDIRECTS_TO_FLOAT128_ABI 0

View File

@ -16,28 +16,30 @@
License along with the GNU C Library; if not, see License along with the GNU C Library; if not, see
<https://www.gnu.org/licenses/>. */ <https://www.gnu.org/licenses/>. */
/* Classify given number. */ /* Classify given number. */
__MATHDECL_1 (int, __fpclassify,, (_Mdouble_ __value)) __MATHDECL_ALIAS (int, __fpclassify,, (_Mdouble_ __value), fpclassify)
__attribute__ ((__const__)); __attribute__ ((__const__));
/* Test for negative number. */ /* Test for negative number. */
__MATHDECL_1 (int, __signbit,, (_Mdouble_ __value)) __MATHDECL_ALIAS (int, __signbit,, (_Mdouble_ __value), signbit)
__attribute__ ((__const__)); __attribute__ ((__const__));
/* Return 0 if VALUE is finite or NaN, +1 if it /* Return 0 if VALUE is finite or NaN, +1 if it
is +Infinity, -1 if it is -Infinity. */ is +Infinity, -1 if it is -Infinity. */
__MATHDECL_1 (int, __isinf,, (_Mdouble_ __value)) __attribute__ ((__const__)); __MATHDECL_ALIAS (int, __isinf,, (_Mdouble_ __value), isinf)
__attribute__ ((__const__));
/* Return nonzero if VALUE is finite and not NaN. Used by isfinite macro. */ /* Return nonzero if VALUE is finite and not NaN. Used by isfinite macro. */
__MATHDECL_1 (int, __finite,, (_Mdouble_ __value)) __attribute__ ((__const__)); __MATHDECL_ALIAS (int, __finite,, (_Mdouble_ __value), finite)
__attribute__ ((__const__));
/* Return nonzero if VALUE is not a number. */ /* Return nonzero if VALUE is not a number. */
__MATHDECL_1 (int, __isnan,, (_Mdouble_ __value)) __attribute__ ((__const__)); __MATHDECL_ALIAS (int, __isnan,, (_Mdouble_ __value), isnan)
__attribute__ ((__const__));
/* Test equality. */ /* Test equality. */
__MATHDECL_1 (int, __iseqsig,, (_Mdouble_ __x, _Mdouble_ __y)); __MATHDECL_ALIAS (int, __iseqsig,, (_Mdouble_ __x, _Mdouble_ __y), iseqsig);
/* Test for signaling NaN. */ /* Test for signaling NaN. */
__MATHDECL_1 (int, __issignaling,, (_Mdouble_ __value)) __MATHDECL_ALIAS (int, __issignaling,, (_Mdouble_ __value), issignaling)
__attribute__ ((__const__)); __attribute__ ((__const__));

View File

@ -174,12 +174,14 @@ __MATHCALL (fmod,, (_Mdouble_ __x, _Mdouble_ __y));
&& !__MATH_DECLARING_FLOATN && !__MATH_DECLARING_FLOATN
/* Return 0 if VALUE is finite or NaN, +1 if it /* Return 0 if VALUE is finite or NaN, +1 if it
is +Infinity, -1 if it is -Infinity. */ is +Infinity, -1 if it is -Infinity. */
__MATHDECL_1 (int,isinf,, (_Mdouble_ __value)) __attribute__ ((__const__)); __MATHDECL_ALIAS (int,isinf,, (_Mdouble_ __value), isinf)
__attribute__ ((__const__));
# endif # endif
# if !__MATH_DECLARING_FLOATN # if !__MATH_DECLARING_FLOATN
/* Return nonzero if VALUE is finite and not NaN. */ /* Return nonzero if VALUE is finite and not NaN. */
__MATHDECL_1 (int,finite,, (_Mdouble_ __value)) __attribute__ ((__const__)); __MATHDECL_ALIAS (int,finite,, (_Mdouble_ __value), finite)
__attribute__ ((__const__));
/* Return the remainder of X/Y. */ /* Return the remainder of X/Y. */
__MATHCALL (drem,, (_Mdouble_ __x, _Mdouble_ __y)); __MATHCALL (drem,, (_Mdouble_ __x, _Mdouble_ __y));
@ -208,7 +210,8 @@ __MATHCALL (nan,, (const char *__tagb));
|| __MATH_DECLARING_DOUBLE == 0)) /* isnanf or isnanl don't. */ \ || __MATH_DECLARING_DOUBLE == 0)) /* isnanf or isnanl don't. */ \
&& !__MATH_DECLARING_FLOATN && !__MATH_DECLARING_FLOATN
/* Return nonzero if VALUE is not a number. */ /* Return nonzero if VALUE is not a number. */
__MATHDECL_1 (int,isnan,, (_Mdouble_ __value)) __attribute__ ((__const__)); __MATHDECL_ALIAS (int,isnan,, (_Mdouble_ __value), isnan)
__attribute__ ((__const__));
# endif # endif
#endif #endif

View File

@ -1,12 +0,0 @@
/* This file should provide inline versions of math functions.
Surround GCC-specific parts with #ifdef __GNUC__, and use `__extern_inline'.
This file should define __MATH_INLINES if functions are actually defined as
inlines. */
#if !defined __NO_MATH_INLINES && defined __OPTIMIZE__
/* Here goes the real code. */
#endif

View File

@ -24,6 +24,7 @@
/* Flags for mremap. */ /* Flags for mremap. */
# define MREMAP_MAYMOVE 1 # define MREMAP_MAYMOVE 1
# define MREMAP_FIXED 2 # define MREMAP_FIXED 2
# define MREMAP_DONTUNMAP 4
/* Flags for memfd_create. */ /* Flags for memfd_create. */
# ifndef MFD_CLOEXEC # ifndef MFD_CLOEXEC

View File

@ -1,31 +0,0 @@
/* Define where padding goes in struct msqid_ds. Generic version.
Copyright (C) 2018-2020 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
<https://www.gnu.org/licenses/>. */
#ifndef _SYS_MSG_H
# error "Never use <bits/msq-pad.h> directly; include <sys/msg.h> instead."
#endif
#include <bits/timesize.h>
/* On most architectures, padding goes after time fields for 32-bit
systems and is omitted for 64-bit systems. Some architectures pad
before time fields instead, or omit padding despite being
32-bit. */
#define __MSQ_PAD_AFTER_TIME (__TIMESIZE == 32)
#define __MSQ_PAD_BEFORE_TIME 0

View File

@ -20,7 +20,12 @@
#endif #endif
#include <bits/types.h> #include <bits/types.h>
#include <bits/msq-pad.h>
/* Types used in the MSQID_DS structure definition. */
typedef __syscall_ulong_t msgqnum_t;
typedef __syscall_ulong_t msglen_t;
#include <bits/types/struct_msqid_ds.h>
/* Define options for message queue functions. */ /* Define options for message queue functions. */
#define MSG_NOERROR 010000 /* no error if message is too big */ #define MSG_NOERROR 010000 /* no error if message is too big */
@ -29,38 +34,6 @@
# define MSG_COPY 040000 /* copy (not remove) all queue messages */ # define MSG_COPY 040000 /* copy (not remove) all queue messages */
#endif #endif
/* Types used in the structure definition. */
typedef __syscall_ulong_t msgqnum_t;
typedef __syscall_ulong_t msglen_t;
#if __MSQ_PAD_BEFORE_TIME
# define __MSQ_PAD_TIME(NAME, RES) \
unsigned long int __glibc_reserved ## RES; __time_t NAME
#elif __MSQ_PAD_AFTER_TIME
# define __MSQ_PAD_TIME(NAME, RES) \
__time_t NAME; unsigned long int __glibc_reserved ## RES
#else
# define __MSQ_PAD_TIME(NAME, RES) \
__time_t NAME
#endif
/* Structure of record for one message inside the kernel.
The type `struct msg' is opaque. */
struct msqid_ds
{
struct ipc_perm msg_perm; /* structure describing operation permission */
__MSQ_PAD_TIME (msg_stime, 1); /* time of last msgsnd command */
__MSQ_PAD_TIME (msg_rtime, 2); /* time of last msgrcv command */
__MSQ_PAD_TIME (msg_ctime, 3); /* time of last change */
__syscall_ulong_t __msg_cbytes; /* current number of bytes on queue */
msgqnum_t msg_qnum; /* number of messages currently on queue */
msglen_t msg_qbytes; /* max number of bytes allowed on queue */
__pid_t msg_lspid; /* pid of last msgsnd() */
__pid_t msg_lrpid; /* pid of last msgrcv() */
__syscall_ulong_t __glibc_reserved4;
__syscall_ulong_t __glibc_reserved5;
};
#ifdef __USE_MISC #ifdef __USE_MISC
# define msg_cbytes __msg_cbytes # define msg_cbytes __msg_cbytes

View File

@ -98,7 +98,7 @@ enum __rlimit_resource
__RLIMIT_RTPRIO = 14, __RLIMIT_RTPRIO = 14,
#define RLIMIT_RTPRIO __RLIMIT_RTPRIO #define RLIMIT_RTPRIO __RLIMIT_RTPRIO
/* Maximum CPU time in µs that a process scheduled under a real-time /* Maximum CPU time in microseconds that a process scheduled under a real-time
scheduling policy may consume without making a blocking system scheduling policy may consume without making a blocking system
call before being forcibly descheduled. */ call before being forcibly descheduled. */
__RLIMIT_RTTIME = 15, __RLIMIT_RTTIME = 15,

View File

@ -1,33 +0,0 @@
/* Define where padding goes in struct semid_ds. Generic version.
Copyright (C) 2018-2020 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
<https://www.gnu.org/licenses/>. */
#ifndef _SYS_SEM_H
# error "Never use <bits/sem-pad.h> directly; include <sys/sem.h> instead."
#endif
#include <bits/timesize.h>
/* On most architectures, padding goes after time fields for 32-bit
systems and is omitted for 64-bit systems. Some architectures pad
before time fields instead, or omit padding despite being 32-bit,
or include it despite being 64-bit. This must match the layout
used for struct semid64_ds in <asm/sembuf.h>, as glibc does not do
layout conversions for this structure. */
#define __SEM_PAD_AFTER_TIME (__TIMESIZE == 32)
#define __SEM_PAD_BEFORE_TIME 0

View File

@ -20,7 +20,8 @@
#endif #endif
#include <sys/types.h> #include <sys/types.h>
#include <bits/sem-pad.h> #include <bits/timesize.h>
#include <bits/types/struct_semid_ds.h>
/* Flags for `semop'. */ /* Flags for `semop'. */
#define SEM_UNDO 0x1000 /* undo the operation on exit */ #define SEM_UNDO 0x1000 /* undo the operation on exit */
@ -34,29 +35,6 @@
#define SETVAL 16 /* set semval */ #define SETVAL 16 /* set semval */
#define SETALL 17 /* set all semval's */ #define SETALL 17 /* set all semval's */
#if __SEM_PAD_BEFORE_TIME
# define __SEM_PAD_TIME(NAME, RES) \
__syscall_ulong_t __glibc_reserved ## RES; __time_t NAME
#elif __SEM_PAD_AFTER_TIME
# define __SEM_PAD_TIME(NAME, RES) \
__time_t NAME; __syscall_ulong_t __glibc_reserved ## RES
#else
# define __SEM_PAD_TIME(NAME, RES) \
__time_t NAME
#endif
/* Data structure describing a set of semaphores. */
struct semid_ds
{
struct ipc_perm sem_perm; /* operation permission struct */
__SEM_PAD_TIME (sem_otime, 1); /* last semop() time */
__SEM_PAD_TIME (sem_ctime, 2); /* last time changed by semctl() */
__syscall_ulong_t sem_nsems; /* number of semaphores in set */
__syscall_ulong_t __glibc_reserved3;
__syscall_ulong_t __glibc_reserved4;
};
/* The user should define a union like the following to use it for arguments /* The user should define a union like the following to use it for arguments
for `semctl'. for `semctl'.

View File

@ -1,4 +1,5 @@
/* Copyright (C) 2002-2020 Free Software Foundation, Inc. /* Generic POSIX semaphore type layout
Copyright (C) 1995-2020 Free Software Foundation, Inc.
This file is part of the GNU C Library. This file is part of the GNU C Library.
The GNU C Library is free software; you can redistribute it and/or The GNU C Library is free software; you can redistribute it and/or
@ -12,14 +13,16 @@
Lesser General Public License for more details. Lesser General Public License for more details.
You should have received a copy of the GNU Lesser General Public You should have received a copy of the GNU Lesser General Public
License along with the GNU C Library. If not, see License along with the GNU C Library; if not, see
<https://www.gnu.org/licenses/>. */ <https://www.gnu.org/licenses/>. */
#ifndef _SEMAPHORE_H #ifndef _SEMAPHORE_H
# error "Never use <bits/semaphore.h> directly; include <semaphore.h> instead." # error "Never use <bits/semaphore.h> directly; include <semaphore.h> instead."
#endif #endif
#if _MIPS_SIM == _ABI64 #include <bits/wordsize.h>
#if __WORDSIZE == 64
# define __SIZEOF_SEM_T 32 # define __SIZEOF_SEM_T 32
#else #else
# define __SIZEOF_SEM_T 16 # define __SIZEOF_SEM_T 16

View File

@ -1,37 +0,0 @@
/* Define where padding goes in struct shmid_ds. Generic version.
Copyright (C) 2018-2020 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
<https://www.gnu.org/licenses/>. */
#ifndef _SYS_SHM_H
# error "Never use <bits/shm-pad.h> directly; include <sys/shm.h> instead."
#endif
#include <bits/timesize.h>
/* On most architectures, padding goes after time fields for 32-bit
systems and is omitted for 64-bit systems. Some architectures pad
before time fields instead, or omit padding despite being 32-bit,
or include it despite being 64-bit. Furthermore, some
architectures place shm_segsz after the time fields rather than
before them, with or without padding there. This must match the
layout used for struct shmid64_ds in <asm/shmbuf.h>, as glibc does
not do layout conversions for this structure. */
#define __SHM_PAD_AFTER_TIME (__TIMESIZE == 32)
#define __SHM_PAD_BEFORE_TIME 0
#define __SHM_SEGSZ_AFTER_TIME 0
#define __SHM_PAD_BETWEEN_TIME_AND_SEGSZ 0

View File

@ -22,7 +22,6 @@
#include <bits/types.h> #include <bits/types.h>
#include <bits/wordsize.h> #include <bits/wordsize.h>
#include <bits/shmlba.h> #include <bits/shmlba.h>
#include <bits/shm-pad.h>
/* Permission flag for shmget. */ /* Permission flag for shmget. */
#define SHM_R 0400 /* or S_IRUGO from <linux/stat.h> */ #define SHM_R 0400 /* or S_IRUGO from <linux/stat.h> */
@ -43,39 +42,7 @@ __BEGIN_DECLS
/* Type to count number of attaches. */ /* Type to count number of attaches. */
typedef __syscall_ulong_t shmatt_t; typedef __syscall_ulong_t shmatt_t;
#if __SHM_PAD_BEFORE_TIME #include <bits/types/struct_shmid_ds.h>
# define __SHM_PAD_TIME(NAME, RES) \
unsigned long int __glibc_reserved ## RES; __time_t NAME
#elif __SHM_PAD_AFTER_TIME
# define __SHM_PAD_TIME(NAME, RES) \
__time_t NAME; unsigned long int __glibc_reserved ## RES
#else
# define __SHM_PAD_TIME(NAME, RES) \
__time_t NAME
#endif
/* Data structure describing a shared memory segment. */
struct shmid_ds
{
struct ipc_perm shm_perm; /* operation permission struct */
#if !__SHM_SEGSZ_AFTER_TIME
size_t shm_segsz; /* size of segment in bytes */
#endif
__SHM_PAD_TIME (shm_atime, 1); /* time of last shmat() */
__SHM_PAD_TIME (shm_dtime, 2); /* time of last shmdt() */
__SHM_PAD_TIME (shm_ctime, 3); /* time of last change by shmctl() */
#if __SHM_PAD_BETWEEN_TIME_AND_SEGSZ
unsigned long int __glibc_reserved4;
#endif
#if __SHM_SEGSZ_AFTER_TIME
size_t shm_segsz; /* size of segment in bytes */
#endif
__pid_t shm_cpid; /* pid of creator */
__pid_t shm_lpid; /* pid of last shmop */
shmatt_t shm_nattch; /* number of current attaches */
__syscall_ulong_t __glibc_reserved5;
__syscall_ulong_t __glibc_reserved6;
};
#ifdef __USE_MISC #ifdef __USE_MISC

View File

@ -0,0 +1,64 @@
/* Signal number definitions. Linux version.
Copyright (C) 1995-2020 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
<https://www.gnu.org/licenses/>. */
#ifndef _BITS_SIGNUM_ARCH_H
#define _BITS_SIGNUM_ARCH_H 1
#ifndef _SIGNAL_H
#error "Never include <bits/signum-arch.h> directly; use <signal.h> instead."
#endif
/* Adjustments and additions to the signal number constants for
most Linux systems. */
#define SIGSTKFLT 16 /* Stack fault (obsolete). */
#define SIGPWR 30 /* Power failure imminent. */
/* Historical signals specified by POSIX. */
#define SIGBUS 7 /* Bus error. */
#define SIGSYS 31 /* Bad system call. */
/* New(er) POSIX signals (1003.1-2008, 1003.1-2013). */
#define SIGURG 23 /* Urgent data is available at a socket. */
#define SIGSTOP 19 /* Stop, unblockable. */
#define SIGTSTP 20 /* Keyboard stop. */
#define SIGCONT 18 /* Continue. */
#define SIGCHLD 17 /* Child terminated or stopped. */
#define SIGTTIN 21 /* Background read from control terminal. */
#define SIGTTOU 22 /* Background write to control terminal. */
#define SIGPOLL 29 /* Pollable event occurred (System V). */
#define SIGXFSZ 25 /* File size limit exceeded. */
#define SIGXCPU 24 /* CPU time limit exceeded. */
#define SIGVTALRM 26 /* Virtual timer expired. */
#define SIGPROF 27 /* Profiling timer expired. */
#define SIGUSR1 10 /* User-defined signal 1. */
#define SIGUSR2 12 /* User-defined signal 2. */
/* Nonstandard signals found in all modern POSIX systems
(including both BSD and Linux). */
#define SIGWINCH 28 /* Window size change (4.3 BSD, Sun). */
/* Archaic names for compatibility. */
#define SIGIO SIGPOLL /* I/O now possible (4.2 BSD). */
#define SIGIOT SIGABRT /* IOT instruction, abort() on a PDP-11. */
#define SIGCLD SIGCHLD /* Old System V name */
#define __SIGRTMIN 32
#define __SIGRTMAX 64
#endif /* <signal.h> included. */

View File

@ -57,31 +57,9 @@
#define SIGQUIT 3 /* Quit. */ #define SIGQUIT 3 /* Quit. */
#define SIGTRAP 5 /* Trace/breakpoint trap. */ #define SIGTRAP 5 /* Trace/breakpoint trap. */
#define SIGKILL 9 /* Killed. */ #define SIGKILL 9 /* Killed. */
#define SIGBUS 10 /* Bus error. */
#define SIGSYS 12 /* Bad system call. */
#define SIGPIPE 13 /* Broken pipe. */ #define SIGPIPE 13 /* Broken pipe. */
#define SIGALRM 14 /* Alarm clock. */ #define SIGALRM 14 /* Alarm clock. */
/* New(er) POSIX signals (1003.1-2008, 1003.1-2013). */
#define SIGURG 16 /* Urgent data is available at a socket. */
#define SIGSTOP 17 /* Stop, unblockable. */
#define SIGTSTP 18 /* Keyboard stop. */
#define SIGCONT 19 /* Continue. */
#define SIGCHLD 20 /* Child terminated or stopped. */
#define SIGTTIN 21 /* Background read from control terminal. */
#define SIGTTOU 22 /* Background write to control terminal. */
#define SIGPOLL 23 /* Pollable event occurred (System V). */
#define SIGXCPU 24 /* CPU time limit exceeded. */
#define SIGXFSZ 25 /* File size limit exceeded. */
#define SIGVTALRM 26 /* Virtual timer expired. */
#define SIGPROF 27 /* Profiling timer expired. */
#define SIGUSR1 30 /* User-defined signal 1. */
#define SIGUSR2 31 /* User-defined signal 2. */
/* Nonstandard signals found in all modern POSIX systems
(including both BSD and Linux). */
#define SIGWINCH 28 /* Window size change (4.3 BSD, Sun). */
/* Archaic names for compatibility. */ /* Archaic names for compatibility. */
#define SIGIO SIGPOLL /* I/O now possible (4.2 BSD). */ #define SIGIO SIGPOLL /* I/O now possible (4.2 BSD). */
#define SIGIOT SIGABRT /* IOT instruction, abort() on a PDP-11. */ #define SIGIOT SIGABRT /* IOT instruction, abort() on a PDP-11. */
@ -93,8 +71,9 @@
but some real-time signals may be used internally by glibc. Do not but some real-time signals may be used internally by glibc. Do not
use these constants in application code; use SIGRTMIN and SIGRTMAX use these constants in application code; use SIGRTMIN and SIGRTMAX
(defined in signal.h) instead. */ (defined in signal.h) instead. */
#define __SIGRTMIN 32
#define __SIGRTMAX __SIGRTMIN /* Include system specific bits. */
#include <bits/signum-arch.h>
/* Biggest signal number + 1 (including real-time signals). */ /* Biggest signal number + 1 (including real-time signals). */
#define _NSIG (__SIGRTMAX + 1) #define _NSIG (__SIGRTMAX + 1)

View File

@ -1,58 +0,0 @@
/* Signal number definitions. Linux version.
Copyright (C) 1995-2020 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
<https://www.gnu.org/licenses/>. */
#ifndef _BITS_SIGNUM_H
#define _BITS_SIGNUM_H 1
#ifndef _SIGNAL_H
#error "Never include <bits/signum.h> directly; use <signal.h> instead."
#endif
#include <bits/signum-generic.h>
/* Adjustments and additions to the signal number constants for
most Linux systems. */
#define SIGSTKFLT 16 /* Stack fault (obsolete). */
#define SIGPWR 30 /* Power failure imminent. */
#undef SIGBUS
#define SIGBUS 7
#undef SIGUSR1
#define SIGUSR1 10
#undef SIGUSR2
#define SIGUSR2 12
#undef SIGCHLD
#define SIGCHLD 17
#undef SIGCONT
#define SIGCONT 18
#undef SIGSTOP
#define SIGSTOP 19
#undef SIGTSTP
#define SIGTSTP 20
#undef SIGURG
#define SIGURG 23
#undef SIGPOLL
#define SIGPOLL 29
#undef SIGSYS
#define SIGSYS 31
#undef __SIGRTMAX
#define __SIGRTMAX 64
#endif /* <signal.h> included. */

View File

@ -20,6 +20,8 @@
# error "Never include <bits/socket-constants.h> directly; use <sys/socket.h> instead." # error "Never include <bits/socket-constants.h> directly; use <sys/socket.h> instead."
#endif #endif
#include <bits/timesize.h>
#define SOL_SOCKET 1 #define SOL_SOCKET 1
#define SO_ACCEPTCONN 30 #define SO_ACCEPTCONN 30
#define SO_BROADCAST 6 #define SO_BROADCAST 6
@ -30,9 +32,19 @@
#define SO_OOBINLINE 10 #define SO_OOBINLINE 10
#define SO_RCVBUF 8 #define SO_RCVBUF 8
#define SO_RCVLOWAT 18 #define SO_RCVLOWAT 18
#define SO_RCVTIMEO 20 #if (__TIMESIZE == 64 && __WORDSIZE == 32 \
&& (!defined __SYSCALL_WORDSIZE || __SYSCALL_WORDSIZE == 32))
# define SO_RCVTIMEO 66
#else
# define SO_RCVTIMEO 20
#endif
#define SO_REUSEADDR 2 #define SO_REUSEADDR 2
#define SO_SNDBUF 7 #define SO_SNDBUF 7
#define SO_SNDLOWAT 19 #define SO_SNDLOWAT 19
#define SO_SNDTIMEO 21 #if (__TIMESIZE == 64 && __WORDSIZE == 32 \
&& (!defined __SYSCALL_WORDSIZE || __SYSCALL_WORDSIZE == 32))
# define SO_SNDTIMEO 67
#else
# define SO_SNDTIMEO 21
#endif
#define SO_TYPE 3 #define SO_TYPE 3

View File

@ -48,6 +48,7 @@
# define STATX_ATTR_NODUMP 0x0040 # define STATX_ATTR_NODUMP 0x0040
# define STATX_ATTR_ENCRYPTED 0x0800 # define STATX_ATTR_ENCRYPTED 0x0800
# define STATX_ATTR_AUTOMOUNT 0x1000 # define STATX_ATTR_AUTOMOUNT 0x1000
# define STATX_ATTR_VERITY 0x100000
#endif /* !STATX_TYPE */ #endif /* !STATX_TYPE */
__BEGIN_DECLS __BEGIN_DECLS

View File

@ -27,9 +27,17 @@ __LDBL_REDIR_DECL (vfprintf)
__LDBL_REDIR_DECL (vprintf) __LDBL_REDIR_DECL (vprintf)
__LDBL_REDIR_DECL (vsprintf) __LDBL_REDIR_DECL (vsprintf)
#if !__GLIBC_USE (DEPRECATED_SCANF) #if !__GLIBC_USE (DEPRECATED_SCANF)
# if defined __LDBL_COMPAT
__LDBL_REDIR1_DECL (fscanf, __nldbl___isoc99_fscanf) __LDBL_REDIR1_DECL (fscanf, __nldbl___isoc99_fscanf)
__LDBL_REDIR1_DECL (scanf, __nldbl___isoc99_scanf) __LDBL_REDIR1_DECL (scanf, __nldbl___isoc99_scanf)
__LDBL_REDIR1_DECL (sscanf, __nldbl___isoc99_sscanf) __LDBL_REDIR1_DECL (sscanf, __nldbl___isoc99_sscanf)
# elif __LDOUBLE_REDIRECTS_TO_FLOAT128_ABI == 1
__LDBL_REDIR1_DECL (fscanf, __isoc99_fscanfieee128)
__LDBL_REDIR1_DECL (scanf, __isoc99_scanfieee128)
__LDBL_REDIR1_DECL (sscanf, __isoc99_sscanfieee128)
# else
# error bits/stdlib-ldbl.h included when no ldbl redirections are required.
# endif
#else #else
__LDBL_REDIR_DECL (fscanf) __LDBL_REDIR_DECL (fscanf)
__LDBL_REDIR_DECL (scanf) __LDBL_REDIR_DECL (scanf)
@ -43,9 +51,17 @@ __LDBL_REDIR_DECL (vsnprintf)
#ifdef __USE_ISOC99 #ifdef __USE_ISOC99
# if !__GLIBC_USE (DEPRECATED_SCANF) # if !__GLIBC_USE (DEPRECATED_SCANF)
# if defined __LDBL_COMPAT
__LDBL_REDIR1_DECL (vfscanf, __nldbl___isoc99_vfscanf) __LDBL_REDIR1_DECL (vfscanf, __nldbl___isoc99_vfscanf)
__LDBL_REDIR1_DECL (vscanf, __nldbl___isoc99_vscanf) __LDBL_REDIR1_DECL (vscanf, __nldbl___isoc99_vscanf)
__LDBL_REDIR1_DECL (vsscanf, __nldbl___isoc99_vsscanf) __LDBL_REDIR1_DECL (vsscanf, __nldbl___isoc99_vsscanf)
# elif __LDOUBLE_REDIRECTS_TO_FLOAT128_ABI == 1
__LDBL_REDIR1_DECL (vfscanf, __isoc99_vfscanfieee128)
__LDBL_REDIR1_DECL (vscanf, __isoc99_vscanfieee128)
__LDBL_REDIR1_DECL (vsscanf, __isoc99_vsscanfieee128)
# else
# error bits/stdlib-ldbl.h included when no ldbl redirections are required.
# endif
# else # else
__LDBL_REDIR_DECL (vfscanf) __LDBL_REDIR_DECL (vfscanf)
__LDBL_REDIR_DECL (vsscanf) __LDBL_REDIR_DECL (vsscanf)
@ -60,33 +76,33 @@ __LDBL_REDIR_DECL (dprintf)
#ifdef __USE_GNU #ifdef __USE_GNU
__LDBL_REDIR_DECL (vasprintf) __LDBL_REDIR_DECL (vasprintf)
__LDBL_REDIR_DECL (__asprintf) __LDBL_REDIR2_DECL (asprintf)
__LDBL_REDIR_DECL (asprintf) __LDBL_REDIR_DECL (asprintf)
__LDBL_REDIR_DECL (obstack_printf) __LDBL_REDIR_DECL (obstack_printf)
__LDBL_REDIR_DECL (obstack_vprintf) __LDBL_REDIR_DECL (obstack_vprintf)
#endif #endif
#if __USE_FORTIFY_LEVEL > 0 && defined __fortify_function #if __USE_FORTIFY_LEVEL > 0 && defined __fortify_function
__LDBL_REDIR_DECL (__sprintf_chk) __LDBL_REDIR2_DECL (sprintf_chk)
__LDBL_REDIR_DECL (__vsprintf_chk) __LDBL_REDIR2_DECL (vsprintf_chk)
# if defined __USE_ISOC99 || defined __USE_UNIX98 # if defined __USE_ISOC99 || defined __USE_UNIX98
__LDBL_REDIR_DECL (__snprintf_chk) __LDBL_REDIR2_DECL (snprintf_chk)
__LDBL_REDIR_DECL (__vsnprintf_chk) __LDBL_REDIR2_DECL (vsnprintf_chk)
# endif # endif
# if __USE_FORTIFY_LEVEL > 1 # if __USE_FORTIFY_LEVEL > 1
__LDBL_REDIR_DECL (__fprintf_chk) __LDBL_REDIR2_DECL (fprintf_chk)
__LDBL_REDIR_DECL (__printf_chk) __LDBL_REDIR2_DECL (printf_chk)
__LDBL_REDIR_DECL (__vfprintf_chk) __LDBL_REDIR2_DECL (vfprintf_chk)
__LDBL_REDIR_DECL (__vprintf_chk) __LDBL_REDIR2_DECL (vprintf_chk)
# ifdef __USE_XOPEN2K8 # ifdef __USE_XOPEN2K8
__LDBL_REDIR_DECL (__dprintf_chk) __LDBL_REDIR2_DECL (dprintf_chk)
__LDBL_REDIR_DECL (__vdprintf_chk) __LDBL_REDIR2_DECL (vdprintf_chk)
# endif # endif
# ifdef __USE_GNU # ifdef __USE_GNU
__LDBL_REDIR_DECL (__asprintf_chk) __LDBL_REDIR2_DECL (asprintf_chk)
__LDBL_REDIR_DECL (__vasprintf_chk) __LDBL_REDIR2_DECL (vasprintf_chk)
__LDBL_REDIR_DECL (__obstack_printf_chk) __LDBL_REDIR2_DECL (obstack_printf_chk)
__LDBL_REDIR_DECL (__obstack_vprintf_chk) __LDBL_REDIR2_DECL (obstack_vprintf_chk)
# endif # endif
# endif # endif
#endif #endif

View File

@ -24,10 +24,12 @@
#endif #endif
extern int __sprintf_chk (char *__restrict __s, int __flag, size_t __slen, extern int __sprintf_chk (char *__restrict __s, int __flag, size_t __slen,
const char *__restrict __format, ...) __THROW; const char *__restrict __format, ...) __THROW
__attr_access ((__write_only__, 1, 3));
extern int __vsprintf_chk (char *__restrict __s, int __flag, size_t __slen, extern int __vsprintf_chk (char *__restrict __s, int __flag, size_t __slen,
const char *__restrict __format, const char *__restrict __format,
__gnuc_va_list __ap) __THROW; __gnuc_va_list __ap) __THROW
__attr_access ((__write_only__, 1, 3));
#ifdef __va_arg_pack #ifdef __va_arg_pack
__fortify_function int __fortify_function int
@ -54,7 +56,8 @@ __NTH (vsprintf (char *__restrict __s, const char *__restrict __fmt,
extern int __snprintf_chk (char *__restrict __s, size_t __n, int __flag, extern int __snprintf_chk (char *__restrict __s, size_t __n, int __flag,
size_t __slen, const char *__restrict __format, size_t __slen, const char *__restrict __format,
...) __THROW; ...) __THROW
__attr_access ((__write_only__, 1, 2));
extern int __vsnprintf_chk (char *__restrict __s, size_t __n, int __flag, extern int __vsnprintf_chk (char *__restrict __s, size_t __n, int __flag,
size_t __slen, const char *__restrict __format, size_t __slen, const char *__restrict __format,
__gnuc_va_list __ap) __THROW; __gnuc_va_list __ap) __THROW;
@ -241,17 +244,19 @@ gets (char *__str)
#endif #endif
extern char *__fgets_chk (char *__restrict __s, size_t __size, int __n, extern char *__fgets_chk (char *__restrict __s, size_t __size, int __n,
FILE *__restrict __stream) __wur; FILE *__restrict __stream)
__wur __attr_access ((__write_only__, 1, 3));
extern char *__REDIRECT (__fgets_alias, extern char *__REDIRECT (__fgets_alias,
(char *__restrict __s, int __n, (char *__restrict __s, int __n,
FILE *__restrict __stream), fgets) __wur; FILE *__restrict __stream), fgets)
__wur __attr_access ((__write_only__, 1, 2));
extern char *__REDIRECT (__fgets_chk_warn, extern char *__REDIRECT (__fgets_chk_warn,
(char *__restrict __s, size_t __size, int __n, (char *__restrict __s, size_t __size, int __n,
FILE *__restrict __stream), __fgets_chk) FILE *__restrict __stream), __fgets_chk)
__wur __warnattr ("fgets called with bigger size than length " __wur __warnattr ("fgets called with bigger size than length "
"of destination buffer"); "of destination buffer");
__fortify_function __wur char * __fortify_function __wur __attr_access ((__write_only__, 1, 2)) char *
fgets (char *__restrict __s, int __n, FILE *__restrict __stream) fgets (char *__restrict __s, int __n, FILE *__restrict __stream)
{ {
if (__bos (__s) != (size_t) -1) if (__bos (__s) != (size_t) -1)
@ -299,17 +304,19 @@ fread (void *__restrict __ptr, size_t __size, size_t __n,
#ifdef __USE_GNU #ifdef __USE_GNU
extern char *__fgets_unlocked_chk (char *__restrict __s, size_t __size, extern char *__fgets_unlocked_chk (char *__restrict __s, size_t __size,
int __n, FILE *__restrict __stream) __wur; int __n, FILE *__restrict __stream)
__wur __attr_access ((__write_only__, 1, 3));
extern char *__REDIRECT (__fgets_unlocked_alias, extern char *__REDIRECT (__fgets_unlocked_alias,
(char *__restrict __s, int __n, (char *__restrict __s, int __n,
FILE *__restrict __stream), fgets_unlocked) __wur; FILE *__restrict __stream), fgets_unlocked)
__wur __attr_access ((__write_only__, 1, 2));
extern char *__REDIRECT (__fgets_unlocked_chk_warn, extern char *__REDIRECT (__fgets_unlocked_chk_warn,
(char *__restrict __s, size_t __size, int __n, (char *__restrict __s, size_t __size, int __n,
FILE *__restrict __stream), __fgets_unlocked_chk) FILE *__restrict __stream), __fgets_unlocked_chk)
__wur __warnattr ("fgets_unlocked called with bigger size than length " __wur __warnattr ("fgets_unlocked called with bigger size than length "
"of destination buffer"); "of destination buffer");
__fortify_function __wur char * __fortify_function __wur __attr_access ((__write_only__, 1, 2)) char *
fgets_unlocked (char *__restrict __s, int __n, FILE *__restrict __stream) fgets_unlocked (char *__restrict __s, int __n, FILE *__restrict __stream)
{ {
if (__bos (__s) != (size_t) -1) if (__bos (__s) != (size_t) -1)

View File

@ -21,21 +21,43 @@
#endif #endif
#ifdef __USE_ISOC99 #ifdef __USE_ISOC99
# ifdef __LDBL_COMPAT
__LDBL_REDIR1_DECL (strtold, strtod) __LDBL_REDIR1_DECL (strtold, strtod)
# else
__LDBL_REDIR1_DECL (strtold, __strtoieee128)
# endif
#endif #endif
#ifdef __USE_GNU #ifdef __USE_GNU
# ifdef __LDBL_COMPAT
__LDBL_REDIR1_DECL (strtold_l, strtod_l) __LDBL_REDIR1_DECL (strtold_l, strtod_l)
# else
__LDBL_REDIR1_DECL (strtold_l, __strtoieee128_l)
# endif
#endif #endif
#if __GLIBC_USE (IEC_60559_BFP_EXT_C2X) #if __GLIBC_USE (IEC_60559_BFP_EXT_C2X)
# ifdef __LDBL_COMPAT
__LDBL_REDIR1_DECL (strfroml, strfromd) __LDBL_REDIR1_DECL (strfroml, strfromd)
# else
__LDBL_REDIR1_DECL (strfroml, __strfromieee128)
# endif
#endif #endif
#ifdef __USE_MISC #ifdef __USE_MISC
# if defined __LDBL_COMPAT
__LDBL_REDIR1_DECL (qecvt, ecvt) __LDBL_REDIR1_DECL (qecvt, ecvt)
__LDBL_REDIR1_DECL (qfcvt, fcvt) __LDBL_REDIR1_DECL (qfcvt, fcvt)
__LDBL_REDIR1_DECL (qgcvt, gcvt) __LDBL_REDIR1_DECL (qgcvt, gcvt)
__LDBL_REDIR1_DECL (qecvt_r, ecvt_r) __LDBL_REDIR1_DECL (qecvt_r, ecvt_r)
__LDBL_REDIR1_DECL (qfcvt_r, fcvt_r) __LDBL_REDIR1_DECL (qfcvt_r, fcvt_r)
# elif __LDOUBLE_REDIRECTS_TO_FLOAT128_ABI == 1
__LDBL_REDIR1_DECL (qecvt, __qecvtieee128)
__LDBL_REDIR1_DECL (qfcvt, __qfcvtieee128)
__LDBL_REDIR1_DECL (qgcvt, __qgcvtieee128)
__LDBL_REDIR1_DECL (qecvt_r, __qecvtieee128_r)
__LDBL_REDIR1_DECL (qfcvt_r, __qfcvtieee128_r)
# else
# error bits/stdlib-ldbl.h included when no ldbl redirections are required.
# endif
#endif #endif

View File

@ -50,10 +50,11 @@ __NTH (realpath (const char *__restrict __name, char *__restrict __resolved))
extern int __ptsname_r_chk (int __fd, char *__buf, size_t __buflen, extern int __ptsname_r_chk (int __fd, char *__buf, size_t __buflen,
size_t __nreal) __THROW __nonnull ((2)); size_t __nreal) __THROW __nonnull ((2))
__attr_access ((__write_only__, 2, 3));
extern int __REDIRECT_NTH (__ptsname_r_alias, (int __fd, char *__buf, extern int __REDIRECT_NTH (__ptsname_r_alias, (int __fd, char *__buf,
size_t __buflen), ptsname_r) size_t __buflen), ptsname_r)
__nonnull ((2)); __nonnull ((2)) __attr_access ((__write_only__, 2, 3));
extern int __REDIRECT_NTH (__ptsname_r_chk_warn, extern int __REDIRECT_NTH (__ptsname_r_chk_warn,
(int __fd, char *__buf, size_t __buflen, (int __fd, char *__buf, size_t __buflen,
size_t __nreal), __ptsname_r_chk) size_t __nreal), __ptsname_r_chk)
@ -97,11 +98,13 @@ __NTH (wctomb (char *__s, wchar_t __wchar))
extern size_t __mbstowcs_chk (wchar_t *__restrict __dst, extern size_t __mbstowcs_chk (wchar_t *__restrict __dst,
const char *__restrict __src, const char *__restrict __src,
size_t __len, size_t __dstlen) __THROW; size_t __len, size_t __dstlen) __THROW
__attr_access ((__write_only__, 1, 3)) __attr_access ((__read_only__, 2));
extern size_t __REDIRECT_NTH (__mbstowcs_alias, extern size_t __REDIRECT_NTH (__mbstowcs_alias,
(wchar_t *__restrict __dst, (wchar_t *__restrict __dst,
const char *__restrict __src, const char *__restrict __src,
size_t __len), mbstowcs); size_t __len), mbstowcs)
__attr_access ((__write_only__, 1, 3)) __attr_access ((__read_only__, 2));
extern size_t __REDIRECT_NTH (__mbstowcs_chk_warn, extern size_t __REDIRECT_NTH (__mbstowcs_chk_warn,
(wchar_t *__restrict __dst, (wchar_t *__restrict __dst,
const char *__restrict __src, const char *__restrict __src,
@ -129,11 +132,13 @@ __NTH (mbstowcs (wchar_t *__restrict __dst, const char *__restrict __src,
extern size_t __wcstombs_chk (char *__restrict __dst, extern size_t __wcstombs_chk (char *__restrict __dst,
const wchar_t *__restrict __src, const wchar_t *__restrict __src,
size_t __len, size_t __dstlen) __THROW; size_t __len, size_t __dstlen) __THROW
__attr_access ((__write_only__, 1, 3)) __attr_access ((__read_only__, 2));
extern size_t __REDIRECT_NTH (__wcstombs_alias, extern size_t __REDIRECT_NTH (__wcstombs_alias,
(char *__restrict __dst, (char *__restrict __dst,
const wchar_t *__restrict __src, const wchar_t *__restrict __src,
size_t __len), wcstombs); size_t __len), wcstombs)
__attr_access ((__write_only__, 1, 3)) __attr_access ((__read_only__, 2));
extern size_t __REDIRECT_NTH (__wcstombs_chk_warn, extern size_t __REDIRECT_NTH (__wcstombs_chk_warn,
(char *__restrict __dst, (char *__restrict __dst,
const wchar_t *__restrict __src, const wchar_t *__restrict __src,

View File

@ -75,7 +75,7 @@ __NTH (memset (void *__dest, int __ch, size_t __len))
# include <bits/strings_fortified.h> # include <bits/strings_fortified.h>
void __explicit_bzero_chk (void *__dest, size_t __len, size_t __destlen) void __explicit_bzero_chk (void *__dest, size_t __len, size_t __destlen)
__THROW __nonnull ((1)); __THROW __nonnull ((1)) __attr_access ((__write_only__, 1, 2));
__fortify_function void __fortify_function void
__NTH (explicit_bzero (void *__dest, size_t __len)) __NTH (explicit_bzero (void *__dest, size_t __len))
@ -108,7 +108,8 @@ __NTH (strncpy (char *__restrict __dest, const char *__restrict __src,
/* XXX We have no corresponding builtin yet. */ /* XXX We have no corresponding builtin yet. */
extern char *__stpncpy_chk (char *__dest, const char *__src, size_t __n, extern char *__stpncpy_chk (char *__dest, const char *__src, size_t __n,
size_t __destlen) __THROW; size_t __destlen) __THROW
__attr_access ((__write_only__, 1, 3)) __attr_access ((__read_only__, 2));
extern char *__REDIRECT_NTH (__stpncpy_alias, (char *__dest, const char *__src, extern char *__REDIRECT_NTH (__stpncpy_alias, (char *__dest, const char *__src,
size_t __n), stpncpy); size_t __n), stpncpy);

View File

@ -1,32 +0,0 @@
/* Declare sys_errlist and sys_nerr, or don't. Compatibility (do) version.
Copyright (C) 2002-2020 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
<https://www.gnu.org/licenses/>. */
#ifndef _STDIO_H
# error "Never include <bits/sys_errlist.h> directly; use <stdio.h> instead."
#endif
/* sys_errlist and sys_nerr are deprecated. Use strerror instead. */
#ifdef __USE_MISC
extern int sys_nerr;
extern const char *const sys_errlist[];
#endif
#ifdef __USE_GNU
extern int _sys_nerr;
extern const char *const _sys_errlist[];
#endif

View File

@ -1,11 +1,11 @@
/* Generated at libc build time from syscall list. */ /* Generated at libc build time from syscall list. */
/* The system call list corresponds to kernel 5.4. */ /* The system call list corresponds to kernel 5.7. */
#ifndef _SYSCALL_H #ifndef _SYSCALL_H
# error "Never use <bits/syscall.h> directly; include <sys/syscall.h> instead." # error "Never use <bits/syscall.h> directly; include <sys/syscall.h> instead."
#endif #endif
#define __GLIBC_LINUX_VERSION_CODE 328704 #define __GLIBC_LINUX_VERSION_CODE 329472
#ifdef __NR_FAST_atomic_update #ifdef __NR_FAST_atomic_update
# define SYS_FAST_atomic_update __NR_FAST_atomic_update # define SYS_FAST_atomic_update __NR_FAST_atomic_update
@ -75,6 +75,18 @@
# define SYS_alloc_hugepages __NR_alloc_hugepages # define SYS_alloc_hugepages __NR_alloc_hugepages
#endif #endif
#ifdef __NR_arc_gettls
# define SYS_arc_gettls __NR_arc_gettls
#endif
#ifdef __NR_arc_settls
# define SYS_arc_settls __NR_arc_settls
#endif
#ifdef __NR_arc_usr_cmpxchg
# define SYS_arc_usr_cmpxchg __NR_arc_usr_cmpxchg
#endif
#ifdef __NR_arch_prctl #ifdef __NR_arch_prctl
# define SYS_arch_prctl __NR_arch_prctl # define SYS_arch_prctl __NR_arch_prctl
#endif #endif
@ -1079,6 +1091,10 @@
# define SYS_openat __NR_openat # define SYS_openat __NR_openat
#endif #endif
#ifdef __NR_openat2
# define SYS_openat2 __NR_openat2
#endif
#ifdef __NR_osf_adjtime #ifdef __NR_osf_adjtime
# define SYS_osf_adjtime __NR_osf_adjtime # define SYS_osf_adjtime __NR_osf_adjtime
#endif #endif
@ -1551,6 +1567,10 @@
# define SYS_personality __NR_personality # define SYS_personality __NR_personality
#endif #endif
#ifdef __NR_pidfd_getfd
# define SYS_pidfd_getfd __NR_pidfd_getfd
#endif
#ifdef __NR_pidfd_open #ifdef __NR_pidfd_open
# define SYS_pidfd_open __NR_pidfd_open # define SYS_pidfd_open __NR_pidfd_open
#endif #endif

View File

@ -1 +0,0 @@
/* Empty file. */

View File

@ -27,9 +27,9 @@ __LDBL_REDIR_DECL (vsyslog)
#endif #endif
#if __USE_FORTIFY_LEVEL > 0 && defined __fortify_function #if __USE_FORTIFY_LEVEL > 0 && defined __fortify_function
__LDBL_REDIR_DECL (__syslog_chk) __LDBL_REDIR2_DECL (syslog_chk)
# ifdef __USE_MISC # ifdef __USE_MISC
__LDBL_REDIR_DECL (__vsyslog_chk) __LDBL_REDIR2_DECL (vsyslog_chk)
# endif # endif
#endif #endif

View File

@ -116,4 +116,14 @@ struct __pthread_cond_s
unsigned int __g_signals[2]; unsigned int __g_signals[2];
}; };
typedef unsigned int __tss_t;
typedef unsigned long int __thrd_t;
typedef struct
{
int __data __ONCE_ALIGNMENT;
} __once_flag;
#define __ONCE_FLAG_INIT { 0 }
#endif /* _THREAD_SHARED_TYPES_H */ #endif /* _THREAD_SHARED_TYPES_H */

View File

@ -160,6 +160,7 @@ __STD_TYPE __ID_T_TYPE __id_t; /* General type for IDs. */
__STD_TYPE __TIME_T_TYPE __time_t; /* Seconds since the Epoch. */ __STD_TYPE __TIME_T_TYPE __time_t; /* Seconds since the Epoch. */
__STD_TYPE __USECONDS_T_TYPE __useconds_t; /* Count of microseconds. */ __STD_TYPE __USECONDS_T_TYPE __useconds_t; /* Count of microseconds. */
__STD_TYPE __SUSECONDS_T_TYPE __suseconds_t; /* Signed count of microseconds. */ __STD_TYPE __SUSECONDS_T_TYPE __suseconds_t; /* Signed count of microseconds. */
__STD_TYPE __SUSECONDS64_T_TYPE __suseconds64_t;
__STD_TYPE __DADDR_T_TYPE __daddr_t; /* The type of a disk address. */ __STD_TYPE __DADDR_T_TYPE __daddr_t; /* The type of a disk address. */
__STD_TYPE __KEY_T_TYPE __key_t; /* Type of an IPC key. */ __STD_TYPE __KEY_T_TYPE __key_t; /* Type of an IPC key. */

View File

@ -0,0 +1,47 @@
/* Generic implementation of the SysV message struct msqid_ds.
Copyright (C) 2020 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
<https://www.gnu.org/licenses/>. */
#ifndef _SYS_MSG_H
# error "Never use <bits/msq.h> directly; include <sys/msg.h> instead."
#endif
/* Structure of record for one message inside the kernel.
The type `struct msg' is opaque. */
struct msqid_ds
{
struct ipc_perm msg_perm; /* structure describing operation permission */
#if __TIMESIZE == 32
__time_t msg_stime; /* time of last msgsnd command */
unsigned long int __msg_stime_high;
__time_t msg_rtime; /* time of last msgsnd command */
unsigned long int __msg_rtime_high;
__time_t msg_ctime; /* time of last change */
unsigned long int __msg_ctime_high;
#else
__time_t msg_stime; /* time of last msgsnd command */
__time_t msg_rtime; /* time of last msgsnd command */
__time_t msg_ctime; /* time of last change */
#endif
__syscall_ulong_t __msg_cbytes; /* current number of bytes on queue */
msgqnum_t msg_qnum; /* number of messages currently on queue */
msglen_t msg_qbytes; /* max number of bytes allowed on queue */
__pid_t msg_lspid; /* pid of last msgsnd() */
__pid_t msg_lrpid; /* pid of last msgrcv() */
__syscall_ulong_t __glibc_reserved4;
__syscall_ulong_t __glibc_reserved5;
};

View File

@ -0,0 +1,39 @@
/* Generic implementation of the semaphore struct semid_ds.
Copyright (C) 1995-2020 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
<https://www.gnu.org/licenses/>. */
#ifndef _SYS_SEM_H
# error "Never include <bits/types/struct_semid_ds.h> directly; use <sys/sem.h> instead."
#endif
/* Data structure describing a set of semaphores. */
struct semid_ds
{
struct ipc_perm sem_perm; /* operation permission struct */
#if __TIMESIZE == 32
__time_t sem_otime; /* last semop() time */
__syscall_ulong_t __sem_otime_high;
__time_t sem_ctime; /* last time changed by semctl() */
__syscall_ulong_t __sem_ctime_high;
#else
__time_t sem_otime;
__time_t sem_ctime;
#endif
__syscall_ulong_t sem_nsems; /* number of semaphores in set */
__syscall_ulong_t __glibc_reserved3;
__syscall_ulong_t __glibc_reserved4;
};

View File

@ -0,0 +1,45 @@
/* Generic implementation of the shared memory struct shmid_ds.
Copyright (C) 2020 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
<https://www.gnu.org/licenses/>. */
#ifndef _SYS_SHM_H
# error "Never include <bits/types/struct_shmid_ds.h> directly; use <sys/shm.h> instead."
#endif
/* Data structure describing a shared memory segment. */
struct shmid_ds
{
struct ipc_perm shm_perm; /* operation permission struct */
size_t shm_segsz; /* size of segment in bytes */
#if __TIMESIZE == 32
__time_t shm_atime; /* time of last shmat() */
unsigned long int __shm_atime_high;
__time_t shm_dtime; /* time of last shmdt() */
unsigned long int __shm_dtime_high;
__time_t shm_ctime; /* time of last change by shmctl() */
unsigned long int __shm_ctime_high;
#else
__time_t shm_atime; /* time of last shmat() */
__time_t shm_dtime; /* time of last shmdt() */
__time_t shm_ctime; /* time of last change by shmctl() */
#endif
__pid_t shm_cpid; /* pid of creator */
__pid_t shm_lpid; /* pid of last shmop */
shmatt_t shm_nattch; /* number of current attaches */
__syscall_ulong_t __glibc_reserved5;
__syscall_ulong_t __glibc_reserved6;
};

View File

@ -50,6 +50,7 @@
#define __TIME_T_TYPE __SLONGWORD_TYPE #define __TIME_T_TYPE __SLONGWORD_TYPE
#define __USECONDS_T_TYPE __U32_TYPE #define __USECONDS_T_TYPE __U32_TYPE
#define __SUSECONDS_T_TYPE __SLONGWORD_TYPE #define __SUSECONDS_T_TYPE __SLONGWORD_TYPE
#define __SUSECONDS64_T_TYPE __SQUAD_TYPE
#define __DADDR_T_TYPE __S32_TYPE #define __DADDR_T_TYPE __S32_TYPE
#define __KEY_T_TYPE __S32_TYPE #define __KEY_T_TYPE __S32_TYPE
#define __CLOCKID_T_TYPE __S32_TYPE #define __CLOCKID_T_TYPE __S32_TYPE
@ -75,10 +76,16 @@
/* And for fsblkcnt_t, fsblkcnt64_t, fsfilcnt_t and fsfilcnt64_t. */ /* And for fsblkcnt_t, fsblkcnt64_t, fsfilcnt_t and fsfilcnt64_t. */
# define __STATFS_MATCHES_STATFS64 1 # define __STATFS_MATCHES_STATFS64 1
/* And for getitimer, setitimer and rusage */
# define __KERNEL_OLD_TIMEVAL_MATCHES_TIMEVAL64 1
#else #else
# define __RLIM_T_MATCHES_RLIM64_T 0 # define __RLIM_T_MATCHES_RLIM64_T 0
# define __STATFS_MATCHES_STATFS64 0 # define __STATFS_MATCHES_STATFS64 0
/* And for getitimer, setitimer and rusage */
# define __KERNEL_OLD_TIMEVAL_MATCHES_TIMEVAL64 0
#endif #endif
/* Number of descriptors that can fit in an `fd_set'. */ /* Number of descriptors that can fit in an `fd_set'. */

View File

@ -21,9 +21,11 @@
#endif #endif
extern ssize_t __read_chk (int __fd, void *__buf, size_t __nbytes, extern ssize_t __read_chk (int __fd, void *__buf, size_t __nbytes,
size_t __buflen) __wur; size_t __buflen)
__wur __attr_access ((__write_only__, 2, 3));
extern ssize_t __REDIRECT (__read_alias, (int __fd, void *__buf, extern ssize_t __REDIRECT (__read_alias, (int __fd, void *__buf,
size_t __nbytes), read) __wur; size_t __nbytes), read)
__wur __attr_access ((__write_only__, 2, 3));
extern ssize_t __REDIRECT (__read_chk_warn, extern ssize_t __REDIRECT (__read_chk_warn,
(int __fd, void *__buf, size_t __nbytes, (int __fd, void *__buf, size_t __nbytes,
size_t __buflen), __read_chk) size_t __buflen), __read_chk)
@ -46,15 +48,19 @@ read (int __fd, void *__buf, size_t __nbytes)
#ifdef __USE_UNIX98 #ifdef __USE_UNIX98
extern ssize_t __pread_chk (int __fd, void *__buf, size_t __nbytes, extern ssize_t __pread_chk (int __fd, void *__buf, size_t __nbytes,
__off_t __offset, size_t __bufsize) __wur; __off_t __offset, size_t __bufsize)
__wur __attr_access ((__write_only__, 2, 3));
extern ssize_t __pread64_chk (int __fd, void *__buf, size_t __nbytes, extern ssize_t __pread64_chk (int __fd, void *__buf, size_t __nbytes,
__off64_t __offset, size_t __bufsize) __wur; __off64_t __offset, size_t __bufsize)
__wur __attr_access ((__write_only__, 2, 3));
extern ssize_t __REDIRECT (__pread_alias, extern ssize_t __REDIRECT (__pread_alias,
(int __fd, void *__buf, size_t __nbytes, (int __fd, void *__buf, size_t __nbytes,
__off_t __offset), pread) __wur; __off_t __offset), pread)
__wur __attr_access ((__write_only__, 2, 3));
extern ssize_t __REDIRECT (__pread64_alias, extern ssize_t __REDIRECT (__pread64_alias,
(int __fd, void *__buf, size_t __nbytes, (int __fd, void *__buf, size_t __nbytes,
__off64_t __offset), pread64) __wur; __off64_t __offset), pread64)
__wur __attr_access ((__write_only__, 2, 3));
extern ssize_t __REDIRECT (__pread_chk_warn, extern ssize_t __REDIRECT (__pread_chk_warn,
(int __fd, void *__buf, size_t __nbytes, (int __fd, void *__buf, size_t __nbytes,
__off_t __offset, size_t __bufsize), __pread_chk) __off_t __offset, size_t __bufsize), __pread_chk)
@ -123,11 +129,11 @@ pread64 (int __fd, void *__buf, size_t __nbytes, __off64_t __offset)
extern ssize_t __readlink_chk (const char *__restrict __path, extern ssize_t __readlink_chk (const char *__restrict __path,
char *__restrict __buf, size_t __len, char *__restrict __buf, size_t __len,
size_t __buflen) size_t __buflen)
__THROW __nonnull ((1, 2)) __wur; __THROW __nonnull ((1, 2)) __wur __attr_access ((__write_only__, 2, 3));
extern ssize_t __REDIRECT_NTH (__readlink_alias, extern ssize_t __REDIRECT_NTH (__readlink_alias,
(const char *__restrict __path, (const char *__restrict __path,
char *__restrict __buf, size_t __len), readlink) char *__restrict __buf, size_t __len), readlink)
__nonnull ((1, 2)) __wur; __nonnull ((1, 2)) __wur __attr_access ((__write_only__, 2, 3));
extern ssize_t __REDIRECT_NTH (__readlink_chk_warn, extern ssize_t __REDIRECT_NTH (__readlink_chk_warn,
(const char *__restrict __path, (const char *__restrict __path,
char *__restrict __buf, size_t __len, char *__restrict __buf, size_t __len,
@ -155,12 +161,12 @@ __NTH (readlink (const char *__restrict __path, char *__restrict __buf,
extern ssize_t __readlinkat_chk (int __fd, const char *__restrict __path, extern ssize_t __readlinkat_chk (int __fd, const char *__restrict __path,
char *__restrict __buf, size_t __len, char *__restrict __buf, size_t __len,
size_t __buflen) size_t __buflen)
__THROW __nonnull ((2, 3)) __wur; __THROW __nonnull ((2, 3)) __wur __attr_access ((__write_only__, 3, 4));
extern ssize_t __REDIRECT_NTH (__readlinkat_alias, extern ssize_t __REDIRECT_NTH (__readlinkat_alias,
(int __fd, const char *__restrict __path, (int __fd, const char *__restrict __path,
char *__restrict __buf, size_t __len), char *__restrict __buf, size_t __len),
readlinkat) readlinkat)
__nonnull ((2, 3)) __wur; __nonnull ((2, 3)) __wur __attr_access ((__write_only__, 3, 4));
extern ssize_t __REDIRECT_NTH (__readlinkat_chk_warn, extern ssize_t __REDIRECT_NTH (__readlinkat_chk_warn,
(int __fd, const char *__restrict __path, (int __fd, const char *__restrict __path,
char *__restrict __buf, size_t __len, char *__restrict __buf, size_t __len,
@ -187,9 +193,10 @@ __NTH (readlinkat (int __fd, const char *__restrict __path,
#endif #endif
extern char *__getcwd_chk (char *__buf, size_t __size, size_t __buflen) extern char *__getcwd_chk (char *__buf, size_t __size, size_t __buflen)
__THROW __wur; __THROW __wur __attr_access ((__write_only__, 1, 2));
extern char *__REDIRECT_NTH (__getcwd_alias, extern char *__REDIRECT_NTH (__getcwd_alias,
(char *__buf, size_t __size), getcwd) __wur; (char *__buf, size_t __size), getcwd)
__wur __attr_access ((__write_only__, 1, 2));
extern char *__REDIRECT_NTH (__getcwd_chk_warn, extern char *__REDIRECT_NTH (__getcwd_chk_warn,
(char *__buf, size_t __size, size_t __buflen), (char *__buf, size_t __size, size_t __buflen),
__getcwd_chk) __getcwd_chk)
@ -212,7 +219,7 @@ __NTH (getcwd (char *__buf, size_t __size))
#if defined __USE_MISC || defined __USE_XOPEN_EXTENDED #if defined __USE_MISC || defined __USE_XOPEN_EXTENDED
extern char *__getwd_chk (char *__buf, size_t buflen) extern char *__getwd_chk (char *__buf, size_t buflen)
__THROW __nonnull ((1)) __wur; __THROW __nonnull ((1)) __wur __attr_access ((__write_only__, 1, 2));
extern char *__REDIRECT_NTH (__getwd_warn, (char *__buf), getwd) extern char *__REDIRECT_NTH (__getwd_warn, (char *__buf), getwd)
__nonnull ((1)) __wur __warnattr ("please use getcwd instead, as getwd " __nonnull ((1)) __wur __warnattr ("please use getcwd instead, as getwd "
"doesn't specify buffer size"); "doesn't specify buffer size");
@ -227,9 +234,11 @@ __NTH (getwd (char *__buf))
#endif #endif
extern size_t __confstr_chk (int __name, char *__buf, size_t __len, extern size_t __confstr_chk (int __name, char *__buf, size_t __len,
size_t __buflen) __THROW; size_t __buflen) __THROW
__attr_access ((__write_only__, 2, 3));
extern size_t __REDIRECT_NTH (__confstr_alias, (int __name, char *__buf, extern size_t __REDIRECT_NTH (__confstr_alias, (int __name, char *__buf,
size_t __len), confstr); size_t __len), confstr)
__attr_access ((__write_only__, 2, 3));
extern size_t __REDIRECT_NTH (__confstr_chk_warn, extern size_t __REDIRECT_NTH (__confstr_chk_warn,
(int __name, char *__buf, size_t __len, (int __name, char *__buf, size_t __len,
size_t __buflen), __confstr_chk) size_t __buflen), __confstr_chk)
@ -252,9 +261,9 @@ __NTH (confstr (int __name, char *__buf, size_t __len))
extern int __getgroups_chk (int __size, __gid_t __list[], size_t __listlen) extern int __getgroups_chk (int __size, __gid_t __list[], size_t __listlen)
__THROW __wur; __THROW __wur __attr_access ((__write_only__, 2, 1));
extern int __REDIRECT_NTH (__getgroups_alias, (int __size, __gid_t __list[]), extern int __REDIRECT_NTH (__getgroups_alias, (int __size, __gid_t __list[]),
getgroups) __wur; getgroups) __wur __attr_access ((__write_only__, 2, 1));
extern int __REDIRECT_NTH (__getgroups_chk_warn, extern int __REDIRECT_NTH (__getgroups_chk_warn,
(int __size, __gid_t __list[], size_t __listlen), (int __size, __gid_t __list[], size_t __listlen),
__getgroups_chk) __getgroups_chk)
@ -277,7 +286,8 @@ __NTH (getgroups (int __size, __gid_t __list[]))
extern int __ttyname_r_chk (int __fd, char *__buf, size_t __buflen, extern int __ttyname_r_chk (int __fd, char *__buf, size_t __buflen,
size_t __nreal) __THROW __nonnull ((2)); size_t __nreal) __THROW __nonnull ((2))
__attr_access ((__write_only__, 2, 3));
extern int __REDIRECT_NTH (__ttyname_r_alias, (int __fd, char *__buf, extern int __REDIRECT_NTH (__ttyname_r_alias, (int __fd, char *__buf,
size_t __buflen), ttyname_r) size_t __buflen), ttyname_r)
__nonnull ((2)); __nonnull ((2));
@ -304,7 +314,7 @@ __NTH (ttyname_r (int __fd, char *__buf, size_t __buflen))
#ifdef __USE_POSIX199506 #ifdef __USE_POSIX199506
extern int __getlogin_r_chk (char *__buf, size_t __buflen, size_t __nreal) extern int __getlogin_r_chk (char *__buf, size_t __buflen, size_t __nreal)
__nonnull ((1)); __nonnull ((1)) __attr_access ((__write_only__, 1, 2));
extern int __REDIRECT (__getlogin_r_alias, (char *__buf, size_t __buflen), extern int __REDIRECT (__getlogin_r_alias, (char *__buf, size_t __buflen),
getlogin_r) __nonnull ((1)); getlogin_r) __nonnull ((1));
extern int __REDIRECT (__getlogin_r_chk_warn, extern int __REDIRECT (__getlogin_r_chk_warn,
@ -331,9 +341,10 @@ getlogin_r (char *__buf, size_t __buflen)
#if defined __USE_MISC || defined __USE_UNIX98 #if defined __USE_MISC || defined __USE_UNIX98
extern int __gethostname_chk (char *__buf, size_t __buflen, size_t __nreal) extern int __gethostname_chk (char *__buf, size_t __buflen, size_t __nreal)
__THROW __nonnull ((1)); __THROW __nonnull ((1)) __attr_access ((__write_only__, 1, 2));
extern int __REDIRECT_NTH (__gethostname_alias, (char *__buf, size_t __buflen), extern int __REDIRECT_NTH (__gethostname_alias, (char *__buf, size_t __buflen),
gethostname) __nonnull ((1)); gethostname)
__nonnull ((1)) __attr_access ((__write_only__, 1, 2));
extern int __REDIRECT_NTH (__gethostname_chk_warn, extern int __REDIRECT_NTH (__gethostname_chk_warn,
(char *__buf, size_t __buflen, size_t __nreal), (char *__buf, size_t __buflen, size_t __nreal),
__gethostname_chk) __gethostname_chk)
@ -358,10 +369,11 @@ __NTH (gethostname (char *__buf, size_t __buflen))
#if defined __USE_MISC || (defined __USE_XOPEN && !defined __USE_UNIX98) #if defined __USE_MISC || (defined __USE_XOPEN && !defined __USE_UNIX98)
extern int __getdomainname_chk (char *__buf, size_t __buflen, size_t __nreal) extern int __getdomainname_chk (char *__buf, size_t __buflen, size_t __nreal)
__THROW __nonnull ((1)) __wur; __THROW __nonnull ((1)) __wur __attr_access ((__write_only__, 1, 2));
extern int __REDIRECT_NTH (__getdomainname_alias, (char *__buf, extern int __REDIRECT_NTH (__getdomainname_alias, (char *__buf,
size_t __buflen), size_t __buflen),
getdomainname) __nonnull ((1)) __wur; getdomainname) __nonnull ((1))
__wur __attr_access ((__write_only__, 1, 2));
extern int __REDIRECT_NTH (__getdomainname_chk_warn, extern int __REDIRECT_NTH (__getdomainname_chk_warn,
(char *__buf, size_t __buflen, size_t __nreal), (char *__buf, size_t __buflen, size_t __nreal),
__getdomainname_chk) __getdomainname_chk)

View File

@ -28,9 +28,17 @@ __LDBL_REDIR_DECL (vfwprintf);
__LDBL_REDIR_DECL (vwprintf); __LDBL_REDIR_DECL (vwprintf);
__LDBL_REDIR_DECL (vswprintf); __LDBL_REDIR_DECL (vswprintf);
# if !__GLIBC_USE (DEPRECATED_SCANF) # if !__GLIBC_USE (DEPRECATED_SCANF)
# if defined __LDBL_COMPAT
__LDBL_REDIR1_DECL (fwscanf, __nldbl___isoc99_fwscanf) __LDBL_REDIR1_DECL (fwscanf, __nldbl___isoc99_fwscanf)
__LDBL_REDIR1_DECL (wscanf, __nldbl___isoc99_wscanf) __LDBL_REDIR1_DECL (wscanf, __nldbl___isoc99_wscanf)
__LDBL_REDIR1_DECL (swscanf, __nldbl___isoc99_swscanf) __LDBL_REDIR1_DECL (swscanf, __nldbl___isoc99_swscanf)
# elif __LDOUBLE_REDIRECTS_TO_FLOAT128_ABI == 1
__LDBL_REDIR1_DECL (fwscanf, __isoc99_fwscanfieee128)
__LDBL_REDIR1_DECL (wscanf, __isoc99_wscanfieee128)
__LDBL_REDIR1_DECL (swscanf, __isoc99_swscanfieee128)
# else
# error bits/stdlib-ldbl.h included when no ldbl redirections are required.
# endif
# else # else
__LDBL_REDIR_DECL (fwscanf); __LDBL_REDIR_DECL (fwscanf);
__LDBL_REDIR_DECL (wscanf); __LDBL_REDIR_DECL (wscanf);
@ -39,11 +47,23 @@ __LDBL_REDIR_DECL (swscanf);
#endif #endif
#ifdef __USE_ISOC99 #ifdef __USE_ISOC99
# ifdef __LDBL_COMPAT
__LDBL_REDIR1_DECL (wcstold, wcstod); __LDBL_REDIR1_DECL (wcstold, wcstod);
# else
__LDBL_REDIR1_DECL (wcstold, __wcstoieee128)
# endif
# if !__GLIBC_USE (DEPRECATED_SCANF) # if !__GLIBC_USE (DEPRECATED_SCANF)
# if defined __LDBL_COMPAT
__LDBL_REDIR1_DECL (vfwscanf, __nldbl___isoc99_vfwscanf) __LDBL_REDIR1_DECL (vfwscanf, __nldbl___isoc99_vfwscanf)
__LDBL_REDIR1_DECL (vwscanf, __nldbl___isoc99_vwscanf) __LDBL_REDIR1_DECL (vwscanf, __nldbl___isoc99_vwscanf)
__LDBL_REDIR1_DECL (vswscanf, __nldbl___isoc99_vswscanf) __LDBL_REDIR1_DECL (vswscanf, __nldbl___isoc99_vswscanf)
# elif __LDOUBLE_REDIRECTS_TO_FLOAT128_ABI == 1
__LDBL_REDIR1_DECL (vfwscanf, __isoc99_vfwscanfieee128)
__LDBL_REDIR1_DECL (vwscanf, __isoc99_vwscanfieee128)
__LDBL_REDIR1_DECL (vswscanf, __isoc99_vswscanfieee128)
# else
# error bits/stdlib-ldbl.h included when no ldbl redirections are required.
# endif
# else # else
__LDBL_REDIR_DECL (vfwscanf); __LDBL_REDIR_DECL (vfwscanf);
__LDBL_REDIR_DECL (vwscanf); __LDBL_REDIR_DECL (vwscanf);
@ -52,16 +72,20 @@ __LDBL_REDIR_DECL (vswscanf);
#endif #endif
#ifdef __USE_GNU #ifdef __USE_GNU
# ifdef __LDBL_COMPAT
__LDBL_REDIR1_DECL (wcstold_l, wcstod_l); __LDBL_REDIR1_DECL (wcstold_l, wcstod_l);
# else
__LDBL_REDIR1_DECL (wcstold_l, __wcstoieee128_l)
# endif
#endif #endif
#if __USE_FORTIFY_LEVEL > 0 && defined __fortify_function #if __USE_FORTIFY_LEVEL > 0 && defined __fortify_function
__LDBL_REDIR_DECL (__swprintf_chk) __LDBL_REDIR2_DECL (swprintf_chk)
__LDBL_REDIR_DECL (__vswprintf_chk) __LDBL_REDIR2_DECL (vswprintf_chk)
# if __USE_FORTIFY_LEVEL > 1 # if __USE_FORTIFY_LEVEL > 1
__LDBL_REDIR_DECL (__fwprintf_chk) __LDBL_REDIR2_DECL (fwprintf_chk)
__LDBL_REDIR_DECL (__wprintf_chk) __LDBL_REDIR2_DECL (wprintf_chk)
__LDBL_REDIR_DECL (__vfwprintf_chk) __LDBL_REDIR2_DECL (vfwprintf_chk)
__LDBL_REDIR_DECL (__vwprintf_chk) __LDBL_REDIR2_DECL (vwprintf_chk)
# endif # endif
#endif #endif

View File

@ -95,11 +95,15 @@ __BEGIN_DECLS
#define __MATHCALL(function, args) \ #define __MATHCALL(function, args) \
__MATHDECL (_Mdouble_complex_,function, args) __MATHDECL (_Mdouble_complex_,function, args)
#define __MATHDECL(type, function, args) \ #define __MATHDECL_IMPL(type, function, args) \
__MATHDECL_1(type, function, args); \ __MATHDECL_1(type, function, args); \
__MATHDECL_1(type, __CONCAT(__,function), args) __MATHDECL_1(type, __CONCAT(__,function), args)
#define __MATHDECL_1(type, function, args) \ #define __MATHDECL(type, function, args) \
__MATHDECL_IMPL(type, function, args)
#define __MATHDECL_1_IMPL(type, function, args) \
extern type __MATH_PRECNAME(function) args __THROW extern type __MATH_PRECNAME(function) args __THROW
#define __MATHDECL_1(type, function, args) \
__MATHDECL_1_IMPL(type, function, args)
#define _Mdouble_ double #define _Mdouble_ double
#define __MATH_PRECNAME(name) name #define __MATH_PRECNAME(name) name
@ -122,11 +126,31 @@ __BEGIN_DECLS
# undef __MATHDECL_1 # undef __MATHDECL_1
# define __MATHDECL_1(type, function, args) \ # define __MATHDECL_1(type, function, args) \
extern type __REDIRECT_NTH(__MATH_PRECNAME(function), args, function) extern type __REDIRECT_NTH(__MATH_PRECNAME(function), args, function)
# elif __LDOUBLE_REDIRECTS_TO_FLOAT128_ABI == 1
# undef __MATHDECL_1
# undef __MATHDECL
# define __REDIR_TO(function) \
__ ## function ## ieee128
# define __MATHDECL_1(type, function, alias, args) \
extern type __REDIRECT_NTH(__MATH_PRECNAME(function), args, alias)
#define __MATHDECL(type, function, args) \
__MATHDECL_1(type, function, __REDIR_TO(function), args); \
__MATHDECL_1(type, __CONCAT(__,function), __REDIR_TO(function), args)
# endif # endif
# define _Mdouble_ long double # define _Mdouble_ long double
# define __MATH_PRECNAME(name) name##l # define __MATH_PRECNAME(name) name##l
# include <bits/cmathcalls.h> # include <bits/cmathcalls.h>
# if defined __LDBL_COMPAT \
|| __LDOUBLE_REDIRECTS_TO_FLOAT128_ABI == 1
# undef __REDIR_TO
# undef __MATHDECL_1
# undef __MATHDECL
#define __MATHDECL(type, function, args) \
__MATHDECL_IMPL(type, function, args)
# define __MATHDECL_1(type, function, args) \
__MATHDECL_1_IMPL(type, function, args)
# endif
#endif #endif
#undef _Mdouble_ #undef _Mdouble_
#undef __MATH_PRECNAME #undef __MATH_PRECNAME
@ -215,6 +239,7 @@ __BEGIN_DECLS
# undef _Mdouble_complex_ # undef _Mdouble_complex_
#endif #endif
#undef __MATHDECL_1_IMPL
#undef __MATHDECL_1 #undef __MATHDECL_1
#undef __MATHDECL #undef __MATHDECL
#undef __MATHCALL #undef __MATHCALL

View File

@ -330,7 +330,7 @@ typedef struct
#define EM_CLOUDSHIELD 192 /* CloudShield */ #define EM_CLOUDSHIELD 192 /* CloudShield */
#define EM_COREA_1ST 193 /* KIPO-KAIST Core-A 1st gen. */ #define EM_COREA_1ST 193 /* KIPO-KAIST Core-A 1st gen. */
#define EM_COREA_2ND 194 /* KIPO-KAIST Core-A 2nd gen. */ #define EM_COREA_2ND 194 /* KIPO-KAIST Core-A 2nd gen. */
#define EM_ARC_COMPACT2 195 /* Synopsys ARCompact V2 */ #define EM_ARCV2 195 /* Synopsys ARCv2 ISA. */
#define EM_OPEN8 196 /* Open8 RISC */ #define EM_OPEN8 196 /* Open8 RISC */
#define EM_RL78 197 /* Renesas RL78 */ #define EM_RL78 197 /* Renesas RL78 */
#define EM_VIDEOCORE5 198 /* Broadcom VideoCore V */ #define EM_VIDEOCORE5 198 /* Broadcom VideoCore V */
@ -721,6 +721,7 @@ typedef struct
#define PT_GNU_EH_FRAME 0x6474e550 /* GCC .eh_frame_hdr segment */ #define PT_GNU_EH_FRAME 0x6474e550 /* GCC .eh_frame_hdr segment */
#define PT_GNU_STACK 0x6474e551 /* Indicates stack executability */ #define PT_GNU_STACK 0x6474e551 /* Indicates stack executability */
#define PT_GNU_RELRO 0x6474e552 /* Read-only after relocation */ #define PT_GNU_RELRO 0x6474e552 /* Read-only after relocation */
#define PT_GNU_PROPERTY 0x6474e553 /* GNU property */
#define PT_LOSUNW 0x6ffffffa #define PT_LOSUNW 0x6ffffffa
#define PT_SUNWBSS 0x6ffffffa /* Sun Specific segment */ #define PT_SUNWBSS 0x6ffffffa /* Sun Specific segment */
#define PT_SUNWSTACK 0x6ffffffb /* Stack segment */ #define PT_SUNWSTACK 0x6ffffffb /* Stack segment */
@ -1318,6 +1319,12 @@ typedef struct
/* Application-specific semantics, hi */ /* Application-specific semantics, hi */
#define GNU_PROPERTY_HIUSER 0xffffffff #define GNU_PROPERTY_HIUSER 0xffffffff
/* AArch64 specific GNU properties. */
#define GNU_PROPERTY_AARCH64_FEATURE_1_AND 0xc0000000
#define GNU_PROPERTY_AARCH64_FEATURE_1_BTI (1U << 0)
#define GNU_PROPERTY_AARCH64_FEATURE_1_PAC (1U << 1)
/* The x86 instruction sets indicated by the corresponding bits are /* The x86 instruction sets indicated by the corresponding bits are
used in program. Their support in the hardware is optional. */ used in program. Their support in the hardware is optional. */
#define GNU_PROPERTY_X86_ISA_1_USED 0xc0000000 #define GNU_PROPERTY_X86_ISA_1_USED 0xc0000000
@ -3946,8 +3953,9 @@ enum
#define R_RISCV_SET16 55 #define R_RISCV_SET16 55
#define R_RISCV_SET32 56 #define R_RISCV_SET32 56
#define R_RISCV_32_PCREL 57 #define R_RISCV_32_PCREL 57
#define R_RISCV_IRELATIVE 58
#define R_RISCV_NUM 58 #define R_RISCV_NUM 59
/* BPF specific declarations. */ /* BPF specific declarations. */
@ -4027,6 +4035,74 @@ enum
#define R_NDS32_TLS_TPOFF 102 #define R_NDS32_TLS_TPOFF 102
#define R_NDS32_TLS_DESC 119 #define R_NDS32_TLS_DESC 119
/* ARCompact/ARCv2 specific relocs. */
#define R_ARC_NONE 0x0
#define R_ARC_8 0x1
#define R_ARC_16 0x2
#define R_ARC_24 0x3
#define R_ARC_32 0x4
#define R_ARC_B26 0x5
#define R_ARC_B22_PCREL 0x6
#define R_ARC_H30 0x7
#define R_ARC_N8 0x8
#define R_ARC_N16 0x9
#define R_ARC_N24 0xA
#define R_ARC_N32 0xB
#define R_ARC_SDA 0xC
#define R_ARC_SECTOFF 0xD
#define R_ARC_S21H_PCREL 0xE
#define R_ARC_S21W_PCREL 0xF
#define R_ARC_S25H_PCREL 0x10
#define R_ARC_S25W_PCREL 0x11
#define R_ARC_SDA32 0x12
#define R_ARC_SDA_LDST 0x13
#define R_ARC_SDA_LDST1 0x14
#define R_ARC_SDA_LDST2 0x15
#define R_ARC_SDA16_LD 0x16
#define R_ARC_SDA16_LD1 0x17
#define R_ARC_SDA16_LD2 0x18
#define R_ARC_S13_PCREL 0x19
#define R_ARC_W 0x1A
#define R_ARC_32_ME 0x1B
#define R_ARC_N32_ME 0x1C
#define R_ARC_SECTOFF_ME 0x1D
#define R_ARC_SDA32_ME 0x1E
#define R_ARC_W_ME 0x1F
#define R_ARC_H30_ME 0x20
#define R_ARC_SECTOFF_U8 0x21
#define R_ARC_SECTOFF_S9 0x22
#define R_AC_SECTOFF_U8 0x23
#define R_AC_SECTOFF_U8_1 0x24
#define R_AC_SECTOFF_U8_2 0x25
#define R_AC_SECTOFF_S9 0x26
#define R_AC_SECTOFF_S9_1 0x27
#define R_AC_SECTOFF_S9_2 0x28
#define R_ARC_SECTOFF_ME_1 0x29
#define R_ARC_SECTOFF_ME_2 0x2A
#define R_ARC_SECTOFF_1 0x2B
#define R_ARC_SECTOFF_2 0x2C
#define R_ARC_PC32 0x32
#define R_ARC_GOTPC32 0x33
#define R_ARC_PLT32 0x34
#define R_ARC_COPY 0x35
#define R_ARC_GLOB_DAT 0x36
#define R_ARC_JUMP_SLOT 0x37
#define R_ARC_RELATIVE 0x38
#define R_ARC_GOTOFF 0x39
#define R_ARC_GOTPC 0x3A
#define R_ARC_GOT32 0x3B
#define R_ARC_TLS_DTPMOD 0x42
#define R_ARC_TLS_DTPOFF 0x43
#define R_ARC_TLS_TPOFF 0x44
#define R_ARC_TLS_GD_GOT 0x45
#define R_ARC_TLS_GD_LD 0x46
#define R_ARC_TLS_GD_CALL 0x47
#define R_ARC_TLS_IE_GOT 0x48
#define R_ARC_TLS_DTPOFF_S9 0x4a
#define R_ARC_TLS_LE_S9 0x4a
#define R_ARC_TLS_LE_32 0x4b
__END_DECLS __END_DECLS
#endif /* elf.h */ #endif /* elf.h */

View File

@ -52,7 +52,8 @@ extern void errx (int __status, const char *__format, ...)
extern void verrx (int __status, const char *, __gnuc_va_list) extern void verrx (int __status, const char *, __gnuc_va_list)
__attribute__ ((__noreturn__, __format__ (__printf__, 2, 0))); __attribute__ ((__noreturn__, __format__ (__printf__, 2, 0)));
#ifdef __LDBL_COMPAT #include <bits/floatn.h>
#if defined __LDBL_COMPAT || __LDOUBLE_REDIRECTS_TO_FLOAT128_ABI == 1
# include <bits/err-ldbl.h> # include <bits/err-ldbl.h>
#endif #endif

View File

@ -47,11 +47,13 @@ extern unsigned int error_message_count;
variable controls whether this mode is selected or not. */ variable controls whether this mode is selected or not. */
extern int error_one_per_line; extern int error_one_per_line;
#ifdef __LDBL_COMPAT #include <bits/floatn.h>
#if defined __LDBL_COMPAT || __LDOUBLE_REDIRECTS_TO_FLOAT128_ABI == 1
# include <bits/error-ldbl.h> # include <bits/error-ldbl.h>
#else #else
/* Do not inline error and error_at_line when long double has the same /* Do not inline error and error_at_line when long double has the same
size of double, because that would invalidate the redirections to the size of double, nor when long double reuses the float128
implementation, because that would invalidate the redirections to the
compatibility functions. */ compatibility functions. */
# if defined __extern_always_inline && defined __va_arg_pack # if defined __extern_always_inline && defined __va_arg_pack
# include <bits/error.h> # include <bits/error.h>

View File

@ -454,7 +454,7 @@
/* Major and minor version number of the GNU C library package. Use /* Major and minor version number of the GNU C library package. Use
these macros to test for features in specific releases. */ these macros to test for features in specific releases. */
#define __GLIBC__ 2 #define __GLIBC__ 2
#define __GLIBC_MINOR__ 31 #define __GLIBC_MINOR__ 32
#define __GLIBC_PREREQ(maj, min) \ #define __GLIBC_PREREQ(maj, min) \
((__GLIBC__ << 16) + __GLIBC_MINOR__ >= ((maj) << 16) + (min)) ((__GLIBC__ << 16) + __GLIBC_MINOR__ >= ((maj) << 16) + (min))

View File

@ -140,10 +140,6 @@ extern int fegetmode (femode_t *__modep) __THROW;
extern int fesetmode (const femode_t *__modep) __THROW; extern int fesetmode (const femode_t *__modep) __THROW;
#endif #endif
/* Include optimization. */
#ifdef __OPTIMIZE__
# include <bits/fenvinline.h>
#endif
/* NaN support. */ /* NaN support. */

View File

@ -20,8 +20,6 @@
#define LIBNSS_FILES_SO "libnss_files.so.2" #define LIBNSS_FILES_SO "libnss_files.so.2"
#define LIBNSS_HESIOD_SO "libnss_hesiod.so.2" #define LIBNSS_HESIOD_SO "libnss_hesiod.so.2"
#define LIBNSS_LDAP_SO "libnss_ldap.so.2" #define LIBNSS_LDAP_SO "libnss_ldap.so.2"
#define LIBNSS_NISPLUS_SO "libnss_nisplus.so.2"
#define LIBNSS_NIS_SO "libnss_nis.so.2"
#define LIBNSS_TEST1_SO "libnss_test1.so.2" #define LIBNSS_TEST1_SO "libnss_test1.so.2"
#define LIBNSS_TEST2_SO "libnss_test2.so.2" #define LIBNSS_TEST2_SO "libnss_test2.so.2"
#define LIBPTHREAD_SO "libpthread.so.0" #define LIBPTHREAD_SO "libpthread.so.0"

View File

@ -20,8 +20,6 @@
#define LIBNSS_FILES_SO "libnss_files.so.2" #define LIBNSS_FILES_SO "libnss_files.so.2"
#define LIBNSS_HESIOD_SO "libnss_hesiod.so.2" #define LIBNSS_HESIOD_SO "libnss_hesiod.so.2"
#define LIBNSS_LDAP_SO "libnss_ldap.so.2" #define LIBNSS_LDAP_SO "libnss_ldap.so.2"
#define LIBNSS_NISPLUS_SO "libnss_nisplus.so.2"
#define LIBNSS_NIS_SO "libnss_nis.so.2"
#define LIBNSS_TEST1_SO "libnss_test1.so.2" #define LIBNSS_TEST1_SO "libnss_test1.so.2"
#define LIBNSS_TEST2_SO "libnss_test2.so.2" #define LIBNSS_TEST2_SO "libnss_test2.so.2"
#define LIBPTHREAD_SO "libpthread.so.0" #define LIBPTHREAD_SO "libpthread.so.0"

View File

@ -19,8 +19,6 @@
#define LIBNSS_FILES_SO "libnss_files.so.2" #define LIBNSS_FILES_SO "libnss_files.so.2"
#define LIBNSS_HESIOD_SO "libnss_hesiod.so.2" #define LIBNSS_HESIOD_SO "libnss_hesiod.so.2"
#define LIBNSS_LDAP_SO "libnss_ldap.so.2" #define LIBNSS_LDAP_SO "libnss_ldap.so.2"
#define LIBNSS_NISPLUS_SO "libnss_nisplus.so.2"
#define LIBNSS_NIS_SO "libnss_nis.so.2"
#define LIBNSS_TEST1_SO "libnss_test1.so.2" #define LIBNSS_TEST1_SO "libnss_test1.so.2"
#define LIBNSS_TEST2_SO "libnss_test2.so.2" #define LIBNSS_TEST2_SO "libnss_test2.so.2"
#define LIBPTHREAD_SO "libpthread.so.0" #define LIBPTHREAD_SO "libpthread.so.0"

View File

@ -19,8 +19,6 @@
#define LIBNSS_FILES_SO "libnss_files.so.2" #define LIBNSS_FILES_SO "libnss_files.so.2"
#define LIBNSS_HESIOD_SO "libnss_hesiod.so.2" #define LIBNSS_HESIOD_SO "libnss_hesiod.so.2"
#define LIBNSS_LDAP_SO "libnss_ldap.so.2" #define LIBNSS_LDAP_SO "libnss_ldap.so.2"
#define LIBNSS_NISPLUS_SO "libnss_nisplus.so.2"
#define LIBNSS_NIS_SO "libnss_nis.so.2"
#define LIBNSS_TEST1_SO "libnss_test1.so.2" #define LIBNSS_TEST1_SO "libnss_test1.so.2"
#define LIBNSS_TEST2_SO "libnss_test2.so.2" #define LIBNSS_TEST2_SO "libnss_test2.so.2"
#define LIBPTHREAD_SO "libpthread.so.0" #define LIBPTHREAD_SO "libpthread.so.0"

View File

@ -19,8 +19,6 @@
#define LIBNSS_FILES_SO "libnss_files.so.2" #define LIBNSS_FILES_SO "libnss_files.so.2"
#define LIBNSS_HESIOD_SO "libnss_hesiod.so.2" #define LIBNSS_HESIOD_SO "libnss_hesiod.so.2"
#define LIBNSS_LDAP_SO "libnss_ldap.so.2" #define LIBNSS_LDAP_SO "libnss_ldap.so.2"
#define LIBNSS_NISPLUS_SO "libnss_nisplus.so.2"
#define LIBNSS_NIS_SO "libnss_nis.so.2"
#define LIBNSS_TEST1_SO "libnss_test1.so.2" #define LIBNSS_TEST1_SO "libnss_test1.so.2"
#define LIBNSS_TEST2_SO "libnss_test2.so.2" #define LIBNSS_TEST2_SO "libnss_test2.so.2"
#define LIBPTHREAD_SO "libpthread.so.0" #define LIBPTHREAD_SO "libpthread.so.0"

View File

@ -20,8 +20,6 @@
#define LIBNSS_FILES_SO "libnss_files.so.2" #define LIBNSS_FILES_SO "libnss_files.so.2"
#define LIBNSS_HESIOD_SO "libnss_hesiod.so.2" #define LIBNSS_HESIOD_SO "libnss_hesiod.so.2"
#define LIBNSS_LDAP_SO "libnss_ldap.so.2" #define LIBNSS_LDAP_SO "libnss_ldap.so.2"
#define LIBNSS_NISPLUS_SO "libnss_nisplus.so.2"
#define LIBNSS_NIS_SO "libnss_nis.so.2"
#define LIBNSS_TEST1_SO "libnss_test1.so.2" #define LIBNSS_TEST1_SO "libnss_test1.so.2"
#define LIBNSS_TEST2_SO "libnss_test2.so.2" #define LIBNSS_TEST2_SO "libnss_test2.so.2"
#define LIBPTHREAD_SO "libpthread.so.0" #define LIBPTHREAD_SO "libpthread.so.0"

View File

@ -10,9 +10,7 @@
#define __stub_chflags #define __stub_chflags
#define __stub_fchflags #define __stub_fchflags
#define __stub_gtty #define __stub_gtty
#define __stub_lchmod
#define __stub_revoke #define __stub_revoke
#define __stub_setlogin #define __stub_setlogin
#define __stub_sigreturn #define __stub_sigreturn
#define __stub_sstk
#define __stub_stty #define __stub_stty

View File

@ -10,9 +10,7 @@
#define __stub_chflags #define __stub_chflags
#define __stub_fchflags #define __stub_fchflags
#define __stub_gtty #define __stub_gtty
#define __stub_lchmod
#define __stub_revoke #define __stub_revoke
#define __stub_setlogin #define __stub_setlogin
#define __stub_sigreturn #define __stub_sigreturn
#define __stub_sstk
#define __stub_stty #define __stub_stty

View File

@ -13,9 +13,7 @@
#define __stub_chflags #define __stub_chflags
#define __stub_fchflags #define __stub_fchflags
#define __stub_gtty #define __stub_gtty
#define __stub_lchmod
#define __stub_revoke #define __stub_revoke
#define __stub_setlogin #define __stub_setlogin
#define __stub_sigreturn #define __stub_sigreturn
#define __stub_sstk
#define __stub_stty #define __stub_stty

View File

@ -12,9 +12,7 @@
#define __stub_chflags #define __stub_chflags
#define __stub_fchflags #define __stub_fchflags
#define __stub_gtty #define __stub_gtty
#define __stub_lchmod
#define __stub_revoke #define __stub_revoke
#define __stub_setlogin #define __stub_setlogin
#define __stub_sigreturn #define __stub_sigreturn
#define __stub_sstk
#define __stub_stty #define __stub_stty

View File

@ -12,9 +12,7 @@
#define __stub_chflags #define __stub_chflags
#define __stub_fchflags #define __stub_fchflags
#define __stub_gtty #define __stub_gtty
#define __stub_lchmod
#define __stub_revoke #define __stub_revoke
#define __stub_setlogin #define __stub_setlogin
#define __stub_sigreturn #define __stub_sigreturn
#define __stub_sstk
#define __stub_stty #define __stub_stty

View File

@ -10,9 +10,7 @@
#define __stub_chflags #define __stub_chflags
#define __stub_fchflags #define __stub_fchflags
#define __stub_gtty #define __stub_gtty
#define __stub_lchmod
#define __stub_revoke #define __stub_revoke
#define __stub_setlogin #define __stub_setlogin
#define __stub_sigreturn #define __stub_sigreturn
#define __stub_sstk
#define __stub_stty #define __stub_stty

View File

@ -13,9 +13,7 @@
#define __stub_chflags #define __stub_chflags
#define __stub_fchflags #define __stub_fchflags
#define __stub_gtty #define __stub_gtty
#define __stub_lchmod
#define __stub_revoke #define __stub_revoke
#define __stub_setlogin #define __stub_setlogin
#define __stub_sigreturn #define __stub_sigreturn
#define __stub_sstk
#define __stub_stty #define __stub_stty

View File

@ -321,10 +321,10 @@ extern long int __strtol_internal (const char *__restrict __nptr,
__THROW __nonnull ((1)) __wur; __THROW __nonnull ((1)) __wur;
/* Like `strtol' but convert to `intmax_t'. */ /* Like `strtol' but convert to `intmax_t'. */
__extern_inline intmax_t __extern_inline intmax_t
__NTH (strtoimax (const char *__restrict nptr, char **__restrict endptr, __NTH (strtoimax (const char *__restrict __nptr, char **__restrict __endptr,
int base)) int __base))
{ {
return __strtol_internal (nptr, endptr, base, 0); return __strtol_internal (__nptr, __endptr, __base, 0);
} }
extern unsigned long int __strtoul_internal (const char *__restrict __nptr, extern unsigned long int __strtoul_internal (const char *__restrict __nptr,
@ -333,10 +333,10 @@ extern unsigned long int __strtoul_internal (const char *__restrict __nptr,
__THROW __nonnull ((1)) __wur; __THROW __nonnull ((1)) __wur;
/* Like `strtoul' but convert to `uintmax_t'. */ /* Like `strtoul' but convert to `uintmax_t'. */
__extern_inline uintmax_t __extern_inline uintmax_t
__NTH (strtoumax (const char *__restrict nptr, char **__restrict endptr, __NTH (strtoumax (const char *__restrict __nptr, char **__restrict __endptr,
int base)) int __base))
{ {
return __strtoul_internal (nptr, endptr, base, 0); return __strtoul_internal (__nptr, __endptr, __base, 0);
} }
extern long int __wcstol_internal (const __gwchar_t * __restrict __nptr, extern long int __wcstol_internal (const __gwchar_t * __restrict __nptr,
@ -345,10 +345,10 @@ extern long int __wcstol_internal (const __gwchar_t * __restrict __nptr,
__THROW __nonnull ((1)) __wur; __THROW __nonnull ((1)) __wur;
/* Like `wcstol' but convert to `intmax_t'. */ /* Like `wcstol' but convert to `intmax_t'. */
__extern_inline intmax_t __extern_inline intmax_t
__NTH (wcstoimax (const __gwchar_t *__restrict nptr, __NTH (wcstoimax (const __gwchar_t *__restrict __nptr,
__gwchar_t **__restrict endptr, int base)) __gwchar_t **__restrict __endptr, int __base))
{ {
return __wcstol_internal (nptr, endptr, base, 0); return __wcstol_internal (__nptr, __endptr, __base, 0);
} }
extern unsigned long int __wcstoul_internal (const __gwchar_t * extern unsigned long int __wcstoul_internal (const __gwchar_t *
@ -359,10 +359,10 @@ extern unsigned long int __wcstoul_internal (const __gwchar_t *
__THROW __nonnull ((1)) __wur; __THROW __nonnull ((1)) __wur;
/* Like `wcstoul' but convert to `uintmax_t'. */ /* Like `wcstoul' but convert to `uintmax_t'. */
__extern_inline uintmax_t __extern_inline uintmax_t
__NTH (wcstoumax (const __gwchar_t *__restrict nptr, __NTH (wcstoumax (const __gwchar_t *__restrict __nptr,
__gwchar_t **__restrict endptr, int base)) __gwchar_t **__restrict __endptr, int __base))
{ {
return __wcstoul_internal (nptr, endptr, base, 0); return __wcstoul_internal (__nptr, __endptr, __base, 0);
} }
# else /* __WORDSIZE == 32 */ # else /* __WORDSIZE == 32 */
@ -374,10 +374,10 @@ extern long long int __strtoll_internal (const char *__restrict __nptr,
__THROW __nonnull ((1)) __wur; __THROW __nonnull ((1)) __wur;
/* Like `strtol' but convert to `intmax_t'. */ /* Like `strtol' but convert to `intmax_t'. */
__extern_inline intmax_t __extern_inline intmax_t
__NTH (strtoimax (const char *__restrict nptr, char **__restrict endptr, __NTH (strtoimax (const char *__restrict __nptr, char **__restrict __endptr,
int base)) int __base))
{ {
return __strtoll_internal (nptr, endptr, base, 0); return __strtoll_internal (__nptr, __endptr, __base, 0);
} }
__extension__ __extension__
@ -390,10 +390,10 @@ extern unsigned long long int __strtoull_internal (const char *
__THROW __nonnull ((1)) __wur; __THROW __nonnull ((1)) __wur;
/* Like `strtoul' but convert to `uintmax_t'. */ /* Like `strtoul' but convert to `uintmax_t'. */
__extern_inline uintmax_t __extern_inline uintmax_t
__NTH (strtoumax (const char *__restrict nptr, char **__restrict endptr, __NTH (strtoumax (const char *__restrict __nptr, char **__restrict __endptr,
int base)) int __base))
{ {
return __strtoull_internal (nptr, endptr, base, 0); return __strtoull_internal (__nptr, __endptr, __base, 0);
} }
__extension__ __extension__
@ -403,10 +403,10 @@ extern long long int __wcstoll_internal (const __gwchar_t *__restrict __nptr,
__THROW __nonnull ((1)) __wur; __THROW __nonnull ((1)) __wur;
/* Like `wcstol' but convert to `intmax_t'. */ /* Like `wcstol' but convert to `intmax_t'. */
__extern_inline intmax_t __extern_inline intmax_t
__NTH (wcstoimax (const __gwchar_t *__restrict nptr, __NTH (wcstoimax (const __gwchar_t *__restrict __nptr,
__gwchar_t **__restrict endptr, int base)) __gwchar_t **__restrict __endptr, int __base))
{ {
return __wcstoll_internal (nptr, endptr, base, 0); return __wcstoll_internal (__nptr, __endptr, __base, 0);
} }
@ -420,10 +420,10 @@ extern unsigned long long int __wcstoull_internal (const __gwchar_t *
__THROW __nonnull ((1)) __wur; __THROW __nonnull ((1)) __wur;
/* Like `wcstoul' but convert to `uintmax_t'. */ /* Like `wcstoul' but convert to `uintmax_t'. */
__extern_inline uintmax_t __extern_inline uintmax_t
__NTH (wcstoumax (const __gwchar_t *__restrict nptr, __NTH (wcstoumax (const __gwchar_t *__restrict __nptr,
__gwchar_t **__restrict endptr, int base)) __gwchar_t **__restrict __endptr, int __base))
{ {
return __wcstoull_internal (nptr, endptr, base, 0); return __wcstoull_internal (__nptr, __endptr, __base, 0);
} }
# endif /* __WORDSIZE == 32 */ # endif /* __WORDSIZE == 32 */

View File

@ -75,11 +75,11 @@ extern void *pvalloc (size_t __size) __THROW __attribute_malloc__ __wur;
/* Underlying allocation function; successive calls should return /* Underlying allocation function; successive calls should return
contiguous pieces of memory. */ contiguous pieces of memory. */
extern void *(*__morecore) (ptrdiff_t __size); extern void *(*__morecore) (ptrdiff_t __size) __MALLOC_DEPRECATED;
/* Default value of `__morecore'. */ /* Default value of `__morecore'. */
extern void *__default_morecore (ptrdiff_t __size) extern void *__default_morecore (ptrdiff_t __size)
__THROW __attribute_malloc__; __THROW __attribute_malloc__ __MALLOC_DEPRECATED;
/* SVID2/XPG mallinfo structure */ /* SVID2/XPG mallinfo structure */
@ -156,7 +156,8 @@ extern void *(*__MALLOC_HOOK_VOLATILE __memalign_hook)(size_t __alignment,
size_t __size, size_t __size,
const void *) const void *)
__MALLOC_DEPRECATED; __MALLOC_DEPRECATED;
extern void (*__MALLOC_HOOK_VOLATILE __after_morecore_hook) (void); extern void (*__MALLOC_HOOK_VOLATILE __after_morecore_hook) (void)
__MALLOC_DEPRECATED;
__END_DECLS __END_DECLS

View File

@ -279,8 +279,17 @@ enum
#define __MATHDECLX(type, function,suffix, args, attrib) \ #define __MATHDECLX(type, function,suffix, args, attrib) \
__MATHDECL_1(type, function,suffix, args) __attribute__ (attrib); \ __MATHDECL_1(type, function,suffix, args) __attribute__ (attrib); \
__MATHDECL_1(type, __CONCAT(__,function),suffix, args) __attribute__ (attrib) __MATHDECL_1(type, __CONCAT(__,function),suffix, args) __attribute__ (attrib)
#define __MATHDECL_1(type, function,suffix, args) \ #define __MATHDECL_1_IMPL(type, function, suffix, args) \
extern type __MATH_PRECNAME(function,suffix) args __THROW extern type __MATH_PRECNAME(function,suffix) args __THROW
#define __MATHDECL_1(type, function, suffix, args) \
__MATHDECL_1_IMPL(type, function, suffix, args)
/* Ignore the alias by default. The alias is only useful with
redirections. */
#define __MATHDECL_ALIAS(type, function, suffix, args, alias) \
__MATHDECL_1(type, function, suffix, args)
#define __MATHREDIR(type, function, suffix, args, to) \
extern type __REDIRECT_NTH (__MATH_PRECNAME (function, suffix), args, to)
#define _Mdouble_ double #define _Mdouble_ double
#define __MATH_PRECNAME(name,r) __CONCAT(name,r) #define __MATH_PRECNAME(name,r) __CONCAT(name,r)
@ -331,11 +340,37 @@ extern long double __REDIRECT_NTH (nexttowardl,
# endif # endif
# undef __MATHDECL_1 # undef __MATHDECL_1
# define __MATHDECL_2(type, function,suffix, args, alias) \
extern type __REDIRECT_NTH(__MATH_PRECNAME(function,suffix), \
args, alias)
# define __MATHDECL_1(type, function,suffix, args) \ # define __MATHDECL_1(type, function,suffix, args) \
__MATHDECL_2(type, function,suffix, args, __CONCAT(function,suffix)) __MATHREDIR(type, function, suffix, args, __CONCAT(function,suffix))
# elif __LDOUBLE_REDIRECTS_TO_FLOAT128_ABI == 1
# ifdef __REDIRECT_NTH
# ifdef __USE_ISOC99
extern float __REDIRECT_NTH (nexttowardf, (float __x, long double __y),
__nexttowardf_to_ieee128)
__attribute__ ((__const__));
extern double __REDIRECT_NTH (nexttoward, (double __x, long double __y),
__nexttoward_to_ieee128)
__attribute__ ((__const__));
#define __dremieee128 __remainderieee128
#define __gammaieee128 __lgammaieee128
# endif
# endif
# undef __MATHDECL_1
# undef __MATHDECL_ALIAS
# define __REDIRTO(function, suffix) \
__ ## function ## ieee128 ## suffix
# define __REDIRTO_ALT(function, suffix) \
__ ## function ## f128 ## suffix
# define __MATHDECL_1(type, function, suffix, args) \
__MATHREDIR (type, function, suffix, args, __REDIRTO (function, suffix))
# define __MATHDECL_ALIAS(type, function, suffix, args, alias) \
__MATHREDIR (type, function, suffix, args, __REDIRTO_ALT (alias, suffix))
# endif # endif
/* Include the file of declarations again, this time using `long double' /* Include the file of declarations again, this time using `long double'
@ -348,11 +383,23 @@ extern long double __REDIRECT_NTH (nexttowardl,
# define __MATH_DECLARE_LDOUBLE 1 # define __MATH_DECLARE_LDOUBLE 1
# include <bits/mathcalls-helper-functions.h> # include <bits/mathcalls-helper-functions.h>
# include <bits/mathcalls.h> # include <bits/mathcalls.h>
# undef _Mdouble_ # undef _Mdouble_
# undef __MATH_PRECNAME # undef __MATH_PRECNAME
# undef __MATH_DECLARING_DOUBLE # undef __MATH_DECLARING_DOUBLE
# undef __MATH_DECLARING_FLOATN # undef __MATH_DECLARING_FLOATN
# if defined __LDBL_COMPAT \
|| __LDOUBLE_REDIRECTS_TO_FLOAT128_ABI == 1
# undef __REDIRTO
# undef __REDIRTO_ALT
# undef __MATHDECL_1
# undef __MATHDECL_ALIAS
# define __MATHDECL_1(type, function, suffix, args) \
__MATHDECL_1_IMPL(type, function, suffix, args)
# define __MATHDECL_ALIAS(type, function, suffix, args, alias) \
__MATHDECL_1(type, function, suffix, args)
# endif
# endif /* !(__NO_LONG_DOUBLE_MATH && _LIBC) || __LDBL_COMPAT */ # endif /* !(__NO_LONG_DOUBLE_MATH && _LIBC) || __LDBL_COMPAT */
#endif /* Use ISO C99. */ #endif /* Use ISO C99. */
@ -479,7 +526,9 @@ extern long double __REDIRECT_NTH (nexttowardl,
# undef __MATH_DECLARING_FLOATN # undef __MATH_DECLARING_FLOATN
#endif /* __HAVE_DISTINCT_FLOAT128X || (__HAVE_FLOAT128X && !_LIBC). */ #endif /* __HAVE_DISTINCT_FLOAT128X || (__HAVE_FLOAT128X && !_LIBC). */
#undef __MATHDECL_1_IMPL
#undef __MATHDECL_1 #undef __MATHDECL_1
#undef __MATHDECL_ALIAS
#undef __MATHDECL #undef __MATHDECL
#undef __MATHCALL #undef __MATHCALL
@ -511,6 +560,11 @@ extern long double __REDIRECT_NTH (nexttowardl,
# ifdef __LDBL_COMPAT # ifdef __LDBL_COMPAT
# define __MATHCALL_REDIR_NAME(name) f ## name # define __MATHCALL_REDIR_NAME(name) f ## name
# undef __MATHCALL_NARROW # undef __MATHCALL_NARROW
# define __MATHCALL_NARROW(func, redir, nargs) \
__MATHCALL_NARROW_REDIR (func, redir, nargs)
# elif __LDOUBLE_REDIRECTS_TO_FLOAT128_ABI == 1
# define __MATHCALL_REDIR_NAME(name) __ ## f32 ## name ## ieee128
# undef __MATHCALL_NARROW
# define __MATHCALL_NARROW(func, redir, nargs) \ # define __MATHCALL_NARROW(func, redir, nargs) \
__MATHCALL_NARROW_REDIR (func, redir, nargs) __MATHCALL_NARROW_REDIR (func, redir, nargs)
# endif # endif
@ -518,7 +572,8 @@ extern long double __REDIRECT_NTH (nexttowardl,
# undef _Mret_ # undef _Mret_
# undef _Marg_ # undef _Marg_
# undef __MATHCALL_NAME # undef __MATHCALL_NAME
# ifdef __LDBL_COMPAT # if defined __LDBL_COMPAT \
|| __LDOUBLE_REDIRECTS_TO_FLOAT128_ABI == 1
# undef __MATHCALL_REDIR_NAME # undef __MATHCALL_REDIR_NAME
# undef __MATHCALL_NARROW # undef __MATHCALL_NARROW
# define __MATHCALL_NARROW(func, redir, nargs) \ # define __MATHCALL_NARROW(func, redir, nargs) \
@ -531,6 +586,11 @@ extern long double __REDIRECT_NTH (nexttowardl,
# ifdef __LDBL_COMPAT # ifdef __LDBL_COMPAT
# define __MATHCALL_REDIR_NAME(name) __nldbl_d ## name ## l # define __MATHCALL_REDIR_NAME(name) __nldbl_d ## name ## l
# undef __MATHCALL_NARROW # undef __MATHCALL_NARROW
# define __MATHCALL_NARROW(func, redir, nargs) \
__MATHCALL_NARROW_REDIR (func, redir, nargs)
# elif __LDOUBLE_REDIRECTS_TO_FLOAT128_ABI == 1
# define __MATHCALL_REDIR_NAME(name) __ ## f64 ## name ## ieee128
# undef __MATHCALL_NARROW
# define __MATHCALL_NARROW(func, redir, nargs) \ # define __MATHCALL_NARROW(func, redir, nargs) \
__MATHCALL_NARROW_REDIR (func, redir, nargs) __MATHCALL_NARROW_REDIR (func, redir, nargs)
# endif # endif
@ -538,7 +598,8 @@ extern long double __REDIRECT_NTH (nexttowardl,
# undef _Mret_ # undef _Mret_
# undef _Marg_ # undef _Marg_
# undef __MATHCALL_NAME # undef __MATHCALL_NAME
# ifdef __LDBL_COMPAT # if defined __LDBL_COMPAT \
|| __LDOUBLE_REDIRECTS_TO_FLOAT128_ABI == 1
# undef __MATHCALL_REDIR_NAME # undef __MATHCALL_REDIR_NAME
# undef __MATHCALL_NARROW # undef __MATHCALL_NARROW
# define __MATHCALL_NARROW(func, redir, nargs) \ # define __MATHCALL_NARROW(func, redir, nargs) \
@ -1196,13 +1257,6 @@ iszero (__T __val)
# error "M_* values needed for _Float128x" # error "M_* values needed for _Float128x"
#endif #endif
/* When compiling in strict ISO C compatible mode we must not use the
inline functions since they, among other things, do not set the
`errno' variable correctly. */
#if defined __STRICT_ANSI__ && !defined __NO_MATH_INLINES
# define __NO_MATH_INLINES 1
#endif
#ifdef __USE_ISOC99 #ifdef __USE_ISOC99
# if __GNUC_PREREQ (3, 1) # if __GNUC_PREREQ (3, 1)
/* ISO C99 defines some macros to compare number while taking care for /* ISO C99 defines some macros to compare number while taking care for
@ -1240,12 +1294,6 @@ iszero (__T __val)
# endif # endif
#endif #endif
/* Get machine-dependent inline versions (if there are any). */
#ifdef __USE_EXTERN_INLINES
# include <bits/mathinline.h>
#endif
#if __GLIBC_USE (IEC_60559_BFP_EXT_C2X) #if __GLIBC_USE (IEC_60559_BFP_EXT_C2X)
/* An expression whose type has the widest of the evaluation formats /* An expression whose type has the widest of the evaluation formats
of X and Y (which are of floating-point types). */ of X and Y (which are of floating-point types). */

View File

@ -50,7 +50,8 @@ extern ssize_t strfmon_l (char *__restrict __s, size_t __maxsize,
__THROW __attribute_format_strfmon__ (4, 5); __THROW __attribute_format_strfmon__ (4, 5);
#endif #endif
#ifdef __LDBL_COMPAT #include <bits/floatn.h>
#if defined __LDBL_COMPAT || __LDOUBLE_REDIRECTS_TO_FLOAT128_ABI == 1
# include <bits/monetary-ldbl.h> # include <bits/monetary-ldbl.h>
#endif #endif

View File

@ -85,16 +85,16 @@ struct icmp6_hdr
#define ICMP6_PARAMPROB_OPTION 2 /* unrecognized IPv6 option */ #define ICMP6_PARAMPROB_OPTION 2 /* unrecognized IPv6 option */
#define ICMP6_FILTER_WILLPASS(type, filterp) \ #define ICMP6_FILTER_WILLPASS(type, filterp) \
((((filterp)->icmp6_filt[(type) >> 5]) & (1 << ((type) & 31))) == 0) ((((filterp)->icmp6_filt[(type) >> 5]) & (1U << ((type) & 31))) == 0)
#define ICMP6_FILTER_WILLBLOCK(type, filterp) \ #define ICMP6_FILTER_WILLBLOCK(type, filterp) \
((((filterp)->icmp6_filt[(type) >> 5]) & (1 << ((type) & 31))) != 0) ((((filterp)->icmp6_filt[(type) >> 5]) & (1U << ((type) & 31))) != 0)
#define ICMP6_FILTER_SETPASS(type, filterp) \ #define ICMP6_FILTER_SETPASS(type, filterp) \
((((filterp)->icmp6_filt[(type) >> 5]) &= ~(1 << ((type) & 31)))) ((((filterp)->icmp6_filt[(type) >> 5]) &= ~(1U << ((type) & 31))))
#define ICMP6_FILTER_SETBLOCK(type, filterp) \ #define ICMP6_FILTER_SETBLOCK(type, filterp) \
((((filterp)->icmp6_filt[(type) >> 5]) |= (1 << ((type) & 31)))) ((((filterp)->icmp6_filt[(type) >> 5]) |= (1U << ((type) & 31))))
#define ICMP6_FILTER_SETPASSALL(filterp) \ #define ICMP6_FILTER_SETPASSALL(filterp) \
memset (filterp, 0, sizeof (struct icmp6_filter)); memset (filterp, 0, sizeof (struct icmp6_filter));

View File

@ -87,8 +87,12 @@ enum
#define IPPROTO_UDPLITE IPPROTO_UDPLITE #define IPPROTO_UDPLITE IPPROTO_UDPLITE
IPPROTO_MPLS = 137, /* MPLS in IP. */ IPPROTO_MPLS = 137, /* MPLS in IP. */
#define IPPROTO_MPLS IPPROTO_MPLS #define IPPROTO_MPLS IPPROTO_MPLS
IPPROTO_ETHERNET = 143, /* Ethernet-within-IPv6 Encapsulation. */
#define IPPROTO_ETHERNET IPPROTO_ETHERNET
IPPROTO_RAW = 255, /* Raw IP packets. */ IPPROTO_RAW = 255, /* Raw IP packets. */
#define IPPROTO_RAW IPPROTO_RAW #define IPPROTO_RAW IPPROTO_RAW
IPPROTO_MPTCP = 262, /* Multipath TCP connection. */
#define IPPROTO_MPTCP IPPROTO_MPTCP
IPPROTO_MAX IPPROTO_MAX
}; };

View File

@ -19,10 +19,12 @@
and for implementors of new services. */ and for implementors of new services. */
#ifndef _NSS_H #ifndef _NSS_H
#define _NSS_H 1 #define _NSS_H 1
#include <features.h> #include <features.h>
#include <stddef.h>
#include <stdint.h> #include <stdint.h>
#include <sys/types.h>
__BEGIN_DECLS __BEGIN_DECLS
@ -56,7 +58,204 @@ struct gaih_addrtuple
Attention: Using this function repeatedly will slowly eat up the Attention: Using this function repeatedly will slowly eat up the
whole memory since previous selection data cannot be freed. */ whole memory since previous selection data cannot be freed. */
extern int __nss_configure_lookup (const char *__dbname, extern int __nss_configure_lookup (const char *__dbname,
const char *__string) __THROW; const char *__string) __THROW;
/* NSS-related types. */
struct __netgrent;
struct aliasent;
struct ether_addr;
struct etherent;
struct group;
struct hostent;
struct netent;
struct passwd;
struct protoent;
struct rpcent;
struct servent;
struct sgrp;
struct spwd;
struct traced_file;
/* Types of functions exported from NSS service modules. */
typedef enum nss_status nss_endaliasent (void);
typedef enum nss_status nss_endetherent (void);
typedef enum nss_status nss_endgrent (void);
typedef enum nss_status nss_endhostent (void);
typedef enum nss_status nss_endnetent (void);
typedef enum nss_status nss_endnetgrent (struct __netgrent *);
typedef enum nss_status nss_endprotoent (void);
typedef enum nss_status nss_endpwent (void);
typedef enum nss_status nss_endrpcent (void);
typedef enum nss_status nss_endservent (void);
typedef enum nss_status nss_endsgent (void);
typedef enum nss_status nss_endspent (void);
typedef enum nss_status nss_getaliasbyname_r (const char *, struct aliasent *,
char *, size_t, int *);
typedef enum nss_status nss_getaliasent_r (struct aliasent *,
char *, size_t, int *);
typedef enum nss_status nss_getcanonname_r (const char *, char *, size_t,
char **, int *, int *);
typedef enum nss_status nss_getetherent_r (struct etherent *,
char *, size_t, int *);
typedef enum nss_status nss_getgrent_r (struct group *, char *, size_t, int *);
typedef enum nss_status nss_getgrgid_r (__gid_t, struct group *,
char *, size_t, int *);
typedef enum nss_status nss_getgrnam_r (const char *, struct group *,
char *, size_t, int *);
typedef enum nss_status nss_gethostbyaddr2_r (const void *, __socklen_t, int,
struct hostent *, char *, size_t,
int *, int *, int32_t *);
typedef enum nss_status nss_gethostbyaddr_r (const void *, __socklen_t, int,
struct hostent *, char *, size_t,
int *, int *);
typedef enum nss_status nss_gethostbyname2_r (const char *, int,
struct hostent *, char *, size_t,
int *, int *);
typedef enum nss_status nss_gethostbyname3_r (const char *, int,
struct hostent *, char *, size_t,
int *, int *, int32_t *,
char **);
typedef enum nss_status nss_gethostbyname4_r (const char *,
struct gaih_addrtuple **,
char *, size_t,
int *, int *, int32_t *);
typedef enum nss_status nss_gethostbyname_r (const char *, struct hostent *,
char *, size_t, int *, int *);
typedef enum nss_status nss_gethostent_r (struct hostent *, char *, size_t,
int *, int *);
typedef enum nss_status nss_gethostton_r (const char *, struct etherent *,
char *, size_t, int *);
typedef enum nss_status nss_getnetbyaddr_r (uint32_t, int, struct netent *,
char *, size_t, int *, int *);
typedef enum nss_status nss_getnetbyname_r (const char *, struct netent *,
char *, size_t, int *, int *);
typedef enum nss_status nss_getnetent_r (struct netent *,
char *, size_t, int *, int *);
typedef enum nss_status nss_getnetgrent_r (struct __netgrent *,
char *, size_t, int *);
typedef enum nss_status nss_getntohost_r (const struct ether_addr *,
struct etherent *, char *, size_t,
int *);
typedef enum nss_status nss_getprotobyname_r (const char *, struct protoent *,
char *, size_t, int *);
typedef enum nss_status nss_getprotobynumber_r (int, struct protoent *,
char *, size_t, int *);
typedef enum nss_status nss_getprotoent_r (struct protoent *,
char *, size_t, int *);
typedef enum nss_status nss_getpublickey (const char *, char *, int *);
typedef enum nss_status nss_getpwent_r (struct passwd *,
char *, size_t, int *);
typedef enum nss_status nss_getpwnam_r (const char *, struct passwd *,
char *, size_t, int *);
typedef enum nss_status nss_getpwuid_r (__uid_t, struct passwd *,
char *, size_t, int *);
typedef enum nss_status nss_getrpcbyname_r (const char *, struct rpcent *,
char *, size_t, int *);
typedef enum nss_status nss_getrpcbynumber_r (int, struct rpcent *,
char *, size_t, int *);
typedef enum nss_status nss_getrpcent_r (struct rpcent *,
char *, size_t, int *);
typedef enum nss_status nss_getsecretkey (const char *, char *, char *, int *);
typedef enum nss_status nss_getservbyname_r (const char *, const char *,
struct servent *, char *, size_t,
int *);
typedef enum nss_status nss_getservbyport_r (int, const char *,
struct servent *, char *, size_t,
int *);
typedef enum nss_status nss_getservent_r (struct servent *, char *, size_t,
int *);
typedef enum nss_status nss_getsgent_r (struct sgrp *, char *, size_t, int *);
typedef enum nss_status nss_getsgnam_r (const char *, struct sgrp *,
char *, size_t, int *);
typedef enum nss_status nss_getspent_r (struct spwd *, char *, size_t, int *);
typedef enum nss_status nss_getspnam_r (const char *, struct spwd *,
char *, size_t, int *);
typedef void nss_init (void (*) (size_t, struct traced_file *));
typedef enum nss_status nss_initgroups_dyn (const char *, __gid_t, long int *,
long int *, __gid_t **, long int,
int *);
typedef enum nss_status nss_netname2user (char [], __uid_t *, __gid_t *,
int *, __gid_t *, int *);
typedef enum nss_status nss_setaliasent (void);
typedef enum nss_status nss_setetherent (int);
typedef enum nss_status nss_setgrent (int);
typedef enum nss_status nss_sethostent (int);
typedef enum nss_status nss_setnetent (int);
typedef enum nss_status nss_setnetgrent (const char *, struct __netgrent *);
typedef enum nss_status nss_setprotoent (int);
typedef enum nss_status nss_setpwent (int);
typedef enum nss_status nss_setrpcent (int);
typedef enum nss_status nss_setservent (int);
typedef enum nss_status nss_setsgent (int);
typedef enum nss_status nss_setspent (int);
/* Declare all NSS functions for MODULE. */
#define NSS_DECLARE_MODULE_FUNCTIONS(module) \
extern nss_endaliasent _nss_##module##_endaliasent; \
extern nss_endetherent _nss_##module##_endetherent; \
extern nss_endgrent _nss_##module##_endgrent; \
extern nss_endhostent _nss_##module##_endhostent; \
extern nss_endnetent _nss_##module##_endnetent; \
extern nss_endnetgrent _nss_##module##__endnetgrent; \
extern nss_endprotoent _nss_##module##_endprotoent; \
extern nss_endpwent _nss_##module##_endpwent; \
extern nss_endrpcent _nss_##module##_endrpcent; \
extern nss_endservent _nss_##module##_endservent; \
extern nss_endsgent _nss_##module##_endsgent; \
extern nss_endspent _nss_##module##_endspent; \
extern nss_getaliasbyname_r _nss_##module##_getaliasbyname_r; \
extern nss_getaliasent_r _nss_##module##_getaliasent_r; \
extern nss_getcanonname_r _nss_##module##_getcanonname_r; \
extern nss_getetherent_r _nss_##module##_getetherent_r; \
extern nss_getgrent_r _nss_##module##_getgrent_r; \
extern nss_getgrgid_r _nss_##module##_getgrgid_r; \
extern nss_getgrnam_r _nss_##module##_getgrnam_r; \
extern nss_gethostbyaddr2_r _nss_##module##_gethostbyaddr2_r; \
extern nss_gethostbyaddr_r _nss_##module##_gethostbyaddr_r; \
extern nss_gethostbyname2_r _nss_##module##_gethostbyname2_r; \
extern nss_gethostbyname3_r _nss_##module##_gethostbyname3_r; \
extern nss_gethostbyname4_r _nss_##module##_gethostbyname4_r; \
extern nss_gethostbyname_r _nss_##module##_gethostbyname_r; \
extern nss_gethostent_r _nss_##module##_gethostent_r; \
extern nss_gethostton_r _nss_##module##_gethostton_r; \
extern nss_getnetbyaddr_r _nss_##module##_getnetbyaddr_r; \
extern nss_getnetbyname_r _nss_##module##_getnetbyname_r; \
extern nss_getnetent_r _nss_##module##_getnetent_r; \
extern nss_getnetgrent_r _nss_##module##_getnetgrent_r; \
extern nss_getntohost_r _nss_##module##_getntohost_r; \
extern nss_getprotobyname_r _nss_##module##_getprotobyname_r; \
extern nss_getprotobynumber_r _nss_##module##_getprotobynumber_r; \
extern nss_getprotoent_r _nss_##module##_getprotoent_r; \
extern nss_getpublickey _nss_##module##_getpublickey; \
extern nss_getpwent_r _nss_##module##_getpwent_r; \
extern nss_getpwnam_r _nss_##module##_getpwnam_r; \
extern nss_getpwuid_r _nss_##module##_getpwuid_r; \
extern nss_getrpcbyname_r _nss_##module##_getrpcbyname_r; \
extern nss_getrpcbynumber_r _nss_##module##_getrpcbynumber_r; \
extern nss_getrpcent_r _nss_##module##_getrpcent_r; \
extern nss_getsecretkey _nss_##module##_getsecretkey; \
extern nss_getservbyname_r _nss_##module##_getservbyname_r; \
extern nss_getservbyport_r _nss_##module##_getservbyport_r; \
extern nss_getservent_r _nss_##module##_getservent_r; \
extern nss_getsgent_r _nss_##module##_getsgent_r; \
extern nss_getsgnam_r _nss_##module##_getsgnam_r; \
extern nss_getspent_r _nss_##module##_getspent_r; \
extern nss_getspnam_r _nss_##module##_getspnam_r; \
extern nss_init _nss_##module##_init; \
extern nss_initgroups_dyn _nss_##module##_initgroups_dyn; \
extern nss_netname2user _nss_##module##_netname2user; \
extern nss_setaliasent _nss_##module##_setaliasent; \
extern nss_setetherent _nss_##module##_setetherent; \
extern nss_setgrent _nss_##module##_setgrent; \
extern nss_sethostent _nss_##module##_sethostent; \
extern nss_setnetent _nss_##module##_setnetent; \
extern nss_setnetgrent _nss_##module##_setnetgrent; \
extern nss_setprotoent _nss_##module##_setprotoent; \
extern nss_setpwent _nss_##module##_setpwent; \
extern nss_setrpcent _nss_##module##_setrpcent; \
extern nss_setservent _nss_##module##_setservent; \
extern nss_setsgent _nss_##module##_setsgent; \
extern nss_setspent _nss_##module##_setspent; \
__END_DECLS __END_DECLS

View File

@ -182,7 +182,8 @@ extern int printf_size_info (const struct printf_info *__restrict
__info, size_t __n, int *__restrict __argtypes) __info, size_t __n, int *__restrict __argtypes)
__THROW; __THROW;
#ifdef __LDBL_COMPAT #include <bits/floatn.h>
#if defined __LDBL_COMPAT || __LDOUBLE_REDIRECTS_TO_FLOAT128_ABI == 1
# include <bits/printf-ldbl.h> # include <bits/printf-ldbl.h>
#endif #endif

View File

@ -27,6 +27,7 @@
#include <bits/setjmp.h> #include <bits/setjmp.h>
#include <bits/wordsize.h> #include <bits/wordsize.h>
#include <bits/types/struct_timespec.h> #include <bits/types/struct_timespec.h>
#include <bits/types/__sigset_t.h>
/* Detach state. */ /* Detach state. */
@ -385,6 +386,20 @@ extern int pthread_attr_getaffinity_np (const pthread_attr_t *__attr,
extern int pthread_getattr_default_np (pthread_attr_t *__attr) extern int pthread_getattr_default_np (pthread_attr_t *__attr)
__THROW __nonnull ((1)); __THROW __nonnull ((1));
/* Store *SIGMASK as the signal mask for the new thread in *ATTR. */
extern int pthread_attr_setsigmask_np (pthread_attr_t *__attr,
const __sigset_t *sigmask);
/* Store the signal mask of *ATTR in *SIGMASK. If there is no signal
mask stored, return PTHREAD_ATTR_NOSIGMASK_NP. Return zero on
success. */
extern int pthread_attr_getsigmask_np (const pthread_attr_t *__attr,
__sigset_t *sigmask);
/* Special return value from pthread_attr_getsigmask_np if the signal
mask has not been set. */
#define PTHREAD_ATTR_NO_SIGMASK_NP (-1)
/* Set the default attributes to be used by pthread_create in this /* Set the default attributes to be used by pthread_create in this
process. */ process. */
extern int pthread_setattr_default_np (const pthread_attr_t *__attr) extern int pthread_setattr_default_np (const pthread_attr_t *__attr)

View File

@ -27,7 +27,7 @@
__BEGIN_DECLS __BEGIN_DECLS
#include <bits/types.h> #include <bits/types.h>
#include <bits/signum.h> #include <bits/signum-generic.h>
#include <bits/types/sig_atomic_t.h> #include <bits/types/sig_atomic_t.h>
@ -148,7 +148,8 @@ extern void psiginfo (const siginfo_t *__pinfo, const char *__s);
#ifdef __USE_XOPEN_EXTENDED #ifdef __USE_XOPEN_EXTENDED
# ifdef __GNUC__ # ifdef __GNUC__
extern int sigpause (int __sig) __asm__ ("__xpg_sigpause"); extern int sigpause (int __sig) __asm__ ("__xpg_sigpause")
__attribute_deprecated_msg__ ("Use the sigsuspend function instead");
# else # else
extern int __sigpause (int __sig_or_mask, int __is_sig); extern int __sigpause (int __sig_or_mask, int __is_sig);
/* Remove a signal from the signal mask and suspend the process. */ /* Remove a signal from the signal mask and suspend the process. */
@ -164,7 +165,9 @@ extern int __sigpause (int __sig_or_mask, int __is_sig);
simply do not work in many situations. Use `sigprocmask' instead. */ simply do not work in many situations. Use `sigprocmask' instead. */
/* Compute mask for signal SIG. */ /* Compute mask for signal SIG. */
# define sigmask(sig) ((int)(1u << ((sig) - 1))) # define sigmask(sig) \
__glibc_macro_warning ("sigmask is deprecated") \
((int)(1u << ((sig) - 1)))
/* Block signals in MASK, returning the old mask. */ /* Block signals in MASK, returning the old mask. */
extern int sigblock (int __mask) __THROW __attribute_deprecated__; extern int sigblock (int __mask) __THROW __attribute_deprecated__;
@ -281,12 +284,6 @@ extern int sigqueue (__pid_t __pid, int __sig, const union sigval __val)
#ifdef __USE_MISC #ifdef __USE_MISC
/* Names of the signals. This variable exists only for compatibility.
Use `strsignal' instead (see <string.h>). */
extern const char *const _sys_siglist[_NSIG];
extern const char *const sys_siglist[_NSIG];
/* Get machine-dependent `struct sigcontext' and signal subcodes. */ /* Get machine-dependent `struct sigcontext' and signal subcodes. */
# include <bits/sigcontext.h> # include <bits/sigcontext.h>
@ -311,7 +308,8 @@ extern int sigreturn (struct sigcontext *__scp) __THROW;
/* If INTERRUPT is nonzero, make signal SIG interrupt system calls /* If INTERRUPT is nonzero, make signal SIG interrupt system calls
(causing them to fail with EINTR); if INTERRUPT is zero, make system (causing them to fail with EINTR); if INTERRUPT is zero, make system
calls be restarted after signal SIG. */ calls be restarted after signal SIG. */
extern int siginterrupt (int __sig, int __interrupt) __THROW; extern int siginterrupt (int __sig, int __interrupt) __THROW
__attribute_deprecated_msg__ ("Use sigaction with SA_RESTART instead");
# include <bits/sigstack.h> # include <bits/sigstack.h>
# include <bits/ss_flags.h> # include <bits/ss_flags.h>
@ -340,16 +338,21 @@ extern int sigstack (struct sigstack *__ss, struct sigstack *__oss)
/* Simplified interface for signal management. */ /* Simplified interface for signal management. */
/* Add SIG to the calling process' signal mask. */ /* Add SIG to the calling process' signal mask. */
extern int sighold (int __sig) __THROW; extern int sighold (int __sig) __THROW
__attribute_deprecated_msg__ ("Use the sigprocmask function instead");
/* Remove SIG from the calling process' signal mask. */ /* Remove SIG from the calling process' signal mask. */
extern int sigrelse (int __sig) __THROW; extern int sigrelse (int __sig) __THROW
__attribute_deprecated_msg__ ("Use the sigprocmask function instead");
/* Set the disposition of SIG to SIG_IGN. */ /* Set the disposition of SIG to SIG_IGN. */
extern int sigignore (int __sig) __THROW; extern int sigignore (int __sig) __THROW
__attribute_deprecated_msg__ ("Use the signal function instead");
/* Set the disposition of SIG. */ /* Set the disposition of SIG. */
extern __sighandler_t sigset (int __sig, __sighandler_t __disp) __THROW; extern __sighandler_t sigset (int __sig, __sighandler_t __disp) __THROW
__attribute_deprecated_msg__
("Use the signal and sigprocmask functions instead");
#endif #endif
#if defined __USE_POSIX199506 || defined __USE_UNIX98 #if defined __USE_POSIX199506 || defined __USE_UNIX98

View File

@ -400,9 +400,12 @@ extern int sscanf (const char *__restrict __s,
const char *__restrict __format, ...) __THROW; const char *__restrict __format, ...) __THROW;
/* For historical reasons, the C99-compliant versions of the scanf /* For historical reasons, the C99-compliant versions of the scanf
functions are at alternative names. When __LDBL_COMPAT is in functions are at alternative names. When __LDBL_COMPAT or
effect, this is handled in bits/stdio-ldbl.h. */ __LDOUBLE_REDIRECTS_TO_FLOAT128_ABI are in effect, this is handled in
#if !__GLIBC_USE (DEPRECATED_SCANF) && !defined __LDBL_COMPAT bits/stdio-ldbl.h. */
#include <bits/floatn.h>
#if !__GLIBC_USE (DEPRECATED_SCANF) && !defined __LDBL_COMPAT \
&& __LDOUBLE_REDIRECTS_TO_FLOAT128_ABI == 0
# ifdef __REDIRECT # ifdef __REDIRECT
extern int __REDIRECT (fscanf, (FILE *__restrict __stream, extern int __REDIRECT (fscanf, (FILE *__restrict __stream,
const char *__restrict __format, ...), const char *__restrict __format, ...),
@ -447,7 +450,8 @@ extern int vsscanf (const char *__restrict __s,
/* Same redirection as above for the v*scanf family. */ /* Same redirection as above for the v*scanf family. */
# if !__GLIBC_USE (DEPRECATED_SCANF) # if !__GLIBC_USE (DEPRECATED_SCANF)
# if defined __REDIRECT && !defined __LDBL_COMPAT # if defined __REDIRECT && !defined __LDBL_COMPAT \
&& __LDOUBLE_REDIRECTS_TO_FLOAT128_ABI == 0
extern int __REDIRECT (vfscanf, extern int __REDIRECT (vfscanf,
(FILE *__restrict __s, (FILE *__restrict __s,
const char *__restrict __format, __gnuc_va_list __arg), const char *__restrict __format, __gnuc_va_list __arg),
@ -562,7 +566,7 @@ extern int putw (int __w, FILE *__stream);
This function is a possible cancellation point and therefore not This function is a possible cancellation point and therefore not
marked with __THROW. */ marked with __THROW. */
extern char *fgets (char *__restrict __s, int __n, FILE *__restrict __stream) extern char *fgets (char *__restrict __s, int __n, FILE *__restrict __stream)
__wur; __wur __attr_access ((__write_only__, 1, 2));
#if __GLIBC_USE (DEPRECATED_GETS) #if __GLIBC_USE (DEPRECATED_GETS)
/* Get a newline-terminated string from stdin, removing the newline. /* Get a newline-terminated string from stdin, removing the newline.
@ -585,7 +589,8 @@ extern char *gets (char *__s) __wur __attribute_deprecated__;
or due to the implementation it is a cancellation point and or due to the implementation it is a cancellation point and
therefore not marked with __THROW. */ therefore not marked with __THROW. */
extern char *fgets_unlocked (char *__restrict __s, int __n, extern char *fgets_unlocked (char *__restrict __s, int __n,
FILE *__restrict __stream) __wur; FILE *__restrict __stream) __wur
__attr_access ((__write_only__, 1, 2));
#endif #endif
@ -774,12 +779,6 @@ extern int ferror_unlocked (FILE *__stream) __THROW __wur;
marked with __THROW. */ marked with __THROW. */
extern void perror (const char *__s); extern void perror (const char *__s);
/* Provide the declarations for `sys_errlist' and `sys_nerr' if they
are available on this system. Even if available, these variables
should not be used directly. The `strerror' function provides
all the necessary functionality. */
#include <bits/sys_errlist.h>
#ifdef __USE_POSIX #ifdef __USE_POSIX
/* Return the system file descriptor for STREAM. */ /* Return the system file descriptor for STREAM. */
@ -866,7 +865,9 @@ extern int __overflow (FILE *, int);
#if __USE_FORTIFY_LEVEL > 0 && defined __fortify_function #if __USE_FORTIFY_LEVEL > 0 && defined __fortify_function
# include <bits/stdio2.h> # include <bits/stdio2.h>
#endif #endif
#ifdef __LDBL_COMPAT
#include <bits/floatn.h>
#if defined __LDBL_COMPAT || __LDOUBLE_REDIRECTS_TO_FLOAT128_ABI == 1
# include <bits/stdio-ldbl.h> # include <bits/stdio-ldbl.h>
#endif #endif

View File

@ -397,7 +397,7 @@ extern long int a64l (const char *__s)
`initstate' and `setstate' functions are those from BSD Unices. `initstate' and `setstate' functions are those from BSD Unices.
The `rand' and `srand' functions are required by the ANSI standard. The `rand' and `srand' functions are required by the ANSI standard.
We provide both interfaces to the same random number generator. */ We provide both interfaces to the same random number generator. */
/* Return a random long integer between 0 and RAND_MAX inclusive. */ /* Return a random long integer between 0 and 2^31-1 inclusive. */
extern long int random (void) __THROW; extern long int random (void) __THROW;
/* Seed the random number generator with the given number. */ /* Seed the random number generator with the given number. */
@ -931,12 +931,13 @@ extern int wctomb (char *__s, wchar_t __wchar) __THROW;
/* Convert a multibyte string to a wide char string. */ /* Convert a multibyte string to a wide char string. */
extern size_t mbstowcs (wchar_t *__restrict __pwcs, extern size_t mbstowcs (wchar_t *__restrict __pwcs,
const char *__restrict __s, size_t __n) __THROW; const char *__restrict __s, size_t __n) __THROW
__attr_access ((__read_only__, 2));
/* Convert a wide char string to multibyte string. */ /* Convert a wide char string to multibyte string. */
extern size_t wcstombs (char *__restrict __s, extern size_t wcstombs (char *__restrict __s,
const wchar_t *__restrict __pwcs, size_t __n) const wchar_t *__restrict __pwcs, size_t __n)
__THROW; __THROW
__attr_access ((__write_only__, 1, 3)) __attr_access ((__read_only__, 2));
#ifdef __USE_MISC #ifdef __USE_MISC
/* Determine whether the string value of RESPONSE matches the affirmation /* Determine whether the string value of RESPONSE matches the affirmation
@ -990,7 +991,7 @@ extern char *ptsname (int __fd) __THROW __wur;
terminal associated with the master FD is open on in BUF. terminal associated with the master FD is open on in BUF.
Return 0 on success, otherwise an error number. */ Return 0 on success, otherwise an error number. */
extern int ptsname_r (int __fd, char *__buf, size_t __buflen) extern int ptsname_r (int __fd, char *__buf, size_t __buflen)
__THROW __nonnull ((2)); __THROW __nonnull ((2)) __attr_access ((__write_only__, 2, 3));
/* Open a master pseudo terminal and return its file descriptor. */ /* Open a master pseudo terminal and return its file descriptor. */
extern int getpt (void); extern int getpt (void);
@ -1016,7 +1017,9 @@ extern int ttyslot (void) __THROW;
#if __USE_FORTIFY_LEVEL > 0 && defined __fortify_function #if __USE_FORTIFY_LEVEL > 0 && defined __fortify_function
# include <bits/stdlib.h> # include <bits/stdlib.h>
#endif #endif
#ifdef __LDBL_COMPAT
#include <bits/floatn.h>
#if defined __LDBL_COMPAT || __LDOUBLE_REDIRECTS_TO_FLOAT128_ABI == 1
# include <bits/stdlib-ldbl.h> # include <bits/stdlib-ldbl.h>
#endif #endif

View File

@ -53,7 +53,7 @@ extern void *memmove (void *__dest, const void *__src, size_t __n)
#if defined __USE_MISC || defined __USE_XOPEN || __GLIBC_USE (ISOC2X) #if defined __USE_MISC || defined __USE_XOPEN || __GLIBC_USE (ISOC2X)
extern void *memccpy (void *__restrict __dest, const void *__restrict __src, extern void *memccpy (void *__restrict __dest, const void *__restrict __src,
int __c, size_t __n) int __c, size_t __n)
__THROW __nonnull ((1, 2)); __THROW __nonnull ((1, 2)) __attr_access ((__write_only__, 1, 4));
#endif /* Misc || X/Open. */ #endif /* Misc || X/Open. */
@ -108,12 +108,15 @@ extern void *rawmemchr (const void *__s, int __c)
/* Search N bytes of S for the final occurrence of C. */ /* Search N bytes of S for the final occurrence of C. */
# ifdef __CORRECT_ISO_CPP_STRING_H_PROTO # ifdef __CORRECT_ISO_CPP_STRING_H_PROTO
extern "C++" void *memrchr (void *__s, int __c, size_t __n) extern "C++" void *memrchr (void *__s, int __c, size_t __n)
__THROW __asm ("memrchr") __attribute_pure__ __nonnull ((1)); __THROW __asm ("memrchr") __attribute_pure__ __nonnull ((1))
__attr_access ((__read_only__, 1, 3));
extern "C++" const void *memrchr (const void *__s, int __c, size_t __n) extern "C++" const void *memrchr (const void *__s, int __c, size_t __n)
__THROW __asm ("memrchr") __attribute_pure__ __nonnull ((1)); __THROW __asm ("memrchr") __attribute_pure__ __nonnull ((1))
__attr_access ((__read_only__, 1, 3));
# else # else
extern void *memrchr (const void *__s, int __c, size_t __n) extern void *memrchr (const void *__s, int __c, size_t __n)
__THROW __attribute_pure__ __nonnull ((1)); __THROW __attribute_pure__ __nonnull ((1))
__attr_access ((__read_only__, 1, 3));
# endif # endif
#endif #endif
@ -146,7 +149,7 @@ extern int strcoll (const char *__s1, const char *__s2)
/* Put a transformation of SRC into no more than N bytes of DEST. */ /* Put a transformation of SRC into no more than N bytes of DEST. */
extern size_t strxfrm (char *__restrict __dest, extern size_t strxfrm (char *__restrict __dest,
const char *__restrict __src, size_t __n) const char *__restrict __src, size_t __n)
__THROW __nonnull ((2)); __THROW __nonnull ((2)) __attr_access ((__write_only__, 1, 3));
#ifdef __USE_XOPEN2K8 #ifdef __USE_XOPEN2K8
/* POSIX.1-2008 extended locale interface (see locale.h). */ /* POSIX.1-2008 extended locale interface (see locale.h). */
@ -158,7 +161,8 @@ extern int strcoll_l (const char *__s1, const char *__s2, locale_t __l)
/* Put a transformation of SRC into no more than N bytes of DEST, /* Put a transformation of SRC into no more than N bytes of DEST,
using sorting rules from L. */ using sorting rules from L. */
extern size_t strxfrm_l (char *__dest, const char *__src, size_t __n, extern size_t strxfrm_l (char *__dest, const char *__src, size_t __n,
locale_t __l) __THROW __nonnull ((2, 4)); locale_t __l) __THROW __nonnull ((2, 4))
__attr_access ((__write_only__, 1, 3));
#endif #endif
#if (defined __USE_XOPEN_EXTENDED || defined __USE_XOPEN2K8 \ #if (defined __USE_XOPEN_EXTENDED || defined __USE_XOPEN2K8 \
@ -368,7 +372,9 @@ extern char *strcasestr (const char *__haystack, const char *__needle)
HAYSTACK is HAYSTACKLEN bytes long. */ HAYSTACK is HAYSTACKLEN bytes long. */
extern void *memmem (const void *__haystack, size_t __haystacklen, extern void *memmem (const void *__haystack, size_t __haystacklen,
const void *__needle, size_t __needlelen) const void *__needle, size_t __needlelen)
__THROW __attribute_pure__ __nonnull ((1, 3)); __THROW __attribute_pure__ __nonnull ((1, 3))
__attr_access ((__read_only__, 1, 2))
__attr_access ((__read_only__, 3, 4));
/* Copy N bytes of SRC to DEST, return pointer to bytes after the /* Copy N bytes of SRC to DEST, return pointer to bytes after the
last written byte. */ last written byte. */
@ -409,17 +415,25 @@ extern char *strerror (int __errnum) __THROW;
# ifdef __REDIRECT_NTH # ifdef __REDIRECT_NTH
extern int __REDIRECT_NTH (strerror_r, extern int __REDIRECT_NTH (strerror_r,
(int __errnum, char *__buf, size_t __buflen), (int __errnum, char *__buf, size_t __buflen),
__xpg_strerror_r) __nonnull ((2)); __xpg_strerror_r) __nonnull ((2))
__attr_access ((__write_only__, 2, 3));
# else # else
extern int __xpg_strerror_r (int __errnum, char *__buf, size_t __buflen) extern int __xpg_strerror_r (int __errnum, char *__buf, size_t __buflen)
__THROW __nonnull ((2)); __THROW __nonnull ((2)) __attr_access ((__write_only__, 2, 3));
# define strerror_r __xpg_strerror_r # define strerror_r __xpg_strerror_r
# endif # endif
# else # else
/* If a temporary buffer is required, at most BUFLEN bytes of BUF will be /* If a temporary buffer is required, at most BUFLEN bytes of BUF will be
used. */ used. */
extern char *strerror_r (int __errnum, char *__buf, size_t __buflen) extern char *strerror_r (int __errnum, char *__buf, size_t __buflen)
__THROW __nonnull ((2)) __wur; __THROW __nonnull ((2)) __wur __attr_access ((__write_only__, 2, 3));
# endif
# ifdef __USE_GNU
/* Return a string describing the meaning of tthe error in ERR. */
extern const char *strerrordesc_np (int __err) __THROW;
/* Return a string with the error name in ERR. */
extern const char *strerrorname_np (int __err) __THROW;
# endif # endif
#endif #endif
@ -433,7 +447,8 @@ extern char *strerror_l (int __errnum, locale_t __l) __THROW;
/* Set N bytes of S to 0. The compiler will not delete a call to this /* Set N bytes of S to 0. The compiler will not delete a call to this
function, even if S is dead after the call. */ function, even if S is dead after the call. */
extern void explicit_bzero (void *__s, size_t __n) __THROW __nonnull ((1)); extern void explicit_bzero (void *__s, size_t __n) __THROW __nonnull ((1))
__attr_access ((__write_only__, 1, 2));
/* Return the next DELIM-delimited token from *STRINGP, /* Return the next DELIM-delimited token from *STRINGP,
terminating it with a '\0', and update *STRINGP to point past it. */ terminating it with a '\0', and update *STRINGP to point past it. */
@ -446,6 +461,14 @@ extern char *strsep (char **__restrict __stringp,
/* Return a string describing the meaning of the signal number in SIG. */ /* Return a string describing the meaning of the signal number in SIG. */
extern char *strsignal (int __sig) __THROW; extern char *strsignal (int __sig) __THROW;
# ifdef __USE_GNU
/* Return an abbreviation string for the signal number SIG. */
extern const char *sigabbrev_np (int __sig) __THROW;
/* Return a string describing the meaning of the signal number in SIG,
the result is not translated. */
extern const char *sigdescr_np (int __sig) __THROW;
# endif
/* Copy SRC to DEST, returning the address of the terminating '\0' in DEST. */ /* Copy SRC to DEST, returning the address of the terminating '\0' in DEST. */
extern char *__stpcpy (char *__restrict __dest, const char *__restrict __src) extern char *__stpcpy (char *__restrict __dest, const char *__restrict __src)
__THROW __nonnull ((1, 2)); __THROW __nonnull ((1, 2));
@ -471,7 +494,8 @@ extern int strverscmp (const char *__s1, const char *__s2)
extern char *strfry (char *__string) __THROW __nonnull ((1)); extern char *strfry (char *__string) __THROW __nonnull ((1));
/* Frobnicate N bytes of S. */ /* Frobnicate N bytes of S. */
extern void *memfrob (void *__s, size_t __n) __THROW __nonnull ((1)); extern void *memfrob (void *__s, size_t __n) __THROW __nonnull ((1))
__attr_access ((__write_only__, 1, 2));
# ifndef basename # ifndef basename
/* Return the file name within directory of FILENAME. We don't /* Return the file name within directory of FILENAME. We don't

View File

@ -452,7 +452,37 @@
#include <bits/wordsize.h> #include <bits/wordsize.h>
#include <bits/long-double.h> #include <bits/long-double.h>
#if defined __LONG_DOUBLE_MATH_OPTIONAL && defined __NO_LONG_DOUBLE_MATH #if __LDOUBLE_REDIRECTS_TO_FLOAT128_ABI == 1
# ifdef __REDIRECT
/* Alias name defined automatically. */
# define __LDBL_REDIR(name, proto) ... unused__ldbl_redir
# define __LDBL_REDIR_DECL(name) \
extern __typeof (name) name __asm (__ASMNAME ("__" #name "ieee128"));
/* Alias name defined automatically, with leading underscores. */
# define __LDBL_REDIR2_DECL(name) \
extern __typeof (__##name) __##name \
__asm (__ASMNAME ("__" #name "ieee128"));
/* Alias name defined manually. */
# define __LDBL_REDIR1(name, proto, alias) ... unused__ldbl_redir1
# define __LDBL_REDIR1_DECL(name, alias) \
extern __typeof (name) name __asm (__ASMNAME (#alias));
# define __LDBL_REDIR1_NTH(name, proto, alias) \
__REDIRECT_NTH (name, proto, alias)
# define __REDIRECT_NTH_LDBL(name, proto, alias) \
__LDBL_REDIR1_NTH (name, proto, __##alias##ieee128)
/* Unused. */
# define __REDIRECT_LDBL(name, proto, alias) ... unused__redirect_ldbl
# define __LDBL_REDIR_NTH(name, proto) ... unused__ldbl_redir_nth
# else
_Static_assert (0, "IEEE 128-bits long double requires redirection on this platform");
# endif
#elif defined __LONG_DOUBLE_MATH_OPTIONAL && defined __NO_LONG_DOUBLE_MATH
# define __LDBL_COMPAT 1 # define __LDBL_COMPAT 1
# ifdef __REDIRECT # ifdef __REDIRECT
# define __LDBL_REDIR1(name, proto, alias) __REDIRECT (name, proto, alias) # define __LDBL_REDIR1(name, proto, alias) __REDIRECT (name, proto, alias)
@ -461,6 +491,8 @@
# define __LDBL_REDIR1_NTH(name, proto, alias) __REDIRECT_NTH (name, proto, alias) # define __LDBL_REDIR1_NTH(name, proto, alias) __REDIRECT_NTH (name, proto, alias)
# define __LDBL_REDIR_NTH(name, proto) \ # define __LDBL_REDIR_NTH(name, proto) \
__LDBL_REDIR1_NTH (name, proto, __nldbl_##name) __LDBL_REDIR1_NTH (name, proto, __nldbl_##name)
# define __LDBL_REDIR2_DECL(name) \
extern __typeof (__##name) __##name __asm (__ASMNAME ("__nldbl___" #name));
# define __LDBL_REDIR1_DECL(name, alias) \ # define __LDBL_REDIR1_DECL(name, alias) \
extern __typeof (name) name __asm (__ASMNAME (#alias)); extern __typeof (name) name __asm (__ASMNAME (#alias));
# define __LDBL_REDIR_DECL(name) \ # define __LDBL_REDIR_DECL(name) \
@ -471,11 +503,13 @@
__LDBL_REDIR1_NTH (name, proto, __nldbl_##alias) __LDBL_REDIR1_NTH (name, proto, __nldbl_##alias)
# endif # endif
#endif #endif
#if !defined __LDBL_COMPAT || !defined __REDIRECT #if (!defined __LDBL_COMPAT && __LDOUBLE_REDIRECTS_TO_FLOAT128_ABI == 0) \
|| !defined __REDIRECT
# define __LDBL_REDIR1(name, proto, alias) name proto # define __LDBL_REDIR1(name, proto, alias) name proto
# define __LDBL_REDIR(name, proto) name proto # define __LDBL_REDIR(name, proto) name proto
# define __LDBL_REDIR1_NTH(name, proto, alias) name proto __THROW # define __LDBL_REDIR1_NTH(name, proto, alias) name proto __THROW
# define __LDBL_REDIR_NTH(name, proto) name proto __THROW # define __LDBL_REDIR_NTH(name, proto) name proto __THROW
# define __LDBL_REDIR2_DECL(name)
# define __LDBL_REDIR_DECL(name) # define __LDBL_REDIR_DECL(name)
# ifdef __REDIRECT # ifdef __REDIRECT
# define __REDIRECT_LDBL(name, proto, alias) __REDIRECT (name, proto, alias) # define __REDIRECT_LDBL(name, proto, alias) __REDIRECT (name, proto, alias)
@ -514,4 +548,15 @@
# define __HAVE_GENERIC_SELECTION 0 # define __HAVE_GENERIC_SELECTION 0
#endif #endif
#if __GNUC_PREREQ (10, 0)
/* Designates a 1-based positional argument ref-index of pointer type
that can be used to access size-index elements of the pointed-to
array according to access mode, or at least one element when
size-index is not provided:
access (access-mode, <ref-index> [, <size-index>]) */
#define __attr_access(x) __attribute__ ((__access__ x))
#else
# define __attr_access(x)
#endif
#endif /* sys/cdefs.h */ #endif /* sys/cdefs.h */

View File

@ -25,6 +25,7 @@
/* Flags for use with getrandom. */ /* Flags for use with getrandom. */
#define GRND_NONBLOCK 0x01 #define GRND_NONBLOCK 0x01
#define GRND_RANDOM 0x02 #define GRND_RANDOM 0x02
#define GRND_INSECURE 0x04
__BEGIN_DECLS __BEGIN_DECLS

View File

@ -1,5 +1,5 @@
/* Define where padding goes in struct msqid_ds. SPARC version. /* Support for single-thread optimizations.
Copyright (C) 2018-2020 Free Software Foundation, Inc. Copyright (C) 2020 Free Software Foundation, Inc.
This file is part of the GNU C Library. This file is part of the GNU C Library.
The GNU C Library is free software; you can redistribute it and/or The GNU C Library is free software; you can redistribute it and/or
@ -16,11 +16,18 @@
License along with the GNU C Library; if not, see License along with the GNU C Library; if not, see
<https://www.gnu.org/licenses/>. */ <https://www.gnu.org/licenses/>. */
#ifndef _SYS_MSG_H #ifndef _SYS_SINGLE_THREADED_H
# error "Never use <bits/msq-pad.h> directly; include <sys/msg.h> instead." #define _SYS_SINGLE_THREADED_H
#endif
#include <bits/timesize.h> #include <features.h>
#define __MSQ_PAD_AFTER_TIME 0 __BEGIN_DECLS
#define __MSQ_PAD_BEFORE_TIME (__TIMESIZE == 32)
/* If this variable is non-zero, then the current thread is the only
thread in the process image. If it is zero, the process might be
multi-threaded. */
extern char __libc_single_threaded;
__END_DECLS
#endif /* _SYS_SINGLE_THREADED_H */

View File

@ -1,76 +0,0 @@
/* Copyright (C) 1996-2020 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
<https://www.gnu.org/licenses/>. */
#ifndef _SYS_SYSCTL_H
#define _SYS_SYSCTL_H 1
#warning "The <sys/sysctl.h> header is deprecated and will be removed."
#include <features.h>
#define __need_size_t
#include <stddef.h>
/* Prevent more kernel headers than necessary to be included. */
#ifndef _LINUX_KERNEL_H
# define _LINUX_KERNEL_H 1
# define __undef_LINUX_KERNEL_H
#endif
#ifndef _LINUX_TYPES_H
# define _LINUX_TYPES_H 1
# define __undef_LINUX_TYPES_H
#endif
#ifndef _LINUX_LIST_H
# define _LINUX_LIST_H 1
# define __undef_LINUX_LIST_H
#endif
#ifndef __LINUX_COMPILER_H
# define __LINUX_COMPILER_H 1
# define __user
# define __undef__LINUX_COMPILER_H
#endif
#include <linux/sysctl.h>
#ifdef __undef_LINUX_KERNEL_H
# undef _LINUX_KERNEL_H
# undef __undef_LINUX_KERNEL_H
#endif
#ifdef __undef_LINUX_TYPES_H
# undef _LINUX_TYPES_H
# undef __undef_LINUX_TYPES_H
#endif
#ifdef __undef_LINUX_LIST_H
# undef _LINUX_LIST_H
# undef __undef_LINUX_LIST_H
#endif
#ifdef __undef__LINUX_COMPILER_H
# undef __LINUX_COMPILER_H
# undef __user
# undef __undef__LINUX_COMPILER_H
#endif
#include <bits/sysctl.h>
__BEGIN_DECLS
/* Read or write system parameters. */
extern int sysctl (int *__name, int __nlen, void *__oldval,
size_t *__oldlenp, void *__newval, size_t __newlen) __THROW
__attribute_deprecated__;
__END_DECLS
#endif /* _SYS_SYSCTL_H */

View File

@ -206,7 +206,9 @@ extern void vsyslog (int __pri, const char *__fmt, __gnuc_va_list __ap)
#if __USE_FORTIFY_LEVEL > 0 && defined __fortify_function #if __USE_FORTIFY_LEVEL > 0 && defined __fortify_function
# include <bits/syslog.h> # include <bits/syslog.h>
#endif #endif
#ifdef __LDBL_COMPAT
#include <bits/floatn.h>
#if defined __LDBL_COMPAT || __LDOUBLE_REDIRECTS_TO_FLOAT128_ABI == 1
# include <bits/syslog-ldbl.h> # include <bits/syslog-ldbl.h>
#endif #endif

View File

@ -24,7 +24,7 @@
__BEGIN_DECLS __BEGIN_DECLS
#include <bits/pthreadtypes-arch.h> #include <bits/thread-shared-types.h>
#include <bits/types/struct_timespec.h> #include <bits/types/struct_timespec.h>
#ifndef __cplusplus #ifndef __cplusplus
@ -32,10 +32,10 @@ __BEGIN_DECLS
#endif #endif
#define TSS_DTOR_ITERATIONS 4 #define TSS_DTOR_ITERATIONS 4
typedef unsigned int tss_t; typedef __tss_t tss_t;
typedef void (*tss_dtor_t) (void*); typedef void (*tss_dtor_t) (void*);
typedef unsigned long int thrd_t; typedef __thrd_t thrd_t;
typedef int (*thrd_start_t) (void*); typedef int (*thrd_start_t) (void*);
/* Exit and error codes. */ /* Exit and error codes. */
@ -56,11 +56,8 @@ enum
mtx_timed = 2 mtx_timed = 2
}; };
typedef struct typedef __once_flag once_flag;
{ #define ONCE_FLAG_INIT __ONCE_FLAG_INIT
int __data __ONCE_ALIGNMENT;
} once_flag;
#define ONCE_FLAG_INIT { 0 }
typedef union typedef union
{ {

View File

@ -357,13 +357,15 @@ extern int close (int __fd);
This function is a cancellation point and therefore not marked with This function is a cancellation point and therefore not marked with
__THROW. */ __THROW. */
extern ssize_t read (int __fd, void *__buf, size_t __nbytes) __wur; extern ssize_t read (int __fd, void *__buf, size_t __nbytes) __wur
__attr_access ((__write_only__, 2, 3));
/* Write N bytes of BUF to FD. Return the number written, or -1. /* Write N bytes of BUF to FD. Return the number written, or -1.
This function is a cancellation point and therefore not marked with This function is a cancellation point and therefore not marked with
__THROW. */ __THROW. */
extern ssize_t write (int __fd, const void *__buf, size_t __n) __wur; extern ssize_t write (int __fd, const void *__buf, size_t __n) __wur
__attr_access ((__read_only__, 2, 3));
#if defined __USE_UNIX98 || defined __USE_XOPEN2K8 #if defined __USE_UNIX98 || defined __USE_XOPEN2K8
# ifndef __USE_FILE_OFFSET64 # ifndef __USE_FILE_OFFSET64
@ -374,7 +376,8 @@ extern ssize_t write (int __fd, const void *__buf, size_t __n) __wur;
This function is a cancellation point and therefore not marked with This function is a cancellation point and therefore not marked with
__THROW. */ __THROW. */
extern ssize_t pread (int __fd, void *__buf, size_t __nbytes, extern ssize_t pread (int __fd, void *__buf, size_t __nbytes,
__off_t __offset) __wur; __off_t __offset) __wur
__attr_access ((__write_only__, 2, 3));
/* Write N bytes of BUF to FD at the given position OFFSET without /* Write N bytes of BUF to FD at the given position OFFSET without
changing the file pointer. Return the number written, or -1. changing the file pointer. Return the number written, or -1.
@ -382,15 +385,19 @@ extern ssize_t pread (int __fd, void *__buf, size_t __nbytes,
This function is a cancellation point and therefore not marked with This function is a cancellation point and therefore not marked with
__THROW. */ __THROW. */
extern ssize_t pwrite (int __fd, const void *__buf, size_t __n, extern ssize_t pwrite (int __fd, const void *__buf, size_t __n,
__off_t __offset) __wur; __off_t __offset) __wur
__attr_access ((__read_only__, 2, 3));
# else # else
# ifdef __REDIRECT # ifdef __REDIRECT
extern ssize_t __REDIRECT (pread, (int __fd, void *__buf, size_t __nbytes, extern ssize_t __REDIRECT (pread, (int __fd, void *__buf, size_t __nbytes,
__off64_t __offset), __off64_t __offset),
pread64) __wur; pread64) __wur
__attr_access ((__write_only__, 2, 3));
extern ssize_t __REDIRECT (pwrite, (int __fd, const void *__buf, extern ssize_t __REDIRECT (pwrite, (int __fd, const void *__buf,
size_t __nbytes, __off64_t __offset), size_t __nbytes, __off64_t __offset),
pwrite64) __wur; pwrite64) __wur
__attr_access ((__read_only__, 2, 3));
# else # else
# define pread pread64 # define pread pread64
# define pwrite pwrite64 # define pwrite pwrite64
@ -402,11 +409,13 @@ extern ssize_t __REDIRECT (pwrite, (int __fd, const void *__buf,
changing the file pointer. Return the number read, -1 for errors changing the file pointer. Return the number read, -1 for errors
or 0 for EOF. */ or 0 for EOF. */
extern ssize_t pread64 (int __fd, void *__buf, size_t __nbytes, extern ssize_t pread64 (int __fd, void *__buf, size_t __nbytes,
__off64_t __offset) __wur; __off64_t __offset) __wur
__attr_access ((__write_only__, 2, 3));
/* Write N bytes of BUF to FD at the given position OFFSET without /* Write N bytes of BUF to FD at the given position OFFSET without
changing the file pointer. Return the number written, or -1. */ changing the file pointer. Return the number written, or -1. */
extern ssize_t pwrite64 (int __fd, const void *__buf, size_t __n, extern ssize_t pwrite64 (int __fd, const void *__buf, size_t __n,
__off64_t __offset) __wur; __off64_t __offset) __wur
__attr_access ((__read_only__, 2, 3));
# endif # endif
#endif #endif
@ -508,7 +517,8 @@ extern int fchdir (int __fd) __THROW __wur;
an array is allocated with `malloc'; the array is SIZE an array is allocated with `malloc'; the array is SIZE
bytes long, unless SIZE == 0, in which case it is as bytes long, unless SIZE == 0, in which case it is as
big as necessary. */ big as necessary. */
extern char *getcwd (char *__buf, size_t __size) __THROW __wur; extern char *getcwd (char *__buf, size_t __size) __THROW __wur
__attr_access ((__write_only__, 1, 2));
#ifdef __USE_GNU #ifdef __USE_GNU
/* Return a malloc'd string containing the current directory name. /* Return a malloc'd string containing the current directory name.
@ -523,7 +533,8 @@ extern char *get_current_dir_name (void) __THROW;
If successful, return BUF. If not, put an error message in If successful, return BUF. If not, put an error message in
BUF and return NULL. BUF should be at least PATH_MAX bytes long. */ BUF and return NULL. BUF should be at least PATH_MAX bytes long. */
extern char *getwd (char *__buf) extern char *getwd (char *__buf)
__THROW __nonnull ((1)) __attribute_deprecated__ __wur; __THROW __nonnull ((1)) __attribute_deprecated__ __wur
__attr_access ((__write_only__, 1));
#endif #endif
@ -620,7 +631,8 @@ extern long int sysconf (int __name) __THROW;
#ifdef __USE_POSIX2 #ifdef __USE_POSIX2
/* Get the value of the string-valued system variable NAME. */ /* Get the value of the string-valued system variable NAME. */
extern size_t confstr (int __name, char *__buf, size_t __len) __THROW; extern size_t confstr (int __name, char *__buf, size_t __len) __THROW
__attr_access ((__write_only__, 2, 3));
#endif #endif
@ -686,8 +698,8 @@ extern __gid_t getegid (void) __THROW;
/* If SIZE is zero, return the number of supplementary groups /* If SIZE is zero, return the number of supplementary groups
the calling process is in. Otherwise, fill in the group IDs the calling process is in. Otherwise, fill in the group IDs
of its supplementary groups in LIST and return the number written. */ of its supplementary groups in LIST and return the number written. */
extern int getgroups (int __size, __gid_t __list[]) __THROW __wur; extern int getgroups (int __size, __gid_t __list[]) __THROW __wur
__attr_access ((__write_only__, 2, 1));
#ifdef __USE_GNU #ifdef __USE_GNU
/* Return nonzero iff the calling process is in group GID. */ /* Return nonzero iff the calling process is in group GID. */
extern int group_member (__gid_t __gid) __THROW; extern int group_member (__gid_t __gid) __THROW;
@ -772,7 +784,7 @@ extern char *ttyname (int __fd) __THROW;
/* Store at most BUFLEN characters of the pathname of the terminal FD is /* Store at most BUFLEN characters of the pathname of the terminal FD is
open on in BUF. Return 0 on success, otherwise an error number. */ open on in BUF. Return 0 on success, otherwise an error number. */
extern int ttyname_r (int __fd, char *__buf, size_t __buflen) extern int ttyname_r (int __fd, char *__buf, size_t __buflen)
__THROW __nonnull ((2)) __wur; __THROW __nonnull ((2)) __wur __attr_access ((__write_only__, 2, 3));
/* Return 1 if FD is a valid descriptor associated /* Return 1 if FD is a valid descriptor associated
with a terminal, zero if not. */ with a terminal, zero if not. */
@ -807,7 +819,8 @@ extern int symlink (const char *__from, const char *__to)
Returns the number of characters read, or -1 for errors. */ Returns the number of characters read, or -1 for errors. */
extern ssize_t readlink (const char *__restrict __path, extern ssize_t readlink (const char *__restrict __path,
char *__restrict __buf, size_t __len) char *__restrict __buf, size_t __len)
__THROW __nonnull ((1, 2)) __wur; __THROW __nonnull ((1, 2)) __wur __attr_access ((__write_only__, 2, 3));
#endif /* Use POSIX.1-2001. */ #endif /* Use POSIX.1-2001. */
#ifdef __USE_ATFILE #ifdef __USE_ATFILE
@ -818,7 +831,7 @@ extern int symlinkat (const char *__from, int __tofd,
/* Like readlink but a relative PATH is interpreted relative to FD. */ /* Like readlink but a relative PATH is interpreted relative to FD. */
extern ssize_t readlinkat (int __fd, const char *__restrict __path, extern ssize_t readlinkat (int __fd, const char *__restrict __path,
char *__restrict __buf, size_t __len) char *__restrict __buf, size_t __len)
__THROW __nonnull ((2, 3)) __wur; __THROW __nonnull ((2, 3)) __wur __attr_access ((__read_only__, 3, 4));
#endif #endif
/* Remove the link NAME. */ /* Remove the link NAME. */
@ -853,7 +866,8 @@ extern char *getlogin (void);
This function is a possible cancellation point and therefore not This function is a possible cancellation point and therefore not
marked with __THROW. */ marked with __THROW. */
extern int getlogin_r (char *__name, size_t __name_len) __nonnull ((1)); extern int getlogin_r (char *__name, size_t __name_len) __nonnull ((1))
__attr_access ((__write_only__, 1, 2));
#endif #endif
#ifdef __USE_MISC #ifdef __USE_MISC
@ -874,7 +888,8 @@ extern int setlogin (const char *__name) __THROW __nonnull ((1));
/* Put the name of the current host in no more than LEN bytes of NAME. /* Put the name of the current host in no more than LEN bytes of NAME.
The result is null-terminated if LEN is large enough for the full The result is null-terminated if LEN is large enough for the full
name and the terminator. */ name and the terminator. */
extern int gethostname (char *__name, size_t __len) __THROW __nonnull ((1)); extern int gethostname (char *__name, size_t __len) __THROW __nonnull ((1))
__attr_access ((__write_only__, 1, 2));
#endif #endif
@ -882,7 +897,7 @@ extern int gethostname (char *__name, size_t __len) __THROW __nonnull ((1));
/* Set the name of the current host to NAME, which is LEN bytes long. /* Set the name of the current host to NAME, which is LEN bytes long.
This call is restricted to the super-user. */ This call is restricted to the super-user. */
extern int sethostname (const char *__name, size_t __len) extern int sethostname (const char *__name, size_t __len)
__THROW __nonnull ((1)) __wur; __THROW __nonnull ((1)) __wur __attr_access ((__read_only__, 1, 2));
/* Set the current machine's Internet number to ID. /* Set the current machine's Internet number to ID.
This call is restricted to the super-user. */ This call is restricted to the super-user. */
@ -893,10 +908,9 @@ extern int sethostid (long int __id) __THROW __wur;
Called just like `gethostname' and `sethostname'. Called just like `gethostname' and `sethostname'.
The NIS domain name is usually the empty string when not using NIS. */ The NIS domain name is usually the empty string when not using NIS. */
extern int getdomainname (char *__name, size_t __len) extern int getdomainname (char *__name, size_t __len)
__THROW __nonnull ((1)) __wur; __THROW __nonnull ((1)) __wur __attr_access ((__write_only__, 1, 2));
extern int setdomainname (const char *__name, size_t __len) extern int setdomainname (const char *__name, size_t __len)
__THROW __nonnull ((1)) __wur; __THROW __nonnull ((1)) __wur __attr_access ((__read_only__, 1, 2));
/* Revoke access permissions to all processes currently communicating /* Revoke access permissions to all processes currently communicating
with the control terminal, and then send a SIGHUP signal to the process with the control terminal, and then send a SIGHUP signal to the process
@ -1131,7 +1145,9 @@ extern char *crypt (const char *__key, const char *__salt)
range [FROM - N + 1, FROM - 1]. If N is odd the first byte in FROM range [FROM - N + 1, FROM - 1]. If N is odd the first byte in FROM
is without partner. */ is without partner. */
extern void swab (const void *__restrict __from, void *__restrict __to, extern void swab (const void *__restrict __from, void *__restrict __to,
ssize_t __n) __THROW __nonnull ((1, 2)); ssize_t __n) __THROW __nonnull ((1, 2))
__attr_access ((__read_only__, 1, 3))
__attr_access ((__write_only__, 2, 3));
#endif #endif
@ -1158,7 +1174,8 @@ extern int pthread_atfork (void (*__prepare) (void),
#ifdef __USE_MISC #ifdef __USE_MISC
/* Write LENGTH bytes of randomness starting at BUFFER. Return 0 on /* Write LENGTH bytes of randomness starting at BUFFER. Return 0 on
success or -1 on error. */ success or -1 on error. */
int getentropy (void *__buffer, size_t __length) __wur; int getentropy (void *__buffer, size_t __length) __wur
__attr_access ((__write_only__, 1, 2));
#endif #endif
/* Define some macros helping to catch buffer overflows. */ /* Define some macros helping to catch buffer overflows. */

View File

@ -633,9 +633,11 @@ extern int swscanf (const wchar_t *__restrict __s,
__THROW /* __attribute__ ((__format__ (__wscanf__, 2, 3))) */; __THROW /* __attribute__ ((__format__ (__wscanf__, 2, 3))) */;
/* For historical reasons, the C99-compliant versions of the scanf /* For historical reasons, the C99-compliant versions of the scanf
functions are at alternative names. When __LDBL_COMPAT is in functions are at alternative names. When __LDBL_COMPAT or
effect, this is handled in bits/wchar-ldbl.h. */ __LDOUBLE_REDIRECTS_TO_FLOAT128_ABI are in effect, this is handled in
#if !__GLIBC_USE (DEPRECATED_SCANF) && !defined __LDBL_COMPAT bits/wchar-ldbl.h. */
#if !__GLIBC_USE (DEPRECATED_SCANF) && !defined __LDBL_COMPAT \
&& __LDOUBLE_REDIRECTS_TO_FLOAT128_ABI == 0
# ifdef __REDIRECT # ifdef __REDIRECT
extern int __REDIRECT (fwscanf, (__FILE *__restrict __stream, extern int __REDIRECT (fwscanf, (__FILE *__restrict __stream,
const wchar_t *__restrict __format, ...), const wchar_t *__restrict __format, ...),
@ -688,7 +690,8 @@ extern int vswscanf (const wchar_t *__restrict __s,
/* Same redirection as above for the v*wscanf family. */ /* Same redirection as above for the v*wscanf family. */
# if !__GLIBC_USE (DEPRECATED_SCANF) \ # if !__GLIBC_USE (DEPRECATED_SCANF) \
&& (!defined __LDBL_COMPAT || !defined __REDIRECT) \ && (!defined __LDBL_COMPAT || !defined __REDIRECT) \
&& (defined __STRICT_ANSI__ || defined __USE_XOPEN2K) && (defined __STRICT_ANSI__ || defined __USE_XOPEN2K) \
&& __LDOUBLE_REDIRECTS_TO_FLOAT128_ABI == 0
# ifdef __REDIRECT # ifdef __REDIRECT
extern int __REDIRECT (vfwscanf, (__FILE *__restrict __s, extern int __REDIRECT (vfwscanf, (__FILE *__restrict __s,
const wchar_t *__restrict __format, const wchar_t *__restrict __format,
@ -849,7 +852,8 @@ extern size_t wcsftime_l (wchar_t *__restrict __s, size_t __maxsize,
# include <bits/wchar2.h> # include <bits/wchar2.h>
#endif #endif
#ifdef __LDBL_COMPAT #include <bits/floatn.h>
#if defined __LDBL_COMPAT || __LDOUBLE_REDIRECTS_TO_FLOAT128_ABI == 1
# include <bits/wchar-ldbl.h> # include <bits/wchar-ldbl.h>
#endif #endif

View File

@ -113,58 +113,4 @@ femode_t;
/* Default floating-point control modes. */ /* Default floating-point control modes. */
# define FE_DFL_MODE ((const femode_t *) -1L) # define FE_DFL_MODE ((const femode_t *) -1L)
#endif
#ifdef __USE_EXTERN_INLINES
__BEGIN_DECLS
/* Optimized versions. */
#ifndef _LIBC
extern int __REDIRECT_NTH (__feraiseexcept_renamed, (int), feraiseexcept);
#endif
__extern_always_inline void
__NTH (__feraiseexcept_invalid_divbyzero (int __excepts))
{
if ((FE_INVALID & __excepts) != 0)
{
/* One example of an invalid operation is 0.0 / 0.0. */
float __f = 0.0;
# ifdef __SSE_MATH__
__asm__ __volatile__ ("divss %0, %0 " : : "x" (__f));
# else
__asm__ __volatile__ ("fdiv %%st, %%st(0); fwait"
: "=t" (__f) : "0" (__f));
# endif
(void) &__f;
}
if ((FE_DIVBYZERO & __excepts) != 0)
{
float __f = 1.0;
float __g = 0.0;
# ifdef __SSE_MATH__
__asm__ __volatile__ ("divss %1, %0" : : "x" (__f), "x" (__g));
# else
__asm__ __volatile__ ("fdivp %%st, %%st(1); fwait"
: "=t" (__f) : "0" (__f), "u" (__g) : "st(1)");
# endif
(void) &__f;
}
}
__extern_inline int
__NTH (feraiseexcept (int __excepts))
{
if (__builtin_constant_p (__excepts)
&& (__excepts & ~(FE_INVALID | FE_DIVBYZERO)) == 0)
{
__feraiseexcept_invalid_divbyzero (__excepts);
return 0;
}
return __feraiseexcept_renamed (__excepts);
}
__END_DECLS
#endif #endif

View File

@ -18,4 +18,4 @@
/* long double is distinct from double, so there is nothing to /* long double is distinct from double, so there is nothing to
define here. */ define here. */
#define __LONG_DOUBLE_USES_FLOAT128 0 #define __LDOUBLE_REDIRECTS_TO_FLOAT128_ABI 0

View File

@ -1,63 +0,0 @@
/* Copyright (C) 1997-2020 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
<https://www.gnu.org/licenses/>. */
#ifndef _SYS_SELECT_H
# error "Never use <bits/select.h> directly; include <sys/select.h> instead."
#endif
#include <bits/wordsize.h>
#if defined __GNUC__ && __GNUC__ >= 2
# if __WORDSIZE == 64
# define __FD_ZERO_STOS "stosq"
# else
# define __FD_ZERO_STOS "stosl"
# endif
# define __FD_ZERO(fdsp) \
do { \
int __d0, __d1; \
__asm__ __volatile__ ("cld; rep; " __FD_ZERO_STOS \
: "=c" (__d0), "=D" (__d1) \
: "a" (0), "0" (sizeof (fd_set) \
/ sizeof (__fd_mask)), \
"1" (&__FDS_BITS (fdsp)[0]) \
: "memory"); \
} while (0)
#else /* ! GNU CC */
/* We don't use `memset' because this would require a prototype and
the array isn't too big. */
# define __FD_ZERO(set) \
do { \
unsigned int __i; \
fd_set *__arr = (set); \
for (__i = 0; __i < sizeof (fd_set) / sizeof (__fd_mask); ++__i) \
__FDS_BITS (__arr)[__i] = 0; \
} while (0)
#endif /* GNU CC */
#define __FD_SET(d, set) \
((void) (__FDS_BITS (set)[__FD_ELT (d)] |= __FD_MASK (d)))
#define __FD_CLR(d, set) \
((void) (__FDS_BITS (set)[__FD_ELT (d)] &= ~__FD_MASK (d)))
#define __FD_ISSET(d, set) \
((__FDS_BITS (set)[__FD_ELT (d)] & __FD_MASK (d)) != 0)

View File

@ -1,40 +0,0 @@
/* Copyright (C) 2002-2020 Free Software Foundation, Inc.
This file is part of the GNU C Library.
Contributed by Ulrich Drepper <drepper@redhat.com>, 2002.
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
<https://www.gnu.org/licenses/>. */
#ifndef _SEMAPHORE_H
# error "Never use <bits/semaphore.h> directly; include <semaphore.h> instead."
#endif
#include <bits/wordsize.h>
#if __WORDSIZE == 64
# define __SIZEOF_SEM_T 32
#else
# define __SIZEOF_SEM_T 16
#endif
/* Value returned if `sem_open' failed. */
#define SEM_FAILED ((sem_t *) 0)
typedef union
{
char __size[__SIZEOF_SEM_T];
long int __align;
} sem_t;

View File

@ -1,20 +0,0 @@
/* Copyright (C) 2012-2020 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
<https://www.gnu.org/licenses/>. */
#if defined __x86_64__ && defined __ILP32__
# error "sysctl system call is unsupported in x32 kernel"
#endif

Some files were not shown because too many files have changed in this diff Show More