X-Git-Url: https://git.distorted.org.uk/~mdw/lisp/blobdiff_plain/0ff9df03bb54ba792cefa551face51748ae34259..0eed4749891adf0a7be89e786b8968ee805a8d41:/unix.lisp diff --git a/unix.lisp b/unix.lisp index b4d0208..be823f0 100644 --- a/unix.lisp +++ b/unix.lisp @@ -13,12 +13,12 @@ ;;; 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)))))) @@ -130,8 +130,8 @@ `(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." @@ -155,7 +155,7 @@ (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 @@ -184,7 +184,7 @@ 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))