This patch tightens up our determination of whether we can use
authorKen Raeburn <raeburn@mit.edu>
Sat, 26 Mar 2005 02:00:47 +0000 (02:00 +0000)
committerKen Raeburn <raeburn@mit.edu>
Sat, 26 Mar 2005 02:00:47 +0000 (02:00 +0000)
commit1c36eeeaf08a93307fb218fc74577702728e3988
tree74d716c29558b1b0540db20ff6d70837203ddb72
parent312470080c96261823929723eb366fcf73b16082
This patch tightens up our determination of whether we can use
getpw{nam,uid}_r, and using the set flags, creates macros providing a
consistent API, and if possible thread safety.

* configure.in: Don't check for getpwnam_r and getpwuid_r with AC_CHECK_FUNCS;
use AC_CHECK_FUNC, and only set shell variables.  Run stricter tests on return
types and numbers of arguments, and only define the C macros if these
parameters can actually be determined.
* k5-platform.h (k5_getpwnam_r, k5_getpwuid_r): New macros.

ticket: 2982
status: open

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@17155 dc483132-0cff-0310-8789-dd5450dbe970
src/include/ChangeLog
src/include/configure.in
src/include/k5-platform.h