Lines Matching defs:pwd
40 #include <pwd.h>53 struct passwd *pwd;63 pwd = NULL;88 if ((pwd = getpwnam(user)) == NULL)90 if ((lc = login_getclass(pwd->pw_class)) == NULL)113 if (setusercontext(lc, pwd, pwd->pw_uid, flags) == -1)120 if (pwd != NULL) {123 setlogin(pwd->pw_name);124 if (setuid(pwd->pw_uid) != 0)