code: drawterm

Download patch

ref: 6971ee1bf57435a8cf1d7b6936599bec126516cd
parent: afadbd7aff255523ef99962dd872caad976b7b08
author: Sigrid <ftrvxmtrx@gmail.com>
date: Tue Sep 22 06:08:26 EDT 2020

devfs-posix: fix pread/pwrite for large (>2Gb) files

--- a/kern/devfs-posix.c
+++ b/kern/devfs-posix.c
@@ -305,7 +305,8 @@
 static long
 fsread(Chan *c, void *va, long n, vlong offset)
 {
-	int fd, r;
+	int fd;
+	vlong r;
 	Ufsinfo *uif;
 
 /*print("fsread %s\n", chanpath(c));*/
@@ -340,7 +341,8 @@
 static long
 fswrite(Chan *c, void *va, long n, vlong offset)
 {
-	int fd, r;
+	int fd;
+	vlong r;
 	Ufsinfo *uif;
 
 	uif = c->aux;