summaryrefslogtreecommitdiff
path: root/pcap_strerror.3pcap
diff options
context:
space:
mode:
authorJoseph Mingrone <jrm@FreeBSD.org>2024-09-05 19:46:35 +0000
committerJoseph Mingrone <jrm@FreeBSD.org>2024-09-05 19:46:35 +0000
commit025be3f592b920ff0a3e602e5aa8b60a34e5e617 (patch)
tree4f33277584e4a38c8bad5c2788584a00cf830ea4 /pcap_strerror.3pcap
parent6b96668d5b49eea57b7551349eca70928cc199ce (diff)
Diffstat (limited to 'pcap_strerror.3pcap')
-rw-r--r--pcap_strerror.3pcap14
1 files changed, 9 insertions, 5 deletions
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)