[PATCH] Rename pwait for LynxOS

Adam Nemet anemet@lnxw.com
Tue Aug 17 19:39:00 GMT 2004


On Tue, 17 Aug 2004 10:16:23 -0400, DJ Delorie <dj@redhat.com> said:
> 
>> 4. pwait is reserved, package does not have the pwait check
> 
> This one is the obvious one.  The other case is that different
> packages have different tests, so sometimes pwait is not reserved by
> libiberty but is by someone else.  It becomes a maintenance nightmare.

Yes but in that case HAVE_PWAIT will not be defined unless the system
reserves pwait too.  And if pwait is reserved by the system the other
package will have to do its own renaming anyway.  So you end up with
three symbols libiberty_pwait for libiberty, other_pwait for the other
package and wait for the libc function.  I don't see what is wrong
with this setup.  Anyway, if that's not what you had in mind please
provide an example.

Adam



More information about the Gcc-patches mailing list