File:  [CSRG BSD Unix] / 43BSD / undoc / fpe.c
Revision 1.1.1.1 (vendor branch): download - view: text, annotated - select for diffs
Tue Apr 24 16:12:55 2018 UTC (8 years, 1 month ago) by root
Branches: MAIN, BSD
CVS tags: HEAD, BSD43
BSD 4.3

From research!ikeya!rob  Sun Sep 13 17:04:21 1981
/*
 * This program prints an infinite number of fpe's,
 * because the pc is not advanced on FPE's.
 * 11/750 microcode bug.
 * On 11/780, die from Operand fault, which is
 * correct.
 * Please try it on your 750 and tell me what happens.
*/
#include <signal.h>
inter(){
	printf("fpe\n");
	signal(SIGFPE, inter);
	return;
}
main(){
	double x=0.0;
	signal(SIGFPE, inter);
	printf("%f\n", 3.4/x);
}



unix.superglobalmegacorp.com

This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.