public inbox for gentoo-user@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Richard Fish" <bigfish@asmallpond.org>
To: gentoo-user@lists.gentoo.org
Subject: Re: [gentoo-user] OT: get process name in c++
Date: Fri, 7 Jul 2006 14:54:16 -0700	[thread overview]
Message-ID: <7573e9640607071454l7309902enff8c38b775caca7d@mail.gmail.com> (raw)
In-Reply-To: <200607072153.35550.uwix@iway.na>

On 7/7/06, Uwe Thiem <uwix@iway.na> wrote:
> How about:
>
> getenv( "_" );

Well, that is set by bash before it exec's anything, so that should
work, provided the program[s] are always exec'd by bash and not by
something else.  It would be nicer if "_" was set by the kernel, or
even glibc.

-Richard
-- 
gentoo-user@gentoo.org mailing list



  reply	other threads:[~2006-07-07 22:16 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <1151499883.17966.13.camel@orpheus>
2006-06-28 13:51 ` [gentoo-user] OT: get process name in c++ Petr Uzel
2006-06-28 14:01   ` Petr Uzel
2006-06-29  0:47     ` Iain Buchanan
2006-07-07  2:37       ` Iain Buchanan
2006-07-07  2:55         ` Richard Fish
2006-07-07  4:35           ` Iain Buchanan
2006-07-07  4:48             ` Richard Fish
2006-07-07  5:05               ` Iain Buchanan
2006-07-07 17:14                 ` Richard Fish
2006-07-07 20:53                   ` Uwe Thiem
2006-07-07 21:54                     ` Richard Fish [this message]
2006-07-10  0:00                       ` Iain Buchanan
2006-07-07 22:05         ` Richard Fish
2006-06-28 15:55 ` Richard Fish
2006-07-27  0:19 ` [gentoo-user] " Iain Buchanan
2006-07-27  4:35   ` Richard Fish

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=7573e9640607071454l7309902enff8c38b775caca7d@mail.gmail.com \
    --to=bigfish@asmallpond.org \
    --cc=gentoo-user@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox