Skip to content

Commit

Permalink
Minor tweak to the synopsis for "pcap_setnonblock()" to make it look
Browse files Browse the repository at this point in the history
more like the other synopses, and note that it returns 0 on success.
  • Loading branch information
yuguy committed Dec 29, 2001
1 parent 99f5637 commit 86c2a85
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions 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.
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 86c2a85

Please sign in to comment.