delorie.com/archives/browse.cgi | search |
X-Recipient: | archive-cygwin AT delorie DOT com |
X-SWARE-Spam-Status: | No, hits=-2.3 required=5.0 tests=AWL,BAYES_00,DKIM_SIGNED,DKIM_VALID,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW |
X-Spam-Check-By: | sourceware.org |
Subject: | Re: program_invocation_name |
From: | "Yaakov (Cygwin/X)" <yselkowitz AT users DOT sourceforge DOT net> |
To: | cygwin <cygwin AT cygwin DOT com> |
In-Reply-To: | <4D15177E.7080508@redhat.com> |
References: | <4D15177E DOT 7080508 AT redhat DOT com> |
Date: | Sat, 25 Dec 2010 20:39:53 -0600 |
Message-ID: | <1293331193.5636.4.camel@YAAKOV04> |
Mime-Version: | 1.0 |
Mailing-List: | contact cygwin-help AT cygwin DOT com; run by ezmlm |
List-Id: | <cygwin.cygwin.com> |
List-Unsubscribe: | <mailto:cygwin-unsubscribe-archive-cygwin=delorie DOT com AT cygwin DOT com> |
List-Subscribe: | <mailto:cygwin-subscribe AT cygwin DOT com> |
List-Archive: | <http://sourceware.org/ml/cygwin/> |
List-Post: | <mailto:cygwin AT cygwin DOT com> |
List-Help: | <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs> |
Sender: | cygwin-owner AT cygwin DOT com |
Mail-Followup-To: | cygwin AT cygwin DOT com |
Delivered-To: | mailing list cygwin AT cygwin DOT 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
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |