Peter Taps wrote: > Hello, > > I am able to use function crypt() to verify user passwords. However, this > function is not thread-safe. From gnu documentation, there is a thread-safe > version called crypt_r. However, this function is not mentioned in any header > file under /usr/include.
The man page for crypt(3C) says that it is MT-safe on OpenSolaris. Why do you think otherwise ... ? For what it's worth, most (all?) library functions that return pointers to static data use thread-local storage to avoid MT problems. > I am wondering if there is any other function under OpenSolaris that is > equivalent to crypt_r. crypt(3C) should work. No crypt_r is needed. -- James Carlson 42.703N 71.076W <carls...@workingcode.com> _______________________________________________ opensolaris-code mailing list opensolaris-code@opensolaris.org http://mail.opensolaris.org/mailman/listinfo/opensolaris-code