Lines Matching refs:space
1054 u_int32_t key_size, pagesize, size, space;
1071 /* Keep track of space that is left. There is a termination entry */
1072 space = data->ulen;
1073 space -= sizeof(*offp);
1134 space -= 2 * sizeof(*offp);
1135 /* Check if space as underflowed. */
1136 if (space > data->ulen)
1156 if (key_size > space)
1161 space -= key_size;
1168 if (space < size) {
1203 space -= size;
1214 * Reserve space for the pointers and sizes.
1217 space -= (is_key ? 4 : 2) * sizeof(*offp);
1219 space -= sizeof(*offp);
1221 /* Check to see if space has underflowed. */
1222 if (space > data->ulen)
1246 &offp, &np, &space, no_dup)) != 0) {
1248 size = space;
1249 space = 0;
1262 if (size > space)
1268 space -= size;
1281 if (space < size) {
1310 data->ulen - space, 1024);
1317 space -= size;
1366 data->size = (data->ulen - space) + size;
1389 * The space requirements have already been checked.
1438 u_int32_t pagesize, size, space;
1459 space = *spacep;
1485 space -= 2 * sizeof(*offp);
1486 /* Allocate space for key if needed. */
1488 space -= 2 * sizeof(*offp);
1490 /* Did space underflow? */
1491 if (space > *spacep) {
1495 space = -(int32_t)space;
1496 space = *spacep + space;
1498 space += pagesize - HOFFSET(pg);
1505 if (size > space) {
1507 space = *spacep + size;
1517 space -= size;
1524 if (space < size) {
1526 /* Return space required. */
1527 space = *spacep + size;
1533 space -= size;
1560 *spacep = space;
1565 * If we ran out of space back up the pointer.
2553 * space will never be reused unless the exact same key is specified.