diff options
Diffstat (limited to 'common')
| -rw-r--r-- | common/os_calls.c | 7 | ||||
| -rw-r--r-- | common/os_calls.h | 2 |
2 files changed, 9 insertions, 0 deletions
diff --git a/common/os_calls.c b/common/os_calls.c index 5fdcdd51..2a2184b7 100644 --- a/common/os_calls.c +++ b/common/os_calls.c @@ -1698,6 +1698,13 @@ g_get_strerror(void) } /*****************************************************************************/ +int APP_CC +g_get_errno(void) +{ + return errno; +} + +/*****************************************************************************/ /* does not work in win32 */ int APP_CC g_execvp(const char* p1, char* args[]) diff --git a/common/os_calls.h b/common/os_calls.h index 6ae5780b..751734fd 100644 --- a/common/os_calls.h +++ b/common/os_calls.h @@ -191,6 +191,8 @@ g_system(char* aexec); char* APP_CC g_get_strerror(void); int APP_CC +g_get_errno(void); +int APP_CC g_execvp(const char* p1, char* args[]); int APP_CC g_execlp3(const char* a1, const char* a2, const char* a3); |
