summaryrefslogtreecommitdiff
path: root/examples/IPC_SAP/SOCK_SAP
diff options
context:
space:
mode:
Diffstat (limited to 'examples/IPC_SAP/SOCK_SAP')
-rw-r--r--examples/IPC_SAP/SOCK_SAP/C-inclient.cpp2
-rw-r--r--examples/IPC_SAP/SOCK_SAP/C-inserver.cpp2
-rw-r--r--examples/IPC_SAP/SOCK_SAP/CPP-inclient.cpp2
-rw-r--r--examples/IPC_SAP/SOCK_SAP/CPP-inserver-fancy.cpp2
-rw-r--r--examples/IPC_SAP/SOCK_SAP/CPP-inserver-poll.cpp4
-rw-r--r--examples/IPC_SAP/SOCK_SAP/CPP-inserver.cpp2
-rw-r--r--examples/IPC_SAP/SOCK_SAP/CPP-unclient.cpp2
-rw-r--r--examples/IPC_SAP/SOCK_SAP/CPP-unserver.cpp2
-rw-r--r--examples/IPC_SAP/SOCK_SAP/FD-unclient.cpp2
-rw-r--r--examples/IPC_SAP/SOCK_SAP/FD-unserver.cpp2
10 files changed, 11 insertions, 11 deletions
diff --git a/examples/IPC_SAP/SOCK_SAP/C-inclient.cpp b/examples/IPC_SAP/SOCK_SAP/C-inclient.cpp
index 8c66dedfda8..d9c6ca3ac18 100644
--- a/examples/IPC_SAP/SOCK_SAP/C-inclient.cpp
+++ b/examples/IPC_SAP/SOCK_SAP/C-inclient.cpp
@@ -7,7 +7,7 @@ ACE_RCSID(SOCK_SAP, C_inclient, "$Id$")
/* BSD socket client */
int
-main (int argc, ACE_TCHAR *argv[])
+ACE_TMAIN (int argc, ACE_TCHAR *argv[])
{
// Initialize WinSock DLL on Win32...
ACE_OS::socket_init (ACE_WSOCK_VERSION);
diff --git a/examples/IPC_SAP/SOCK_SAP/C-inserver.cpp b/examples/IPC_SAP/SOCK_SAP/C-inserver.cpp
index bb9fc9d5711..6f53ab2db9d 100644
--- a/examples/IPC_SAP/SOCK_SAP/C-inserver.cpp
+++ b/examples/IPC_SAP/SOCK_SAP/C-inserver.cpp
@@ -6,7 +6,7 @@ ACE_RCSID(SOCK_SAP, C_inserver, "$Id$")
/* BSD socket server. */
-int main (int argc, ACE_TCHAR *argv[])
+int ACE_TMAIN (int argc, ACE_TCHAR *argv[])
{
// Initialize WinSock DLL on Win32...
ACE_OS::socket_init (ACE_WSOCK_VERSION);
diff --git a/examples/IPC_SAP/SOCK_SAP/CPP-inclient.cpp b/examples/IPC_SAP/SOCK_SAP/CPP-inclient.cpp
index 98c01c2bfae..a0889dd7f32 100644
--- a/examples/IPC_SAP/SOCK_SAP/CPP-inclient.cpp
+++ b/examples/IPC_SAP/SOCK_SAP/CPP-inclient.cpp
@@ -402,7 +402,7 @@ run_client (void)
}
int
-main (int argc, ACE_TCHAR *argv[])
+ACE_TMAIN (int argc, ACE_TCHAR *argv[])
{
// Initialize the logger.
ACE_LOG_MSG->open (argv[0]);
diff --git a/examples/IPC_SAP/SOCK_SAP/CPP-inserver-fancy.cpp b/examples/IPC_SAP/SOCK_SAP/CPP-inserver-fancy.cpp
index c4d6d46cfa2..9e1356c45cd 100644
--- a/examples/IPC_SAP/SOCK_SAP/CPP-inserver-fancy.cpp
+++ b/examples/IPC_SAP/SOCK_SAP/CPP-inserver-fancy.cpp
@@ -566,7 +566,7 @@ Handler_Factory::handle_events (void)
}
int
-main (int argc, ACE_TCHAR *argv[])
+ACE_TMAIN (int argc, ACE_TCHAR *argv[])
{
OPTIONS::instance ()->parse_args (argc, argv);
diff --git a/examples/IPC_SAP/SOCK_SAP/CPP-inserver-poll.cpp b/examples/IPC_SAP/SOCK_SAP/CPP-inserver-poll.cpp
index bbbd86d687a..a1d41fc5941 100644
--- a/examples/IPC_SAP/SOCK_SAP/CPP-inserver-poll.cpp
+++ b/examples/IPC_SAP/SOCK_SAP/CPP-inserver-poll.cpp
@@ -160,7 +160,7 @@ handle_connections (ACE_SOCK_Acceptor &peer_acceptor,
}
int
-main (int, ACE_TCHAR *[])
+ACE_TMAIN (int, ACE_TCHAR *[])
{
u_short port = ACE_DEFAULT_SERVER_PORT + 1;
@@ -196,7 +196,7 @@ main (int, ACE_TCHAR *[])
}
#else
#include <stdio.h>
-int main (int, ACE_TCHAR *[])
+int ACE_TMAIN (int, ACE_TCHAR *[])
{
ACE_OS::fprintf (stderr, "This feature is not supported\n");
return 0;
diff --git a/examples/IPC_SAP/SOCK_SAP/CPP-inserver.cpp b/examples/IPC_SAP/SOCK_SAP/CPP-inserver.cpp
index be327ca8c11..475cd02b99f 100644
--- a/examples/IPC_SAP/SOCK_SAP/CPP-inserver.cpp
+++ b/examples/IPC_SAP/SOCK_SAP/CPP-inserver.cpp
@@ -378,7 +378,7 @@ run_event_loop (u_short port)
}
int
-main (int argc, ACE_TCHAR *argv[])
+ACE_TMAIN (int argc, ACE_TCHAR *argv[])
{
u_short port = ACE_DEFAULT_SERVER_PORT;
diff --git a/examples/IPC_SAP/SOCK_SAP/CPP-unclient.cpp b/examples/IPC_SAP/SOCK_SAP/CPP-unclient.cpp
index ea75fb79c3e..9909bfa150d 100644
--- a/examples/IPC_SAP/SOCK_SAP/CPP-unclient.cpp
+++ b/examples/IPC_SAP/SOCK_SAP/CPP-unclient.cpp
@@ -60,7 +60,7 @@ main (int argc, char *argv[])
return 0;
}
#else
-int main (int, ACE_TCHAR *[])
+int ACE_TMAIN (int, ACE_TCHAR *[])
{
ACE_ERROR_RETURN ((LM_ERROR,
"this platform does not support UNIX-domain sockets\n"), -1);
diff --git a/examples/IPC_SAP/SOCK_SAP/CPP-unserver.cpp b/examples/IPC_SAP/SOCK_SAP/CPP-unserver.cpp
index db7f1458d2c..4d0403279d6 100644
--- a/examples/IPC_SAP/SOCK_SAP/CPP-unserver.cpp
+++ b/examples/IPC_SAP/SOCK_SAP/CPP-unserver.cpp
@@ -150,7 +150,7 @@ main (int argc, char *argv[])
return run_event_loop (argc > 1 ? argv[1] : ACE_DEFAULT_RENDEZVOUS);
}
#else
-int main (int, ACE_TCHAR *[])
+int ACE_TMAIN (int, ACE_TCHAR *[])
{
ACE_ERROR_RETURN ((LM_ERROR,
"this platform does not support UNIX-domain sockets\n"), -1);
diff --git a/examples/IPC_SAP/SOCK_SAP/FD-unclient.cpp b/examples/IPC_SAP/SOCK_SAP/FD-unclient.cpp
index 4d516a4a422..e48b5a7afaf 100644
--- a/examples/IPC_SAP/SOCK_SAP/FD-unclient.cpp
+++ b/examples/IPC_SAP/SOCK_SAP/FD-unclient.cpp
@@ -49,7 +49,7 @@ main (int argc, char *argv[])
return 0;
}
#else
-int main (int, ACE_TCHAR *[])
+int ACE_TMAIN (int, ACE_TCHAR *[])
{
ACE_ERROR_RETURN ((LM_ERROR, "your platform must support sendmsg/recvmsg to run this test\n"), -1);
}
diff --git a/examples/IPC_SAP/SOCK_SAP/FD-unserver.cpp b/examples/IPC_SAP/SOCK_SAP/FD-unserver.cpp
index 3f101cfb484..f12a376e163 100644
--- a/examples/IPC_SAP/SOCK_SAP/FD-unserver.cpp
+++ b/examples/IPC_SAP/SOCK_SAP/FD-unserver.cpp
@@ -87,7 +87,7 @@ main (int argc, char *argv[])
}
#else
int
-main (int, ACE_TCHAR *[])
+ACE_TMAIN (int, ACE_TCHAR *[])
{
ACE_ERROR_RETURN ((LM_ERROR, "your platform doesn't not support UNIX domain sockets\n"), -1);
}