Ultrix-3.1/src/libc/sys/access.s

Compare this file to the similar file:
Show the results in this format:

/ SCCSID: @(#)access.s	3.0	(ULTRIX-11)	4/22/86
/
//////////////////////////////////////////////////////////////////////
/   Copyright (c) Digital Equipment Corporation 1984, 1985, 1986.    /
/   All Rights Reserved. 					     /
/   Reference "/usr/src/COPYRIGHT" for applicable restrictions.      /
//////////////////////////////////////////////////////////////////////
/
/  access(file, request)
/  test ability to access file in all indicated ways
/  1 - read
/  2 - write
/  4 - execute

.globl	_access
.globl	csv, cret
.comm	_errno,2

.access = 33.

_access:
	jsr	r5,csv
	mov	4(r5),0f+2
	mov	6(r5),0f+4
	clr	r0
	sys	0; 0f
.data
0:	sys	.access; ..; ..
.text
	bec	1f
	mov	r0,_errno
	mov	$-1,r0
1:
	jmp	cret