4 ms·
That is already possible in UNIX: just unlink(2) the file and it will be automatically deleted once its last file descriptor is closed. Linux 3.11 added suppor
by the_why_of_y 12y ago
That is already possible in UNIX: just unlink(2) the file and it will be automatically deleted once its last file descriptor is closed.
Linux 3.11 added support for the O_TMPFILE flag to open(2) so it's not even necessary to call unlink(2).