Another idea about getting rid of having to read the /proc/self/
namespace.
Mike McCormack
wine.msi@hidden
Mon Jan 19 23:57:34 CET 2009
Hi Hilko,
> here's another try for building internal representations of a
> directory without having to use the /proc fs. I am not sure if saving
> the current working directory is needed at all, but I left it in to be
> sure.
How about using openat()? The manual page claims that it's been
available since 2.6.16.
http://linux.die.net/man/2/openat
> Handling the "." and ".." special cases seemed to make more sense
> within the add_entry() method, so I moved them there.
The old special case was just 4 lines ...
thanks,
Mike
More information about the ring3k
mailing list