/external/ltp/testcases/kernel/syscalls/getegid/ |
getegid02.c | 43 struct passwd *pwent; local 59 pwent = getpwuid(euid); 61 if (pwent == NULL) 65 GID16_CHECK(pwent->pw_gid, getegid, cleanup); 67 if (pwent->pw_gid != TEST_RETURN) { 70 TEST_RETURN, pwent->pw_gid);
|
/external/ltp/testcases/kernel/syscalls/geteuid/ |
geteuid02.c | 34 struct passwd *pwent; local 51 pwent = getpwuid(uid); 53 if (pwent == NULL) 56 UID16_CHECK(pwent->pw_uid, geteuid, cleanup); 57 if (pwent->pw_uid != TEST_RETURN) 60 "value, %ld", pwent->pw_uid,
|
/external/ltp/testcases/kernel/syscalls/getgid/ |
getgid03.c | 43 struct passwd *pwent; local 59 pwent = getpwuid(uid); 61 if (pwent == NULL) 65 GID16_CHECK(pwent->pw_gid, getgid, cleanup); 67 if (pwent->pw_gid != TEST_RETURN) { 70 TEST_RETURN, pwent->pw_gid);
|
/external/ltp/testcases/kernel/syscalls/getuid/ |
getuid03.c | 41 struct passwd *pwent; local 59 pwent = getpwuid(uid); 61 if (pwent == NULL) 64 UID16_CHECK(pwent->pw_uid, getuid, cleanup); 66 if (pwent->pw_uid != TEST_RETURN) 69 "value, %ld", pwent->pw_uid,
|
/external/ltp/testcases/kernel/syscalls/readlink/ |
readlink04.c | 110 struct passwd *pwent; local 122 if ((pwent = getpwnam("bin")) == NULL) 126 SAFE_CHOWN(cleanup, tmp_dir, pwent->pw_uid, pwent->pw_gid); 147 if ((pwent = getpwnam("nobody")) == NULL) 150 SAFE_SETEUID(cleanup, pwent->pw_uid);
|
/libcore/ojluni/src/main/native/ |
java_props_md.c | 526 struct passwd *pwent = getpwuid(getuid()); local 527 sprops.user_name = pwent ? strdup(pwent->pw_name) : "?"; 528 sprops.user_home = pwent ? strdup(pwent->pw_dir) : "?";
|
UnixNativeDispatcher.c | 986 struct passwd pwent; local 992 RESTARTABLE_RETURN_PTR(getpwuid_r((uid_t)uid, &pwent, pwbuf, (size_t)buflen), p); 994 RESTARTABLE(getpwuid_r((uid_t)uid, &pwent, pwbuf, (size_t)buflen, &p), res); 1089 struct passwd pwent; local [all...] |
/external/selinux/libselinux/src/ |
seusers.c | 97 struct passwd pwstorage, *pwent = NULL; local 105 int retval = getpwnam_r(name, &pwstorage, rbuf, rbuflen, &pwent); 106 if (retval == 0 && pwent) { 107 gid = pwent->pw_gid;
|
/external/selinux/libsemanage/src/ |
genhomedircon.c | 968 struct passwd pwstorage, *pwent = NULL; local 999 retval = getpwnam_r(name, &pwstorage, rbuf, rbuflen, &pwent); 1000 if (retval != 0 || pwent == NULL) { 1011 int len = strlen(pwent->pw_dir) -1; 1012 for(; len > 0 && pwent->pw_dir[len] == '/'; len--) { 1013 pwent->pw_dir[len] = '\0'; 1016 if (strcmp(pwent->pw_dir, "/") == 0) { 1024 if (ignore(pwent->pw_dir)) { 1029 len = snprintf(uid, sizeof(uid), "%u", pwent->pw_uid); 1034 len = snprintf(gid, sizeof(gid), "%u", pwent->pw_gid) [all...] |
/external/sqlite/dist/orig/ |
shell.c | 14753 struct passwd *pwent; local [all...] |
/external/sqlite/dist/ |
shell.c | 14776 struct passwd *pwent; local [all...] |