On 7/6/06, Iain Buchanan <[EMAIL PROTECTED]> wrote:
Someone mentioned that /proc is deprecated for 2.6? is this correct? Is there a /sys alternative to /proc/self/status?
Oh, I don't think /proc itself is deprecated. After all, ps, pstree, top and so on still use it. And it is not mentioned in /usr/src/linux/Documentation/feature-removal-schedule.txt. There are some things in /proc that will go away (/proc/pci, for example), but it seems that /proc should be around for a good while yet. It is theoretically possible that someone could build a kernel without proc filesystem support, but I'm not sure how useful such a kernel would be! Also, if I were going to use /proc for this (and I'm not saying I would, I really don't like it, but it's not my project), I would either read /proc/self/cmdline or do a readlink on /proc/self/exe. The readlink option would give you the actual path to the program being run. -Richard -- gentoo-user@gentoo.org mailing list