anaphora.lisp: Rewrite `asetf' to use `with-places/gensyms'.
[lisp] / unix.lisp
index b4d0208..be823f0 100644 (file)
--- a/unix.lisp
+++ b/unix.lisp
 ;;; it under the terms of the GNU General Public License as published by
 ;;; the Free Software Foundation; either version 2 of the License, or
 ;;; (at your option) any later version.
-;;; 
+;;;
 ;;; This program is distributed in the hope that it will be useful,
 ;;; but WITHOUT ANY WARRANTY; without even the implied warranty of
 ;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 ;;; GNU General Public License for more details.
-;;; 
+;;;
 ;;; You should have received a copy of the GNU General Public License
 ;;; along with this program; if not, write to the Free Software Foundation,
 ;;; Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
@@ -42,7 +42,7 @@
     `(let ((,lenvar ,len)
           (,var nil))
        (unwind-protect
-          (progn 
+          (progn
             (setf ,var (system:allocate-system-memory ,lenvar))
             ,@body)
         (when ,var (system:deallocate-system-memory ,var ,lenvar))))))
             `(defstruct (stat (:predicate statp)
                               (:conc-name st-)
                               (:constructor %make-stat-boa ,slots))
-               ,doc
-               ,@slots)))
+               ,doc
+               ,@slots)))
   (doit
    "Structure representing all the useful information `stat' returns about a
    file."
        (apply #'syscall* ',sysname #',unixname args))))
 
 (macrolet ((defsys (&rest names)
-            `(progn ,@(mapcar (lambda (name) 
+            `(progn ,@(mapcar (lambda (name)
                                 `(defsyscall ,name))
                               names))))
   (defsys open close read write
                       to
                       (logior unix:O_WRONLY unix:O_CREAT how)
                       (logand (st-mode st) #o777))
-        (sys-fchmod out (st-mode st))
+       (sys-fchmod out (st-mode st))
        (sys-utimes to (st-atime st) 0 (st-mtime st) 0)
        (with-errno-handlers ()
          (sys-fchown out (st-uid st) (st-gid st))