BSD 3 development
authorBill Joy <wnj@ucbvax.Berkeley.EDU>
Mon, 12 Nov 1979 15:22:44 +0000 (07:22 -0800)
committerBill Joy <wnj@ucbvax.Berkeley.EDU>
Mon, 12 Nov 1979 15:22:44 +0000 (07:22 -0800)
Work on file usr/src/libc/sys/vread.s
Work on file usr/src/libc/sys/vwrite.s

Synthesized-from: 3bsd

usr/src/libc/sys/vread.s [new file with mode: 0644]
usr/src/libc/sys/vwrite.s [new file with mode: 0644]

diff --git a/usr/src/libc/sys/vread.s b/usr/src/libc/sys/vread.s
new file mode 100644 (file)
index 0000000..cb44a6e
--- /dev/null
@@ -0,0 +1,17 @@
+# C library -- vread
+
+# nread = vread(file, buffer, count);
+#
+# nread ==0 means eof; nread == -1 means error
+
+       .set    vread,3+64
+.globl _vread
+.globl  cerror
+
+_vread:
+       .word   0x0000
+       chmk    $vread
+       bcc     noerror
+       jmp     cerror
+noerror:
+       ret
diff --git a/usr/src/libc/sys/vwrite.s b/usr/src/libc/sys/vwrite.s
new file mode 100644 (file)
index 0000000..b4978d1
--- /dev/null
@@ -0,0 +1,17 @@
+# C library -- vwrite
+
+# nwritten = vwrite(file, buffer, count);
+#
+# nwritten == -1 means error
+
+       .set    vwrite,4+64
+.globl _vwrite
+.globl  cerror
+
+_vwrite:
+       .word   0x0000
+       chmk    $vwrite
+       bcc     noerror
+       jmp     cerror
+noerror:
+       ret