]> The Tcpdump Group git mirrors - libpcap/blobdiff - pcap_init.3pcap
Update config.{guess,sub}, timestamps 2023-01-01,2023-01-21
[libpcap] / pcap_init.3pcap
index ba34cc4500b0e8ce80ad5d904e33950143b13a37..a807d0ecd86cb52835b6daece3f8e6db54eb75f1 100644 (file)
@@ -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
@@ -80,10 +80,10 @@ will initialize Winsock itself on Windows.
 returns
 .B 0
 on success and
-.B \-1
+.B PCAP_ERROR
 on failure.
 If
-.B \-1
+.B PCAP_ERROR
 is returned,
 .I errbuf
 is filled in with an appropriate error message.
@@ -91,5 +91,9 @@ is filled in with an appropriate error message.
 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)