From e27d382798b8bbdbad07f9f54439080e66fae4e0 Mon Sep 17 00:00:00 2001 From: Collin Funk Date: Tue, 22 Apr 2025 18:46:08 -0700 Subject: [PATCH] random_r tests: Disable signature check on Haiku. * tests/test-random_r.c [__HAIKU__]: Skip initstate_r and setstate_r signature check. * doc/glibc-functions/initstate_r.texi: Remove year. * doc/glibc-functions/setstate_r.texi: Likewise. --- ChangeLog | 8 ++++++++ doc/glibc-functions/initstate_r.texi | 2 +- doc/glibc-functions/setstate_r.texi | 2 +- tests/test-random_r.c | 4 +++- 4 files changed, 13 insertions(+), 3 deletions(-) diff --git a/ChangeLog b/ChangeLog index edabebed97..10925dd95b 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,11 @@ +2025-04-22 Collin Funk + + random_r tests: Disable signature check on Haiku. + * tests/test-random_r.c [__HAIKU__]: Skip initstate_r and setstate_r + signature check. + * doc/glibc-functions/initstate_r.texi: Remove year. + * doc/glibc-functions/setstate_r.texi: Likewise. + 2025-04-21 Collin Funk strsignal tests: Disable signature check on Haiku. diff --git a/doc/glibc-functions/initstate_r.texi b/doc/glibc-functions/initstate_r.texi index 5b463fa49f..2ae467bce4 100644 --- a/doc/glibc-functions/initstate_r.texi +++ b/doc/glibc-functions/initstate_r.texi @@ -38,5 +38,5 @@ glibc 2.36/sparc. @item This function has a slightly different (but compatible) declaration on some platforms: -Haiku 2017. +Haiku. @end itemize diff --git a/doc/glibc-functions/setstate_r.texi b/doc/glibc-functions/setstate_r.texi index bc711a342e..ec01f5d3a4 100644 --- a/doc/glibc-functions/setstate_r.texi +++ b/doc/glibc-functions/setstate_r.texi @@ -34,5 +34,5 @@ Portability problems not fixed by Gnulib: @item This function has a slightly different (but compatible) declaration on some platforms: -Haiku 2017. +Haiku. @end itemize diff --git a/tests/test-random_r.c b/tests/test-random_r.c index 99b7478ba3..1c0ffdac5f 100644 --- a/tests/test-random_r.c +++ b/tests/test-random_r.c @@ -1,5 +1,5 @@ /* Test random_r. - Copyright (C) 2008-2024 Free Software Foundation, Inc. + Copyright (C) 2008-2025 Free Software Foundation, Inc. This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -20,9 +20,11 @@ #include "signature.h" SIGNATURE_CHECK (srandom_r, int, (unsigned int, struct random_data *)); +#if !defined __HAIKU__ SIGNATURE_CHECK (initstate_r, int, (unsigned int, char *, size_t, struct random_data *)); SIGNATURE_CHECK (setstate_r, int, (char *, struct random_data *)); +#endif SIGNATURE_CHECK (random_r, int, (struct random_data *, int32_t *)); #include -- 2.39.5