Searched refs:pw (Results 1 – 2 of 2) sorted by relevance
/libuv/test/ |
H A D | test-spawn.c | 1464 struct passwd* pw; in TEST_IMPL() local 1477 pw = getpwnam("nobody"); in TEST_IMPL() 1478 ASSERT_NOT_NULL(pw); in TEST_IMPL() 1479 options.uid = pw->pw_uid; in TEST_IMPL() 1480 options.gid = pw->pw_gid; in TEST_IMPL() 1514 struct passwd* pw; in TEST_IMPL() local 1515 pw = getpwnam("nobody"); in TEST_IMPL() 1516 ASSERT_NOT_NULL(pw); in TEST_IMPL() 1565 struct passwd* pw; in TEST_IMPL() local 1566 pw = getpwnam("nobody"); in TEST_IMPL() [all …]
|
/libuv/src/unix/ |
H A D | core.c | 1214 struct passwd pw; in uv__getpwuid_r() local 1236 r = getpwuid_r(uid, &pw, buf, bufsize, &result); in uv__getpwuid_r() 1253 name_size = strlen(pw.pw_name) + 1; in uv__getpwuid_r() 1254 homedir_size = strlen(pw.pw_dir) + 1; in uv__getpwuid_r() 1255 shell_size = strlen(pw.pw_shell) + 1; in uv__getpwuid_r() 1264 memcpy(pwd->username, pw.pw_name, name_size); in uv__getpwuid_r() 1268 memcpy(pwd->homedir, pw.pw_dir, homedir_size); in uv__getpwuid_r() 1272 memcpy(pwd->shell, pw.pw_shell, shell_size); in uv__getpwuid_r() 1275 pwd->uid = pw.pw_uid; in uv__getpwuid_r() 1276 pwd->gid = pw.pw_gid; in uv__getpwuid_r()
|
Completed in 12 milliseconds