The attached patch makes libc_r use the recently added hooks in the
dynamic linker to provide locking so that the dynamic linker is
thread-safe.  I have tested it in a simple program and I believe it
works OK.  If any of you have a -current system with a non-trivial
libc_r application, I would appreciate it if you'd give this patch a
try and let me know whether you see any problems with it.  You can
apply the patch by getting into "src/lib/libc_r" and typing "patch
-IEp < libc_r.patch"

Also, if anybody can point me to programs in the ports collection
that use libc_r and aren't too hard to set up and run, that would be
helpful too.

Thanks,
John
---
  John Polstra                                               [EMAIL PROTECTED]
  John D. Polstra & Co., Inc.                        Seattle, Washington USA
  "Disappointment is a good sign of basic intelligence."  -- Chögyam Trungpa

libc_r.patch

Reply via email to