Date: Sat, 12 Jan 2008 05:10:16 GMT From: John Birrell <jb@FreeBSD.org> To: Perforce Change Reviews <perforce@freebsd.org> Subject: PERFORCE change 133099 for review Message-ID: <200801120510.m0C5AG1q009374@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=133099 Change 133099 by jb@jb_freebsd1 on 2008/01/12 05:09:19 Hack to get around asserts where libdtrace delves into private libc voodoo on Solaris to check if a mutex is held. Affected files ... .. //depot/projects/dtrace/src/contrib/opensolaris/lib/libdtrace/common/dt_subr.c#14 edit Differences ... ==== //depot/projects/dtrace/src/contrib/opensolaris/lib/libdtrace/common/dt_subr.c#14 (text) ==== @@ -848,14 +848,18 @@ extern int _rw_write_held(struct _rwlock *); return (_rw_write_held((struct _rwlock *)lock)); } +#endif int dt_mutex_held(pthread_mutex_t *lock) { +#if defined(sun) extern int _mutex_held(struct _lwp_mutex *); return (_mutex_held((struct _lwp_mutex *)lock)); +#else + return (1); +#endif } -#endif static int dt_string2str(char *s, char *str, int nbytes)
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200801120510.m0C5AG1q009374>