lkml.org 
[lkml]   [1999]   [Mar]   [23]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [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/

\
 
 \ /
  Last update: 2005-03-22 13:50    [W:0.328 / U:0.196 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site