This is the mail archive of the libc-hacker@sourceware.cygnus.com mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: Linux/doors add-on


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   `------------------------


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]