You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nuttx.apache.org by je...@apache.org on 2023/02/15 16:48:00 UTC
[nuttx] branch master updated: limits.h: Map _POSIX_[S]SIZE_M[AX|IN] to [U]LONG_M[AX|IN]
This is an automated email from the ASF dual-hosted git repository.
jerpelea pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/nuttx.git
The following commit(s) were added to refs/heads/master by this push:
new 6920fffb00 limits.h: Map _POSIX_[S]SIZE_M[AX|IN] to [U]LONG_M[AX|IN]
6920fffb00 is described below
commit 6920fffb00f7206c8d7344a596a455c3913470b0
Author: Xiang Xiao <xi...@xiaomi.com>
AuthorDate: Mon Feb 13 16:33:44 2023 +0800
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 <xi...@xiaomi.com>
---
include/limits.h | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/include/limits.h b/include/limits.h
index 98b7dc724e..b4502fa8bd 100644
--- a/include/limits.h
+++ b/include/limits.h
@@ -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 */