summaryrefslogtreecommitdiff
path: root/tests/test-sysconf.lua
blob: cba7f1eeedd0dea4c0486db7c9f77cd17d57a693 (plain)
1
2
3
4
5
6
7
8
9
10
local l = require "luxio"
local io = require "io"

print(l.sysconf(l._SC_ARG_MAX))

n, errno = l.sysconf(-1)
if n == -1 then
	io.stderr:write(("sysconf: %s\n"):format(l.strerror(errno)))
	os.exit(l.EXIT_FAILURE)
end