/external/ltp/testcases/kernel/syscalls/getuid/ |
D | getuid03.c | 41 struct passwd *pwent; in main() local 59 pwent = getpwuid(uid); in main() 61 if (pwent == NULL) in main() 64 UID16_CHECK(pwent->pw_uid, getuid, cleanup); in main() 66 if (pwent->pw_uid != TEST_RETURN) in main() 69 "value, %ld", pwent->pw_uid, in main()
|
/external/ltp/testcases/kernel/syscalls/getgid/ |
D | getgid03.c | 43 struct passwd *pwent; in main() local 59 pwent = getpwuid(uid); in main() 61 if (pwent == NULL) in main() 65 GID16_CHECK(pwent->pw_gid, getgid, cleanup); in main() 67 if (pwent->pw_gid != TEST_RETURN) { in main() 70 TEST_RETURN, pwent->pw_gid); in main()
|
/external/ltp/testcases/kernel/syscalls/geteuid/ |
D | geteuid02.c | 34 struct passwd *pwent; in main() local 51 pwent = getpwuid(uid); in main() 53 if (pwent == NULL) in main() 56 UID16_CHECK(pwent->pw_uid, geteuid, cleanup); in main() 57 if (pwent->pw_uid != TEST_RETURN) in main() 60 "value, %ld", pwent->pw_uid, in main()
|
/external/ltp/testcases/kernel/syscalls/getegid/ |
D | getegid02.c | 43 struct passwd *pwent; in main() local 59 pwent = getpwuid(euid); in main() 61 if (pwent == NULL) in main() 65 GID16_CHECK(pwent->pw_gid, getegid, cleanup); in main() 67 if (pwent->pw_gid != TEST_RETURN) { in main() 70 TEST_RETURN, pwent->pw_gid); in main()
|
/external/ltp/testcases/kernel/syscalls/readlink/ |
D | readlink03.c | 93 struct passwd *pwent; in setup() local 95 pwent = SAFE_GETPWNAM("nobody"); in setup() 96 SAFE_SETEUID(pwent->pw_uid); in setup()
|
/external/selinux/libselinux/src/ |
D | seusers.c | 97 struct passwd pwstorage, *pwent = NULL; in get_default_gid() local 105 int retval = getpwnam_r(name, &pwstorage, rbuf, rbuflen, &pwent); in get_default_gid() 106 if (retval == 0 && pwent) { in get_default_gid() 107 gid = pwent->pw_gid; in get_default_gid()
|
/external/selinux/libsemanage/src/ |
D | genhomedircon.c | 973 struct passwd pwstorage, *pwent = NULL; in add_user() local 1008 retval = getpwnam_r(name, &pwstorage, rbuf, rbuflen, &pwent); in add_user() 1009 if (retval != 0 || pwent == NULL) { in add_user() 1020 int len = strlen(pwent->pw_dir) -1; in add_user() 1021 for(; len > 0 && pwent->pw_dir[len] == '/'; len--) { in add_user() 1022 pwent->pw_dir[len] = '\0'; in add_user() 1025 if (strcmp(pwent->pw_dir, "/") == 0) { in add_user() 1033 if (ignore(pwent->pw_dir)) { in add_user() 1038 len = snprintf(uid, sizeof(uid), "%u", pwent->pw_uid); in add_user() 1043 len = snprintf(gid, sizeof(gid), "%u", pwent->pw_gid); in add_user() [all …]
|
/external/flac/src/plugin_xmms/ |
D | plugin.c | 168 struct passwd *pwent; in homedir() local 170 pwent = getpwent(); in homedir() 171 } while (pwent && pwent->pw_uid != uid); in homedir() 172 result = pwent ? g_strdup (pwent->pw_dir) : NULL; in homedir()
|
/external/python/cpython2/Demo/pdist/ |
D | cvslock.py | 178 pwent = pwd.getpwuid(uid) 179 user = pwent[0]
|
/external/openssh/ |
D | monitor.c | 720 struct passwd *pwent; in mm_answer_pwnamallow() local 732 pwent = getpwnamallow(ssh, username); in mm_answer_pwnamallow() 735 setproctitle("%s [priv]", pwent ? username : "unknown"); in mm_answer_pwnamallow() 740 if (pwent == NULL) { in mm_answer_pwnamallow() 748 authctxt->pw = pwent; in mm_answer_pwnamallow() 753 (r = sshbuf_put_string(m, pwent, sizeof(*pwent))) != 0 || in mm_answer_pwnamallow() 754 (r = sshbuf_put_cstring(m, pwent->pw_name)) != 0 || in mm_answer_pwnamallow() 757 (r = sshbuf_put_cstring(m, pwent->pw_gecos)) != 0 || in mm_answer_pwnamallow() 760 (r = sshbuf_put_cstring(m, pwent->pw_class)) != 0 || in mm_answer_pwnamallow() 762 (r = sshbuf_put_cstring(m, pwent->pw_dir)) != 0 || in mm_answer_pwnamallow() [all …]
|
/external/python/cpython2/Lib/ |
D | posixpath.py | 268 pwent = pwd.getpwnam(path[1:i]) 271 userhome = pwent.pw_dir
|
/external/python/cpython3/Lib/ |
D | posixpath.py | 259 pwent = pwd.getpwnam(name) 264 userhome = pwent.pw_dir
|
/external/sqlite/dist/ |
D | shell.c | 18809 struct passwd *pwent; in find_home_dir() local 18811 if( (pwent=getpwuid(uid)) != NULL) { in find_home_dir() 18812 home_dir = pwent->pw_dir; in find_home_dir()
|
/external/sqlite/dist/orig/ |
D | shell.c | 18788 struct passwd *pwent; in find_home_dir() local 18790 if( (pwent=getpwuid(uid)) != NULL) { in find_home_dir() 18791 home_dir = pwent->pw_dir; in find_home_dir()
|