syscall: Don't require (function ...) for the name argument.
authorMark Wooding <mdw@distorted.org.uk>
Tue, 11 Apr 2006 17:20:46 +0000 (18:20 +0100)
committerMark Wooding <mdw@distorted.org.uk>
Tue, 11 Apr 2006 17:20:46 +0000 (18:20 +0100)
In fact, don't allow it.

unix.lisp

index 3a01dd2..adf95ff 100644 (file)
--- a/unix.lisp
+++ b/unix.lisp
@@ -123,7 +123,7 @@ signal the unix-error condition, with NAME and ARGS."
 (defmacro syscall (func &rest args)
   "Call Unix system call FUNC, passing it ARGS.  If it returns an error,
 signal the unix-error condition, with FUNC and ARGS."
-  `(syscall* ',func ,func ,@args))
+  `(syscall* ',func #',func ,@args))
 
 (macrolet ((doit (doc slots)
             `(defstruct (stat (:predicate statp)