Lines Matching defs:stat

56 smb_idmap_check(const char *s, idmap_stat stat)
58 if (stat != IDMAP_SUCCESS) {
62 cmn_err(CE_NOTE, "%s: %d", s, (int)stat);
76 idmap_stat stat;
78 stat = smb_idmap_batch_create(&sib, 1, SMB_IDMAP_ID2SID);
79 if (stat != IDMAP_SUCCESS)
80 return (stat);
82 stat = smb_idmap_batch_getsid(sib.sib_idmaph, &sib.sib_maps[0],
85 if (stat != IDMAP_SUCCESS) {
87 return (stat);
90 stat = smb_idmap_batch_getmappings(&sib);
92 if (stat != IDMAP_SUCCESS) {
94 return (stat);
114 idmap_stat stat;
116 stat = smb_idmap_batch_create(&sib, 1, SMB_IDMAP_SID2ID);
117 if (stat != IDMAP_SUCCESS)
118 return (stat);
122 stat = smb_idmap_batch_getid(sib.sib_idmaph, sim, sid, *id_type);
123 if (stat != IDMAP_SUCCESS) {
125 return (stat);
128 stat = smb_idmap_batch_getmappings(&sib);
130 if (stat != IDMAP_SUCCESS) {
132 return (stat);
149 idmap_stat stat;
155 stat = idmap_get_create(&sib->sib_idmaph);
157 if (stat != IDMAP_SUCCESS) {
158 smb_idmap_check("idmap_get_create", stat);
159 return (stat);
225 idmap_stat stat;
239 stat = idmap_get_uidbysid(idmaph, sim->sim_domsid,
241 smb_idmap_check("idmap_get_uidbysid", stat);
245 stat = idmap_get_gidbysid(idmaph, sim->sim_domsid,
247 smb_idmap_check("idmap_get_gidbysid", stat);
251 stat = idmap_get_pidbysid(idmaph, sim->sim_domsid,
254 smb_idmap_check("idmap_get_pidbysid", stat);
258 stat = IDMAP_ERR_ARG;
265 return (stat);
281 idmap_stat stat;
289 stat = idmap_get_sidbyuid(idmaph, id, flag,
291 smb_idmap_check("idmap_get_sidbyuid", stat);
295 stat = idmap_get_sidbygid(idmaph, id, flag,
297 smb_idmap_check("idmap_get_sidbygid", stat);
305 stat = IDMAP_SUCCESS;
313 stat = IDMAP_SUCCESS;
321 stat = IDMAP_SUCCESS;
328 return (stat);
342 idmap_stat stat = IDMAP_SUCCESS;
346 if ((stat = idmap_get_mappings(sib->sib_idmaph)) != IDMAP_SUCCESS) {
347 smb_idmap_check("idmap_get_mappings", stat);
348 return (stat);
367 stat = IDMAP_ERR_OTHER;
369 return (stat);