formating better for spm packages
This commit is contained in:
10
Src/hysh/data/bin/sysdump
Normal file
10
Src/hysh/data/bin/sysdump
Normal file
@@ -0,0 +1,10 @@
|
||||
--:Minify:--
|
||||
local path=...
|
||||
path=path or "/dev/tty/1"
|
||||
local syscalls=syscall.sysdump()
|
||||
local fd=syscall.open(path,"w")
|
||||
for i=1, #syscalls do
|
||||
syscall.write(fd,syscalls[i].."\n")
|
||||
end
|
||||
syscall.write(fd,"Total # of syscalls: "..tostring(#syscalls))
|
||||
syscall.close(fd)
|
||||
Reference in New Issue
Block a user