Re: [bug-gnulib] Re: getopt and Solaris 10

2005-05-10 Thread Derek Price
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Karl Berry wrote: > GNU getopt tries to do too much when it reorders the commandline and > therefor needs the "+" as a workaround. > >I don't suppose it matters at this point, but I fail to see the >connection here. You can tell GNU getopt to REQUIRE_

Re: [bug-gnulib] Re: getopt and Solaris 10

2005-05-10 Thread Derek Price
Paul Eggert wrote: >Derek Price <[EMAIL PROTECTED]> writes: > > > >>Revised patch attached. >> >> > >Thanks; I installed the following slightly-different patch. > > Works for me. Thanks Paul. Derek ___ bug-gnulib mailing list bug-gnulib@gn

Re: [bug-gnulib] Re: getopt and Solaris 10

2005-05-10 Thread Karl Berry
GNU getopt tries to do too much when it reorders the commandline and therefor needs the "+" as a workaround. I don't suppose it matters at this point, but I fail to see the connection here. You can tell GNU getopt to REQUIRE_ORDER instead of PERMUTE without using +, either directly or set

Re: [bug-gnulib] Re: getopt and Solaris 10

2005-05-10 Thread Paul Eggert
Derek Price <[EMAIL PROTECTED]> writes: > Revised patch attached. Thanks; I installed the following slightly-different patch. 2005-05-10 Derek Price <[EMAIL PROTECTED]> * getopt.m4 (gl_GETOPT): Check for Solaris 10 bug, not decl, when possible. --- getopt.m4 6 May 2005 01:0

Re: [bug-gnulib] Re: getopt and Solaris 10

2005-05-10 Thread Larry Jones
Derek Price writes: > > Okay, looking at that in C89 now, but just out of curiosity, if argv > needs to be NULL terminated, what's the point of argc? I believe it was added for convenience back in the dark ages. All the Unix exec functions require a null-terminated argument list (and don't have

Re: [bug-gnulib] Re: getopt and Solaris 10

2005-05-10 Thread Derek Price
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Matthias Kurz wrote: >I'm running out of time. I have to quit. Thanks very much for your effords. >When there is something to test, i'll still try to help. No problem. Thanks for your help, Matthias. Regards, Derek -BEGIN PGP SIGNATURE- V

Re: [bug-gnulib] Re: getopt and Solaris 10

2005-05-10 Thread Derek Price
Paul Eggert wrote: >Derek Price <[EMAIL PROTECTED]> writes: > > > > >>+ myargv[[0]] = "conftest"; >>+ myargv[[1]] = "-+"; >> >> > >This doesn't null-terminate myargv. > > Okay, looking at that in C89 now, but just out of curiosity, if argv needs to be NULL terminated, what

Re: [bug-gnulib] Re: getopt and Solaris 10

2005-05-10 Thread Derek Price
Paul Eggert wrote: >Derek Price <[EMAIL PROTECTED]> writes: > > > > >>+ myargv[[0]] = "conftest"; >>+ myargv[[1]] = "-+"; >> >> > >This doesn't null-terminate myargv. > >But I still don't get why the change is needed. It sounds like you're >assuming Solaris 11 getopt might g

[bug-gnulib] Re: [PATCH]: getaddrinfo module broken

2005-05-10 Thread Simon Josefsson
Yoann Vandoorselaere <[EMAIL PROTECTED]> writes: > Hi, > > Here is a patch that address several issues in the getaddrinfo GnuLib > module implementation: Applied! The getaddrinfo module is rather incomplete, so you, or anyone else, wish to read the standard and review the code for missing pieces

Re: [bug-gnulib] [bug-gnulib] fts portability fix for hosts with unusual pointer semantics

2005-05-10 Thread Bruno Haible
James Youngman wrote: > Paul> +static int > Paul> +fts_compar (void const *a, void const *b) > Paul> +{ > Paul>/* ... */ > Paul> + return pa[0]->fts_fts->fts_compar (pa, pb); > Paul> +} > ... compilers are likely to be able to inline the actual > subroutine call away in any case. How should t

Re: [bug-gnulib] Re: getopt and Solaris 10

2005-05-10 Thread Matthias Kurz
On Tue, May 10, 2005, Matthias Kurz wrote: > On Mon, May 09, 2005, Paul Eggert wrote: > [...] > > But I still don't get why the change is needed. It sounds like you're > > assuming Solaris 11 getopt might get fixed? But even in that case, > > the current code will work, right, since it will use