Are there any platforms we care about that lack strdup?

doc/posix-functions/strdup.texi contains:

Portability problems fixed by Gnulib:
@itemize
@item
This function is missing on some old platforms.
@item
This function has no prototype in @code{<string.h>} on some old platforms.
@end itemize

There are a few gnulib modules that depend directly on strdup.  Several
other gnulib modules appear to use strdup without depending on strdup.
See grep output below.

I'm wondering if we could remove the dependencies, trusting that
maintainers who care about platforms without strdup will add it
manually.

Thoughts?

/Simon

[EMAIL PROTECTED]:~/src/gnulib master$ grep -l strdup modules/*
modules/canon-host
modules/dirname-tests
modules/fchdir
modules/findprog-lgpl
modules/getaddrinfo
modules/glob
modules/hard-locale
modules/rpmatch
modules/strdup
modules/striconv
modules/striconveh
modules/striconveha
modules/userspec
[EMAIL PROTECTED]:~/src/gnulib master$ grep -l strdup lib/*.c
lib/canon-host.c
lib/classpath.c
lib/clean-temp.c
lib/c-strtod.c
lib/exclude.c
lib/fchdir.c
lib/file-set.c
lib/findprog.c
lib/getaddrinfo.c
lib/getpass.c
lib/getusershell.c
lib/glob.c
lib/hard-locale.c
lib/javacomp.c
lib/javaexec.c
lib/localename.c
lib/mkdir.c
lib/mountlist.c
lib/progreloc.c
lib/relocatable.c
lib/rename.c
lib/rename-dest-slash.c
lib/rpmatch.c
lib/sh-quote.c
lib/strdup.c
lib/striconv.c
lib/striconveha.c
lib/striconveh.c
lib/trim.c
lib/userspec.c
lib/xmalloc.c
[EMAIL PROTECTED]:~/src/gnulib master$ 



Reply via email to