how to overcome missing stubs in FreeBSD 6 (continued)

View: New views
2 Messages — Rating Filter:   Alert me  

how to overcome missing stubs in FreeBSD 6 (continued)

by Alex Dupre :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hmmm, I saw that even in the threading libraries the pthread_* symbols
are weak, why? This could explain the behavior.
In the pthread_equal() case the "right != clean" thing could be to
create a stub comparing the parameters instead of blindly return(1).

--
Alex Dupre
_______________________________________________
freebsd-threads@... mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-threads
To unsubscribe, send any mail to "freebsd-threads-unsubscribe@..."

Re: how to overcome missing stubs in FreeBSD 6 (continued)

by Alex Dupre :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Alex Dupre wrote:
> In the pthread_equal() case the "right != clean" thing could be to
> create a stub comparing the parameters instead of blindly return(1).

Maybe the following solution is better:

int pthread_equal() __attribute__ ((weak));
#define pthread_equal(a,b) (pthread_equal == 0 ? 1 : pthread_equal(a,b))

--
Alex Dupre
_______________________________________________
freebsd-threads@... mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-threads
To unsubscribe, send any mail to "freebsd-threads-unsubscribe@..."