Re: open() syscall

Arvind Sankar (arvinds@mit.edu)
Sat, 26 Jun 1999 09:54:24 -0400


On Sat, Jun 26, 1999 at 01:24:40AM -0400, Albert D. Cahalan wrote:
>
> >From the man page:
>
> flags is one of O_RDONLY, O_WRONLY or O_RDWR which request
> opening the file read-only, write-only or read/write,
> respectively.
>
> What about an open() that is only used to grab a file handle?
> One might not have read access on the file, but there are plenty
> of functions that take a file descriptor.
>

All of them which make sense on a file to which you do not have access have
a pathname equivalent. fstat() vs stat() 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/