We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 779b2e9 commit abec22bCopy full SHA for abec22b
evdev/linux/sys/init.lua evdev/util.luaevdev/linux/sys/init.lua renamed to evdev/util.lua
@@ -1,15 +1,15 @@
1
local ffi = require("ffi")
2
3
-local function octal(s)
4
- return tonumber(s, 8)
5
-end
6
-
7
ffi.cdef([[
8
int printf(const char *__restrict __format, ...);
9
int open(const char *__file, int __oflag, ...);
10
extern char *strerror (int __errnum);
11
]])
12
+local function octal(s)
+ return tonumber(s, 8)
+end
+
13
local mod = {
14
O_RDONLY = octal("0000"),
15
O_WRONLY = octal("0001"),
0 commit comments