Lines Matching refs:bufLen
383 long bufLen = sysconf(_SC_GETPW_R_SIZE_MAX);
384 if (bufLen == -1) {
385 bufLen = 16384; // 16384:Should be more than enough
389 buf.reserve(bufLen + 1);
390 buf.resize(bufLen);
391 if (getpwnam_r(result.c_str(), &user, buf.data(), bufLen, &bufp) == 0 && bufp != nullptr) {
501 long bufLen = sysconf(_SC_GETPW_R_SIZE_MAX);
502 if (bufLen == -1) {
503 bufLen = 16384; // 16384:Should be more than enough
507 buf.reserve(bufLen + 1);
508 buf.resize(bufLen);
509 if (getpwnam_r(result.c_str(), &user, buf.data(), bufLen, &bufp) == 0 && bufp != nullptr) {