|
|
@ -673,6 +673,20 @@ g_atoi(char* str)
|
|
|
|
return atoi(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
|
|
|
|
long
|
|
|
|
g_load_library(char* in)
|
|
|
|
g_load_library(char* in)
|
|
|
@ -779,6 +793,16 @@ g_signal_child_stop(void (*func)(int))
|
|
|
|
#endif
|
|
|
|
#endif
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/*****************************************************************************/
|
|
|
|
|
|
|
|
void
|
|
|
|
|
|
|
|
g_unset_signals(void)
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
sigset_t mask;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
sigemptyset(&mask);
|
|
|
|
|
|
|
|
sigprocmask(SIG_SETMASK, &mask, NULL);
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/*****************************************************************************/
|
|
|
|
/*****************************************************************************/
|
|
|
|
int
|
|
|
|
int
|
|
|
|
g_fork(void)
|
|
|
|
g_fork(void)
|
|
|
|