For the latest stable version, please use Emilua API 0.10!

filesystem.mknod

Synopsis

local fs = require "filesystem"
fs.mknod(p: fs.path, mode: integer, dev: integer[, type: "character"|"block"])

Description

See mknod(3).

If type is provided, S_IFCHR or S_IFBLK is OR’ed into mode.