Google
 

Trailing-Edge - PDP-10 Archives - SRI_NIC_PERM_FS_1_19910112 - kcc-5/lib/test/talarm.c
There are 5 other files named talarm.c in the archive. Click here to see a list.
#include <signal.h>
int state = 0;
int inthan();
main()
{
	signal(SIGALRM, inthan);
	alarm(1);
	state = 1;
	signal(SIGALRM, SIG_DFL);
	state = 2;
	alarm(0);
	state = 3;
	sleep(2);
	printf("Finished ok\n");
}
inthan() {}