Linux/doors add-on

Ulrich Drepper drepper@cygnus.com
Fri Jul 31 14:34:00 GMT 1998


hjl@lucon.org (H.J. Lu) writes:

> in libdoor and in libc, it has
> 
> #pragma weak _door_call = __door_call
> 
> int
> __door_call (int d, door_arg_t *params)
> {
>  .....
> }

This is not necessary.  Simply write

int
__door_call (int d, door_arg_t *params)
{
 .....
}
weak_extern (__door_call)

-- 
---------------.      drepper at gnu.org  ,-.   1325 Chesapeake Terrace
Ulrich Drepper  \    ,-------------------'   \  Sunnyvale, CA 94089 USA
Cygnus Solutions `--' drepper at cygnus.com   `------------------------



More information about the Libc-hacker mailing list