rio: stop serving kbdin file (thanks eekee)

kbdfs already provides a /dev/kbdin file for the system, rio does
not need to provide one for the onscreen keyboard anymore.
This commit is contained in:
cinap_lenrek 2015-11-23 00:50:44 +01:00
parent 569bdd00c2
commit 518fd3ec83
5 changed files with 0 additions and 36 deletions

View file

@ -7,7 +7,6 @@ enum
Qwdir,
Qwinid,
Qwinname,
Qkbdin,
Qlabel,
Qkbd,
Qmouse,

View file

@ -1,4 +1,3 @@
void keyboardsend(char*, int);
int whide(Window*);
int wunhide(Window*);
void freescrtemps(void);

View file

@ -27,7 +27,6 @@ Dirtab dirtab[]=
{ "consctl", QTFILE, Qconsctl, 0200 },
{ "winid", QTFILE, Qwinid, 0400 },
{ "winname", QTFILE, Qwinname, 0400 },
{ "kbdin", QTFILE, Qkbdin, 0200 },
{ "label", QTFILE, Qlabel, 0600 },
{ "kbd", QTFILE, Qkbd, 0600 },
{ "mouse", QTFILE, Qmouse, 0600 },

View file

@ -361,29 +361,6 @@ keyboardthread(void*)
}
}
/*
* Used by /dev/kbdin
*/
void
keyboardsend(char *s, int cnt)
{
if(cnt <= 0)
return;
if(s[cnt-1] == 0)
chanprint(kbdchan, "%s", s);
else {
Rune r;
int nb;
nb = 0;
while(fullrune(s+nb, cnt-nb)){
nb += chartorune(&r, s+nb);
if(r != 0)
chanprint(kbdchan, "c%C", r);
}
}
}
int
portion(int x, int lo, int hi)
{

View file

@ -257,12 +257,6 @@ xfidopen(Xfid *x)
}
w->ctlopen = TRUE;
break;
case Qkbdin:
if(w != wkeyboard){
filsysrespond(x->fs, x, &t, Eperm);
return;
}
break;
case Qkbd:
if(w->kbdopen){
filsysrespond(x->fs, x, &t, Einuse);
@ -561,10 +555,6 @@ xfidwrite(Xfid *x)
w->dir = cleanname(p);
break;
case Qkbdin:
keyboardsend(x->data, cnt);
break;
case Qwctl:
if(writewctl(x, err) < 0){
filsysrespond(x->fs, x, &fc, err);