X-Recipient: archive-cygwin AT delorie DOT com X-SWARE-Spam-Status: No, hits=-6.8 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_HI,SPF_HELO_PASS,T_RP_MATCHES_RCVD X-Spam-Check-By: sourceware.org Message-ID: <4D15177E.7080508@redhat.com> Date: Fri, 24 Dec 2010 14:58:22 -0700 From: Eric Blake User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.13) Gecko/20101209 Fedora/3.1.7-0.35.b3pre.fc14 Lightning/1.0b3pre Mnenhy/0.8.3 Thunderbird/3.1.7 MIME-Version: 1.0 To: cygwin Subject: program_invocation_name OpenPGP: url=http://people.redhat.com/eblake/eblake.gpg Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="------------enigFDB4E0E7DC5DDEF6B0F4C5E4" X-IsSubscribed: yes Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com --------------enigFDB4E0E7DC5DDEF6B0F4C5E4 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable 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 when strict standards compliance isn't requested. 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? --=20 Eric Blake eblake AT redhat DOT com +1-801-349-2682 Libvirt virtualization library http://libvirt.org --------------enigFDB4E0E7DC5DDEF6B0F4C5E4 Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.11 (GNU/Linux) Comment: Public key at http://people.redhat.com/eblake/eblake.gpg Comment: Using GnuPG with Fedora - http://enigmail.mozdev.org/ iQEcBAEBCAAGBQJNFRd+AAoJEKeha0olJ0NqTKoH/iVQs6FNzVEz1nDqGVTQcM9v jeJpHZqFUtEWs7j0tZofEdazLpB433BINj02IpwIz4FkIe88UIeAJp7uJXzQaD6A 9vZqVT8KJuDE53J/zDgcIrQxxR0S5EVIIeze2R3YBULLorfRfZNDKNtYRrqGLBWg OdEaZSgfxaxBD7tyTgqSIKd/YDpQRJOU/V74VAuFlY2OnWAqkjjnodSQqeA822VJ BHiKPclyYMXudPTcqsZIifnkr5N+o0uzRVr0GFlAGzAtOeNB3VMdd5wJwcRVr1Pe qCXLFkWOtT8WAVcCvyuvQykaellwlCmOuE19zzddM0jAARpBj4hby1IYeedjVng= =wNW6 -----END PGP SIGNATURE----- --------------enigFDB4E0E7DC5DDEF6B0F4C5E4--