From: Chris Hanson Date: Sat, 2 Jun 2001 15:30:43 +0000 (+0000) Subject: New procedures HARD-LINK-FILE and SOFT-LINK-FILE. X-Git-Tag: 20090517-FFI~2748 X-Git-Url: https://birchwood-abbey.net/git?a=commitdiff_plain;h=18de399033b21fc63cc693898bad4ab988bad440;p=mit-scheme.git New procedures HARD-LINK-FILE and SOFT-LINK-FILE. --- diff --git a/v7/src/runtime/sfile.scm b/v7/src/runtime/sfile.scm index fd230d252..5064c3bac 100644 --- a/v7/src/runtime/sfile.scm +++ b/v7/src/runtime/sfile.scm @@ -1,6 +1,6 @@ #| -*-Scheme-*- -$Id: sfile.scm,v 14.26 2001/05/10 03:14:07 cph Exp $ +$Id: sfile.scm,v 14.27 2001/06/02 15:30:43 cph Exp $ Copyright (c) 1988-2001 Massachusetts Institute of Technology @@ -117,6 +117,14 @@ USA. (define (delete-file filename) ((ucode-primitive file-remove) (->namestring (merge-pathnames filename)))) +(define (hard-link-file from to) + ((ucode-primitive file-link-hard 2) (->namestring (merge-pathnames from)) + (->namestring (merge-pathnames to)))) + +(define (soft-link-file from to) + ((ucode-primitive file-link-soft 2) (->namestring (merge-pathnames from)) + (->namestring (merge-pathnames to)))) + (define (delete-file-no-errors filename) (call-with-current-continuation (lambda (k)