Lines Matching refs:buflen
54 size_t buflen;
80 buflen = DEFAULT_BUFSIZE;
81 buffer = talloc_size(tmpctx, buflen);
89 status = ctx->ops.getpwnam_r(shortname_or_alias, pwd, buffer, buflen, &ret);
124 memset(buffer, 0, buflen);
126 status = ctx->ops.getpwuid_r(uid, pwd, buffer, buflen, &ret);
349 size_t buflen;
367 buflen = DEFAULT_BUFSIZE;
368 buffer = talloc_size(tmpctx, buflen);
374 status = ctx->ops.getpwuid_r(uid, pwd, buffer, buflen, &ret);
416 size_t buflen;
437 buflen = DEFAULT_BUFSIZE;
438 buffer = talloc_size(tmpctx, buflen);
464 status = ctx->ops.getpwent_r(pwd, buffer, buflen, &ret);
469 if (buflen < MAX_BUF_SIZE) {
470 buflen *= 2;
472 if (buflen > MAX_BUF_SIZE) {
473 buflen = MAX_BUF_SIZE;
475 newbuf = talloc_realloc_size(tmpctx, buffer, buflen);
881 char **buffer, size_t *buflen)
885 if (*buflen == 0) {
886 *buflen = DEFAULT_BUFSIZE;
888 if (*buflen < MAX_BUF_SIZE) {
889 *buflen *= 2;
891 if (*buflen > MAX_BUF_SIZE) {
892 *buflen = MAX_BUF_SIZE;
895 newbuf = talloc_realloc_size(mem_ctx, *buffer, *buflen);
955 size_t buflen = 0;
987 buffer = grow_group_buffer(tmpctx, &buffer, &buflen);
994 buflen, &ret);
1038 buflen = 0;
1042 buffer = grow_group_buffer(tmpctx, &buffer, &buflen);
1048 status = ctx->ops.getgrgid_r(gid, grp, buffer, buflen, &ret);
1109 size_t buflen = 0;
1130 buffer = grow_group_buffer(tmpctx, &buffer, &buflen);
1136 status = ctx->ops.getgrgid_r(gid, grp, buffer, buflen, &ret);
1193 size_t buflen;
1214 buflen = DEFAULT_BUFSIZE;
1215 buffer = talloc_size(tmpctx, buflen);
1241 status = ctx->ops.getgrent_r(grp, buffer, buflen, &ret);
1246 if (buflen < MAX_BUF_SIZE) {
1247 buflen *= 2;
1249 if (buflen > MAX_BUF_SIZE) {
1250 buflen = MAX_BUF_SIZE;
1252 newbuf = talloc_realloc_size(tmpctx, buffer, buflen);
1353 size_t buflen;
1378 buflen = DEFAULT_BUFSIZE;
1379 buffer = talloc_size(tmpctx, buflen);
1395 buffer, buflen, &ret);
1413 memset(buffer, 0, buflen);
1434 memset(buffer, 0, buflen);
1436 status = ctx->ops.getpwuid_r(uid, pwd, buffer, buflen, &ret);