Searched refs:pwent (Results 1 – 8 of 8) sorted by relevance
/third_party/ltp/testcases/kernel/syscalls/getgid/ |
D | getgid03.c | 23 struct passwd *pwent; in run() local 30 pwent = getpwuid(uid); in run() 31 if (pwent == NULL) in run() 34 GID16_CHECK(pwent->pw_gid, getgid); in run() 36 if (pwent->pw_gid != TST_RET) { in run() 39 TST_RET, pwent->pw_gid); in run()
|
/third_party/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()
|
/third_party/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()
|
/third_party/alsa-lib/src/ |
D | userfile.c | 85 struct passwd pwent, *p = NULL; in snd_user_file() local 93 while ((err = getpwuid_r(id, &pwent, buf, bufsize, &p)) == ERANGE) { in snd_user_file() 103 home = err ? "" : pwent.pw_dir; in snd_user_file()
|
/third_party/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()
|
/third_party/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()
|
/third_party/python/Lib/ |
D | posixpath.py | 259 pwent = pwd.getpwnam(name) 264 userhome = pwent.pw_dir
|
/third_party/sqlite/src/ |
D | shell.c | 22041 struct passwd *pwent; in find_home_dir() local 22043 if( (pwent=getpwuid(uid)) != NULL) { in find_home_dir() 22044 home_dir = pwent->pw_dir; in find_home_dir()
|