Re: predictable filenames problem

Tudor Hulubei (tudor@cs.unh.edu)
Fri, 27 Feb 1998 00:00:21 -0500


On Fri, 27 February 1998, Peter Benie wrote:
> There is already a libc function that opens a file without the
> application having to chose a filename - see 'man tmpfile'.

I know. I was suggesting a syscall to better support it.

> Having a system call would make tmpfile more efficient, but I can't
> think of any programs creating so many temporary files that a system
> call would make a noticable difference.

The syscall would be faster, mostly because it doesn't have to do a
linear search through the directory looking for a file with the same
name - it just allocates an inode. If the file name is not actually
needed, why spending time creating it?

Tudor

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu