From 025be3f592b920ff0a3e602e5aa8b60a34e5e617 Mon Sep 17 00:00:00 2001 From: Joseph Mingrone Date: Thu, 5 Sep 2024 16:46:35 -0300 Subject: Import libpcap 1.10.5 --- pcap_strerror.3pcap | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) (limited to 'pcap_strerror.3pcap') diff --git a/pcap_strerror.3pcap b/pcap_strerror.3pcap index dedfa40697cb..2add6cc16fa1 100644 --- a/pcap_strerror.3pcap +++ b/pcap_strerror.3pcap @@ -17,7 +17,7 @@ .\" WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED WARRANTIES OF .\" MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. .\" -.TH PCAP_STRERROR 3PCAP "3 January 2014" +.TH PCAP_STRERROR 3PCAP "26 August 2024" .SH NAME pcap_strerror \- convert an errno value to a string .SH SYNOPSIS @@ -31,10 +31,14 @@ const char *pcap_strerror(int error); .ft .fi .SH DESCRIPTION -.BR pcap_strerror () -is provided in case -.BR strerror (3) -isn't available. It returns an error message string corresponding to +This function returns an error message string corresponding to .IR error . +It uses either +.BR strerror (3) +or its thread-safe variant if one is available, which currently is the case in +every supported OS. +.SH BACKWARD COMPATIBILITY +This function was not thread-safe in libpcap before 1.8.1 on Windows and +in libpcap before 1.10.5 on all other OSes. .SH SEE ALSO .BR pcap (3PCAP) -- cgit v1.3