Re: write(2) man page missing error code

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hello Brian,

On Thu, Aug 26, 2010 at 10:30 PM, Sutin, Brian M            HS
<Brian.Sutin@xxxxxxxxxx> wrote:
> Manpages-dev 3.23-1
> Linux 2.6.32-24
> Ubuntu Lucid
>
> I am getting the error code EDESTADDRREQ from a write() to a udp port.  It isn't mentioned in the man page as a possibility.

Thanks for the report. For upstream man-pages-3.26, I added the following

--- a/man2/write.2
+++ b/man2/write.2
@@ -128,6 +128,11 @@ so a portable application should check for both
possibilities.
 .I fd
 is not a valid file descriptor or is not open for writing.
 .TP
+.B EDESTADDRREQ
+.I fd
+refers to a datagram socket for which a peer address has not been set using
+.BR connect (2).
+.TP
 .B EFAULT
 .I buf
 is outside your accessible address space.


Cheers,

Michael

-- 
Michael Kerrisk
Linux man-pages maintainer; http://www.kernel.org/doc/man-pages/
Author of "The Linux Programming Interface" http://blog.man7.org/
--
To unsubscribe from this list: send the line "unsubscribe linux-man" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Kernel Documentation]     [Netdev]     [Linux Ethernet Bridging]     [Linux Wireless]     [Kernel Newbies]     [Security]     [Linux for Hams]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux Admin]     [Samba]

  Powered by Linux