added getgid to os_calls
This commit is contained in:
parent
6e25a5e600
commit
82a8366fc0
@ -2413,6 +2413,19 @@ g_getuid(void)
|
||||
#endif
|
||||
}
|
||||
|
||||
/*****************************************************************************/
|
||||
/* does not work in win32 */
|
||||
/* returns user id */
|
||||
int APP_CC
|
||||
g_getgid(void)
|
||||
{
|
||||
#if defined(_WIN32)
|
||||
return 0;
|
||||
#else
|
||||
return getgid();
|
||||
#endif
|
||||
}
|
||||
|
||||
/*****************************************************************************/
|
||||
/* does not work in win32 */
|
||||
/* On success, zero is returned. On error, -1 is returned */
|
||||
|
@ -240,6 +240,8 @@ g_initgroups(const char* user, int gid);
|
||||
int APP_CC
|
||||
g_getuid(void);
|
||||
int APP_CC
|
||||
g_getgid(void);
|
||||
int APP_CC
|
||||
g_setuid(int pid);
|
||||
int APP_CC
|
||||
g_waitchild(void);
|
||||
|
Loading…
Reference in New Issue
Block a user