chiark
/
gitweb
/
~mdw
/
lisp
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
443fcfc
)
safely.lisp: More CLisp fixing.
author
Mark Wooding
<mdw@distorted.org.uk>
Mon, 30 May 2011 15:42:49 +0000
(16:42 +0100)
committer
Mark Wooding
<mdw@distorted.org.uk>
Mon, 30 May 2011 15:42:49 +0000
(16:42 +0100)
It seems that UNIX:LINK has vanished in a later version of CLisp. Use
POSIX:COPY-FILE instead.
safely.lisp
patch
|
blob
|
blame
|
history
diff --git
a/safely.lisp
b/safely.lisp
index 8cd0f9a635dd6e137414f46448bba475a23e473a..9e723ed48f68edea17a46ee0a6bf1ad9d7612306 100644
(file)
--- a/
safely.lisp
+++ b/
safely.lisp
@@
-166,9
+166,11
@@
(defun safe-copy (file tag)
#+clisp
(generate-fresh-file-name file tag
(lambda (name)
- (>= (unix:link (namestring file)
- (namestring name))
- 0)))
+ (posix:copy-file (namestring file)
+ (namestring name)
+ :method :hardlink
+ :if-exists nil)))
+
#-(or cmu sbcl)