Work on file usr/src/libc/sys/vread.s
Work on file usr/src/libc/sys/vwrite.s
Synthesized-from: 3bsd
--- /dev/null
+# 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
--- /dev/null
+# 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