Changeset 8286
- Timestamp:
- Jan 26, 2008, 9:15:02 AM (17 years ago)
- Location:
- trunk/source/level-1
- Files:
-
- 3 edited
-
l1-files.lisp (modified) (2 diffs)
-
l1-readloop-lds.lisp (modified) (2 diffs)
-
l1-streams.lisp (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/source/level-1/l1-files.lisp
r8237 r8286 184 184 185 185 (defun create-file (path &key (if-exists :error) (create-directory t)) 186 ( native-to-pathname(%create-file path :if-exists if-exists186 (let* ((p (%create-file path :if-exists if-exists 187 187 :create-directory create-directory))) 188 (and p 189 (native-to-pathname p)))) 190 188 191 (defun %create-file (path &key 189 192 (if-exists :error) … … 195 198 (assert (or (eql if-exists :overwrite) 196 199 (null if-exists) 200 (eq if-exists :error) 197 201 (not (probe-file path))) () 198 202 "~s ~s not implemented yet" :if-exists if-exists) 199 203 (let* ((unix-name (native-translated-namestring path)) 200 204 (fd (fd-open unix-name (logior #$O_WRONLY #$O_CREAT #$O_TRUNC 201 (if (null if-exists) 205 (if (or (null if-exists) 206 (eq if-exists :error)) 202 207 #$O_EXCL 203 208 0))))) 204 209 (if (< fd 0) 205 (if (eql fd (- #$EEXIST)) ; #$O_EXCL was set and file exists 210 (if (and (null if-exists) 211 (eql fd (- #$EEXIST))) 206 212 (return-from %create-file nil) 207 213 (signal-file-error fd path)) -
trunk/source/level-1/l1-readloop-lds.lisp
r8205 r8286 327 327 (cons keyword params) 328 328 keyword))) 329 (params param)))))))))))329 (params (eval param)))))))))))) 330 330 331 331 ;;; Read a form from the specified stream. … … 410 410 411 411 (defun abnormal-application-exit () 412 (print-call-history) 413 (force-output *debug-io*) 414 (quit -1)) 412 (ignore-errors 413 (print-call-history) 414 (force-output *debug-io*) 415 (quit -1)) 416 (#__exit -1)) 415 417 416 418 (defun break-loop-handle-error (condition error-pointer) -
trunk/source/level-1/l1-streams.lisp
r8266 r8286 5597 5597 (tem-path (merge-pathnames (make-pathname :name (%integer-to-string date) :type "tem" :defaults nil) path))) 5598 5598 (loop 5599 (when ( not (probe-file tem-path)) (return tem-path))5599 (when (%create-file tem-path :if-exists nil) (return tem-path)) 5600 5600 (setf (%pathname-name tem-path) (%integer-to-string (setq date (1+ date))))))) 5601 5601
Note:
See TracChangeset
for help on using the changeset viewer.
