diff options
author | Kaz Kylheku <kaz@kylheku.com> | 2013-11-28 20:15:08 -0800 |
---|---|---|
committer | Kaz Kylheku <kaz@kylheku.com> | 2013-11-28 20:15:08 -0800 |
commit | 0be7721c52cf2978114de43e391c04437d8d875e (patch) | |
tree | 89167b68f4c7fe05882b17cfe8b538c8608f51f3 /txr.1 | |
parent | 18832d8a641ff25fefccddd34c0325bc8089a69c (diff) | |
download | txr-0be7721c52cf2978114de43e391c04437d8d875e.tar.gz txr-0be7721c52cf2978114de43e391c04437d8d875e.tar.bz2 txr-0be7721c52cf2978114de43e391c04437d8d875e.zip |
* configure: Detect the daemon function.
* eval.c: Include <unistd.h> conditionally.
(errno_wrap, daemon_wrap): New functions.
(eval_init): Registered errno_wrap and daemon_wrap as intrinsics
under the names daemon and errno.
* txr.1: Documented errno and daemon in new UNIX PROGRAMMING
section.
Diffstat (limited to 'txr.1')
-rw-r--r-- | txr.1 | 32 |
1 files changed, 32 insertions, 0 deletions
@@ -10800,6 +10800,38 @@ If the argument is nil, then the time is assumed not to be in DST. If <dst-advice> is :auto, then the function tries to determine whether DST is in effect in the current time zone for the specified date and time. +.SH UNIX PROGRAMMING + +.SS Functions errno and set-errno + +.TP +Syntax: + + (errno [<new-errno>]) + +.TP +Description: + +These functions retrieves the current value of the C library error variable +errno. If the argument <new-errno> is present and is not nil, then it becomes +the new value of errno. The value returned is the prior value. + +.SS Function daemon + +.TP +Syntax: + + (daemon <nochdir-p> <noclose-p>) + +.TP +Description: + +This is a wrapper for the Unix function daemon of BSD origin. + +It returns t if successful, nil otherwise, and the errno +variable is set in that case. + + .SH WEB PROGRAMMING SUPPORT .SS Functions url-encode and url-decode |