From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from lists.gentoo.org ([140.105.134.102] helo=robin.gentoo.org) by nuthatch.gentoo.org with esmtp (Exim 4.60) (envelope-from ) id 1FygLf-0003Jz-M4 for garchives@archives.gentoo.org; Fri, 07 Jul 2006 02:45:44 +0000 Received: from robin.gentoo.org (localhost [127.0.0.1]) by robin.gentoo.org (8.13.7/8.13.6) with SMTP id k672i48v008958; Fri, 7 Jul 2006 02:44:04 GMT Received: from mail.netspace.net.au (whirlwind.netspace.net.au [203.10.110.76]) by robin.gentoo.org (8.13.7/8.13.6) with ESMTP id k672c4EP025912 for ; Fri, 7 Jul 2006 02:38:05 GMT Received: from [192.168.1.52] (ppp246-231.static.internode.on.net [203.122.246.231]) by mail.netspace.net.au (Postfix) with ESMTP id 18E57131BA2 for ; Fri, 7 Jul 2006 12:38:02 +1000 (EST) Subject: Re: [gentoo-user] OT: get process name in c++ From: Iain Buchanan To: gentoo-user@lists.gentoo.org In-Reply-To: <1151542067.19231.0.camel@orpheus> References: <1151499883.17966.13.camel@orpheus> <200606281551.42342.petr.uzel@centrum.cz> <200606281601.07029.petr.uzel@centrum.cz> <1151542067.19231.0.camel@orpheus> Content-Type: text/plain Date: Fri, 07 Jul 2006 12:07:23 +0930 Message-Id: <1152239843.31828.0.camel@orpheus> Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-user@gentoo.org Reply-to: gentoo-user@lists.gentoo.org Mime-Version: 1.0 X-Mailer: Evolution 2.6.2 Content-Transfer-Encoding: 7bit X-Archives-Salt: 6e861755-1155-44e1-88db-c6cae7ed61c9 X-Archives-Hash: f580e8f9c00b27bc482a26279c44f25f On Thu, 2006-06-29 at 10:17 +0930, Iain Buchanan wrote: > On Wed, 2006-06-28 at 16:01 +0200, Petr Uzel wrote: > > > file /proc/self/status is a link pointing to the > > directory /proc/pid_of_process. And by parsing status file in this directory > > you should get all the informations you want. > > great idea, thanks! Someone mentioned that /proc is deprecated for 2.6? is this correct? Is there a /sys alternative to /proc/self/status? thanks, -- Iain Buchanan In charity there is no excess. -- Francis Bacon -- gentoo-user@gentoo.org mailing list