diff options
Diffstat (limited to 'common/os_calls.c')
-rw-r--r-- | common/os_calls.c | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/common/os_calls.c b/common/os_calls.c index 838e60ec..6b90ffc9 100644 --- a/common/os_calls.c +++ b/common/os_calls.c @@ -674,6 +674,20 @@ g_atoi(char* 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) { @@ -780,6 +794,16 @@ g_signal_child_stop(void (*func)(int)) } /*****************************************************************************/ +void +g_unset_signals(void) +{ + sigset_t mask; + + sigemptyset(&mask); + sigprocmask(SIG_SETMASK, &mask, NULL); +} + +/*****************************************************************************/ int g_fork(void) { |