tech-userlevel archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: Addition of ppoll(2), a wrapper around pollts(2)
On Mon, May 25, 2020 at 10:06:22AM +0200, Martin Husemann wrote:
> On Mon, May 25, 2020 at 12:20:53PM +0530, Apurva Nandan wrote:
> > The problem with __weak_alias is that they only work inside the same C file
> > where the original symbol is defined, and don't work outside that file for
> > that symbol.
>
> That is not true.
It is. ELF symbols are all attached an actual byte range. There is no
way to create an indirect symbol. I don't have a strong opinion on
whether the alias (or a wrapper) should be added or not.
> > I have created _ppoll internal function in libc, so it is added to
> > namespace.h .
>
> But why? It is not used in libc, so no need to play namespace games.
Agreed, it shouldn't be used in libc itself.
Joerg
Home |
Main Index |
Thread Index |
Old Index