2009/015 [ddi_strdup]
Edward Pilatowicz
edward.pilatowicz at sun.com
Mon Jan 12 15:54:40 PST 2009
On Mon, Jan 12, 2009 at 02:28:49PM -0800, Glenn Skinner wrote:
> Date: Sun, 11 Jan 2009 18:50:00 -0800 (PST)
> From: Christopher Horne <cth at sac.sfbay.sun.com>
> Subject: ddi_strdup [PSARC/2009/015 Self Review]
>
> ...
> Add ddi_strdup(9F), strdup(9F), and strfree(9F) to the DDI
>
> PROBLEM:
>
> Currently there are 6 version of strfree() and 18 versions of
> strdup() in the kernel.
>
> SOLUTION:
>
> The following interfaces will be introduced as Committed in
> <sys/sunddi.h> when _KERNEL is defined.
>
> char *ddi_strdup(const char *str, int flag);
> char *strdup(const char *str);
> void strfree(char *str);
>
> Does the project include cleaning up occurrences of the old versions
> of strfree() and strdup() mentioned above and replacing then with the
> Committed versions introduced here?
>
i was going to remove two private versions of strdup() (in lx_audio.c
and nfs4_client_debug.c) since they introduce symbol name conflicts, but
i was thinking all the other copies with random names could be cleaned
up with a subsequent putback(s).
ed
More information about the opensolaris-arc
mailing list