getting process information

Hi
Please excuse me. I post it before completion. So ones more:
I’m porting program orginaly developed for qnx4. One of it’s purpose is to
watch porcesses
and if some process is enormously consuming cpu, memory or open too many
file descriptors it is restarted.
For this purpose it use functions: qnx_psinfo (process information) and
qnx_fd_query (file descriptors information)
I’m searching whole day for equivalents of these functions in Qnx 6 but
with no success.
Thank you for help.

Peter Facka


Using Opera’s revolutionary e-mail client: http://www.opera.com/mail/

Look at procfs and associated header files. Also you might want to look at
source code of “spin” utility. It should be on the ‘3rd party CD’…

“Peter Facka” <pfacka@microsetep-hdo.sk> wrote in message
news:op.s9s2lsh1byo5le@ot2pf.microstep-hdo.sk
Hi
Please excuse me. I post it before completion. So ones more:
I’m porting program orginaly developed for qnx4. One of it’s purpose is to
watch porcesses
and if some process is enormously consuming cpu, memory or open too many
file descriptors it is restarted.
For this purpose it use functions: qnx_psinfo (process information) and
qnx_fd_query (file descriptors information)
I’m searching whole day for equivalents of these functions in Qnx 6 but
with no success.
Thank you for help.

Peter Facka


Using Opera’s revolutionary e-mail client: http://www.opera.com/mail/