diff --git a/lib/libc/sys/read.2 b/lib/libc/sys/read.2 index fb452e92c36a..6304f0167f54 100644 --- a/lib/libc/sys/read.2 +++ b/lib/libc/sys/read.2 @@ -156,6 +156,11 @@ The .Fa d argument is not a valid file or socket descriptor open for reading. +.It Bq Er ECONNRESET +The +.Fa d +argument refers to a socket, and the remote socket end is +forcibly closed. .It Bq Er EFAULT The .Fa buf diff --git a/lib/libc/sys/recv.2 b/lib/libc/sys/recv.2 index 1fd4edd85091..f0eb35cb4904 100644 --- a/lib/libc/sys/recv.2 +++ b/lib/libc/sys/recv.2 @@ -289,6 +289,8 @@ The calls fail if: The argument .Fa s is an invalid descriptor. +.It Bq Er ECONNRESET +The remote socket end is forcibly closed. .It Bq Er ENOTCONN The socket is associated with a connection-oriented protocol and has not been connected (see