home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
minnie.tuhs.org
/
unixen.tar
/
unixen
/
PDP-11
/
Distributions
/
ucb
/
2bsd.tar.gz
/
2bsd.tar
/
misc
/
access.s
< prev
next >
Wrap
Text File
|
1979-04-19
|
334b
|
27 lines
/ access(file, request)
/ test ability to access file in all indicated ways
/ 4 - read
/ 2 - write
/ 1 - 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