summaryrefslogtreecommitdiff
path: root/core/src/xmake/machine.c
diff options
context:
space:
mode:
authorTitanSnow <[email protected]>2017-05-22 15:22:16 +0800
committerTitanSnow <[email protected]>2017-05-22 18:37:43 +0800
commitd4aab4ff42e4032f848e0c6f048aaa61cb7db18b (patch)
tree260e81f2772901d2704b08a57286233204857ab8 /core/src/xmake/machine.c
parent2ca174000e9be4878321c08920e7abfc76b89d88 (diff)
add os.gid()
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 753ff579d..a1ae497ec 100644
--- a/core/src/xmake/machine.c
+++ b/core/src/xmake/machine.c
@@ -83,6 +83,7 @@ tb_int_t xm_os_getwinsize(lua_State* lua);
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);
#endif
// the path functions
@@ -146,6 +147,7 @@ static luaL_Reg const g_os_functions[] =
, { "versioninfo", xm_os_versioninfo}
#ifndef TB_CONFIG_OS_WINDOWS
, { "uid", xm_os_uid }
+, { "gid", xm_os_gid }
#endif
, { tb_null, tb_null }
};