Home
last modified time | relevance | path

Searched refs:pw (Results 1 – 6 of 6) sorted by relevance

/system/extras/su/
Dsu.c44 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/
Dchown.c32 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()
Did.c10 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()
Dps.c45 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()
Dls.c71 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/
Dperm_checker.c72 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()