BSD 4_1_snap release
[unix-history] / usr / src / libc / sys / chroot.s
index b7e3814..f40c5a4 100644 (file)
@@ -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