[dtrace-discuss] all open files

James Carlson james.d.carlson at Sun.COM
Tue Jul 10 07:48:49 PDT 2007


Dave Marquardt writes:
> "Zhou" == Zhou Aaron <aaron.zhou1018 at hotmail.com> writes:
> 
> Zhou> Another question: In userland, is there any other way to open
> Zhou> file except for the open()/creat() syscall? of course, in kernel
> Zhou> area, don't need to care open or not, just reference to
> Zhou> vnode,then can do any operation for associated file.
> 
> Depends what you mean by "file".  Are you interested in all the ways
> you can get a file descriptor?  If that's the case, you need to add
> dup/dup2 and socket.  Oh, how about pipe?

... and accept() and descriptor passing and the various ioctls that
can return open fds.

-- 
James Carlson, Solaris Networking              <james.d.carlson at sun.com>
Sun Microsystems / 1 Network Drive         71.232W   Vox +1 781 442 2084
MS UBUR02-212 / Burlington MA 01803-2757   42.496N   Fax +1 781 442 1677


More information about the dtrace-discuss mailing list