diff options
author | Florian Weimer <fweimer@redhat.com> | 2020-05-25 18:32:28 +0200 |
---|---|---|
committer | Florian Weimer <fweimer@redhat.com> | 2020-05-25 18:32:28 +0200 |
commit | 02802fafcf6e11ea3f998f685035ffe568dfddeb (patch) | |
tree | 2db187fc4bd2ef24a0c70c573b278a5e7ece62e5 /nptl/tst-cancel4.c | |
parent | de42613540de8d3d70b5f14a14923cab7bd694d0 (diff) | |
download | glibc-02802fafcf6e11ea3f998f685035ffe568dfddeb.tar.gz glibc-02802fafcf6e11ea3f998f685035ffe568dfddeb.tar.xz glibc-02802fafcf6e11ea3f998f685035ffe568dfddeb.zip |
signal: Deprecate additional legacy signal handling functions
This needs a few test adjustments: In some cases, sigignore was used for convenience (replaced with xsignal with SIG_IGN). Tests for the deprecated functions need to disable -Wdeprecated-declarations, and for the sigmask deprecation, -Wno-error. Reviewed-by: Adhemerval Zanella <adhemerval.zanella@linaro.org>
Diffstat (limited to 'nptl/tst-cancel4.c')
-rw-r--r-- | nptl/tst-cancel4.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/nptl/tst-cancel4.c b/nptl/tst-cancel4.c index 652668537a..be7a48e253 100644 --- a/nptl/tst-cancel4.c +++ b/nptl/tst-cancel4.c @@ -39,6 +39,7 @@ #include <sys/wait.h> #include <sys/stat.h> #include <sys/uio.h> +#include <libc-diag.h> /* Since STREAMS are not supported in the standard Linux kernel and @@ -527,7 +528,13 @@ tf_sigpause (void *arg) pthread_cleanup_push (cl, NULL); + /* This tests the deprecated sigpause and sigmask functions. The + file is compiled with -Wno-errno so that the sigmask deprecation + warning is not fatal. */ + DIAG_PUSH_NEEDS_COMMENT; + DIAG_IGNORE_NEEDS_COMMENT (4.9, "-Wdeprecated-declarations"); sigpause (sigmask (SIGINT)); + DIAG_POP_NEEDS_COMMENT; pthread_cleanup_pop (0); |