|
|
|
@ -673,6 +673,20 @@ g_atoi(char* str)
|
|
|
|
|
return atoi(str);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/*****************************************************************************/
|
|
|
|
|
int
|
|
|
|
|
g_pos(char* str, char* to_find)
|
|
|
|
|
{
|
|
|
|
|
char* pp;
|
|
|
|
|
|
|
|
|
|
pp = strstr(str, to_find);
|
|
|
|
|
if (pp == 0)
|
|
|
|
|
{
|
|
|
|
|
return -1;
|
|
|
|
|
}
|
|
|
|
|
return (pp - str);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/*****************************************************************************/
|
|
|
|
|
long
|
|
|
|
|
g_load_library(char* in)
|
|
|
|
@ -779,6 +793,16 @@ g_signal_child_stop(void (*func)(int))
|
|
|
|
|
#endif
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/*****************************************************************************/
|
|
|
|
|
void
|
|
|
|
|
g_unset_signals(void)
|
|
|
|
|
{
|
|
|
|
|
sigset_t mask;
|
|
|
|
|
|
|
|
|
|
sigemptyset(&mask);
|
|
|
|
|
sigprocmask(SIG_SETMASK, &mask, NULL);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/*****************************************************************************/
|
|
|
|
|
int
|
|
|
|
|
g_fork(void)
|
|
|
|
|