bug-gnulib
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: new module strdup-posix


From: Paolo Bonzini
Subject: Re: new module strdup-posix
Date: Sun, 21 Sep 2008 16:52:05 +0200
User-agent: Thunderbird 2.0.0.16 (Macintosh/20080707)

Bruno Haible wrote:
> Simon Josefsson wrote:
>> right now strdup doesn't make sure ENOMEM is supported, and it seems
>> unclear whether the modules that depend on strdup actually require that
>> behaviour from the strdup module.  So as far as I can tell there is no
>> reason for the explicit dependency today.
> 
> At least one module, getpass, requires strdup to set errno, because getpass()
> is documented to let the user distinguish among various failures [1].

Why not document "using the strdup module for the sake of replacing
strdup is now obsolete", removing the dependency when POSIX behavior is
not required, and calling strdup-posix just strdup?

Paolo




reply via email to

[Prev in Thread] Current Thread [Next in Thread]