This is the mail archive of the
cygwin
mailing list for the Cygwin project.
Re: program_invocation_name
- From: "Yaakov (Cygwin/X)" <yselkowitz at users dot sourceforge dot net>
- To: cygwin <cygwin at cygwin dot com>
- Date: Sat, 25 Dec 2010 20:39:53 -0600
- Subject: Re: program_invocation_name
- References: <4D15177E.7080508@redhat.com>
On Fri, 2010-12-24 at 14:58 -0700, Eric Blake wrote:
> Porting of some programs originally written for glibc over to cygwin
> would be easier if cygwin could provide the global variables char*
> program_invocation_{short_,}name, set automatically to match argv[0] of
> main(), and declared in <errno.h> when strict standards compliance isn't
> requested.
util-linux would benefit from this as well.
> Is it worth my time to go ahead and submit a patch to add
> this? Or is our party line still that as long as you are using
> non-portable means, you should just continue to use
> readlink("/proc/self/exe") when porting to cygwin?
FWIW, since we strive to be a "Linux-like environment" (per our
website), then I think it should go in.
Yaakov
--
Problem reports: http://cygwin.com/problems.html
FAQ: http://cygwin.com/faq/
Documentation: http://cygwin.com/docs.html
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple