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