[lkml]   [2007]   [Jun]   [22]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
SubjectRe: JIT emulator needs
On Jun 19, 2007, at 11:08:24, William Lee Irwin III wrote:
> On Fri, Jun 08, 2007 at 02:35:22AM -0400, Albert Cahalan wrote:
>> c. open() flag to unlink a file before returning the fd
> You probably want a tmpfile(3) -like affair which never has a
> pathname to begin with. It could be useful for security purposes
> more generally.

maybe this: open("/some/dir", O_TMPFILE);
and this? open("/some/dir", O_TMPFILE|O_DIRECTORY);

The former would return a filehandle to a new anonymous file
somewhere on whatever filesystem backs the specified path. The
latter would do the same, except create an anonymous directory where
you could use "openat()" or something. Presumably "lsof" and "/proc"
should show either type of handle as referring to either "/some/
filesystem/" or "/some/filesystem/ (anonymous temp file)" or something.

Kyle Moffett

To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to
More majordomo info at
Please read the FAQ at

 \ /
  Last update: 2007-06-23 05:55    [W:0.127 / U:5.068 seconds]
©2003-2018 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site