[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: getopt broken
From: |
Eric Blake |
Subject: |
Re: getopt broken |
Date: |
Sat, 26 Sep 2009 16:11:20 -0600 |
User-agent: |
Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.23) Gecko/20090812 Thunderbird/2.0.0.23 Mnenhy/0.7.6.666 |
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
According to Sergey Poznyakoff on 9/26/2009 4:04 PM:
> Eric Blake <address@hidden> ha escrit:
>
>> Maybe the trick is to check whether _getopt_long_only_r is present to the
>> linker, in which case we can provide our own declaration of it
>
> Yes, but we cannot guarantee our declaration matches the actual function
> definition.
But I doubt that interface has ever changed signature in glibc, and is not
available anywhere else. I agree that we can't guarantee things, but it
seems like only a theoretical worry that we would declare it differently
than the underlying implementation, and it also seems like something that
our testsuite should be able to catch.
- --
Don't work too hard, make some time for fun as well!
Eric Blake address@hidden
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (Cygwin)
Comment: Public key at home.comcast.net/~ericblake/eblake.gpg
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/
iEYEARECAAYFAkq+kYgACgkQ84KuGfSFAYCOpgCfdy47G5cn7cdPaEycTdqqyday
DVQAnRkrK3y6kLnNm0+js+Li9FU1gpGb
=L/y8
-----END PGP SIGNATURE-----