ref: 6728a5ec2351cac7cc27333e0d984c5c2b029b87
parent: b2d79920255fc405b972e4c900e47f4a1046e044
author: cinap_lenrek <[email protected]>
date: Sun Feb 25 14:06:37 EST 2018
devloopback: reassign device letter from #X to #λ to avoid collision with devvmx
--- a/sys/man/3/loopback
+++ b/sys/man/3/loopback
@@ -3,7 +3,7 @@
loopback \- network link simulation
.SH SYNOPSIS
.nf
-.B bind -a #X /net
+.B bind -a #λ /net
.BI /net/loopback n /[0-1]
.BI /net/loopback n /[0-1]/data
--- a/sys/src/9/port/devloopback.c
+++ b/sys/src/9/port/devloopback.c
@@ -127,7 +127,7 @@
if(dev >= Nloopbacks)
error(Enodev);
- c = devattach('X', spec);
+ c = devattach(loopbackdevtab.dc, spec);
if(waserror()){
chanfree(c);
nexterror();
@@ -715,7 +715,7 @@
}
Dev loopbackdevtab = {
- 'X',
+ L'λ',
"loopback",
devreset,