From 2a80055f373159bf62db8ec675f3c6c569e9d0f8 Mon Sep 17 00:00:00 2001 From: schmidt Date: Sat, 8 Jan 2000 15:46:23 +0000 Subject: ChangeLogTag:Sat Jan 8 09:44:51 2000 Douglas C. Schmidt --- ChangeLog | 10 ++++++++-- ChangeLogs/ChangeLog-02a | 10 ++++++++-- ChangeLogs/ChangeLog-03a | 10 ++++++++-- TAO/tao/default_resource.cpp | 10 +++++----- ace/OS.i | 4 ++++ 5 files changed, 33 insertions(+), 11 deletions(-) diff --git a/ChangeLog b/ChangeLog index 1f8f429d940..7802d35ecda 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,15 +1,21 @@ +Sat Jan 8 09:44:51 2000 Douglas C. Schmidt + + * ace/OS.i: Needed to add an extern "C" {} block around the + setregid() and setreuid() functions. Thanks to David Levine + for reporting this. + Fri Jan 7 20:01:48 2000 Douglas C. Schmidt * ace/OS.i, ace/config-sunos5.5.h: Some platforms seem to lack function - prototypes for setreuid() and setreguid(), even though they are + prototypes for setreuid() and setregid(), even though they are in the library. Therefore, I've added #define ACE_LACKS_SETREGID_PROTOTYPE and - #define ACE_LACKS_SETREGID_PROTOTYPE + #define ACE_LACKS_SETREUID_PROTOTYPE macros to handle this case. diff --git a/ChangeLogs/ChangeLog-02a b/ChangeLogs/ChangeLog-02a index 1f8f429d940..7802d35ecda 100644 --- a/ChangeLogs/ChangeLog-02a +++ b/ChangeLogs/ChangeLog-02a @@ -1,15 +1,21 @@ +Sat Jan 8 09:44:51 2000 Douglas C. Schmidt + + * ace/OS.i: Needed to add an extern "C" {} block around the + setregid() and setreuid() functions. Thanks to David Levine + for reporting this. + Fri Jan 7 20:01:48 2000 Douglas C. Schmidt * ace/OS.i, ace/config-sunos5.5.h: Some platforms seem to lack function - prototypes for setreuid() and setreguid(), even though they are + prototypes for setreuid() and setregid(), even though they are in the library. Therefore, I've added #define ACE_LACKS_SETREGID_PROTOTYPE and - #define ACE_LACKS_SETREGID_PROTOTYPE + #define ACE_LACKS_SETREUID_PROTOTYPE macros to handle this case. diff --git a/ChangeLogs/ChangeLog-03a b/ChangeLogs/ChangeLog-03a index 1f8f429d940..7802d35ecda 100644 --- a/ChangeLogs/ChangeLog-03a +++ b/ChangeLogs/ChangeLog-03a @@ -1,15 +1,21 @@ +Sat Jan 8 09:44:51 2000 Douglas C. Schmidt + + * ace/OS.i: Needed to add an extern "C" {} block around the + setregid() and setreuid() functions. Thanks to David Levine + for reporting this. + Fri Jan 7 20:01:48 2000 Douglas C. Schmidt * ace/OS.i, ace/config-sunos5.5.h: Some platforms seem to lack function - prototypes for setreuid() and setreguid(), even though they are + prototypes for setreuid() and setregid(), even though they are in the library. Therefore, I've added #define ACE_LACKS_SETREGID_PROTOTYPE and - #define ACE_LACKS_SETREGID_PROTOTYPE + #define ACE_LACKS_SETREUID_PROTOTYPE macros to handle this case. diff --git a/TAO/tao/default_resource.cpp b/TAO/tao/default_resource.cpp index 57563e25cea..5fdafe32c44 100644 --- a/TAO/tao/default_resource.cpp +++ b/TAO/tao/default_resource.cpp @@ -714,9 +714,9 @@ ACE_FACTORY_DEFINE (TAO, TAO_Default_Resource_Factory) #if defined (ACE_HAS_EXPLICIT_TEMPLATE_INSTANTIATION) -template class ACE_Malloc; -template class ACE_Malloc_T; -template class ACE_Allocator_Adapter >; +template class ACE_Malloc; +template class ACE_Malloc_T; +template class ACE_Allocator_Adapter >; template class ACE_Select_Reactor_Token_T; template class ACE_Lock_Adapter >; @@ -724,8 +724,8 @@ template class ACE_Select_Reactor_T< ACE_Select_Reactor_Token_T #elif defined (ACE_HAS_TEMPLATE_INSTANTIATION_PRAGMA) -#pragma instantiate ACE_Malloc -#pragma instantiate ACE_Malloc_T +#pragma instantiate ACE_Malloc +#pragma instantiate ACE_Malloc_T #pragma instantiate ACE_Allocator_Adapter > #pragma instantiate ACE_Select_Reactor_Token_T diff --git a/ace/OS.i b/ace/OS.i index 02ece9eec25..416ba8b5c74 100644 --- a/ace/OS.i +++ b/ace/OS.i @@ -50,11 +50,15 @@ typedef const char *ACE_SOCKOPT_TYPE1; #endif /* ACE_HAS_VOIDPTR_SOCKOPT */ #if defined (ACE_LACKS_SETREUID_PROTOTYPE) +extern "C" { extern int setreuid (uid_t ruid, uid_t euid); +} #endif /* ACE_LACKS_SETREUID_PROTOTYPE */ #if defined (ACE_LACKS_SETREGID_PROTOTYPE) +extern "C" { extern int setregid (gid_t rgid, gid_t egid); +} #endif /* ACE_LACKS_SETREGID_PROTOTYPE */ #if defined (ACE_LACKS_WRITEV) -- cgit v1.2.1