diff options
author | Kaz Kylheku <kaz@kylheku.com> | 2015-02-06 06:37:35 -0800 |
---|---|---|
committer | Kaz Kylheku <kaz@kylheku.com> | 2015-02-06 06:37:35 -0800 |
commit | b0d0ba0657ff67cdc29bee3b305c3c72f55725f7 (patch) | |
tree | cc24376e8562f90d305a0d0295fda29504c3c28e /txr.1 | |
parent | 3286f2ca94da081bca5ddeffdfcc6ec92adf237c (diff) | |
download | txr-b0d0ba0657ff67cdc29bee3b305c3c72f55725f7.tar.gz txr-b0d0ba0657ff67cdc29bee3b305c3c72f55725f7.tar.bz2 txr-b0d0ba0657ff67cdc29bee3b305c3c72f55725f7.zip |
* sysif.c (abort_wrap): New static function.
(sysif_init): Registered abort intrinsic.
* txr.1: Documented abort. Changed Unix Programming heading
to System Programming, since exit, abort and errno are not
Unix-specific, but C-specific.
* tl.vim, txr.vim: Updated.
Diffstat (limited to 'txr.1')
-rw-r--r-- | txr.1 | 27 |
1 files changed, 25 insertions, 2 deletions
@@ -19596,7 +19596,9 @@ Otherwise, if the variable is some informational messages are printed about the exception, and the process exits with a failed termination status. In the same situation, if the variable contains an object which is not a -function, the process aborts. +function, the process terminates abnormally as if by a call to the +.code abort +function. Prior to the function being called, the .code *unhandled-hook* @@ -23692,7 +23694,7 @@ function constructs and returns an hash. The hash is populated with the environment variables, represented as key-value pairs. -.SS* Unix Programming +.SS* System Programming .coNP Function @ errno .synb .mets (errno <> [ new-errno ]) @@ -23736,6 +23738,27 @@ These are platform-independent indicators of failed or successful termination. The numeric value 0 also indicates success. +.coNP Function @ abort +.synb +.mets (abort) +.syne +.desc +The +.code abort +function terminates the entire process (running \*(TX image), specifying +an abnormal termination status to the process. + +Note: +.code abort +calls the C library function +.code abort +which works by raising the +.code SIG_ABRT +signal, known in \*(TX as the +.code sig-abrt +variable. Abnormal termination of the process is this signal's +default action. + .coNP Function @ usleep .synb .mets (usleep << usec ) |