summaryrefslogtreecommitdiff
path: root/tests/test-mqueue-write.lua
blob: 42eff87aa02ad13b0449fdec108d84099e930e02 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
l = require "luxio"
s = require "luxio.simple"

local mq, errno

mq, errno = l.mq_open("/luxio.test", l.O_WRONLY)

if mq == -1 then
	error(l.strerror(errno))
end

r, errno = l.mq_send(mq, table.concat({ ... }, " "), 42)

print(r)