decouple Jehanne from 9P2000 (as much as needed)

Jehanne is going to use a new file protocol, but Plan 9 is really
coupled with 9P2000.

Renamed fcall.h as 9P2000.h and introduced specific constants such
as NP_OREAD, NP_OWRITE and so on, so that we can use different values
in the kernel and new protocol.

Renamed devmnt to devninep, since it's actually a device serving 9P2000
file systems.

Also, fixed 9P2000 support in Jehanne, that was broken with the introduction
of OSTAT.
This commit is contained in:
2016-12-01 00:09:42 +01:00
parent bbb375a585
commit f52a185030
199 changed files with 649 additions and 512 deletions

View File

@@ -64,13 +64,13 @@ print("ipconfig...");
if(access(ipconfigPath, AEXEC) < 0)
fatal("cannot access ipconfig");
if(access("#l0", 0) == 0 && bind("#l0", mpoint, MAFTER) < 0)
if(access("#l0", AEXIST) == 0 && bind("#l0", mpoint, MAFTER) < 0)
print("bind #l0: %r\n");
if(access("#l1", 0) == 0 && bind("#l1", mpoint, MAFTER) < 0)
if(access("#l1", AEXIST) == 0 && bind("#l1", mpoint, MAFTER) < 0)
print("bind #l1: %r\n");
if(access("#l2", 0) == 0 && bind("#l2", mpoint, MAFTER) < 0)
if(access("#l2", AEXIST) == 0 && bind("#l2", mpoint, MAFTER) < 0)
print("bind #l2: %r\n");
if(access("#l3", 0) == 0 && bind("#l3", mpoint, MAFTER) < 0)
if(access("#l3", AEXIST) == 0 && bind("#l3", mpoint, MAFTER) < 0)
print("bind #l3: %r\n");
werrstr("");