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

Re: process name from pid

On Sat, Feb 17, 2001 at 08:08:17AM -0600, Sandeep Sundaram wrote:
> 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
> !! 

Yes, use the read(2) system call to read from /proc :)