Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/netbsd-8]: src/sys/sys Pull up following revision(s) (requested by riast...



details:   https://anonhg.NetBSD.org/src/rev/1457845e1dbe
branches:  netbsd-8
changeset: 374124:1457845e1dbe
user:      martin <martin%NetBSD.org@localhost>
date:      Sat Apr 01 16:43:17 2023 +0000

description:
Pull up following revision(s) (requested by riastradh in ticket #1819):

        sys/sys/common_limits.h: revision 1.3

Fix wrong scoping of {U,}LLONG_MAX. Final case, I think.
PR 53298 from Roberto E. Vargas Caballero.

diffstat:

 sys/sys/common_limits.h |  10 +++++-----
 1 files changed, 5 insertions(+), 5 deletions(-)

diffs (31 lines):

diff -r 52ae4f631427 -r 1457845e1dbe sys/sys/common_limits.h
--- a/sys/sys/common_limits.h   Sat Apr 01 16:41:00 2023 +0000
+++ b/sys/sys/common_limits.h   Sat Apr 01 16:43:17 2023 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: common_limits.h,v 1.2 2014/08/19 15:46:46 matt Exp $   */
+/*     $NetBSD: common_limits.h,v 1.2.12.1 2023/04/01 16:43:17 martin Exp $    */
 
 /*-
  * Copyright (c) 2014 The NetBSD Foundation, Inc.
@@ -50,10 +50,6 @@
 #define        LONG_MAX        __LONG_MAX__            /* max value for a long */
 #define        ULONG_MAX       (2UL*LONG_MAX+1UL)      /* max unsigned long */
 
-#if defined(_POSIX_C_SOURCE) || defined(_XOPEN_SOURCE) || \
-    defined(_NETBSD_SOURCE)
-#define        SSIZE_MAX       LONG_MAX        /* max value for a ssize_t */
-
 #if defined(_ISOC99_SOURCE) || (__STDC_VERSION__ - 0) >= 199901L || \
     defined(_NETBSD_SOURCE)
 #define        LLONG_MIN       (-__LONG_LONG_MAX__-1LL) /* min signed long long */
@@ -61,6 +57,10 @@
 #define        ULLONG_MAX      (2ULL*LLONG_MAX+1ULL)   /* max unsigned long long */
 #endif
 
+#if defined(_POSIX_C_SOURCE) || defined(_XOPEN_SOURCE) || \
+    defined(_NETBSD_SOURCE)
+#define        SSIZE_MAX       LONG_MAX        /* max value for a ssize_t */
+
 #if defined(_NETBSD_SOURCE)
 #define        SSIZE_MIN       LONG_MIN        /* min value for a ssize_t */
 #define        SIZE_T_MAX      ULONG_MAX       /* max value for a size_t */



Home | Main Index | Thread Index | Old Index