public inbox for libc-alpha@sourceware.org
 help / color / mirror / Atom feed
* [PATCH] <signal.h>: Add deprecation message for sigpause
@ 2022-12-12 10:43 Florian Weimer
  2023-01-05 17:25 ` Florian Weimer
  0 siblings, 1 reply; 2+ messages in thread
From: Florian Weimer @ 2022-12-12 10:43 UTC (permalink / raw)
  To: libc-alpha

Current compilers merely issue an implicit function declaration warning
without -D_XOPEN_SOURCE_EXTENDED, which is not very illuminating.

Tested on i686-linux-gnu and x86_64-linux-gnu.

---
 signal/signal.h | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/signal/signal.h b/signal/signal.h
index 78d0d819aa..1299d7e0bc 100644
--- a/signal/signal.h
+++ b/signal/signal.h
@@ -155,6 +155,9 @@ extern int __sigpause (int __sig_or_mask, int __is_sig);
 /* Remove a signal from the signal mask and suspend the process.  */
 #  define sigpause(sig) __sigpause ((sig), 1)
 # endif
+#elif defined __USE_MISC
+extern int sigpause (int __sig)
+  __attribute_deprecated_msg__ ("Use the sigsuspend function instead");
 #endif
 
 

base-commit: 4e21c2075193e406a92c0d1cb091a7c804fda4d9


^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [PATCH] <signal.h>: Add deprecation message for sigpause
  2022-12-12 10:43 [PATCH] <signal.h>: Add deprecation message for sigpause Florian Weimer
@ 2023-01-05 17:25 ` Florian Weimer
  0 siblings, 0 replies; 2+ messages in thread
From: Florian Weimer @ 2023-01-05 17:25 UTC (permalink / raw)
  To: Florian Weimer via Libc-alpha

* Florian Weimer via Libc-alpha:

> Current compilers merely issue an implicit function declaration warning
> without -D_XOPEN_SOURCE_EXTENDED, which is not very illuminating.
>
> Tested on i686-linux-gnu and x86_64-linux-gnu.
>
> ---
>  signal/signal.h | 3 +++
>  1 file changed, 3 insertions(+)
>
> diff --git a/signal/signal.h b/signal/signal.h
> index 78d0d819aa..1299d7e0bc 100644
> --- a/signal/signal.h
> +++ b/signal/signal.h
> @@ -155,6 +155,9 @@ extern int __sigpause (int __sig_or_mask, int __is_sig);
>  /* Remove a signal from the signal mask and suspend the process.  */
>  #  define sigpause(sig) __sigpause ((sig), 1)
>  # endif
> +#elif defined __USE_MISC
> +extern int sigpause (int __sig)
> +  __attribute_deprecated_msg__ ("Use the sigsuspend function instead");
>  #endif

Ping?

  <https://sourceware.org/pipermail/libc-alpha/2022-December/143977.html>

Thanks,
Florian


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2023-01-05 17:25 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-12-12 10:43 [PATCH] <signal.h>: Add deprecation message for sigpause Florian Weimer
2023-01-05 17:25 ` Florian Weimer

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).