2025-09-01 Collin Funk <collin.funk1@gmail.com>
+ sys_types-h tests: Fix a static_assert failure on glibc/hppa.
+ * tests/test-sys_types-h.c [__GLIBC__ && __hppa]: Don't check that
+ blksize_t and blkcnt_t are signed.
+ * doc/posix-headers/sys_types.texi: Mention that these types are
+ unsigned on this platform.
+
sys_stat-h tests: Fix a static_assert failure on glibc/hppa.
Reported by Santiago Vila <sanvila@debian.org> in:
<https://lists.gnu.org/archive/html/bug-m4/2025-09/msg00000.html>.
@itemize
@item
On some platforms the types @code{blksize_t} and @code{blkcnt_t} are unsigned:
-Android.
+Android, glibc/HPPA.
@item
On some platforms the types @code{blksize_t} and @code{suseconds_t}
are signed integer types that are wider than @code{long}:
static_assert (TYPE_SIGNED (off64_t));
/* POSIX requires that blksize_t is a signed integer type. */
-#if !(defined __ANDROID__ || (defined __FreeBSD_kernel__ && !defined __FreeBSD__))
+#if !(defined __ANDROID__ \
+ || (defined __FreeBSD_kernel__ && !defined __FreeBSD__) \
+ || defined __GLIBC__ && defined __hppa)
static_assert (TYPE_SIGNED (blksize_t));
#endif
/* POSIX requires that blkcnt_t is a signed integer type. */
-#if !defined __ANDROID__
+#if !(defined __ANDROID__ || defined __GLIBC__ && defined __hppa)
static_assert (TYPE_SIGNED (blkcnt_t));
#endif