Skip to content

Updated support for Green Hills INTEGRITY and INTEGRITY-178 RTOS #2340

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 33 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
33 commits
Select commit Hold shift + click to select a range
ac3ed1a
Updated support for Green Hills INTEGRITY
mitza-oci Dec 9, 2024
9b24977
Merge master
sonndinh Feb 21, 2025
b0e625b
Manually merge files
sonndinh Feb 24, 2025
44ad5da
More merge from master
sonndinh Feb 24, 2025
84f4171
Fix build
sonndinh Feb 24, 2025
3bc8288
Make exception handling configurable
sonndinh Feb 25, 2025
eca01a8
Built libACE on INTEGRITY-178
sonndinh Feb 25, 2025
4688527
- Fix build on INTEGRITY-178
sonndinh Feb 28, 2025
b41152e
Fix build
sonndinh Mar 3, 2025
ee44e16
Merge branch 'master' of github.com:DOCGroup/ACE_TAO into ACE-master-ghs
sonndinh Mar 3, 2025
b4bb241
Address review and fix build
sonndinh Mar 3, 2025
09178e3
Fix build for ace_for_tao.mpc and address review
sonndinh Mar 4, 2025
affb02a
From review
sonndinh Mar 6, 2025
fb5e75a
From review
sonndinh Mar 11, 2025
17a67dc
Use negate macro for turning off exception handling
sonndinh Mar 11, 2025
eacd11f
From review
sonndinh Mar 18, 2025
0d89269
Revert change to ACE_Service_Config::open_i
mitza-oci Mar 19, 2025
e409265
Merge remote-tracking branch 'upstream/master' into ACE-master-ghs
mitza-oci Mar 19, 2025
191b7f9
Merge remote-tracking branch 'upstream/master' into ACE-master-ghs
mitza-oci Mar 19, 2025
bbf4f80
Fix merge collision with #2362
mitza-oci Mar 19, 2025
9914124
From review
sonndinh Mar 19, 2025
18834d7
Merge remote-tracking branch 'upstream/master' into ACE-master-ghs
mitza-oci Mar 20, 2025
718484e
Updated for style/consistency
mitza-oci Mar 20, 2025
aaabd62
- Address review
sonndinh Mar 20, 2025
882ff47
Fix lint
sonndinh Mar 20, 2025
d3b1729
Updates to Single_Input_Reactor and TAO resources
mitza-oci Mar 21, 2025
7532e69
Address reviews
sonndinh Mar 21, 2025
c347c09
From review
sonndinh Mar 24, 2025
845fe59
From review
sonndinh Mar 26, 2025
cfd482b
More review
sonndinh Mar 28, 2025
1032fd9
Per review
sonndinh Mar 28, 2025
f6cf9e7
Remove _REENTRANT from INTEGRITY config files and let user set it
sonndinh Apr 8, 2025
fa705dd
- Remove inet_ntoa emulation since it's not thread-safe and not used …
sonndinh Apr 16, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,10 @@
*S_T.inl
*.bmak
*.recipe
*.gpj
*.int
*.custom_build_rule
*.empty_html_file

.depend.*
GNUmakefile*
Expand All @@ -32,6 +36,9 @@ lib*.dylib
*~
ipch/
*.vsidx
.vs/
Static_Release/
Static_Debug/

/ACE/ace/config.h
/ACE/bin/MakeProjectCreator/config/default.features
Expand Down
3 changes: 3 additions & 0 deletions ACE/NEWS
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,9 @@ USER VISIBLE CHANGES BETWEEN ACE-8.0.2 and ACE-8.0.3

. Dropped support for Embarcadero C++ Builder bcc32c and bcc64 compilers

. Updated support for Green Hills INTEGRITY and INTEGRITY-178 tuMP RTOS.
Tested on INTEGRITY 11.4.6 and INTEGRITY-178 5.0.0.

USER VISIBLE CHANGES BETWEEN ACE-8.0.1 and ACE-8.0.2
====================================================

