X hits on this document

PDF document

February 10, 2006 - page 195 / 238

598 views

0 shares

0 downloads

0 comments

195 / 238

} #endif

#if 1 rv = ipmi_parse_args(&curr_arg, argc, argv, &args); if (rv) { fprintf(stderr, "Error parsing command arguments, argument %d: %s\n", curr_arg, strerror(rv)); usage(); exit(1);

}

rv = ipmi_args_setup_con(args, os_hnd, NULL, &con); if (rv) {

fprintf(stderr, "ipmi_ip_setup_con: %s", strerror(rv)); exit(1);

} #endif

r v = i p m i _ o p e n _ d o m a i n ( " "

, &con, 1, setup_done, NULL, NULL, NULL,

NULL, 0, NULL);

if (rv) { fprintf(stderr

,

" i p m i _ i n i t _ d o m a i n : % s \ n " , s t r e r r o r ( r v ) ) ;

exit(1);

}

/* This is the main loop of the event-driven program. Try <CTRL-C> to exit the program */ #if 1 /* We run the select loop here, this shows how you can use

sel_select. while (1) {

You could add your own processing in this loop. */

o s _ h n d - > p e r f o r m _ o n e _ o p ( o s _ h n d , N U L L ) ;

} #else /* Let the selector code run the select loop. */ o s _ h n d - > o p e r a t i o n _ l o o p ( o s _ h n d ) #endif ;

o s /* Technically, we can’t get here, but this is an example. */ _ h n d - > f r e e _ o s _ h a n d l e r ( o s _ h n d ) ;

}

183

Document info
Document views598
Page views598
Page last viewedTue Dec 06 16:42:23 UTC 2016
Pages238
Paragraphs8090
Words85809

Comments