Lines Matching refs:group

36 struct group *root_group;
40 isc_result_t delete_group (struct group_object *group, int writep)
44 /* The group should exist and be hashed - if not, it's invalid. */
47 group_hash_lookup (&d, group_name_hash, group -> name,
48 strlen (group -> name), MDL);
54 /* Also not okay to delete a group that's not the one in
56 if (d != group)
61 if ((group -> flags & GROUP_OBJECT_DYNAMIC) &&
62 !(group -> flags & GROUP_OBJECT_STATIC)) {
64 group -> name, strlen (group -> name), MDL);
66 group -> flags |= GROUP_OBJECT_DELETED;
67 if (group -> group)
68 group_dereference (&group -> group, MDL);
71 /* Store the group declaration in the lease file. */
73 if (!(*group_write_hook) (group))
79 isc_result_t supersede_group (struct group_object *group, int writep)
83 /* Register the group in the group name hash table,
88 group -> name,
89 strlen (group -> name), MDL);
90 if (t && t != group) {
97 group -> flags |= GROUP_OBJECT_STATIC;
108 group -> name,
109 strlen (group -> name),
119 /* Add the group to the group name hash if it's not
123 group_hash_add (group_name_hash, group -> name,
124 strlen (group -> name), group, MDL);
127 /* Store the group declaration in the lease file. */
129 if (!(*group_write_hook) (group))
135 int clone_group (struct group **gp, struct group *group,
138 struct group *g = (struct group *)0;
141 it's permissible to clone a group into itself. */
142 if (*gp && *gp != group)
146 if (group == *gp)
147 *gp = (struct group *)0;
149 g -> authoritative = group -> authoritative;
150 group_reference (&g -> next, group, file, line);