You can also use sysconf(3); I'm not sure if that's just a wrapper around opening the /proc file.
If I was a user experiencing this, I don't think being told the maximum number of files would be super helpful. Being told to look in /proc/blah might be somewhat helpful. Being told which runaway process was using all my files would be better. -- Martin <http://launchpad.net/~mbp/> _______________________________________________ coders mailing list coders@slug.org.au http://lists.slug.org.au/listinfo/coders