[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
strdup
From: |
Simon Josefsson |
Subject: |
strdup |
Date: |
Thu, 18 Sep 2008 11:52:06 +0200 |
User-agent: |
Gnus/5.110011 (No Gnus v0.11) Emacs/22.2 (gnu/linux) |
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
address@hidden:~/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
address@hidden:~/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
address@hidden:~/src/gnulib master$
- strdup,
Simon Josefsson <=
- Re: strdup, Simon Josefsson, 2008/09/18