hard link? ==> Re: [plt-scheme] are some of the file system functions atomic?
At Tue, 17 Jun 2008 19:22:49 -0700, YC wrote:
> Is there a function for creating hardlinks (in supported OS)?
No, not currently. You'd have to use `scheme/foriegn' to access link().
Matthew
> I thought
> make-file-or-directory-link will do the trick but not according to the doc
> at
> http://docs.plt-
> scheme.org/reference/Filesystem.html#(def._((quote._~23~25kernel)._make-file-
> or-directory-link))
> .
>
> Thanks,
> yc
>
> On Fri, Jun 13, 2008 at 5:40 AM, Matthew Flatt <mflatt at cs.utah.edu> wrote:
> >
> >>
> >> Yes, those operations are performed atomically when the OS supports it.
> >>
> >> Currently, only the docs for `rename-file-or-directory' mention
> >> atomicity, and in that case to clarify that there's a race condition on
> >> the check for an existing file --- which corresponds to the fact that
> >> the rename() system call always replaces existing files.
> >>
> >>