projects
/
unix-history
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
tags
|
clone url
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
BSD 4_1_snap release
[unix-history]
/
usr
/
src
/
libc
/
sys
/
chroot.s
diff --git
a/usr/src/libc/sys/chroot.s
b/usr/src/libc/sys/chroot.s
index
b7e3814
..
f40c5a4
100644
(file)
--- a/
usr/src/libc/sys/chroot.s
+++ b/
usr/src/libc/sys/chroot.s
@@
-1,22
+1,16
@@
-/ C library -- chroot
-
-/ error = chroot(string);
-
+# @(#)chroot.s 4.1 (Berkeley) 12/21/80
+# C library -- chroot
+
+# error = chroot(string);
+
+ .set chroot,61
+
.globl _chroot
.globl cerror
.globl _chroot
.globl cerror
-.chroot = 61.
-
_chroot:
_chroot:
- mov r5,-(sp)
- mov sp,r5
- mov 4(r5),0f
- sys 0; 9f
- bec 1f
+ .word 0x0000
+ chmk $chroot
+ bcc noerror
jmp cerror
jmp cerror
-1:
- clr r0
- mov (sp)+,r5
- rts pc
-.data
-9:
- sys .chroot; 0:..
+noerror:
+ ret