File:  [CSRG BSD Unix] / 42BSD / usr.lib / libU77 / test / sigtst.f
Revision 1.1.1.1 (vendor branch): download - view: text, annotated - select for diffs
Tue Apr 24 16:12:54 2018 UTC (8 years, 1 month ago) by root
Branches: MAIN, BSD
CVS tags: HEAD, BSD42
BSD 4.2

	external fpe
	integer signal
	isave = signal(8, 0, 1)
	write(*,*) "1", signal(8, 0, 0)
	write(*,*) "0", signal(8, fpe, -1)
	write(*,*) "addr fpe", signal(8, 0, isave)
	write(*,*) isave, signal(8, fpe, -1)
	x = 1/x
	write(*,*) "Back again"
	z = 1/z
	write(*,*) "Saved again"
	end

	subroutine fpe(flag)
	call signal(8, fpe, -1)
c	call sigset()
	write(*,*) "Hi there sports fans!"
	call flush(6)
	return
	end

	subroutine sigset()
	external fpe
	call signal(8, fpe, -1)
	return
	end

unix.superglobalmegacorp.com

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