> > Is there another way of doing this other than iterating over /proc and
> > reading all the process names?
> 
> Probably not. There is no system call, or even C library function, to do
> this sort of query.
> 
> So your most portable choice is indeed to run an external "ps" program.
> The not-portable way (will work only on Linux) is to look in /proc. This
> is what the ps program does on Linux, by the way.

The way to do it on linux is using libproc, which is supposed to
abstract the current /proc hierarchy a bit. It's almost the same as
going over /proc, but cleaner.

VKh

=================================================================
To unsubscribe, send mail to [EMAIL PROTECTED] with
the word "unsubscribe" in the message body, e.g., run the command
echo unsubscribe | mail [EMAIL PROTECTED]

Reply via email to