Linux Manual Pages development
 help / color / mirror / Atom feed
* [PATCH] signal.7: Better description for SIGFPE
@ 2024-09-24 11:54 Vincent Lefevre
  2024-09-24 12:02 ` Vincent Lefevre
  2024-11-01 12:43 ` Alejandro Colomar
  0 siblings, 2 replies; 3+ messages in thread
From: Vincent Lefevre @ 2024-09-24 11:54 UTC (permalink / raw)
  To: Michael Kerrisk, linux-man; +Cc: Vincent Lefevre

SIGFPE has comment "Floating-point exception", which corresponds to
the FPE acronym. But this is misleading as this signal may also be
generated by an integer division by 0.

Change it to "Erroneous arithmetic operation" from POSIX:
https://pubs.opengroup.org/onlinepubs/9799919799/basedefs/signal.h.html

Note: the GNU C Library manual says "fatal arithmetic error".
https://www.gnu.org/software/libc/manual/html_node/Program-Error-Signals.html

Signed-off-by: Vincent Lefevre <vincent@vinc17.net>
---
 man/man7/signal.7 | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/man/man7/signal.7 b/man/man7/signal.7
index 7a9e91cc7..d19f171b3 100644
--- a/man/man7/signal.7
+++ b/man/man7/signal.7
@@ -373,7 +373,7 @@ SIGCHLD	P1990	Ign	Child stopped or terminated
 SIGCLD	\-	Ign	A synonym for \fBSIGCHLD\fP
 SIGCONT	P1990	Cont	Continue if stopped
 SIGEMT	\-	Term	Emulator trap
-SIGFPE	P1990	Core	Floating-point exception
+SIGFPE	P1990	Core	Erroneous arithmetic operation
 SIGHUP	P1990	Term	Hangup detected on controlling terminal
 			or death of controlling process
 SIGILL	P1990	Core	Illegal Instruction
-- 
2.45.2


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

* Re: [PATCH] signal.7: Better description for SIGFPE
  2024-09-24 11:54 [PATCH] signal.7: Better description for SIGFPE Vincent Lefevre
@ 2024-09-24 12:02 ` Vincent Lefevre
  2024-11-01 12:43 ` Alejandro Colomar
  1 sibling, 0 replies; 3+ messages in thread
From: Vincent Lefevre @ 2024-09-24 12:02 UTC (permalink / raw)
  To: Michael Kerrisk, linux-man

On 2024-09-24 13:54:46 +0200, Vincent Lefevre wrote:
> Change it to "Erroneous arithmetic operation" from POSIX:
> https://pubs.opengroup.org/onlinepubs/9799919799/basedefs/signal.h.html

BTW, the term "Erroneous arithmetic operation" also comes from
the ISO C standard (present at least since C99). I don't know
which one was the first to standardize it...

-- 
Vincent Lefèvre <vincent@vinc17.net> - Web: <https://www.vinc17.net/>
100% accessible validated (X)HTML - Blog: <https://www.vinc17.net/blog/>
Work: CR INRIA - computer arithmetic / AriC project (LIP, ENS-Lyon)

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

* Re: [PATCH] signal.7: Better description for SIGFPE
  2024-09-24 11:54 [PATCH] signal.7: Better description for SIGFPE Vincent Lefevre
  2024-09-24 12:02 ` Vincent Lefevre
@ 2024-11-01 12:43 ` Alejandro Colomar
  1 sibling, 0 replies; 3+ messages in thread
From: Alejandro Colomar @ 2024-11-01 12:43 UTC (permalink / raw)
  To: Vincent Lefevre; +Cc: linux-man

[-- Attachment #1: Type: text/plain, Size: 1408 bytes --]

Hi Vincent,

On Tue, Sep 24, 2024 at 01:54:46PM +0200, Vincent Lefevre wrote:
> SIGFPE has comment "Floating-point exception", which corresponds to
> the FPE acronym. But this is misleading as this signal may also be
> generated by an integer division by 0.
> 
> Change it to "Erroneous arithmetic operation" from POSIX:
> https://pubs.opengroup.org/onlinepubs/9799919799/basedefs/signal.h.html
> 
> Note: the GNU C Library manual says "fatal arithmetic error".
> https://www.gnu.org/software/libc/manual/html_node/Program-Error-Signals.html
> 
> Signed-off-by: Vincent Lefevre <vincent@vinc17.net>

Patch applied.  Thanks!

Have a lovely day!
Alex

> ---
>  man/man7/signal.7 | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/man/man7/signal.7 b/man/man7/signal.7
> index 7a9e91cc7..d19f171b3 100644
> --- a/man/man7/signal.7
> +++ b/man/man7/signal.7
> @@ -373,7 +373,7 @@ SIGCHLD	P1990	Ign	Child stopped or terminated
>  SIGCLD	\-	Ign	A synonym for \fBSIGCHLD\fP
>  SIGCONT	P1990	Cont	Continue if stopped
>  SIGEMT	\-	Term	Emulator trap
> -SIGFPE	P1990	Core	Floating-point exception
> +SIGFPE	P1990	Core	Erroneous arithmetic operation
>  SIGHUP	P1990	Term	Hangup detected on controlling terminal
>  			or death of controlling process
>  SIGILL	P1990	Core	Illegal Instruction
> -- 
> 2.45.2
> 
> 

-- 
<https://www.alejandro-colomar.es/>

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 833 bytes --]

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

end of thread, other threads:[~2024-11-01 12:43 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-09-24 11:54 [PATCH] signal.7: Better description for SIGFPE Vincent Lefevre
2024-09-24 12:02 ` Vincent Lefevre
2024-11-01 12:43 ` Alejandro Colomar

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox