LibC: Fix incorrect limit for SSIZE_MAX and remove 32 bit definitions

The file `limits.h` had definitions for x86. This PR removes these
definitions and fixes the upper limit for the type ssize_t which was
defined to be 0x7fffffff.
This commit is contained in:
Agustin Gianni 2023-01-14 19:51:41 +00:00 committed by Linus Groh
parent bb4c7b6a35
commit 4a816ed891
Notes: sideshowbarker 2024-07-17 03:03:15 +09:00

View file

@ -44,18 +44,10 @@
#define USHRT_MAX 65535
#ifdef __x86_64__
# define LONG_MAX 9223372036854775807L
#else
# define LONG_MAX 2147483647L
#endif
#define LONG_MAX 9223372036854775807L
#define LONG_MIN (-LONG_MAX - 1L)
#ifdef __x86_64__
# define ULONG_MAX 18446744073709551615UL
#else
# define ULONG_MAX 4294967295UL
#endif
#define ULONG_MAX 18446744073709551615UL
#define LONG_LONG_MAX 9223372036854775807LL
#define LONG_LONG_MIN (-LONG_LONG_MAX - 1LL)
@ -87,7 +79,7 @@
#define ARG_MAX 65536
#define SSIZE_MAX 2147483647
#define SSIZE_MAX LONG_MAX
#define LINK_MAX 4096