#include <signal.h>

#include "../h/rci.h"

extern int startupFxn();
extern int taskFxn();

#if VXWORKS_CFG
#define main onSigDemo_
#endif

main()
{
	RCI_DESC *td;

	td = rciCreate ("testtask", 0x1);
	rciScheduling (td, ON_SIGNAL, SIGALRM);
	rciControlFxns (td, startupFxn, taskFxn, NULLF, 0);

	rciStart (~0);
	printf ("Hit <CR> to exit:\n");
	while (getchar() != '\n')
	   ;
	rciRelease (~0);
}
