From 48228cae2eaa0847b07f899811dd7f0ab8a7365e Mon Sep 17 00:00:00 2001 From: Jay Sorg Date: Tue, 28 Jan 2014 10:38:36 -0800 Subject: common: added shm to os_calls --- common/os_calls.c | 16 ++++++++++++++++ common/os_calls.h | 2 ++ 2 files changed, 18 insertions(+) (limited to 'common') diff --git a/common/os_calls.c b/common/os_calls.c index 2d5b4280..bb26d246 100644 --- a/common/os_calls.c +++ b/common/os_calls.c @@ -42,6 +42,8 @@ #include #include #include +#include +#include #include #include #include @@ -3118,3 +3120,17 @@ g_text2bool(const char *s) } return 0; } + +/*****************************************************************************/ +void * APP_CC +g_shmat(int shmid) +{ + return shmat(shmid, 0, 0); +} + +/*****************************************************************************/ +int APP_CC +g_shmdt(const void *shmaddr) +{ + return shmdt(shmaddr); +} diff --git a/common/os_calls.h b/common/os_calls.h index b6e1c91a..2bee6077 100644 --- a/common/os_calls.h +++ b/common/os_calls.h @@ -161,5 +161,7 @@ int APP_CC g_time1(void); int APP_CC g_time2(void); int APP_CC g_time3(void); int APP_CC g_text2bool(const char *s); +void * APP_CC g_shmat(int shmid); +int APP_CC g_shmdt(const void *shmaddr); #endif -- cgit v1.2.1