Messages in this thread | | | Date | Tue, 23 Mar 1999 13:42:05 -0500 | From | Arvind Sankar <> | Subject | Re: [RFC] Rights for hardlinks |
| |
On Tue, Mar 23, 1999 at 01:03:30PM -0500, Alexander Viro wrote: > > > > As a general feature, however, is it reasonable to add a S_ITMP flag to > > creat(2) to create temp files that do not have associated directory entries? > > <shudder> Good luck implementing it over NFS. OTOH... Something > similar is possible, but I don't think that create() is the right > interface for that. BTW, most of the times you really need not that, but > anonymous mmap...
Well, hopefully you won't mount /tmp over nfs. Or if you do, it will be private to each client machine. (i.e. server has /tmp/client<n>/)
With anon mmaps, you have to specify the size. The program may not know that. Eg. gcc could use anonymous tempfiles to pass info between its various stages. i.e. open the temp, attach it to stdout of cpp, run cpp, lseek back to beginning, attach it to stdin of cc1 and attach another tempfile as handle 3 (say) for the .s output etc etc.
-- arvind
- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.rutgers.edu Please read the FAQ at http://www.tux.org/lkml/
| |