Re: What is the function to terminate to the OS with a given exit code?

"Carl Shapiro" <[email protected]>
Newsgroups gmane.lisp.cmucl.general
Message-ID <[email protected]>
The ext:quit function calls unix:unix-exit which in turn makes a
foreign function call to the C standard library exit.

Among other things, CMUCL will record the name a file a function is
loaded from.  If you describe the function, you should see the source
location.  This will narrow down your search considerably.

* (describe 'ext:quit)

QUIT is an external symbol in the EXTENSIONS package.
...
On Saturday, 4/22/06 02:21:14 am EDT it was compiled from:
target:code/lispinit.lisp
  Created: Tuesday, 10/19/04 04:13:30 pm EDT
  Comment: $Header: /project/cmucl/cvsroot/src/code/lispinit.lisp,v
1.75 2004/10/19 20:13:30 cwang Exp $

Good luck with your project to create a Lisp front end to GCC.  It
sounds like a worthy endeavor.

On Dec 6, 2007 12:08 PM, Tim Josling <[email protected]> wrote:
> As background I am using CMU Lisp to write a language front end to GCC.
>
> 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?
>
> Thanks,
> Tim Josling
>
>
>
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.