[PATCH] D27295: Remove existing file in a separate thread asynchronously.

Joerg Sonnenberger via llvm-commits llvm-commits at lists.llvm.org
Sat Dec 10 14:51:59 PST 2016


On Sat, Dec 10, 2016 at 05:48:11PM -0500, Rafael Avila de Espindola wrote:
> Joerg Sonnenberger via llvm-commits <llvm-commits at lists.llvm.org>
> writes:
> 
> > Even worse, renameat would rule out a lot of older systems for no good
> > reason.
> 
> Is linkat available? The main thing I would like to solve is us leaving
> temp files on crashes, which requires some way of giving a name to an
> open fd. With linkat we would have to unlink the old file first, but we
> are already doing it for performance anyway.

Essentially the same thing. While historically, many UNIX
implementations have provided some special filesystems to allow this, it
is quite non-standard functionality. The whole *at family is very new in
terms of UNIX history...

Joerg


More information about the llvm-commits mailing list