Lines Matching refs:sp
64 check_shadow(const struct passwd *pw, const struct spwd *sp)
70 if (sp == NULL)
73 if (sp->sp_expire > 0) {
74 if (today >= sp->sp_expire) {
78 } else if (sp->sp_expire - today < 14) {
80 (int)(sp->sp_expire - today));
84 if (sp->sp_max > 0) {
85 if (today >= (sp->sp_lstchg + sp->sp_max)) {
88 } else if (sp->sp_warn > 0
89 && (today > (sp->sp_lstchg + sp->sp_max - sp->sp_warn))) {
91 (int)(sp->sp_lstchg + sp->sp_max - today));