Lines Matching refs:size

114 	htab->size = nel;  in hcreate_r()
118 htab->table = (struct env_entry_node *)calloc(htab->size + 1, in hcreate_r()
149 for (i = 1; i <= htab->size; ++i) { in hdestroy_r()
206 for (idx = last_idx + 1; idx < htab->size; ++idx) { in hmatch_r()
324 hval %= htab->size; in hsearch_r()
350 hval2 = 1 + hval % (htab->size - 2); in hsearch_r()
358 idx = htab->size + idx - hval2; in hsearch_r()
388 if (htab->filled == htab->size) { in hsearch_r()
621 char **resp, size_t size, in hexport_r() argument
624 struct env_entry *list[htab->size]; in hexport_r()
636 htab, htab->size, htab->filled, (ulong)size); in hexport_r()
642 for (i = 1, n = 0, totlen = 0; i <= htab->size; ++i) { in hexport_r()
688 if (size) { in hexport_r()
689 if (size < totlen + 1) { /* provided buffer too small */ in hexport_r()
691 (ulong)size, (ulong)totlen + 1); in hexport_r()
696 size = totlen + 1; in hexport_r()
703 memset(res, '\0', size); in hexport_r()
706 *resp = res = calloc(1, size); in hexport_r()
735 return size; in hexport_r()
810 const char *env, size_t size, const char sep, int flag, in himport_r() argument
824 if ((data = malloc(size + 1)) == NULL) { in himport_r()
825 debug("himport_r: can't malloc %lu bytes\n", (ulong)size + 1); in himport_r()
829 memcpy(data, env, size); in himport_r()
830 data[size] = '\0'; in himport_r()
868 int nent = CONFIG_ENV_MIN_ENTRIES + size / 8; in himport_r()
881 if (!size) { in himport_r()
888 for(;dp < data + size && *dp; ++dp) { in himport_r()
890 dp < data + size - 1 && *(dp+1) == '\n') in himport_r()
895 size -= ignored_crs; in himport_r()
969 htab, htab->filled, htab->size, in himport_r()
971 } while ((dp < data + size) && *dp); /* size check needed for text */ in himport_r()
1015 for (i = 1; i <= htab->size; ++i) { in hwalk_r()