limits.h: Map _POSIX_[S]SIZE_M[AX|IN] to [U]LONG_M[AX|IN]
correct SIZE_MAX and SSIZE_MAX/SSIZE_MIN definition Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
This commit is contained in:
parent
4f30c298bf
commit
6920fffb00
1 changed files with 3 additions and 3 deletions
|
|
@ -136,11 +136,11 @@
|
|||
|
||||
#else /* CONFIG_SMALL_MEMORY */
|
||||
|
||||
#define _POSIX_SIZE_MAX 4294967295UL /* See sys/types.h */
|
||||
#define _POSIX_SIZE_MAX ULONG_MAX
|
||||
#define _POSIX_SIZE_MIN 0
|
||||
|
||||
#define _POSIX_SSIZE_MAX 2147483647L /* See sys/types.h */
|
||||
#define _POSIX_SSIZE_MIN -2147483648L
|
||||
#define _POSIX_SSIZE_MAX LONG_MAX
|
||||
#define _POSIX_SSIZE_MIN LONG_MIN
|
||||
|
||||
#endif /* CONFIG_SMALL_MEMORY */
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue