summaryrefslogtreecommitdiff
path: root/ACE/examples/System_V_IPC
diff options
context:
space:
mode:
authorJohnny Willemsen <jwillemsen@remedy.nl>2007-06-28 14:14:06 +0000
committerJohnny Willemsen <jwillemsen@remedy.nl>2007-06-28 14:14:06 +0000
commit73eb57939a29d1595cdbed106046f1d689beb536 (patch)
tree8006ca6a0dc5797a591b00d454d989c33c2a2d52 /ACE/examples/System_V_IPC
parentea78a0d50b0490fee7d49006a3b9cae1b31d6657 (diff)
downloadATCD-73eb57939a29d1595cdbed106046f1d689beb536.tar.gz
Thu Jun 28 14:12:12 UTC 2007 Johnny Willemsen <jwillemsen@remedy.nl>
Diffstat (limited to 'ACE/examples/System_V_IPC')
-rw-r--r--ACE/examples/System_V_IPC/SV_Message_Queues/MQ_Client.cpp2
-rw-r--r--ACE/examples/System_V_IPC/SV_Message_Queues/MQ_Server.cpp2
-rw-r--r--ACE/examples/System_V_IPC/SV_Message_Queues/TMQ_Server.cpp2
-rw-r--r--ACE/examples/System_V_IPC/SV_Semaphores/Semaphores_1.cpp2
-rw-r--r--ACE/examples/System_V_IPC/SV_Semaphores/Semaphores_2.cpp2
5 files changed, 5 insertions, 5 deletions
diff --git a/ACE/examples/System_V_IPC/SV_Message_Queues/MQ_Client.cpp b/ACE/examples/System_V_IPC/SV_Message_Queues/MQ_Client.cpp
index 547e4175121..5f26eb583b4 100644
--- a/ACE/examples/System_V_IPC/SV_Message_Queues/MQ_Client.cpp
+++ b/ACE/examples/System_V_IPC/SV_Message_Queues/MQ_Client.cpp
@@ -16,7 +16,7 @@ ACE_RCSID(SV_Message_Queues, MQ_Client, "$Id$")
#if defined (ACE_HAS_SYSV_IPC) && !defined(ACE_LACKS_SYSV_SHMEM)
int
-main (int, char *[])
+ACE_TMAIN (int, ACE_TCHAR *[])
{
long pid = long (ACE_OS::getpid ());
ACE_SV_Message_Queue msgque (SRV_KEY);
diff --git a/ACE/examples/System_V_IPC/SV_Message_Queues/MQ_Server.cpp b/ACE/examples/System_V_IPC/SV_Message_Queues/MQ_Server.cpp
index 33761465813..dc4488acbe6 100644
--- a/ACE/examples/System_V_IPC/SV_Message_Queues/MQ_Server.cpp
+++ b/ACE/examples/System_V_IPC/SV_Message_Queues/MQ_Server.cpp
@@ -28,7 +28,7 @@ handler (int)
}
int
-main (int, char *[])
+ACE_TMAIN (int, ACE_TCHAR *[])
{
long pid = long (ACE_OS::getpid ());
Message_Block recv_msg (SRV_ID);
diff --git a/ACE/examples/System_V_IPC/SV_Message_Queues/TMQ_Server.cpp b/ACE/examples/System_V_IPC/SV_Message_Queues/TMQ_Server.cpp
index 0da9aeec763..f91b1abf917 100644
--- a/ACE/examples/System_V_IPC/SV_Message_Queues/TMQ_Server.cpp
+++ b/ACE/examples/System_V_IPC/SV_Message_Queues/TMQ_Server.cpp
@@ -30,7 +30,7 @@ handler (int)
}
int
-main (int, char *[])
+ACE_TMAIN (int, ACE_TCHAR *[])
{
char *username = ACE_OS::cuserid (static_cast<char *> (0));
Message_Data msg_data ((int) ACE_OS::getpid (), username, "I received your message.");
diff --git a/ACE/examples/System_V_IPC/SV_Semaphores/Semaphores_1.cpp b/ACE/examples/System_V_IPC/SV_Semaphores/Semaphores_1.cpp
index 2331ea772ec..581dff8f7f6 100644
--- a/ACE/examples/System_V_IPC/SV_Semaphores/Semaphores_1.cpp
+++ b/ACE/examples/System_V_IPC/SV_Semaphores/Semaphores_1.cpp
@@ -67,7 +67,7 @@ child (char *shm)
}
int
-main (int, char *[])
+ACE_TMAIN (int, ACE_TCHAR *[])
{
char *shm = (char *) alloc.malloc (27);
diff --git a/ACE/examples/System_V_IPC/SV_Semaphores/Semaphores_2.cpp b/ACE/examples/System_V_IPC/SV_Semaphores/Semaphores_2.cpp
index e0ae9cd2bb5..933bd09a3bf 100644
--- a/ACE/examples/System_V_IPC/SV_Semaphores/Semaphores_2.cpp
+++ b/ACE/examples/System_V_IPC/SV_Semaphores/Semaphores_2.cpp
@@ -83,7 +83,7 @@ child (char *shm)
}
int
-main (int, char *[])
+ACE_TMAIN (int, ACE_TCHAR *[])
{
char *shm = (char *) my_alloc.malloc (27);