[dtrace-discuss] all open files

Dave Marquardt Dave.Marquardt at Sun.COM
Tue Jul 10 06:57:36 PDT 2007


"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?
-- 
Dave Marquardt
Sun Microsystems, Inc.
Austin, TX
+1 512 401-1077 (SUN internal: x64077)


More information about the dtrace-discuss mailing list