File:  [CSRG BSD Unix] / 41BSD / 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, BSD
CVS tags: HEAD, BSD41
BSD 4.1

#
# Copyright (c) 1979 Regents of the University of California
#
# char sccsid[] = "@(#)32iostat.s 4.2 10/16/80";
#
# 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:
	incl	r10
	movl	r7,r6		#save active file
	calls	$1,_unit
	movw	$1,-(sp)
	bitw	$EOF,FUNIT(r7)
	bneq	l3202
	calls	$0,_iosync
	bitw	$EOF,FUNIT(r7)
	bneq	l3202
	clrw	(sp)
l3202:
	movl	r6,r7		#restore active file
	movl	PFNAME(r7),_file
	jmp	(r8)
_EOLN:
	incl	r10
	movl	r7,r6		#save active file
	calls	$1,_unit
	clrw	-(sp)
	calls	$0,_iosync
	bitw	$EOLN,FUNIT(r7)
	beql	l3205
	incw	(sp)
l3205:
	movl	r6,r7		#restore active file
	movl	PFNAME(r7),_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.