This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
Re: Why does elf/dl-load.c have local_strdup?
- From: Roland McGrath <roland at hack dot frob dot com>
- To: "Carlos O'Donell" <carlos at redhat dot com>
- Cc: GNU C Library <libc-alpha at sourceware dot org>
- Date: Mon, 20 Oct 2014 13:41:53 -0700 (PDT)
- Subject: Re: Why does elf/dl-load.c have local_strdup?
- Authentication-results: sourceware.org; auth=none
- References: <54456FA1 dot 9070804 at redhat dot com>
I don't see any reason for it. When it was added, it was replacing
open-coded malloc+memcpy sequences. But I don't know why the normal
implementation could not have been used. Name space issues might mean we
should only use __strdup here, but that could have been done at the time
local_strdup was added too.