X-Git-Url: https://git.tcpdump.org/libpcap/blobdiff_plain/028ce6676bcfc813e581f95f4797666043cb5475..09b51d326c38ea8e10ce4da09c09d50e08c5aeb8:/pcap_init.3pcap diff --git a/pcap_init.3pcap b/pcap_init.3pcap index 05fbbd71..a807d0ec 100644 --- a/pcap_init.3pcap +++ b/pcap_init.3pcap @@ -17,7 +17,7 @@ .\" WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED WARRANTIES OF .\" MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. .\" -.TH PCAP_INIT 3PCAP "11 April 2020" +.TH PCAP_INIT 3PCAP "4 May 2022" .SH NAME pcap_init \- initialize the library .SH SYNOPSIS @@ -77,13 +77,23 @@ is called, as will initialize Winsock itself on Windows. .SH RETURN VALUE .BR pcap_init () -returns 0 on success and \-1 on failure. -If \-1 is returned, +returns +.B 0 +on success and +.B PCAP_ERROR +on failure. +If +.B PCAP_ERROR +is returned, .I errbuf is filled in with an appropriate error message. .I errbuf is assumed to be able to hold at least .B PCAP_ERRBUF_SIZE chars. +.SH BACKWARD COMPATIBILITY +This function became available in libpcap release 1.9.0. In previous +releases, on Windows, all strings supplied as arguments, and all strings +returned to the caller, are in the local character encoding. .SH SEE ALSO .BR pcap (3PCAP)