CODE EXAMPLE B-1Example Program for get/set Status of the Alarms (Continued)

#include <sys/types.h>

return ("off");

else

if (state == ALARM_ON) return ("on");

else

return (NULL);

}

static void

get_alarmvals()

{

get_alarm("crit"); get_alarm("major"); get_alarm("minor"); get_alarm("user");

}

Appendix B Alarm Relay Output Application Programming Interface 75

Page 89
Image 89
Sun Microsystems 440 manual