Lines Matching defs:nsinl
44 ns_inherit_list *nsinl;
45 nsinl = (ns_inherit_list *)__libc_calloc(1, sizeof *nsinl);
47 if (nsinl) {
48 nsinl->size = INHERIT_DEFAULT_SIZE;
49 nsinl->inherits = (ns_inherit **)__libc_calloc(INHERIT_DEFAULT_SIZE, sizeof *nsinl->inherits);
50 if (!nsinl->inherits) {
52 __libc_free(nsinl);
53 nsinl = NULL;
56 return nsinl;
59 static void nsinherits_free(ns_inherit_list *nsinl)
61 if (!nsinl) {
64 for (size_t i = 0; i < nsinl->num; i++) {
65 strlist_free(nsinl->inherits[i]->shared_libs);
66 __libc_free(nsinl->inherits[i]);
68 __libc_free(nsinl->inherits);
69 __libc_free(nsinl);
72 UT_STATIC void nsinherits_realloc(ns_inherit_list *nsinl)
74 if (!nsinl) {
77 size_t size = 2 * nsinl->size;
80 inherits = (ns_inherit **)__libc_realloc(nsinl->inherits, size * (sizeof *nsinl->inherits));
85 nsinl->size = size;
86 nsinl->inherits = inherits;