Lines Matching refs:result

96 	int result;
101 result = sysinfo(SI_HOSTNAME, hostname, sizeof (hostname));
103 if (result == -1) {
174 int result;
190 result = topo_pgroup_create(t_node, &auth_pgroup, &err);
191 if (result != 0 && err != ETOPO_PROP_DEFD) {
216 result = topo_prop_inherit(t_node, FM_FMRI_AUTHORITY,
218 if (result != 0 && err != ETOPO_PROP_DEFD) {
219 result = nvlist_lookup_string(auth, FM_FMRI_AUTH_PRODUCT,
221 if (result != 0 || prod == NULL) {
239 result = topo_prop_set_string(t_node, FM_FMRI_AUTHORITY,
242 if (result != 0) {
254 result = topo_prop_inherit(t_node, FM_FMRI_AUTHORITY,
256 if (result != 0 && err != ETOPO_PROP_DEFD) {
257 result = nvlist_lookup_string(auth, FM_FMRI_AUTH_PRODUCT_SN,
259 if (result != 0 || psn == NULL) {
270 result = topo_prop_set_string(t_node, FM_FMRI_AUTHORITY,
273 if (result != 0) {
287 result = topo_prop_inherit(t_node, FM_FMRI_AUTHORITY,
291 result = err = -1;
293 if (result != 0 && err != ETOPO_PROP_DEFD) {
295 result = nvlist_lookup_string(auth,
297 if (result != 0 || csn == NULL) {
319 result = topo_prop_set_string(t_node,
323 result = topo_prop_set_string(t_node,
327 if (result != 0) {
344 result = topo_prop_inherit(t_node, FM_FMRI_AUTHORITY,
346 if (result != 0 && err != ETOPO_PROP_DEFD) {
347 result = nvlist_lookup_string(auth, FM_FMRI_AUTH_SERVER,
349 if (result != 0 || server == NULL) {
367 result = topo_prop_set_string(t_node, FM_FMRI_AUTHORITY,
370 if (result != 0) {
398 int result;
413 (void) topo_node_fru_set(t_node, NULL, 0, &result);
431 result = topo_node_fru_set(t_node, frufmri, 0, &err);
432 if (result != 0) {
437 return (result);
448 int result;
460 result = topo_node_label_set(t_node, (char *)label, &err);
461 if (result != 0) {
468 return (result);
479 int result;
488 result = topo_pgroup_create(t_node, &sys_pgroup, &err);
489 if (result != 0 && err != ETOPO_PROP_DEFD) {
498 result = topo_prop_inherit(t_node, TOPO_PGROUP_SYSTEM, TOPO_PROP_ISA,
500 if (result != 0 && err != ETOPO_PROP_DEFD) {
502 result = sysinfo(SI_ARCHITECTURE, isa, sizeof (isa));
503 if (result == -1) {
509 result = topo_prop_set_string(t_node,
512 if (result != 0) {
523 result = topo_prop_inherit(t_node, TOPO_PGROUP_SYSTEM,
525 if (result != 0 && err != ETOPO_PROP_DEFD) {
526 result = uname(&uts);
527 if (result == -1) {
534 result = topo_prop_set_string(t_node,
537 if (result != 0) {