Lines Matching refs:fit
87 ssize_t fit;
94 * If we've still got room, then 'fit' will contain the amount of
100 * we will fail the (fit > 0) check below.
102 fit = lmin(count, ab->allocated - (ab->fixedcursor - ab->base));
103 if (fit > 0) {
105 bcopy(source, ab->fixedcursor, fit);
126 ssize_t fit;
145 fit = lmin(count, ab->allocated - (ab->varcursor - ab->base));
146 if (fit > 0) {
148 bcopy(source, ab->varcursor, fit);
150 ab->varcursor += fit;
154 fit = lmin(extcount, ab->allocated - (ab->varcursor - ab->base));
155 if (fit > 0) {
158 bcopy(ext, ab->varcursor, fit);
160 ab->varcursor += fit;
185 * NUL terminator), then copy as much as will fit. The attrlist buffer's "varcursor"
194 ssize_t fit, space;
219 * fit = the number of bytes to copy from the start of the string into the
225 fit = lmin(count, space);
234 * terminator (space < fit + 1), then the string value in the attribute
237 * NOTE 2: bcopy() will do nothing if the length ("fit") is zero.
240 bcopy(source, ab->varcursor, fit);
242 if (space > fit) {
243 ab->varcursor[fit++] = '\0';
244 /* 'fit' now the number of bytes AFTER adding in the NUL */
249 bytes_to_zero = min((roundup(fit, 4) - fit),
250 space - fit);
252 bzero(&(ab->varcursor[fit]), bytes_to_zero);
3290 * Will the pad bytes fit as well ? If they can't be, still use
3558 * This just means the buffer was too small to fit even a