How do I determine the operating system and hostname using common lisp?


To get my .sbclrc file working on the two computers I use, I'd like a way to get the hostname and/or operating system from within sbcl. I know I could set and then look for an environment variable, but is there a more direct approach?


I changed the question to refer to common lisp, since the answer from Ken is not specific to sbcl.

I'd use the 'environment' functions:

* (machine-instance)
* (machine-type)
* (machine-version)
"Intel(R) Core(TM)2 Quad CPU    Q6600  @ 2.40GHz"
* (software-type)
* (software-version)