Tämä sivusto toimii paremmin JavaScriptillä.
Etusivu
Tutki
lain.church
Apua
Rekisteröidy
Kirjaudu sisään
izaya
/
OC-PsychOS2
peilaus alkaen
https://git.shadowkat.net/izaya/OC-PsychOS2.git
Tarkkaile
1
Äänestä
1
Fork
0
Koodi
Ongelmat
0
Julkaisut
0
Wiki
Activity
Selaa lähdekoodia
service/tape-iofs.lua
added a service to make an iofs node for each tape drive attached to the system, as /iofs/tapeN
pull/1/head
XeonSquared
4 vuotta sitten
vanhempi
8e3ee7bcb2
commit
77ceb65be6
1 muutettua tiedostoa
jossa
8 lisäystä
ja
0 poistoa
Jaettu näkymä
Diff Options
Show Stats
Download Patch File
Download Diff File
+8
-0
service/tape-iofs.lua
+ 8
- 0
service/tape-iofs.lua
Näytä tiedosto
@@ -0,0 +1,8 @@
local counter = 0
for addr in component.list("tape_drive") do
iofs.register("tape"..tonumber(counter),function()
local tape = component.proxy(addr)
return tape.read, tape.write, function() end, tape.seek
end)
counter = counter + 1
end
Write
Preview
Loading…
Peruuta
Tallenna