getspnam、getspent、setspent和endspent
头文件
#include <shadow.h>
函数原型
struct spwd *getspnam(const char *name);
struct spwd *getspent(void);
void setspent(void);
void endspent(void);
struct spwd *getspent(void);
void setspent(void);
void endspent(void);
spwd结构
struct spwd { char *sp_namp; /* 用户登录名 */
char *sp_pwdp; /* 加密口令 */
long int sp_lstchg; /* 上次更改口令以来的时间 */
long int sp_min; /* 进过多少天后可以更改 */