[Subject Prev][Subject Next][Thread Prev][Thread Next][Subject Index][Thread Index]

process name from pid



Hi guys,

    Is there any system call on Linux which will return the name of the
process from the pid. 

For eg., on IRIX, there is a system call "syssgi()" which takes a pid as
one of the parameterss and returns the process name corresponding to the
pid.

I know I can write a function which will read the proc file system and get
the name of the process, given the pid. But I am looking for a system call
!! 


TIA,

Regards,

Sandeep Sundaram

_____________________________________________
Free email with personality! Over 200 domains!
http://www.MyOwnEmail.com