You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Wrapping file handles with userdata that has a `dispose` closing the handle.
Internet card already closed via userdata, so nothing to do there.
Removed cleanup logic from term, deal with it.
Added setting to re-enable it, if you really really need it.
# Conflicts:
# src/main/resources/assets/opencomputers/loot/OpenOS/lib/term.lua
# src/main/scala/li/cil/oc/server/component/FileSystem.scala
@Callback(direct =true, limit =15, doc ="""function(handle:number, count:number):string or nil -- Reads up to the specified amount of data from an open file descriptor with the specified handle. Returns nil when EOF is reached.""")
335
+
@Callback(direct =true, limit =15, doc ="""function(handle:userdata, count:number):string or nil -- Reads up to the specified amount of data from an open file descriptor with the specified handle. Returns nil when EOF is reached.""")
@Callback(direct =true, limit =15, doc ="""function(handle:number, whence:string, offset:number):number -- Seeks in an open file descriptor with the specified handle. Returns the new pointer position.""")
338
+
@Callback(direct =true, limit =15, doc ="""function(handle:userdata, whence:string, offset:number):number -- Seeks in an open file descriptor with the specified handle. Returns the new pointer position.""")
@Callback(direct =true, limit =6, doc ="""function(handle:number, value:string):boolean -- Writes the specified data to an open file descriptor with the specified handle.""")
341
+
@Callback(direct =true, limit =6, doc ="""function(handle:userdata, value:string):boolean -- Writes the specified data to an open file descriptor with the specified handle.""")
@Callback(direct =true, limit =13, doc ="""function(handle:number, count:number):string or nil -- Reads up to the specified amount of data from an open file descriptor with the specified handle. Returns nil when EOF is reached.""")
345
+
@Callback(direct =true, limit =13, doc ="""function(handle:userdata, count:number):string or nil -- Reads up to the specified amount of data from an open file descriptor with the specified handle. Returns nil when EOF is reached.""")
@Callback(direct =true, limit =13, doc ="""function(handle:number, whence:string, offset:number):number -- Seeks in an open file descriptor with the specified handle. Returns the new pointer position.""")
348
+
@Callback(direct =true, limit =13, doc ="""function(handle:userdata, whence:string, offset:number):number -- Seeks in an open file descriptor with the specified handle. Returns the new pointer position.""")
@Callback(direct =true, limit =5, doc ="""function(handle:number, value:string):boolean -- Writes the specified data to an open file descriptor with the specified handle.""")
351
+
@Callback(direct =true, limit =5, doc ="""function(handle:userdata, value:string):boolean -- Writes the specified data to an open file descriptor with the specified handle.""")
@Callback(direct =true, limit =10, doc ="""function(handle:number, count:number):string or nil -- Reads up to the specified amount of data from an open file descriptor with the specified handle. Returns nil when EOF is reached.""")
355
+
@Callback(direct =true, limit =10, doc ="""function(handle:userdata, count:number):string or nil -- Reads up to the specified amount of data from an open file descriptor with the specified handle. Returns nil when EOF is reached.""")
@Callback(direct =true, limit =10, doc ="""function(handle:number, whence:string, offset:number):number -- Seeks in an open file descriptor with the specified handle. Returns the new pointer position.""")
358
+
@Callback(direct =true, limit =10, doc ="""function(handle:userdata, whence:string, offset:number):number -- Seeks in an open file descriptor with the specified handle. Returns the new pointer position.""")
@Callback(direct =true, limit =4, doc ="""function(handle:number, value:string):boolean -- Writes the specified data to an open file descriptor with the specified handle.""")
361
+
@Callback(direct =true, limit =4, doc ="""function(handle:userdata, value:string):boolean -- Writes the specified data to an open file descriptor with the specified handle.""")
@Callback(direct =true, limit =7, doc ="""function(handle:number, count:number):string or nil -- Reads up to the specified amount of data from an open file descriptor with the specified handle. Returns nil when EOF is reached.""")
365
+
@Callback(direct =true, limit =7, doc ="""function(handle:userdata, count:number):string or nil -- Reads up to the specified amount of data from an open file descriptor with the specified handle. Returns nil when EOF is reached.""")
@Callback(direct =true, limit =7, doc ="""function(handle:number, whence:string, offset:number):number -- Seeks in an open file descriptor with the specified handle. Returns the new pointer position.""")
368
+
@Callback(direct =true, limit =7, doc ="""function(handle:userdata, whence:string, offset:number):number -- Seeks in an open file descriptor with the specified handle. Returns the new pointer position.""")
@Callback(direct =true, limit =3, doc ="""function(handle:number, value:string):boolean -- Writes the specified data to an open file descriptor with the specified handle.""")
371
+
@Callback(direct =true, limit =3, doc ="""function(handle:userdata, value:string):boolean -- Writes the specified data to an open file descriptor with the specified handle.""")
@Callback(direct =true, limit =4, doc ="""function(handle:number, count:number):string or nil -- Reads up to the specified amount of data from an open file descriptor with the specified handle. Returns nil when EOF is reached.""")
375
+
@Callback(direct =true, limit =4, doc ="""function(handle:userdata, count:number):string or nil -- Reads up to the specified amount of data from an open file descriptor with the specified handle. Returns nil when EOF is reached.""")
@Callback(direct =true, limit =4, doc ="""function(handle:number, whence:string, offset:number):number -- Seeks in an open file descriptor with the specified handle. Returns the new pointer position.""")
378
+
@Callback(direct =true, limit =4, doc ="""function(handle:userdata, whence:string, offset:number):number -- Seeks in an open file descriptor with the specified handle. Returns the new pointer position.""")
@Callback(direct =true, limit =2, doc ="""function(handle:number, value:string):boolean -- Writes the specified data to an open file descriptor with the specified handle.""")
381
+
@Callback(direct =true, limit =2, doc ="""function(handle:userdata, value:string):boolean -- Writes the specified data to an open file descriptor with the specified handle.""")
case _ =>newFileSystem(fileSystem, label, host, sound) {
370
-
@Callback(direct =true, limit =1, doc ="""function(handle:number, count:number):string or nil -- Reads up to the specified amount of data from an open file descriptor with the specified handle. Returns nil when EOF is reached.""")
385
+
@Callback(direct =true, limit =1, doc ="""function(handle:userdata, count:number):string or nil -- Reads up to the specified amount of data from an open file descriptor with the specified handle. Returns nil when EOF is reached.""")
@Callback(direct =true, limit =1, doc ="""function(handle:number, whence:string, offset:number):number -- Seeks in an open file descriptor with the specified handle. Returns the new pointer position.""")
388
+
@Callback(direct =true, limit =1, doc ="""function(handle:userdata, whence:string, offset:number):number -- Seeks in an open file descriptor with the specified handle. Returns the new pointer position.""")
@Callback(direct =true, limit =1, doc ="""function(handle:number, value:string):boolean -- Writes the specified data to an open file descriptor with the specified handle.""")
391
+
@Callback(direct =true, limit =1, doc ="""function(handle:userdata, value:string):boolean -- Writes the specified data to an open file descriptor with the specified handle.""")
0 commit comments