summaryrefslogtreecommitdiffstats
path: root/txr.1
diff options
context:
space:
mode:
authorKaz Kylheku <kaz@kylheku.com>2020-06-19 20:25:36 -0700
committerKaz Kylheku <kaz@kylheku.com>2020-06-19 20:25:36 -0700
commit29a25713116323adcac696a090420ed3c1e73e5f (patch)
tree53c4e86a83e015268ea435dace0a21d90ca6766e /txr.1
parent09091bedcc6dd570262de4a72c362b161a492df7 (diff)
downloadtxr-29a25713116323adcac696a090420ed3c1e73e5f.tar.gz
txr-29a25713116323adcac696a090420ed3c1e73e5f.tar.bz2
txr-29a25713116323adcac696a090420ed3c1e73e5f.zip
New function: strerror
* configure (have_strerror_r): New variable. Detect whether we have strerror_r and which flavor: GNU or POSIX. Define HAVE_STRERROR_GNU or HAVE_STRERROR_POSIX in config.h. * sysif.c (strerror_wrap): New function. (sysif_init): Register strerror intrinsic. * txr.1: Documented.
Diffstat (limited to 'txr.1')
-rw-r--r--txr.117
1 files changed, 17 insertions, 0 deletions
diff --git a/txr.1 b/txr.1
index 8d30662c..229d50ae 100644
--- a/txr.1
+++ b/txr.1
@@ -58584,6 +58584,23 @@ The place form of
.code errno
does not take an argument.
+.coNP Function @ strerror
+.synb
+.mets (strerror << errno-value )
+.syne
+.desc
+The
+.code strerror
+returns a character string which provides the host platform's description
+of the integer
+.meta errno-value
+obtained from the
+.code errno
+function.
+
+If the host platform fails to provide a descripion, the function returns
+.codn nil .
+
.coNP Function @ exit
.synb
.mets (exit << status )