Lines Matching defs:stat

53 smb_idmap_check(const char *s, idmap_stat stat)
55 if (stat != IDMAP_SUCCESS) {
59 syslog(LOG_ERR, "%s: %s", s, idmap_stat2string(stat));
73 idmap_stat stat;
75 stat = smb_idmap_batch_create(&sib, 1, SMB_IDMAP_ID2SID);
76 if (stat != IDMAP_SUCCESS)
77 return (stat);
79 stat = smb_idmap_batch_getsid(sib.sib_idmaph, &sib.sib_maps[0],
82 if (stat != IDMAP_SUCCESS) {
84 return (stat);
87 stat = smb_idmap_batch_getmappings(&sib);
89 if (stat != IDMAP_SUCCESS) {
91 return (stat);
111 idmap_stat stat;
113 stat = smb_idmap_batch_create(&sib, 1, SMB_IDMAP_SID2ID);
114 if (stat != IDMAP_SUCCESS)
115 return (stat);
119 stat = smb_idmap_batch_getid(sib.sib_idmaph, sim, sid, *id_type);
120 if (stat != IDMAP_SUCCESS) {
122 return (stat);
125 stat = smb_idmap_batch_getmappings(&sib);
127 if (stat != IDMAP_SUCCESS) {
129 return (stat);
146 idmap_stat stat;
152 stat = idmap_get_create(&sib->sib_idmaph);
154 if (stat != IDMAP_SUCCESS) {
155 smb_idmap_check("idmap_get_create", stat);
156 return (stat);
224 idmap_stat stat;
238 stat = idmap_get_uidbysid(idmaph, sim->sim_domsid,
240 smb_idmap_check("idmap_get_uidbysid", stat);
244 stat = idmap_get_gidbysid(idmaph, sim->sim_domsid,
246 smb_idmap_check("idmap_get_gidbysid", stat);
250 stat = idmap_get_pidbysid(idmaph, sim->sim_domsid,
253 smb_idmap_check("idmap_get_pidbysid", stat);
257 stat = IDMAP_ERR_ARG;
264 return (stat);
280 idmap_stat stat;
288 stat = idmap_get_sidbyuid(idmaph, id, flag,
290 smb_idmap_check("idmap_get_sidbyuid", stat);
294 stat = idmap_get_sidbygid(idmaph, id, flag,
296 smb_idmap_check("idmap_get_sidbygid", stat);
304 stat = IDMAP_SUCCESS;
312 stat = IDMAP_SUCCESS;
320 stat = IDMAP_SUCCESS;
327 return (stat);
341 idmap_stat stat = IDMAP_SUCCESS;
345 if ((stat = idmap_get_mappings(sib->sib_idmaph)) != IDMAP_SUCCESS) {
346 smb_idmap_check("idmap_get_mappings", stat);
347 return (stat);
364 stat = IDMAP_ERR_OTHER;
366 return (stat);