Lines Matching defs:shadow
40 #include <shadow.h>
504 * str2spwd() -- convert a string to a shadow passwd entry. The parser is
524 struct spwd *shadow = (struct spwd *)ent;
546 shadow->sp_namp = bufp = buffer;
547 shadow->sp_pwdp = 0;
548 shadow->sp_lstchg = -1;
549 shadow->sp_min = -1;
550 shadow->sp_max = -1;
551 shadow->sp_warn = -1;
552 shadow->sp_inact = -1;
553 shadow->sp_expire = -1;
554 shadow->sp_flag = 0;
564 shadow->sp_pwdp = bufp;
576 if (!getfield(&p, limit, 0, &shadow->sp_lstchg))
578 if (!getfield(&p, limit, 0, &shadow->sp_min))
580 if (!getfield(&p, limit, 0, &shadow->sp_max))
582 if (!getfield(&p, limit, 0, &shadow->sp_warn))
584 if (!getfield(&p, limit, 0, &shadow->sp_inact))
586 if (!getfield(&p, limit, 0, &shadow->sp_expire))
588 if (!getfield(&p, limit, 1, &shadow->sp_flag))