Blob Blame History Raw
From 80a46c493a96fb929b738d5a2e1edf68c03f6140 Mon Sep 17 00:00:00 2001
From: Jan Chaloupka <jchaloup@redhat.com>
Date: Fri, 29 May 2015 21:27:59 +0200
Subject: [PATCH] unix.7: Mention SOCK_STREAM socket for ioctl_type of ioctl()

---
 man7/unix.7 | 14 ++++++++++++--
 1 file changed, 12 insertions(+), 2 deletions(-)

diff --git a/man7/unix.7 b/man7/unix.7
index 22a6e06..429f1b0 100644
--- a/man7/unix.7
+++ b/man7/unix.7
@@ -297,7 +297,9 @@ The correct syntax is:
 can be:
 .TP
 .B SIOCINQ
-Returns the amount of queued unread data in the receive buffer.
+For
+.B SOCK_STREAM
+socket the function returns the amount of queued unread data in the receive buffer.
 The socket must not be in LISTEN state, otherwise an error
 .RB ( EINVAL )
 is returned.
@@ -317,6 +319,13 @@ defined in
 .\" That number is normally larger than the number of bytes of pending
 .\" output. Since this info is, from userland's point of view, imprecise,
 .\" and it may well change, probably best not to document this now.
+For
+.B SOCK_DGRAM
+socket,
+the returned value is the same as
+for Internet domain datagram socket;
+see
+.BR udp (7).
 .SH ERRORS
 .TP
 .B EADDRINUSE
@@ -448,7 +457,8 @@ see
 .BR cmsg (3),
 .BR capabilities (7),
 .BR credentials (7),
-.BR socket (7)
+.BR socket (7),
+.BR udp (7)
 .SH COLOPHON
 This page is part of release 3.53 of the Linux
 .I man-pages
-- 
1.9.3