diff options
| author | ruki <[email protected]> | 2022-04-05 23:37:32 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2022-04-05 23:37:32 +0800 |
| commit | 4724bc52df2b22357103d6569f9664c5651a3ebe (patch) | |
| tree | cd184820e9d10c707e18a5ed15d0594e54306f6f /core/src/xmake/engine.c | |
| parent | 0125ddfe80f8d8fee5ea55fe1ed2f45acf188997 (diff) | |
improve get uid
Diffstat (limited to 'core/src/xmake/engine.c')
| -rw-r--r-- | core/src/xmake/engine.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/core/src/xmake/engine.c b/core/src/xmake/engine.c index 005d2eebe..7183140e0 100644 --- a/core/src/xmake/engine.c +++ b/core/src/xmake/engine.c @@ -113,8 +113,8 @@ tb_int_t xm_os_syserror(lua_State* lua); tb_int_t xm_os_strerror(lua_State* lua); tb_int_t xm_os_getwinsize(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_getuid(lua_State* lua); +tb_int_t xm_os_getgid(lua_State* lua); tb_int_t xm_os_getown(lua_State* lua); #endif @@ -290,8 +290,8 @@ static luaL_Reg const g_os_functions[] = , { "filesize", xm_os_filesize } , { "getwinsize", xm_os_getwinsize} #ifndef TB_CONFIG_OS_WINDOWS -, { "uid", xm_os_uid } -, { "gid", xm_os_gid } +, { "uid", xm_os_getuid } +, { "gid", xm_os_getgid } , { "getown", xm_os_getown } #endif , { tb_null, tb_null } |
