Linux/doors add-on

H.J. Lu hjl@lucon.org
Fri Jul 31 13:33:00 GMT 1998


> I have one problem: __door_call is in libc. In libdoor, we have the "official"
> function door_call. How could I make this function a weak alias to the
> libc version, like Sun has made it in Solaris 2.6 ?
> 

>From all I can see in Solaris 2.6, it has

int
door_call (int d, door_arg_t *params)
{
  return _door_call (d, params);
}

in libdoor and in libc, it has

#pragma weak _door_call = __door_call

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

-- 
H.J. Lu (hjl@gnu.org)



More information about the Libc-hacker mailing list