Expand Down
4 changes: 2 additions & 2 deletions ACE/ace/ACE.inl
Original file line number Diff line number Diff line change
Expand Up @@ -216,7 +216,7 @@ ACE::sendv_n (ACE_HANDLE handle,
ACE_INLINE ssize_t
ACE::send_i (ACE_HANDLE handle, const void *buf, size_t len)
{
#if defined (ACE_WIN32) || defined (ACE_MQX)
#if defined (ACE_WIN32) || defined (ACE_MQX) || defined (__ghs__)
return ACE_OS::send (handle, (const char *) buf, len);
#else
return ACE_OS::write (handle, (const char *) buf, len);
Expand All @@ -226,7 +226,7 @@ ACE::send_i (ACE_HANDLE handle, const void *buf, size_t len)
ACE_INLINE ssize_t
ACE::recv_i (ACE_HANDLE handle, void *buf, size_t len)
{
#if defined (ACE_WIN32) || defined (ACE_MQX)
#if defined (ACE_WIN32) || defined (ACE_MQX) || defined (__ghs__)
return ACE_OS::recv (handle, (char *) buf, len);
#else
return ACE_OS::read (handle, (char *) buf, len);
Expand Down
4 changes: 2 additions & 2 deletions ACE/ace/Asynch_Pseudo_Task.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -49,9 +49,9 @@ ACE_Asynch_Pseudo_Task::svc ()

sigset_t RT_signals;

sigemptyset (&RT_signals);
ACE_OS::sigemptyset (&RT_signals);
for (int si = ACE_SIGRTMIN; si <= ACE_SIGRTMAX; si++)
sigaddset (&RT_signals, si);
ACE_OS::sigaddset (&RT_signals, si);

if (ACE_OS::pthread_sigmask (SIG_BLOCK, &RT_signals, 0) != 0)
ACELIB_ERROR ((LM_ERROR,
Expand Down
5 changes: 5 additions & 0 deletions ACE/ace/CDR_Size.h
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,10 @@ class ACE_Export ACE_SizeCDR
ACE_CDR::Boolean write_wstring (ACE_CDR::ULong length,
const ACE_CDR::WChar *x);
ACE_CDR::Boolean write_string (const std::string &x);
#if !defined (ACE_LACKS_STD_STRING_VIEW)
ACE_CDR::Boolean write_string_view (const std::string_view &x);
#endif

#if !defined(ACE_LACKS_STD_WSTRING)
ACE_CDR::Boolean write_wstring (const std::wstring &x);
#endif
Expand Down Expand Up @@ -231,8 +234,10 @@ extern ACE_Export ACE_CDR::Boolean operator<< (ACE_SizeCDR &ss,
const ACE_CDR::WChar* x);
extern ACE_Export ACE_CDR::Boolean operator<< (ACE_SizeCDR &ss,
const std::string& x);
#if !defined (ACE_LACKS_STD_STRING_VIEW)
extern ACE_Export ACE_CDR::Boolean operator<< (ACE_SizeCDR &ss,
const std::string_view& x);
#endif
#if !defined(ACE_LACKS_STD_WSTRING)
extern ACE_Export ACE_CDR::Boolean operator<< (ACE_SizeCDR &ss,
const std::wstring& x);
Expand Down
4 changes: 4 additions & 0 deletions ACE/ace/CDR_Size.inl
Original file line number Diff line number Diff line change
Expand Up @@ -152,6 +152,7 @@ ACE_SizeCDR::write_string (const std::string &x)
x.empty () ? 0 : x.c_str ());
}

#if !defined (ACE_LACKS_STD_STRING_VIEW)
ACE_INLINE ACE_CDR::Boolean
ACE_SizeCDR::write_string_view (const std::string_view &x)
{
Expand All @@ -160,6 +161,7 @@ ACE_SizeCDR::write_string_view (const std::string_view &x)
return this->write_string (len,
x.empty () ? 0 : x.data ());
}
#endif

#if !defined(ACE_LACKS_STD_WSTRING)
ACE_INLINE ACE_CDR::Boolean
Expand Down Expand Up @@ -408,12 +410,14 @@ operator<< (ACE_SizeCDR &ss, const std::string& x)
return ss.good_bit ();
}

#if !defined (ACE_LACKS_STD_STRING_VIEW)
ACE_INLINE ACE_CDR::Boolean
operator<< (ACE_SizeCDR &ss, const std::string_view& x)
{
ss.write_string_view (x);
return ss.good_bit ();
}
#endif

#if !defined(ACE_LACKS_STD_WSTRING)
ACE_INLINE ACE_CDR::Boolean
Expand Down
13 changes: 12 additions & 1 deletion ACE/ace/CDR_Stream.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1707,14 +1707,18 @@ ACE_InputCDR::read_string (std::string& x)
// the memory is allocated.
if (len > 0 && len <= this->length())
{
#if !defined (ACE_STD_ALLOCATOR_NOTHROW)
try
{
#endif
x.resize (len-1); // no need to include the terminating '\0' here
#if !defined (ACE_STD_ALLOCATOR_NOTHROW)
}
catch (const std::bad_alloc&)
{
return false;
}
#endif

if (len == 0 || this->read_char_array (&x[0], len-1))
{
Expand Down Expand Up @@ -1763,15 +1767,18 @@ ACE_InputCDR::read_wstring (std::wstring& x)
len /=
ACE_Utils::truncate_cast<ACE_CDR::ULong> (
ACE_OutputCDR::wchar_maxbytes_);

#if !defined (ACE_STD_ALLOCATOR_NOTHROW)
try
{
#endif
x.resize (len);
#if !defined (ACE_STD_ALLOCATOR_NOTHROW)
}
catch (const std::bad_alloc&)
{
return false;
}
#endif

if (this->read_wchar_array (&x[0], len))
{
Expand All @@ -1780,14 +1787,18 @@ ACE_InputCDR::read_wstring (std::wstring& x)
}
else
{
#if !defined (ACE_STD_ALLOCATOR_NOTHROW)
try
{
#endif
x.resize (len-1); // no need to include the terminating '\0' here
#if !defined (ACE_STD_ALLOCATOR_NOTHROW)
}
catch (const std::bad_alloc&)
{
return false;
}
#endif

if (len == 1 || this->read_wchar_array (&x[0], len-1))
{
Expand Down
7 changes: 7 additions & 0 deletions ACE/ace/CDR_Stream.h
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,10 @@
#endif /* ACE_HAS_MONITOR_POINTS==1 */

#include <string>

#if !defined (ACE_LACKS_STD_STRING_VIEW)
#include <string_view>
#endif

ACE_BEGIN_VERSIONED_NAMESPACE_DECL

Expand Down Expand Up @@ -285,7 +288,9 @@ class ACE_Export ACE_OutputCDR
ACE_CDR::Boolean write_wstring (ACE_CDR::ULong length,
const ACE_CDR::WChar *x);
ACE_CDR::Boolean write_string (const std::string &x);
#if !defined (ACE_LACKS_STD_STRING_VIEW)
ACE_CDR::Boolean write_string_view (const std::string_view &x);
#endif
#if !defined(ACE_LACKS_STD_WSTRING)
ACE_CDR::Boolean write_wstring (const std::wstring &x);
#endif
Expand Down Expand Up @@ -1439,8 +1444,10 @@ extern ACE_Export ACE_CDR::Boolean operator<< (ACE_OutputCDR &os,
ACE_OutputCDR::from_std_string x);
extern ACE_Export ACE_CDR::Boolean operator<< (ACE_OutputCDR &os,
const std::string& x);
#if !defined (ACE_LACKS_STD_STRING_VIEW)
extern ACE_Export ACE_CDR::Boolean operator<< (ACE_OutputCDR &os,
const std::string_view& x);
#endif
#if !defined(ACE_LACKS_STD_WSTRING)
extern ACE_Export ACE_CDR::Boolean operator<< (ACE_OutputCDR &os,
ACE_OutputCDR::from_std_wstring x);
Expand Down
4 changes: 4 additions & 0 deletions ACE/ace/CDR_Stream.inl
Original file line number Diff line number Diff line change
Expand Up @@ -368,6 +368,7 @@ ACE_OutputCDR::write_string (const std::string &x)
x.empty () ? 0 : x.c_str ());
}

#if !defined (ACE_LACKS_STD_STRING_VIEW)
ACE_INLINE ACE_CDR::Boolean
ACE_OutputCDR::write_string_view (const std::string_view &x)
{
Expand All @@ -376,6 +377,7 @@ ACE_OutputCDR::write_string_view (const std::string_view &x)
return this->write_string (len,
x.empty () ? 0 : x.data ());
}
#endif

#if !defined(ACE_LACKS_STD_WSTRING)
ACE_INLINE ACE_CDR::Boolean
Expand Down Expand Up @@ -1394,12 +1396,14 @@ operator<< (ACE_OutputCDR &os, const std::string& x)
return os.good_bit ();
}

#if !defined (ACE_LACKS_STD_STRING_VIEW)
ACE_INLINE ACE_CDR::Boolean
operator<< (ACE_OutputCDR &os, const std::string_view& x)
{
os.write_string_view (x);
return os.good_bit ();
}
#endif

#if !defined(ACE_LACKS_STD_WSTRING)
ACE_INLINE ACE_CDR::Boolean
Expand Down
Loading