Ian,

On Wed, Feb 22, 2006 at 09:49:56AM +1300, Ian Collins wrote:
> Paul Durrant wrote:
> >On 21 Feb 2006, at 20:38, Ian Collins wrote:
> >
> >>I was looking up the internals of pthread_mutex_lock, which calls 
> >>WaitForSingleObject.  This symbol isn't found....
> >
> >WaitForSingleObject() is a Windows function which I guess you're 
> >unlikely to find in Solaris :-)
> >[Look just above the def. of pthread_mutex_init() in open.c and you'll 
> >notice the #ifdef _WINDOWS]
>
> LOL!  I'd better go and get my reading glasses!  I hadn't noticed any 
> windows code in there before...

  It's always good to double-check the file you're in; quite a few
  "famous" symbols have oddball local definitions in the back waters of
  the source tree.  (Be extra careful of "libbc", which looks like
  libc, but isn't.)  I assume you were looking for the definition in
  libc:

  
http://cvs.opensolaris.org/source/xref/on/usr/src/lib/libc/port/threads/synch.c#1777

  The function's real name is __mutex_lock.  It only gets the name
  pthread_mutex_lock through the #prama weak above it, which makes
  tracking it down via the source browser a little trickier.

  Dave

_______________________________________________
opensolaris-code mailing list
[email protected]
https://opensolaris.org:444/mailman/listinfo/opensolaris-code

Reply via email to