This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
Re: [PATCH] Make getsockopt() a weak symbol
On 20/07/10 01:36, Roland McGrath wrote:
> The reason is that there was, and is, no __getsockopt call from elsewhere
> in libc. Calls to getsockopt are kosher in parts of libc that are never
> called by ISO C libc functions. POSIX code cannot use the name getsockopt
> for its own purposes anyway.
>
> What problem do you think you are solving here?
Ah, I should have checked if there were calls to getsockopt from libc. I thought
that there could be and that they would break if a program redefined getsockopt,
but that's obviously not the case if libc doesn't call it.
Sorry for the noise.
Emilio