public inbox for developer@lists.illumos.org (since 2011-08)
 help / color / mirror / Atom feed
* [REVIEW] 16344 -Wstrict-prototypes warnings about SIG_DFL, SIG_ERR, SIG_IGN and SIG_HOLD signal constants
@ 2024-03-07 21:39 Richard Lowe
  2024-03-07 21:45 ` Richard Lowe
  2024-03-09 14:05 ` Jonathan Perkin
  0 siblings, 2 replies; 3+ messages in thread
From: Richard Lowe @ 2024-03-07 21:39 UTC (permalink / raw)
  To: illumos-dev; +Cc: Jonathan Perkin, Dominik Hassler

https://code.illumos.org/c/illumos-gate/+/3358

This fixes SIG_* constants to please modern compilers wanting to drop
K&R support, and fixes illumos-gate to not be wrong.

I'd appreciate a careful look.  I'd also appreciate it if we could get
bulk builds of this (Jonathan? Dominik?).

I haven't tested this much at all as yet, except with wsdiff (which
only contains differences I can explain, fwiw, but I'm not happy with
the completeness of that as yet).  I plan to at least additionally
verify with psig(1) that everything is still hooked up as we expect,
where possible.

-- Rich

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

* Re: [REVIEW] 16344 -Wstrict-prototypes warnings about SIG_DFL, SIG_ERR, SIG_IGN and SIG_HOLD signal constants
  2024-03-07 21:39 [REVIEW] 16344 -Wstrict-prototypes warnings about SIG_DFL, SIG_ERR, SIG_IGN and SIG_HOLD signal constants Richard Lowe
@ 2024-03-07 21:45 ` Richard Lowe
  2024-03-09 14:05 ` Jonathan Perkin
  1 sibling, 0 replies; 3+ messages in thread
From: Richard Lowe @ 2024-03-07 21:45 UTC (permalink / raw)
  To: illumos-dev

Sorry, I forgot to also mention I'd appreciate any wordsmithing of
sigaction(2), where our previous example gave an incorrect prototype
and I just sort of bodged it.

I'd also suggest looking at:
https://pubs.opengroup.org/onlinepubs/007904875/functions/sigaction.html
regarding the 3rd argument when `SA_SIGINFO` being `void *` but "not
requiring type checking", etc.

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

* Re: [REVIEW] 16344 -Wstrict-prototypes warnings about SIG_DFL, SIG_ERR, SIG_IGN and SIG_HOLD signal constants
  2024-03-07 21:39 [REVIEW] 16344 -Wstrict-prototypes warnings about SIG_DFL, SIG_ERR, SIG_IGN and SIG_HOLD signal constants Richard Lowe
  2024-03-07 21:45 ` Richard Lowe
@ 2024-03-09 14:05 ` Jonathan Perkin
  1 sibling, 0 replies; 3+ messages in thread
From: Jonathan Perkin @ 2024-03-09 14:05 UTC (permalink / raw)
  To: Richard Lowe; +Cc: illumos-dev, Dominik Hassler

* On 2024-03-07 at 21:40 GMT, Richard Lowe wrote:

>https://code.illumos.org/c/illumos-gate/+/3358
>
>This fixes SIG_* constants to please modern compilers wanting to drop
>K&R support, and fixes illumos-gate to not be wrong.
>
>I'd appreciate a careful look.  I'd also appreciate it if we could get
>bulk builds of this (Jonathan? Dominik?).

I've ran it through a bulk build, looks great.

Cheers,

-- 
Jonathan Perkin   -   mnx.io   -   pkgsrc.smartos.org
Open Source Complete Cloud   www.tritondatacenter.com

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

end of thread, other threads:[~2024-03-09 14:05 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-03-07 21:39 [REVIEW] 16344 -Wstrict-prototypes warnings about SIG_DFL, SIG_ERR, SIG_IGN and SIG_HOLD signal constants Richard Lowe
2024-03-07 21:45 ` Richard Lowe
2024-03-09 14:05 ` Jonathan Perkin

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 NNTP newsgroup(s).