Linux-man Archive on lore.kernel.org
 help / color / Atom feed
* [PATCH] errno.3: add some comments on EAGAIN/EWOULDBLOCK and EDEADLK/EDEADLOCK
@ 2019-08-29 10:06 Rasmus Villemoes
  2019-09-01 14:47 ` Michael Kerrisk (man-pages)
  0 siblings, 1 reply; 2+ messages in thread
From: Rasmus Villemoes @ 2019-08-29 10:06 UTC (permalink / raw)
  To: Michael Kerrisk; +Cc: linux-man, Rasmus Villemoes

Signed-off-by: Rasmus Villemoes <rv@rasmusvillemoes.dk>
---
 man3/errno.3 | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/man3/errno.3 b/man3/errno.3
index 6cbbafed5..794be7c7b 100644
--- a/man3/errno.3
+++ b/man3/errno.3
@@ -94,7 +94,7 @@ must have distinct values, with the exception of
 .B EAGAIN
 and
 .BR EWOULDBLOCK ,
-which may be the same.
+which may be the same. On Linux, these two always have the same value.
 .PP
 The error numbers that correspond to each symbolic name
 vary across UNIX systems,
@@ -240,8 +240,9 @@ Connection reset (POSIX.1-2001).
 Resource deadlock avoided (POSIX.1-2001).
 .TP
 .B EDEADLOCK
-Synonym for
+On most platforms, a synonym for
 .BR EDEADLK .
+On some (e.g. Linux mips, powerpc, sparc), it is a separate error code "File locking deadlock error".
 .TP
 .B EDESTADDRREQ
 Destination address required (POSIX.1-2001).
-- 
2.11.0


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

* Re: [PATCH] errno.3: add some comments on EAGAIN/EWOULDBLOCK and EDEADLK/EDEADLOCK
  2019-08-29 10:06 [PATCH] errno.3: add some comments on EAGAIN/EWOULDBLOCK and EDEADLK/EDEADLOCK Rasmus Villemoes
@ 2019-09-01 14:47 ` Michael Kerrisk (man-pages)
  0 siblings, 0 replies; 2+ messages in thread
From: Michael Kerrisk (man-pages) @ 2019-09-01 14:47 UTC (permalink / raw)
  To: Rasmus Villemoes; +Cc: mtk.manpages, linux-man

Hello Rasmus,

On 8/29/19 12:06 PM, Rasmus Villemoes wrote:
> Signed-off-by: Rasmus Villemoes <rv@rasmusvillemoes.dk>
> ---
>  man3/errno.3 | 5 +++--
>  1 file changed, 3 insertions(+), 2 deletions(-)

Thanks. I applied and tweaked a little.

Thanks,

Michael

> diff --git a/man3/errno.3 b/man3/errno.3
> index 6cbbafed5..794be7c7b 100644
> --- a/man3/errno.3
> +++ b/man3/errno.3
> @@ -94,7 +94,7 @@ must have distinct values, with the exception of
>  .B EAGAIN
>  and
>  .BR EWOULDBLOCK ,
> -which may be the same.
> +which may be the same. On Linux, these two always have the same value.
>  .PP
>  The error numbers that correspond to each symbolic name
>  vary across UNIX systems,
> @@ -240,8 +240,9 @@ Connection reset (POSIX.1-2001).
>  Resource deadlock avoided (POSIX.1-2001).
>  .TP
>  .B EDEADLOCK
> -Synonym for
> +On most platforms, a synonym for
>  .BR EDEADLK .
> +On some (e.g. Linux mips, powerpc, sparc), it is a separate error code "File locking deadlock error".
>  .TP
>  .B EDESTADDRREQ
>  Destination address required (POSIX.1-2001).
> 


-- 
Michael Kerrisk
Linux man-pages maintainer; http://www.kernel.org/doc/man-pages/
Linux/UNIX System Programming Training: http://man7.org/training/

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

end of thread, back to index

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-08-29 10:06 [PATCH] errno.3: add some comments on EAGAIN/EWOULDBLOCK and EDEADLK/EDEADLOCK Rasmus Villemoes
2019-09-01 14:47 ` Michael Kerrisk (man-pages)

Linux-man Archive on lore.kernel.org

Archives are clonable:
	git clone --mirror https://lore.kernel.org/linux-man/0 linux-man/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 linux-man linux-man/ https://lore.kernel.org/linux-man \
		linux-man@vger.kernel.org linux-man@archiver.kernel.org
	public-inbox-index linux-man


Newsgroup available over NNTP:
	nntp://nntp.lore.kernel.org/org.kernel.vger.linux-man


AGPL code for this site: git clone https://public-inbox.org/ public-inbox