Home
last modified time | relevance | path

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

/libuv/test/
H A Dtest-spawn.c1466 struct passwd* pw; in TEST_IMPL() local
1479 pw = getpwnam("nobody"); in TEST_IMPL()
1480 ASSERT_NOT_NULL(pw); in TEST_IMPL()
1481 options.uid = pw->pw_uid; in TEST_IMPL()
1482 options.gid = pw->pw_gid; in TEST_IMPL()
1516 struct passwd* pw; in TEST_IMPL() local
1517 pw = getpwnam("nobody"); in TEST_IMPL()
1518 ASSERT_NOT_NULL(pw); in TEST_IMPL()
1567 struct passwd* pw; in TEST_IMPL() local
1568 pw = getpwnam("nobody"); in TEST_IMPL()
[all …]
/libuv/src/unix/
H A Dcore.c1214 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