summaryrefslogtreecommitdiffstats
path: root/common/os_calls.c
diff options
context:
space:
mode:
Diffstat (limited to 'common/os_calls.c')
-rw-r--r--common/os_calls.c16
1 files changed, 16 insertions, 0 deletions
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 <sys/types.h>
#include <sys/wait.h>
#include <sys/stat.h>
+#include <sys/ipc.h>
+#include <sys/shm.h>
#include <dlfcn.h>
#include <arpa/inet.h>
#include <netdb.h>
@@ -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);
+}