Home | History | Annotate | Download | only in brillo

Lines Matching full:buf_len

20   ssize_t buf_len = sysconf(_SC_GETPW_R_SIZE_MAX);
21 if (buf_len < 0)
22 buf_len = 16384; // 16K should be enough?...
25 std::vector<char> buf(buf_len);
26 if (getpwnam_r(user.c_str(), &pwd_buf, buf.data(), buf_len, &pwd) || !pwd) {
39 ssize_t buf_len = sysconf(_SC_GETGR_R_SIZE_MAX);
40 if (buf_len < 0)
41 buf_len = 16384; // 16K should be enough?...
44 std::vector<char> buf(buf_len);
45 if (getgrnam_r(group.c_str(), &grp_buf, buf.data(), buf_len, &grp) || !grp) {