Re: What is the function to terminate to the OS with a given exit code?
Tim Josling <[email protected]>
| Newsgroups | gmane.lisp.cmucl.general |
|---|---|
| Organization | GCC / Westnet |
| Message-ID | <1197011884.6110.13.camel@tim-gcc> |
On Thu, 2007-12-06 at 22:23 +0100, Harald Hanche-Olsen wrote: > + Tim Josling <[email protected]>: > > > I have spent about an hour looking in the docs for this function to no > > avail. Peraps I should use the FFI? > > > > In C it is (exit n) > > > > In gcl it is (by n) > > In SBCL it is (sb-ext:quit n) > > In CLISP (EXT:EXIT &OPTIONAL status) > > In CMU... > > > > Also how should I have been able to find this? > > (apropos "exit") might be a good start. Disregarding at first the > double-colon symbols, it shouldn't take too long to discover the > following line in the output: > > unix:unix-exit [function] (&optional (code 0)) > > ... after which (describe 'unix:unix-exit) gives you all the > information you need. > > - Harald That's it! Tim Josling