forked from Hyperion/HyperionOS
20 lines
362 B
Plaintext
20 lines
362 B
Plaintext
--:Minify:--
|
|
local kernel = ...
|
|
local socket = {}
|
|
|
|
function socket.socket()
|
|
|
|
end
|
|
|
|
function socket.bind()
|
|
|
|
end
|
|
|
|
|
|
kernel.syscalls["ioctl"]=function(fd, method, ...)
|
|
if not kernel.currentTask.fd[fd] then error("EBADF") end
|
|
if not kernel.currentTask.fd[fd][method] then error("EINVAL") end
|
|
|
|
end
|
|
kernel.socket=socket
|
|
kernel.log("Loaded socket module") |