Re: xlc_r question for AIX 4.1.4
Date: 1996/05/30
Message-ID: <4ojmke$3v7_at_willow.hds.co.uk>#1/1
"mmissire" <mmissire_at_visigenic.com> wrote:
<snip>
>The man page for xlc_r doesn't say why you would use it, and I don't
>have access to the AIX C Language Reference or other compiler docs.
>Can anyone explain why one needs to use xlc_r? Should one use it for
>all shared libraries?
>
You only need to use xlc_r if your application uses threads. By using xlc_r, you will pick up the 're-entrant' versions of system libraries such as libc (in this case libc_r). However, it is not sufficient simply to use xlc_r, since some library routines have a re-entrant replacement (with the suffix '_r') with extra parameters to allow context information to be passed in/out of the routines instead of using a static data area.
If you're not multi-threaded, I'm not sure why you'd need to use xlc_r.
Gary
-- _____________________________________________________________________ Gary Walsh E-mail: Gary_Walsh_at_spire.hds.co.uk Open Systems Product Specialist Phone: +44 1753 618806 Hitachi Data Systems Europe Disclaimer: My views, not HDS'Received on Thu May 30 1996 - 00:00:00 CEST