next up previous contents
Next: 6.7 File Descriptor Streams Up: 6 UNIX Interface Previous: 6.5 System Area Pointers

6.6 Unix System Calls

You probably won't have much cause to use them, but all the Unix system calls are available. The Unix system call functions are in the Unix package. The name of the interface for a particular system call is the name of the system call prepended with unix-. The system usually defines the associated constants without any prefix name. To find out how to use a particular system call, try using describe on it. If that is unhelpful, look at the source in `syscall.lisp' or consult your system maintainer.

The Unix system calls indicate an error by returning nil as the first value and the Unix error number as the second value. If the call succeeds, then the first value will always be non-nil, often t.

[Function]
Unix: get-unix-error-msg error

This function returns a string describing the Unix error number error.



Raymond Toy
Mon Jul 14 09:11:27 EDT 1997