Lines Matching refs:buflen
169 size_t buflen = 4096; in nss_spwd_for_passwd() local
180 buf = malloc(buflen); in nss_spwd_for_passwd()
184 r = getspnam_r(pwd->pw_name, &spwd, buf, buflen, &result); in nss_spwd_for_passwd()
198 if (buflen > SIZE_MAX / 2) in nss_spwd_for_passwd()
201 buflen *= 2; in nss_spwd_for_passwd()
214 size_t buflen = 4096; in nss_user_record_by_name() local
222 buf = malloc(buflen); in nss_user_record_by_name()
226 r = getpwnam_r(name, &pwd, buf, buflen, &result); in nss_user_record_by_name()
239 if (buflen > SIZE_MAX / 2) in nss_user_record_by_name()
242 buflen *= 2; in nss_user_record_by_name()
272 size_t buflen = 4096; in nss_user_record_by_uid() local
279 buf = malloc(buflen); in nss_user_record_by_uid()
283 r = getpwuid_r(uid, &pwd, buf, buflen, &result); in nss_user_record_by_uid()
295 if (buflen > SIZE_MAX / 2) in nss_user_record_by_uid()
298 buflen *= 2; in nss_user_record_by_uid()
384 size_t buflen = 4096; in nss_sgrp_for_group() local
395 buf = malloc(buflen); in nss_sgrp_for_group()
399 r = getsgnam_r(grp->gr_name, &sgrp, buf, buflen, &result); in nss_sgrp_for_group()
413 if (buflen > SIZE_MAX / 2) in nss_sgrp_for_group()
416 buflen *= 2; in nss_sgrp_for_group()
429 size_t buflen = 4096; in nss_group_record_by_name() local
437 buf = malloc(buflen); in nss_group_record_by_name()
441 r = getgrnam_r(name, &grp, buf, buflen, &result); in nss_group_record_by_name()
453 if (buflen > SIZE_MAX / 2) in nss_group_record_by_name()
456 buflen *= 2; in nss_group_record_by_name()
486 size_t buflen = 4096; in nss_group_record_by_gid() local
493 buf = malloc(buflen); in nss_group_record_by_gid()
497 r = getgrgid_r(gid, &grp, buf, buflen, &result); in nss_group_record_by_gid()
508 if (buflen > SIZE_MAX / 2) in nss_group_record_by_gid()
511 buflen *= 2; in nss_group_record_by_gid()