Lines Matching defs:spwd
907 struct spwd spwd{};
908 struct spwd* spwdPtr = nullptr;
917 getspnam_r(userName.c_str(), &spwd, buffer.data(), buflen, &spwdPtr);
918 // On success, getspnam_r() returns zero, and sets *spwdPtr to spwd.
921 if ((status == 0) && (&spwd == spwdPtr))
924 // spwd.sp_lstchg == 0 means password is expired, and
925 // spwd.sp_max == -1 means the password does not expire.
928 if ((spwd.sp_lstchg == 0) ||
929 ((spwd.sp_max != -1) && ((spwd.sp_max + spwd.sp_lstchg) < today)))
1015 struct spwd spwd;
1016 struct spwd* resultPtr = nullptr;
1017 int status = getspnam_r(userName.c_str(), &spwd, buffer.data(),
1019 if (!status && (&spwd == resultPtr))