mirror of https://github.com/neutrinolabs/xrdp
common: added shm to os_calls
This commit is contained in:
parent
e83942fe06
commit
48228cae2e
|
@ -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);
|
||||
}
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue