Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
9 changes: 0 additions & 9 deletions lib/libc/glibc/README.md

This file was deleted.

Binary file modified lib/libc/glibc/abilists
Binary file not shown.
2 changes: 1 addition & 1 deletion lib/libc/glibc/bits/byteswap.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/* Macros and inline functions to swap the order of bytes in integer values.
Copyright (C) 1997-2021 Free Software Foundation, Inc.
Copyright (C) 1997-2023 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
Expand Down
42 changes: 21 additions & 21 deletions lib/libc/glibc/bits/floatn-common.h
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/* Macros to control TS 18661-3 glibc features where the same
definitions are appropriate for all platforms.
Copyright (C) 2017-2021 Free Software Foundation, Inc.
Copyright (C) 2017-2023 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
Expand Down Expand Up @@ -78,7 +78,7 @@
or _FloatNx types, if __HAVE_<type> is 1. The corresponding
literal suffixes exist since GCC 7, for C only. */
# if __HAVE_FLOAT16
# if !__GNUC_PREREQ (7, 0) || defined __cplusplus
# if !__GNUC_PREREQ (7, 0) || (defined __cplusplus && !__GNUC_PREREQ (13, 0))
/* No corresponding suffix available for this type. */
# define __f16(x) ((_Float16) x##f)
# else
Expand All @@ -87,15 +87,15 @@
# endif

# if __HAVE_FLOAT32
# if !__GNUC_PREREQ (7, 0) || defined __cplusplus
# if !__GNUC_PREREQ (7, 0) || (defined __cplusplus && !__GNUC_PREREQ (13, 0))
# define __f32(x) x##f
# else
# define __f32(x) x##f32
# endif
# endif

# if __HAVE_FLOAT64
# if !__GNUC_PREREQ (7, 0) || defined __cplusplus
# if !__GNUC_PREREQ (7, 0) || (defined __cplusplus && !__GNUC_PREREQ (13, 0))
# ifdef __NO_LONG_DOUBLE_MATH
# define __f64(x) x##l
# else
Expand All @@ -107,15 +107,15 @@
# endif

# if __HAVE_FLOAT32X
# if !__GNUC_PREREQ (7, 0) || defined __cplusplus
# if !__GNUC_PREREQ (7, 0) || (defined __cplusplus && !__GNUC_PREREQ (13, 0))
# define __f32x(x) x
# else
# define __f32x(x) x##f32x
# endif
# endif

# if __HAVE_FLOAT64X
# if !__GNUC_PREREQ (7, 0) || defined __cplusplus
# if !__GNUC_PREREQ (7, 0) || (defined __cplusplus && !__GNUC_PREREQ (13, 0))
# if __HAVE_FLOAT64X_LONG_DOUBLE
# define __f64x(x) x##l
# else
Expand All @@ -127,7 +127,7 @@
# endif

# if __HAVE_FLOAT128X
# if !__GNUC_PREREQ (7, 0) || defined __cplusplus
# if !__GNUC_PREREQ (7, 0) || (defined __cplusplus && !__GNUC_PREREQ (13, 0))
# error "_Float128X supported but no constant suffix"
# else
# define __f128x(x) x##f128x
Expand All @@ -136,7 +136,7 @@

/* Defined to a complex type if __HAVE_<type> is 1. */
# if __HAVE_FLOAT16
# if !__GNUC_PREREQ (7, 0) || defined __cplusplus
# if !__GNUC_PREREQ (7, 0) || (defined __cplusplus && !__GNUC_PREREQ (13, 0))
typedef _Complex float __cfloat16 __attribute__ ((__mode__ (__HC__)));
# define __CFLOAT16 __cfloat16
# else
Expand All @@ -145,15 +145,15 @@ typedef _Complex float __cfloat16 __attribute__ ((__mode__ (__HC__)));
# endif

# if __HAVE_FLOAT32
# if !__GNUC_PREREQ (7, 0) || defined __cplusplus
# if !__GNUC_PREREQ (7, 0) || (defined __cplusplus && !__GNUC_PREREQ (13, 0))
# define __CFLOAT32 _Complex float
# else
# define __CFLOAT32 _Complex _Float32
# endif
# endif

# if __HAVE_FLOAT64
# if !__GNUC_PREREQ (7, 0) || defined __cplusplus
# if !__GNUC_PREREQ (7, 0) || (defined __cplusplus && !__GNUC_PREREQ (13, 0))
# ifdef __NO_LONG_DOUBLE_MATH
# define __CFLOAT64 _Complex long double
# else
Expand All @@ -165,15 +165,15 @@ typedef _Complex float __cfloat16 __attribute__ ((__mode__ (__HC__)));
# endif

# if __HAVE_FLOAT32X
# if !__GNUC_PREREQ (7, 0) || defined __cplusplus
# if !__GNUC_PREREQ (7, 0) || (defined __cplusplus && !__GNUC_PREREQ (13, 0))
# define __CFLOAT32X _Complex double
# else
# define __CFLOAT32X _Complex _Float32x
# endif
# endif

# if __HAVE_FLOAT64X
# if !__GNUC_PREREQ (7, 0) || defined __cplusplus
# if !__GNUC_PREREQ (7, 0) || (defined __cplusplus && !__GNUC_PREREQ (13, 0))
# if __HAVE_FLOAT64X_LONG_DOUBLE
# define __CFLOAT64X _Complex long double
# else
Expand All @@ -185,7 +185,7 @@ typedef _Complex float __cfloat16 __attribute__ ((__mode__ (__HC__)));
# endif

# if __HAVE_FLOAT128X
# if !__GNUC_PREREQ (7, 0) || defined __cplusplus
# if !__GNUC_PREREQ (7, 0) || (defined __cplusplus && !__GNUC_PREREQ (13, 0))
# error "_Float128X supported but no complex type"
# else
# define __CFLOAT128X _Complex _Float128x
Expand All @@ -195,7 +195,7 @@ typedef _Complex float __cfloat16 __attribute__ ((__mode__ (__HC__)));
/* The remaining of this file provides support for older compilers. */
# if __HAVE_FLOAT16

# if !__GNUC_PREREQ (7, 0) || defined __cplusplus
# if !__GNUC_PREREQ (7, 0) || (defined __cplusplus && !__GNUC_PREREQ (13, 0))
typedef float _Float16 __attribute__ ((__mode__ (__HF__)));
# endif

Expand All @@ -210,7 +210,7 @@ typedef float _Float16 __attribute__ ((__mode__ (__HF__)));

# if __HAVE_FLOAT32

# if !__GNUC_PREREQ (7, 0) || defined __cplusplus
# if !__GNUC_PREREQ (7, 0) || (defined __cplusplus && !__GNUC_PREREQ (13, 0))
typedef float _Float32;
# endif

Expand All @@ -234,7 +234,7 @@ typedef float _Float32;

# ifdef __NO_LONG_DOUBLE_MATH

# if !__GNUC_PREREQ (7, 0) || defined __cplusplus
# if !__GNUC_PREREQ (7, 0) || (defined __cplusplus && !__GNUC_PREREQ (13, 0))
typedef long double _Float64;
# endif

Expand All @@ -247,7 +247,7 @@ typedef long double _Float64;

# else

# if !__GNUC_PREREQ (7, 0) || defined __cplusplus
# if !__GNUC_PREREQ (7, 0) || (defined __cplusplus && !__GNUC_PREREQ (13, 0))
typedef double _Float64;
# endif

Expand All @@ -264,7 +264,7 @@ typedef double _Float64;

# if __HAVE_FLOAT32X

# if !__GNUC_PREREQ (7, 0) || defined __cplusplus
# if !__GNUC_PREREQ (7, 0) || (defined __cplusplus && !__GNUC_PREREQ (13, 0))
typedef double _Float32x;
# endif

Expand All @@ -281,7 +281,7 @@ typedef double _Float32x;

# if __HAVE_FLOAT64X_LONG_DOUBLE

# if !__GNUC_PREREQ (7, 0) || defined __cplusplus
# if !__GNUC_PREREQ (7, 0) || (defined __cplusplus && !__GNUC_PREREQ (13, 0))
typedef long double _Float64x;
# endif

Expand All @@ -294,7 +294,7 @@ typedef long double _Float64x;

# else

# if !__GNUC_PREREQ (7, 0) || defined __cplusplus
# if !__GNUC_PREREQ (7, 0) || (defined __cplusplus && !__GNUC_PREREQ (13, 0))
typedef _Float128 _Float64x;
# endif

Expand All @@ -311,7 +311,7 @@ typedef _Float128 _Float64x;

# if __HAVE_FLOAT128X

# if !__GNUC_PREREQ (7, 0) || defined __cplusplus
# if !__GNUC_PREREQ (7, 0) || (defined __cplusplus && !__GNUC_PREREQ (13, 0))
# error "_Float128x supported but no type"
# endif

Expand Down
2 changes: 1 addition & 1 deletion lib/libc/glibc/bits/libc-header-start.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/* Handle feature test macros at the start of a header.
Copyright (C) 2016-2021 Free Software Foundation, Inc.
Copyright (C) 2016-2023 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
Expand Down
2 changes: 1 addition & 1 deletion lib/libc/glibc/bits/long-double.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/* Properties of long double type.
Copyright (C) 2016-2021 Free Software Foundation, Inc.
Copyright (C) 2016-2023 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
Expand Down
2 changes: 1 addition & 1 deletion lib/libc/glibc/bits/select.h
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/* Copyright (C) 1997-2021 Free Software Foundation, Inc.
/* Copyright (C) 1997-2023 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
Expand Down
2 changes: 1 addition & 1 deletion lib/libc/glibc/bits/signum-generic.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/* Signal number constants. Generic template.
Copyright (C) 1991-2021 Free Software Foundation, Inc.
Copyright (C) 1991-2023 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
Expand Down
2 changes: 1 addition & 1 deletion lib/libc/glibc/bits/stat.h
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/* Copyright (C) 1992-2021 Free Software Foundation, Inc.
/* Copyright (C) 1992-2023 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
Expand Down
2 changes: 1 addition & 1 deletion lib/libc/glibc/bits/stdint-intn.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/* Define intN_t types.
Copyright (C) 2017-2021 Free Software Foundation, Inc.
Copyright (C) 2017-2023 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
Expand Down
15 changes: 12 additions & 3 deletions lib/libc/glibc/bits/stdlib-bsearch.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/* Perform binary search - inline version.
Copyright (C) 1991-2021 Free Software Foundation, Inc.
Copyright (C) 1991-2023 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
Expand Down Expand Up @@ -29,14 +29,23 @@ bsearch (const void *__key, const void *__base, size_t __nmemb, size_t __size,
while (__l < __u)
{
__idx = (__l + __u) / 2;
__p = (void *) (((const char *) __base) + (__idx * __size));
__p = (const void *) (((const char *) __base) + (__idx * __size));
__comparison = (*__compar) (__key, __p);
if (__comparison < 0)
__u = __idx;
else if (__comparison > 0)
__l = __idx + 1;
else
return (void *) __p;
{
#if __GNUC_PREREQ(4, 6)
# pragma GCC diagnostic push
# pragma GCC diagnostic ignored "-Wcast-qual"
#endif
return (void *) __p;
#if __GNUC_PREREQ(4, 6)
# pragma GCC diagnostic pop
#endif
}
}

return NULL;
Expand Down
2 changes: 1 addition & 1 deletion lib/libc/glibc/bits/time64.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/* bits/time64.h -- underlying types for __time64_t. Generic version.
Copyright (C) 2018-2021 Free Software Foundation, Inc.
Copyright (C) 2018-2023 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
Expand Down
6 changes: 2 additions & 4 deletions lib/libc/glibc/bits/timesize.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/* Bit size of the time_t type at glibc build time, general case.
Copyright (C) 2018-2021 Free Software Foundation, Inc.
Copyright (C) 2018-2023 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
Expand All @@ -16,7 +16,5 @@
License along with the GNU C Library; if not, see
<https://www.gnu.org/licenses/>. */

#include <bits/wordsize.h>

/* Size in bits of the 'time_t' type of the default ABI. */
#define __TIMESIZE __WORDSIZE
#define __TIMESIZE 64
2 changes: 1 addition & 1 deletion lib/libc/glibc/bits/types/struct_sched_param.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/* Sched parameter structure. Generic version.
Copyright (C) 1996-2021 Free Software Foundation, Inc.
Copyright (C) 1996-2023 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
Expand Down
2 changes: 1 addition & 1 deletion lib/libc/glibc/bits/typesizes.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/* bits/typesizes.h -- underlying types for *_t. Generic version.
Copyright (C) 2002-2021 Free Software Foundation, Inc.
Copyright (C) 2002-2023 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
Expand Down
2 changes: 1 addition & 1 deletion lib/libc/glibc/bits/uintn-identity.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/* Inline functions to return unsigned integer values unchanged.
Copyright (C) 2017-2021 Free Software Foundation, Inc.
Copyright (C) 2017-2023 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
Expand Down
2 changes: 1 addition & 1 deletion lib/libc/glibc/bits/waitflags.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/* Definitions of flag bits for `waitpid' et al.
Copyright (C) 1992-2021 Free Software Foundation, Inc.
Copyright (C) 1992-2023 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
Expand Down
2 changes: 1 addition & 1 deletion lib/libc/glibc/bits/waitstatus.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/* Definitions of status bits for `wait' et al.
Copyright (C) 1992-2021 Free Software Foundation, Inc.
Copyright (C) 1992-2023 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
Expand Down
2 changes: 1 addition & 1 deletion lib/libc/glibc/csu/errno.c
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/* Definition of `errno' variable. Canonical version.
Copyright (C) 2002-2021 Free Software Foundation, Inc.
Copyright (C) 2002-2023 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
Expand Down
2 changes: 1 addition & 1 deletion lib/libc/glibc/debug/stack_chk_fail_local.c
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/* Copyright (C) 2005-2021 Free Software Foundation, Inc.
/* Copyright (C) 2005-2023 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
Expand Down
Loading