linux-man.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH]: unix.7: mentioning SOCK_STREAM socket for ioctl_type of ioctl function
@ 2014-07-23 10:54 Jan Chaloupka
       [not found] ` <53CF9457.7070409-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
  0 siblings, 1 reply; 8+ messages in thread
From: Jan Chaloupka @ 2014-07-23 10:54 UTC (permalink / raw)
  To: Michael Kerrisk (man-pages); +Cc: linux-man-u79uwXL29TY76Z2rM5mHXA

 From https://bugzilla.redhat.com/show_bug.cgi?id=1110401.

unix.7 is not clear about socket type of ioctl_type argument of ioctl 
function. The description of SIOCINQ is applicable only for SOCK_STREAM 
socket. For SOCK_DGRAM, udp(7) man page gives correct description of 
SIOCINQ.

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

diff --git a/man7/unix.7 b/man7/unix.7
index b0ade5b..6bcc8ba 100644
--- a/man7/unix.7
+++ b/man7/unix.7
@@ -299,7 +299,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.
@@ -319,6 +321,10 @@ 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, see
+.BR udp (7).
  .SH ERRORS
  .TP
  .B EADDRINUSE
@@ -450,4 +456,5 @@ see
  .BR cmsg (3),
  .BR capabilities (7),
  .BR credentials (7),
-.BR socket (7)
+.BR socket (7),
+.BR udp (7)
-- 
1.9.3
--
To unsubscribe from this list: send the line "unsubscribe linux-man" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

^ permalink raw reply related	[flat|nested] 8+ messages in thread
* [PATCH] unix.7: mentioning SOCK_STREAM socket for ioctl_type of ioctl function
@ 2014-10-18 15:36 Jan Chaloupka
       [not found] ` <20141018153600.15536.67496.stgit-/v0jm+aXwyk2pP1PFFXgSPXAX3CI6PSWQQ4Iyu8u01E@public.gmane.org>
  0 siblings, 1 reply; 8+ messages in thread
From: Jan Chaloupka @ 2014-10-18 15:36 UTC (permalink / raw)
  To: mtk.manpages-Re5JQEeQqe8AvxtiuMwx3w
  Cc: linux-man-u79uwXL29TY76Z2rM5mHXA, jchaloup-H+wXaHxf7aLQT0dZR+AlfA

from https://bugzilla.redhat.com/show_bug.cgi?id=1110401.

unix.7 is not clear about socket type of ioctl_type argument of ioctl
function. The description of SIOCINQ is applicable only for SOCK_STREAM
socket. For SOCK_DGRAM, udp(7) man page gives correct description of
SIOCINQ

Changelog: reformulation of referrence to udp(7) by Michael Kerrisk

Signed-off-by: Jan Chaloupka <jchaloup-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
---
 man7/unix.7 |   14 ++++++++++++--
 1 file changed, 12 insertions(+), 2 deletions(-)

diff --git a/man7/unix.7 b/man7/unix.7
index 1ab70d5..7c9cb36 100644
--- a/man7/unix.7
+++ b/man7/unix.7
@@ -382,7 +382,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.
@@ -402,6 +404,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
@@ -621,4 +630,5 @@ see
 .BR cmsg (3),
 .BR capabilities (7),
 .BR credentials (7),
-.BR socket (7)
+.BR socket (7),
+.BR udp (7)

--
To unsubscribe from this list: send the line "unsubscribe linux-man" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

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

end of thread, other threads:[~2015-02-05  9:51 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-07-23 10:54 [PATCH]: unix.7: mentioning SOCK_STREAM socket for ioctl_type of ioctl function Jan Chaloupka
     [not found] ` <53CF9457.7070409-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
2014-08-14 13:40   ` Jan Chaloupka
2014-09-09  7:05   ` Jan Chaloupka
2014-10-16 10:51   ` Jan Chaloupka
2014-10-17 14:35   ` Michael Kerrisk (man-pages)
     [not found]     ` <54412934.9060602-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
2014-10-18 15:26       ` Jan Chaloupka
  -- strict thread matches above, loose matches on Subject: below --
2014-10-18 15:36 [PATCH] " Jan Chaloupka
     [not found] ` <20141018153600.15536.67496.stgit-/v0jm+aXwyk2pP1PFFXgSPXAX3CI6PSWQQ4Iyu8u01E@public.gmane.org>
2015-02-05  9:51   ` Michael Kerrisk (man-pages)

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).