summaryrefslogtreecommitdiff
path: root/core/src/xmake/machine.c
diff options
context:
space:
mode:
authorTitanSnow <[email protected]>2017-05-22 18:33:04 +0800
committerTitanSnow <[email protected]>2017-05-22 18:37:43 +0800
commitb8e4fb467d8de881749e3bc77493728a642ff145 (patch)
treee8a60ea6e8c14d15a8044e95b4ff566bf36d44ee /core/src/xmake/machine.c
parentd4aab4ff42e4032f848e0c6f048aaa61cb7db18b (diff)
add os.getown
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 a1ae497ec..ccfd91254 100644
--- a/core/src/xmake/machine.c
+++ b/core/src/xmake/machine.c
@@ -84,6 +84,7 @@ tb_int_t xm_os_versioninfo(lua_State* lua);
#ifndef TB_CONFIG_OS_WINDOWS
tb_int_t xm_os_uid(lua_State* lua);
tb_int_t xm_os_gid(lua_State* lua);
+tb_int_t xm_os_getown(lua_State* lua);
#endif
// the path functions
@@ -148,6 +149,7 @@ static luaL_Reg const g_os_functions[] =
#ifndef TB_CONFIG_OS_WINDOWS
, { "uid", xm_os_uid }
, { "gid", xm_os_gid }
+, { "getown", xm_os_getown }
#endif
, { tb_null, tb_null }
};