File:  [CSRG BSD Unix] / 3BSD / cmd / px / 32iostat.s
Revision 1.1.1.1 (vendor branch): download - view: text, annotated - select for diffs
Tue Apr 24 16:12:53 2018 UTC (8 years, 1 month ago) by root
Branches: MAIN, CSRG
CVS tags: HEAD, BSD3
BSD 3.0

#
# 32iostat.s
#
# FILE ACTIVATION AND STATUS OPERATIONS
#
_UNIT:
	incl	r10
	calls	$1,_unit
	jmp	(r8)
_UNITINP:
	incl	r10
	pushal	stdin
	calls	$1,_unit
	jmp	(r8)
_UNITOUT:
	incl	r10
	moval	stdout,r7
	movl	stdout+PFNAME,_file
	jmp	(r8)
_EOF:
	cvtwl	$EOF,r5
	brb	l3202
_EOLN:
	cvtwl	$EOF+EOLN,r5
l3202:
	incl	r10
	movl	_file,r4	#save active file
	movl	r7,r3
	calls	$1,_unit
	clrw	-(sp)
	bbs	$fEOF,FUNIT(r7),l3204
	calls	$0,_iosync
	bitw	r5,FUNIT(r7)
	beql	l3205
l3204:
	incw	(sp)
l3205:
	movl	r3,r7		#restore active file
	movl	r4,_file
	jmp	(r8)

unix.superglobalmegacorp.com

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