common: added shm to os_calls

This commit is contained in:
Jay Sorg 2014-01-28 10:38:36 -08:00
parent e83942fe06
commit 48228cae2e
2 changed files with 18 additions and 0 deletions

View File

@ -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);
}

View File

@ -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