shithub: patch

Download patch

ref: 4791763ce783395609a7594d51c293b53404b636
parent: e07b8b2abe5f29bb78d2933249a03ba058959e33
author: qwx <qwx@sciops.net>
date: Mon Nov 3 04:24:22 EST 2025

remove obsolete patches

--- a/eui-keychan
+++ /dev/null
@@ -1,64 +1,0 @@
-diff 3167f5f7e3d2363ab57a107c838e1c5ef1fcda80 uncommitted
---- a/sys/src/games/eui.c
-+++ b/sys/src/games/eui.c
-@@ -9,6 +9,7 @@
- typedef struct Kfn Kfn;
- 
- u64int keys, keys2;
-+Channel *keychan;
- int trace, paused;
- int savereq, loadreq;
- QLock pauselock;
-@@ -57,7 +68,6 @@
- 	Kfn *kp;
- 
- 	j = 1;
--
- 	for(;;){
- 		n = read(0, buf, sizeof(buf) - 1);
- 		if(n <= 0)
-@@ -64,13 +74,18 @@
- 			sysfatal("read: %r");
- 		buf[n] = 0;
- 		n = getfields(buf, down, nelem(down), 1, " ");
-+		if(n <= 0)
-+			continue;
- 		k = 0;
- 		for(n--; n >= 0; n--){
- 			s = down[n];
--			if(strcmp(s, "joy1") == 0)
--				j = 1;
--			else if(strcmp(s, "joy2") == 0)
--				j = 2;
-+			if(strncmp(s, "joy", 3) == 0){
-+				if(strcmp(s, "2 ") == 0)
-+					j = 2;
-+				else
-+					j = 1;
-+				continue;
-+			}
- 			for(kp=kkn.n; kp!=nil; kp=kp->n){
- 				if(strcmp(kp->joyk, s) == 0)
- 					k |= kp->k;
-@@ -78,8 +93,11 @@
- 		}
- 		if(j == 2)
- 			keys2 = k;
--		else
-+		else{
- 			keys = k;
-+			if(keychan != nil)
-+				nbsendul(keychan, k);
-+		}
- 	}
- }
- 
-@@ -162,6 +180,8 @@
- 		if((k & ax1) == ax1)
- 			k &= ~ax1;
- 		keys = k;
-+		if(keychan != nil)
-+			nbsendul(keychan, k);
- 	}
- }
- 
--- a/unionfs-race
+++ /dev/null
@@ -1,27 +1,0 @@
-diff c29f9884bb2aba8ac6a2b9286d582ba86dd61ae1 uncommitted
---- a/unionfs.c
-+++ b/unionfs.c
-@@ -268,6 +268,7 @@
- 	long n;
- 	Fcall *T, *R;
- 	FILE *f;
-+	Dirlist *dl;
- 	
- 	T = &r->ifcall;
- 	R = &r->ofcall;
-@@ -280,10 +281,13 @@
- 		if(T->offset == 0){
- 			if(seek(f->fd, 0, 0) == -1)
- 				goto error;
-+			if((dl = dirlist(f->fd)) == nil)
-+				goto error;
-+			srvacquire(&thefs);
- 			if(f->dl != nil)
- 				dirlistfree(f->dl);
--			if((f->dl = dirlist(f->fd)) == nil)
--				goto error;
-+			f->dl = dl;
-+			srvrelease(&thefs);
- 		}
- 		dirread9p(r, dirgen, f->dl);
- 	}else{
--