Lines Matching refs:buf
204 char buf[260 * NUM_OF_DATA] = { 0 }; // 260:Only numbers path String size is 260. in Cwd() local
205 size_t length = sizeof(buf); in Cwd()
206 int err = uv_cwd(buf, &length); in Cwd()
211 napi_create_string_utf8(env, buf, length, &result); in Cwd()
342 char buf[260 * NUM_OF_DATA] = { 0 }; // 260:Only numbers path String size is 260. in GetEnvironmentVar() local
343 size_t length = sizeof(buf); in GetEnvironmentVar()
358 auto envNum = uv_os_getenv(temp.c_str(), buf, &length); in GetEnvironmentVar()
363 napi_create_string_utf8(env, buf, strlen(buf), &convertResult); in GetEnvironmentVar()
390 std::string buf; in GetUidForName() local
391 buf.reserve(bufLen + 1); in GetUidForName()
392 buf.resize(bufLen); in GetUidForName()
393 if (getpwnam_r(result.c_str(), &user, buf.data(), bufLen, &bufp) == 0 && bufp != nullptr) { in GetUidForName()
637 std::string buf; in GetUidForName() local
638 buf.reserve(bufLen + 1); in GetUidForName()
639 buf.resize(bufLen); in GetUidForName()
640 if (getpwnam_r(result.c_str(), &user, buf.data(), bufLen, &bufp) == 0 && bufp != nullptr) { in GetUidForName()
690 char buf[260 * NUM_OF_DATA] = { 0 }; // 260:Only numbers path String size is 260. in GetEnvironmentVar() local
691 size_t length = sizeof(buf); in GetEnvironmentVar()
692 auto envNum = uv_os_getenv(temp.c_str(), buf, &length); in GetEnvironmentVar()
698 napi_create_string_utf8(env, buf, strlen(buf), &convertResult); in GetEnvironmentVar()