aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorguy <guy>2001-12-29 21:57:07 +0000
committerguy <guy>2001-12-29 21:57:07 +0000
commit86c2a855bf7cea4a1d8db5da5761cc5885175973 (patch)
treeb8ec3907b6e13177ef3c1162fba4d81c41c59a7f
parent99f5637e530f19e10643ab5551934319dae6f5d1 (diff)
Minor tweak to the synopsis for "pcap_setnonblock()" to make it looklibpcap_0_7rel1
more like the other synopses, and note that it returns 0 on success.
-rw-r--r--pcap.37
1 files changed, 4 insertions, 3 deletions
diff --git a/pcap.3 b/pcap.3
index a067339..3a4254f 100644
--- a/pcap.3
+++ b/pcap.3
@@ -1,4 +1,4 @@
-.\" @(#) $Header: /tcpdump/master/libpcap/Attic/pcap.3,v 1.30 2001-12-10 06:35:00 guy Exp $
+.\" @(#) $Header: /tcpdump/master/libpcap/Attic/pcap.3,v 1.31 2001-12-29 21:57:07 guy Exp $
.\"
.\" Copyright (c) 1994, 1996, 1997
.\" The Regents of the University of California. All rights reserved.
@@ -43,7 +43,7 @@ pcap_dumper_t *pcap_dump_open(pcap_t *p, char *fname)
.ft
.LP
.ft B
-int pcap_setnonblock(pcap_t *, int nonblock, char *errbuf);
+int pcap_setnonblock(pcap_t *p, int nonblock, char *errbuf);
int pcap_getnonblock(pcap_t *p, char *errbuf);
.ft
.LP
@@ -217,7 +217,8 @@ depending on whether the
argument is non-zero or zero. It has no effect on ``savefiles''.
If there is an error, \-1 is returned and
.I errbuf
-is filled in with an appropriate error message.
+is filled in with an appropriate error message; otherwise, 0 is
+returned.
In
``non-blocking'' mode, an attempt to read from the capture descriptor
with