Lines Matching refs:in_privs
2173 * Adds the given privilege to the input list (in_privs)
2179 smb_lgrp_plist_add(smb_lgplist_t *in_privs, smb_lgpid_t priv_id,
2188 for (i = 0; i < in_privs->p_cnt; i++) {
2189 if (in_privs->p_ids[i] == priv_id)
2193 size = (in_privs->p_cnt + 1) * sizeof (smb_lgpid_t) + 1;
2199 bcopy(in_privs->p_ids, pbuf, in_privs->p_cnt * sizeof (smb_lgpid_t));
2200 pbuf[in_privs->p_cnt] = priv_id;
2202 out_privs->p_cnt = in_privs->p_cnt + 1;
2211 * Removes the given privilege from the input list (in_privs)
2217 smb_lgrp_plist_del(smb_lgplist_t *in_privs, smb_lgpid_t priv_id,
2225 if ((in_privs == NULL) || (in_privs->p_cnt == 0))
2228 size = (in_privs->p_cnt - 1) * sizeof (smb_lgpid_t) + 1;
2235 for (i = 0; i < in_privs->p_cnt; i++) {
2236 if (in_privs->p_ids[i] != priv_id)
2238 in_privs->p_ids[i];
2241 if (out_privs->p_cnt == in_privs->p_cnt) {