aboutsummaryrefslogtreecommitdiffstats
path: root/man7
diff options
context:
space:
mode:
authorMichael Kerrisk <mtk.manpages@gmail.com>2010-09-10 05:35:56 +0200
committerMichael Kerrisk <mtk.manpages@gmail.com>2010-09-10 06:02:00 +0200
commitf73df7253d64dfc17001b952da3fab030b3badad (patch)
tree3a4b023ac4312e5a245ffcbd7ffce8f4aea959b6 /man7
parentbe0349596fb7e9d90b1f8ae719e812d0122c4ff6 (diff)
downloadman-pages-f73df7253d64dfc17001b952da3fab030b3badad.tar.gz
tcp.7: Clarify header file details for SIOCINQ and SIOCOUTQ
Also note synonymous FIONREAD and TIOCOUTQ. Reported-by: Jim Belton <jim.belton@gmail.com> Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
Diffstat (limited to 'man7')
-rw-r--r--man7/tcp.718
1 files changed, 17 insertions, 1 deletions
diff --git a/man7/tcp.7 b/man7/tcp.7
index d116c679ed..d94cbebea3 100644
--- a/man7/tcp.7
+++ b/man7/tcp.7
@@ -13,7 +13,7 @@
.\" be more or less up to date and complete as at Linux 2.6.27
.\" (other than the remaining FIXMEs in the page source below).
.\"
-.TH TCP 7 2009-09-30 "Linux" "Linux Programmer's Manual"
+.TH TCP 7 2010-09-10 "Linux" "Linux Programmer's Manual"
.SH NAME
tcp \- TCP protocol
.SH SYNOPSIS
@@ -1013,6 +1013,14 @@ 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.
+.B SIOCINQ
+is defined in
+.IR <linux/sockios.h> .
+Alternatively,
+you can use the synonymous
+.BR FIONREAD ,
+defined in
+.IR <sys/ioctl.h> .
.TP
.B SIOCATMARK
Returns true (i.e.,
@@ -1054,6 +1062,14 @@ Returns the amount of unsent data in the socket send queue.
The socket must not be in LISTEN state, otherwise an error
.RB ( EINVAL )
is returned.
+.B SIOCOUTQ
+is defined in
+.IR <linux/sockios.h> .
+Alternatively,
+you can use the synonymous
+.BR TIOCOUTQ ,
+defined in
+.IR <sys/ioctl.h> .
.SS Error Handling
When a network error occurs, TCP tries to resend the packet.
If it doesn't succeed after some time, either