Hacker News new | ask | show | jobs
by needusername 1169 days ago
> - Temp files.

O_TMPFILE should do this.

> - Unit files.

O_TMPFILE together with renameat2 and RENAME_EXCHANGE should do this.

1 comments

Last time I looked, about three years ago, one still couldn’t assume O_TMPFILE would be supported, too many file systems and old kernels didn’t have it. It is a nice flag, so hopefully it’s more likely to be supported now.