summaryrefslogtreecommitdiffstats
path: root/man3/sockatmark.3
diff options
context:
space:
mode:
Diffstat (limited to 'man3/sockatmark.3')
-rw-r--r--man3/sockatmark.38
1 files changed, 4 insertions, 4 deletions
diff --git a/man3/sockatmark.3 b/man3/sockatmark.3
index 254145cfc..b5627052d 100644
--- a/man3/sockatmark.3
+++ b/man3/sockatmark.3
@@ -109,24 +109,24 @@ and then read the byte of data at the mark:
char buf[BUF_LEN];
char oobdata;
int atmark, s;
-
+\&
for (;;) {
atmark = sockatmark(sockfd);
if (atmark == \-1) {
perror("sockatmark");
break;
}
-
+\&
if (atmark)
break;
-
+\&
s = read(sockfd, buf, BUF_LEN);
if (s == \-1)
perror("read");
if (s <= 0)
break;
}
-
+\&
if (atmark == 1) {
if (recv(sockfd, &oobdata, 1, MSG_OOB) == \-1) {
perror("recv");