Hello, all,
Is there a way to programatically find a process by name in Neutrino?
I don’t mind searching the process list for the name, but it needs to
be in C without calling external programs like pidin.
Cheers,
Kevin
–
He that breaks a thing to find out what it is has left the path of
wisdom – Gandalf the Grey
Kevin Lacquement (klacquement@syscor.com) wrote:
: Hello, all,
: Is there a way to programatically find a process by name in Neutrino?
: I don’t mind searching the process list for the name, but it needs to
: be in C without calling external programs like pidin.
: Cheers,
: Kevin
: –
: He that breaks a thing to find out what it is has left the path of
: wisdom – Gandalf the Grey
Well, if you don’t mind using undocumented calls, you can grab the source
for pidin and do it yourself. You basically readdir() the /proc filesystem,
and then do a devctl() on each of the /proc//as files 
Cheers,
-RK
–
Robert Krten, PARSE Software Devices; email my initials at parse dot com
Consulting, Systems Architecture / Design, Drivers, Training, QNX 4 & Neutrino
Check out our new QNX 4 and Neutrino (QRTP) books at http://www.parse.com/
Wanted PDP-8/9/10/11/12 Systems/documentation/spare parts! Will trade books!
“RK” == Robert Krten <> nospam2@parse.com> > writes:
[…]
RK> Well, if you don’t mind using undocumented calls, you can grab the source
RK> for pidin and do it yourself. You basically readdir() the /proc filesystem,
RK> and then do a devctl() on each of the /proc//as files 
That’s what I expected. I was just hoping the calls would be
documented. Hopefully they won’t change anytime soon. Thanks
RK> Cheers,
RK> -RK
Cheers,
Kevin
–
He that breaks a thing to find out what it is has left the path of
wisdom – Gandalf the Grey