Searched refs:pw (Results 1 – 6 of 6) sorted by relevance
/system/extras/su/ |
D | su.c | 44 struct passwd *pw; in main() local 50 pw = getpwnam(argv[1]); in main() 52 if(pw == 0) { in main() 55 uid = pw->pw_uid; in main() 56 gid = pw->pw_gid; in main()
|
/system/core/toolbox/ |
D | chown.c | 32 struct passwd *pw; in chown_main() local 37 pw = getpwnam(user); in chown_main() 38 if (pw != NULL) { in chown_main() 39 uid = pw->pw_uid; in chown_main()
|
D | id.c | 10 struct passwd *pw = getpwuid(uid); in print_uid() local 12 if (pw) { in print_uid() 13 printf("%d(%s)", uid, pw->pw_name); in print_uid()
|
D | ps.c | 45 struct passwd *pw; in ps_line() local 136 pw = getpwuid(stats.st_uid); in ps_line() 137 if(pw == 0) { in ps_line() 140 strcpy(user,pw->pw_name); in ps_line()
|
D | ls.c | 71 struct passwd *pw = getpwuid(uid); in user2str() local 72 if(pw) { in user2str() 73 strcpy(out, pw->pw_name); in user2str()
|
/system/extras/tests/fstest/ |
D | perm_checker.c | 72 struct passwd *pw; in str2uid() local 77 if (!(pw = getpwnam(str))) { in str2uid() 81 return pw->pw_uid; in str2uid() 202 struct passwd *pw; in print_new_rule() local 205 pw = getpwuid(uid); in print_new_rule() 206 printf("%s %4o %4o %s %d %s %d\n", name, mode, mode, pw->pw_name, uid, in print_new_rule()
|