summaryrefslogtreecommitdiff
path: root/core/src/xmake/machine.c
diff options
context:
space:
mode:
authorruki <[email protected]>2019-08-20 22:40:06 +0800
committerruki <[email protected]>2019-08-20 10:00:39 +0800
commit0a691680dd292e59fcd63e9710b7cdeaf6a52ce7 (patch)
treee389f8de5007e286ca0cafa91d0d85b1e95c2068 /core/src/xmake/machine.c
parent0970525b07224b26c1b10b5a771fec2715cac7c0 (diff)
get rawfd from io.file
Diffstat (limited to 'core/src/xmake/machine.c')
-rw-r--r--core/src/xmake/machine.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/core/src/xmake/machine.c b/core/src/xmake/machine.c
index 86f1018c2..d9dc111c3 100644
--- a/core/src/xmake/machine.c
+++ b/core/src/xmake/machine.c
@@ -95,6 +95,7 @@ tb_int_t xm_io_file_open(lua_State* lua);
tb_int_t xm_io_file_read(lua_State* lua);
tb_int_t xm_io_file_seek(lua_State* lua);
tb_int_t xm_io_file_size(lua_State* lua);
+tb_int_t xm_io_file_rawfd(lua_State* lua);
tb_int_t xm_io_file_write(lua_State* lua);
tb_int_t xm_io_file_flush(lua_State* lua);
tb_int_t xm_io_file_close(lua_State* lua);
@@ -232,6 +233,7 @@ static luaL_Reg const g_io_functions[] =
, { "file_flush", xm_io_file_flush }
, { "file_isatty", xm_io_file_isatty }
, { "file_close", xm_io_file_close }
+, { "file_rawfd", xm_io_file_rawfd }
, { "filelock_open", xm_io_filelock_open }
, { "filelock_lock", xm_io_filelock_lock }
, { "filelock_trylock", xm_io_filelock_trylock }