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

Note that libc-hacker is a closed list. You may look at the archives of this list, but subscription and posting are not open.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: new syscall stub support for ia64 libc


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

David Mosberger wrote:

> Next stupid question: what's the purpose of librt?  I'm asking since
> sysdep.h now says:

It's just another POSIX-defined library.  It needs some special
treatment since it also can contain system calls.

> 
> #if defined USE_DL_SYSINFO \
> 	&& (!defined NOT_IN_libc || defined IS_IN_libpthread)
> # define IA64_USE_NEW_STUB
> #else
> # undef IA64_USE_NEW_STUB
> #endif
> 
> and in <sysdep-cancel.h>, it says:
> 
> #if !defined NOT_IN_libc || defined IS_IN_libpthread || defined IS_IN_librt
> 
> # undef PSEUDO
> # define PSEUDO(name, syscall_name, args)				      \
>      :
>    <code that uses the IA64_USE_NEW_STUB convention>
>      :
> 
> That is, anything in librt that uses the PSEUDO() macro from
> sysdep-cancel.h will try to uses the new stub, but nothing else will.

I don't understand.  The code you quotes shows that the new stub is used
for libc and libpthread so far.  The cancellation handling is in
addition also used for librt.  The two are independent, but you should
add || defined IS_IN_librt to the code in the ia64 header.

- -- 
â Ulrich Drepper â Red Hat, Inc. â 444 Castro St â Mountain View, CA â
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.2 (GNU/Linux)

iD8DBQE/svy+2ijCOnn/RHQRAiMXAJ9qf8m0eBQ0rBvY4alPhswD/whwvQCfbPjI
tSm11v+b8h3eX5T4tYh0cAw=
=K/5U
-----END PGP SIGNATURE-----


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