added getgid to os_calls

This commit is contained in:
Jay Sorg 2012-10-29 20:30:48 -07:00
parent 6e25a5e600
commit 82a8366fc0
2 changed files with 15 additions and 0 deletions

View File

@ -2413,6 +2413,19 @@ g_getuid(void)
#endif #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 */ /* does not work in win32 */
/* On success, zero is returned. On error, -1 is returned */ /* On success, zero is returned. On error, -1 is returned */

View File

@ -240,6 +240,8 @@ g_initgroups(const char* user, int gid);
int APP_CC int APP_CC
g_getuid(void); g_getuid(void);
int APP_CC int APP_CC
g_getgid(void);
int APP_CC
g_setuid(int pid); g_setuid(int pid);
int APP_CC int APP_CC
g_waitchild(void); g_waitchild(void);