summaryrefslogtreecommitdiffstats
path: root/common
diff options
context:
space:
mode:
authorJay Sorg <jay.sorg@gmail.com>2014-01-28 10:38:36 -0800
committerJay Sorg <jay.sorg@gmail.com>2014-01-28 10:38:36 -0800
commit48228cae2eaa0847b07f899811dd7f0ab8a7365e (patch)
tree13cbb8051f558ad32fac661ef930ab33a0b7a1f4 /common
parente83942fe0629c2bde960d05096abe00dd728a05d (diff)
downloadxrdp-proprietary-48228cae2eaa0847b07f899811dd7f0ab8a7365e.tar.gz
xrdp-proprietary-48228cae2eaa0847b07f899811dd7f0ab8a7365e.zip
common: added shm to os_calls
Diffstat (limited to 'common')
-rw-r--r--common/os_calls.c16
-rw-r--r--common/os_calls.h2
2 files changed, 18 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);
+}
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