Wed Apr 29 18:55:13 1998 David L. Levine * ACE version 4.5 released. Wed Apr 29 12:25:05 1998 David L. Levine * ace/config-lynxos.h: added ACE_POLL_IS_BROKEN so that ACE_OS::sleep () uses select () instead of poll (). * tests/Map_Manager_Test.cpp: added a ssize_t loop index that's used to avoid signed/unsigned comparisons. Tue Apr 28 23:08:10 1998 Nanbor Wang * ace/Hash_Map_Manager.cpp: Bugs fixed. * tests/Map_Manager_Test.cpp: Added assertion tests on the number of iterations to ensure the test does run correctly. * tests/Map_Manager_Test.cpp (main): Disabled the VERBOSE_LITE Log_Msg flag before starting the real test and reenabled it after the tests. Tue Apr 28 06:49:50 1998 David L. Levine * ACE-INSTALL.html,os-patches/linux-patches.html: updated Linux glibc-2 info. ACE works with glib-2.0.7-7, unmodified. * ace/config-g++-common.h: added ACE_LACKS_STATIC_DATA_MEMBER_TEMPLATES with egcs. egcs 1.0.2 won't compile netsvcs/lib without it. * include/makeinclude/platform_vxworks5.x_ghs.GNU: fixed location of parenthesis in ppc check. Thanks to Brian Mendel for reporting this. * ace/High_Res_Timer.cpp: initialize global_scale_factor_ to 1000 on Linux. Mon Apr 27 07:18:54 1998 Nanbor Wang * ace/Service_Types.cpp: Changes to use typedef ACE_Service_Object_Exterminator to define . Thanks to Chuck Gehr for reminding this. * ace/Service_Object.h (ACE_Service_Object_Ptr): * netsvcs/servers/main.cpp (main): Added more comments on how to use ACE_Service_Object_Ptr with ACE_SVC_INVOKE correctly. * ace/OS.h (ACE_Service_Object_Exterminator): Define the type as extern "C" function pointer to make MVS happy. Thanks to Chuck Gehr for pointing this out. * ace/Service_Object.i (ACE_Service_Object_Ptr): Delete the underlying Service_Object after calling its fini() method. Thanks to Tom Arbuckle for pointing this out. Sun Apr 26 21:50:07 1998 David L. Levine * ace/Svc_Conf_l.cpp,etc/Svc_Conf_[ly].cpp.diff,etc/README: updated the patch files. Thanks to J. Russell Noseworthy for reporting problems with them. Sun Apr 26 01:05:20 1998 Douglas C. Schmidt * ACE version 4.4.43 released. Sat Apr 25 17:47:31 1998 Nanbor Wang * ace/OS.h (ACE_FACTORY_DECLARE): Added explicit casting for gobbler to prevent some weird compiler from complaining too much. * netsvcs/lib/Server_Logging_Handler_T.cpp (ACE_Server_Logging_Acceptor_T): We can't initialize the with a temporary object. Its content gets deleted right after the constructor exits. Sat Apr 25 11:55:01 1998 Alexander Babu Arulanthu * ace/Containers.h (class ACE_Double_Linked_List): Added comments.(, the parameter for this class should have T* next_ and T* prev_ fields in it. * ace/Containers.h (class ACE_Double_Linked_List): Corrected the documentation for the insert_head and insert_tail functions. Fri Apr 24 22:36:37 1998 David L. Levine * ace/Service_Config.cpp (process_directive): added ACE_UNUSED_ARG (directive). Fri Apr 24 18:40:08 1998 Irfan Pyarali * ace/Asynch_Acceptor.cpp (handle_accept): Fixed this method so that it has better flexibility and error checking. Also, added hooks so that users can do validation of remote connections. Also, a flag is checked before accept is reissued. Thanks to Jason Katz for reporting these upgrades. Fri Apr 24 16:33:14 1998 Steve Huston * ace/OS.h: ACE_FACTORY_DEFINE - in the generated gobble function, use the indicated object type to do the delete so 1) the aC++ compiler won't complain, and 2) so the service object is destructed properly. * tests/Env_Value_Test.cpp: Made it compile on Solaris. Fri Apr 24 15:45:38 1998 David L. Levine * ace/config-sunos5.5-*.h: set ACE_THR_PRI_FIFO_DEF to 30, because sched_get_priority_min is not implemented on Solaris 2.5.x. Fri Apr 24 09:12:39 1998 Nanbor Wang * tests/Env_Value_Test.cpp: Made it UNICODE safe. * tests/version_tests/version_tests.dsw: * tests/version_tests/OrdMultiSet_Test.dsp: Added new project file. Fri Apr 24 09:09:49 1998 David L. Levine * ace/config-linux-common.h: added ACE_HAS_4_4BSD_SENDMSG_RECVMSG. Thanks to Sandro Doro for recommending this. Fri Apr 24 04:12:39 1998 Nanbor Wang * tests/version_tests/version_tests.dsw: * tests/version_tests/OrdMultiSet_Test.dsp: Added new project file. Thu Apr 23 22:52:20 1998 Nanbor Wang * tests/tests.dsw: Somehow, Thread_Mutex_Test.dsp got removed from the workspace. * tests/Thread_Mutex_Test.dsp: Update include/lib path. Fri Apr 24 00:12:32 1998 Douglas C. Schmidt * ACE version 4.4.42 released. Thu Apr 23 22:28:02 1998 Douglas C. Schmidt * ace/Service_Config: Began adding support for the new service configurator feature that will make it possible to dynamically configure services that are read in from the command-line. Thanks to Karlheinz for requesting this. * ace/Parse_Node.cpp (open_handle), ace/Svc_Conf.l: The line for the service object for the service configurator contains the DLL specifications. Previously, it was possible to specify either the absolute path name of the DLL or only the name of the DLL itself. For the latter, the service configurator is searching for the DLL using the PATH environment variable. If we used the absolute path name it was not possible to use environment variables in the string. It is now possible to do this for Win32 using their %foo% notation. Thanks to Andreas Schuelke for providing these fixes. * etc/Svc_Conf_y.cpp.diff, etc/Svc_Conf_l.cpp.diff, ace/Makefile: Change the YY* symbols to ACE_YY* symbols to avoid clashes if we link with other flex/yacc generated code. * apps/Gateway/Gateway/gatewayd.cpp, apps/Gateway/Peer/peerd.cpp: Added a check to see if the svc.conf file exists before trying to parse the arguments. Thanks to Dani Flexer for reporting this. * apps/Gateway/Peer/Options.cpp (parse_args): Added the "C:" qualifier to the get_opt string. Thanks to Dani Flexer for reporting this. * ace/Activation_Queue.h: Extended ACE_Activation_Queue so that it can be a proper base class by making the destructor virtual and putting the methods into the protected section. Thanks to Garry Brother for this. * ace/XtReactor.cpp: Commented out most of the logic if we're running on Win32 because (1) it doesn't work correctly since HANDLEs are not ints and (2) there's no X windows on Win32 anyhow... * ace/XtReactor.h: Made ACE_XtReactor be ACE_Export'd. Thanks to Kirill Rybaltchenko for reporting this. Thu Apr 23 13:54:33 1998 David L. Levine * ace/Malloc.i (free): added ACE_UNUSED_ARG (ptr) if ACE_NDEBUG. * include/makeinclude/platform_chorus.GNU: include dtool/htgt-cf.rf from $(MERGEDIR) instead of $(CLASSIXDIR). Thanks to Wei Chiang for this update. Wed Apr 22 22:13:57 1998 Douglas C. Schmidt * ace/ace_bcc.ide: Added a new IDE for the Borland C++ compiler. Thanks to Valik Solorzano Barboza for this. * ace/Msg_WFMO_Reactor.cpp (wait_for_multiple_events): Fixed a missing semi-colon. Thanks to Jorn Jensen for reporting this. Wed Apr 22 21:53:12 1998 David L. Levine * config-linux-kcc.h: added #define ACE_SIZEOF_LONG_DOUBLE to 12 on i386. Thanks to Ben Eng for reporting this. Tue Apr 21 18:38:22 1998 Nanbor Wang * ace/ace_ce_dll.dsp: Removing a deprecated /windowsce:noconvert linker flag. Mon Apr 20 15:39:42 1998 Steve Huston * ace/Handle_Set.cpp: Access fds_bits elements using an fd_mask pointer rather than array indexing of the fds_bits array itself. HP-UX 11 plays some games with the fd_mask type - fd_mask is defined as an int32_t, but the fds_bits is an array of longs. This makes plainly indexing through the array by hand tricky, since the FD_* macros treat the array as int32_t. So the bits are in the right place for int32_t, even though the array is long. This, they say, is to preserve the same in-memory layout for 32-bit and 64-bit processes. So, we play the same game as the FD_* macros to get the bits right. See /usr/include/sys/_fd_macros.h. On all other systems, this amounts to practically a NOP, since this is what would have been done anyway, without all this type jazz. Sat Apr 18 13:59:55 1998 David L. Levine * ace/Naming_Context.h: removed trailing ';' at end of ACE_FACTORY_DECLARE. * ace/OS.*,Sched_Params.{h,cpp}: added support on Solaris for setting the LWP priority. It is necessary to set the LWP priority for bound threads in the Real-Time scheduing class. Thread priority is essentially ignored. See the pthread_setschedparam man page for more info. Thanks to Fred Kuhns for helping track this problem down. There is one drawback: to set the LWP priority, in ACE, a thread must set its own priority. There are examples in performance-tests/Misc/preempt.cpp: High_Priority_Task::svc (void) { // On Solaris 2.5.x, the LWP priority needs to be set. // This is the ACE way to do that . . . ACE_OS::thr_setprio (priority_); I don't know of a way to set the LWP priority for another thread. The problem is that there is no way that I know of to find the LWP ID of another (bound) thread. A thread can find the ID of its own LWP using _lwp_self (). * ace/config-sunos5*,README: added ACE_HAS_PRIOCNTL and ACE_NEEDS_LWP_PRIO_SET. * ace/config-osf1-4.0.h: added ACE_HAS_PRIOCNTL and ACE_LACKS_PRI_T. * performance-tests/Misc/preempt.cpp (svc): set LWP priority (on Solaris) by having the thread set its own priority. This test now passes on Solaris 2.5.1! * ace/High_Res_Timer.cpp (reset): initialize by assignment with 0 instead of using memset. Thanks to Carlos for noticing this. * ace/Object_Manager.cpp (ACE_Object_Manager ctor): allocate registered_objects_ after the allocation of ACE_STATIC_OBJECT_LOCK, just to be safe. Sat Apr 18 01:28:36 1998 Irfan Pyarali * ace/Timeprobe.h (class ACE_Timeprobe): Changed ACE_Timeprobe to use ACE_OS::gethrtime(). Sat Apr 18 01:14:30 1998 Irfan Pyarali * ace/OS.cpp (start and stop): start and stop should only be done when ACE_Countdown_Time::max_wait_time_ is non-zero. * ace/Acceptor.cpp (open): Only set the reactor if calls to open() and register_handler() succeeds. Fri Apr 17 21:00:21 1998 Steve Huston * ace/config-hpux11.h: Changes and comments around the ACE_DEFAULT_BASE_ADDR definition for 64-bit HP-UX 11. * ace/Naming_Context.cpp * ace/Malloc_T.cpp * ace/Memory_Pool.cpp: Hacks to work around bugs in HP-UX aC++ in 64-bit mode on HP-UX 11. * ace/OS.i: Addition of a facility that allows config.h to specify additional flags for ACE_OS::mmap, above what's set by the caller. It's done using a new definition, ACE_OS_EXTRA_MMAP_FLAGS. This was added primarily to allow setting of the MAP_ADDR32 flag on HP-UX 11 if the ACE_DEFAULT_BASE_ADDR is set in the 32-bit range to allow 32-bit and 64-bit programs to map the same region. Fri Apr 17 11:40:38 1998 Nanbor Wang * ace/OS.cpp (invoke): Should check against null thr_desc, not thr_desc->flag (). Thanks to "Erickson, Jack (CICG - NY GFX)" for reporting this. * ace/OS.h (ACE_Service_Object_Exterminator): Typedef of ACE factory cleanup funciton. (ACE_FACTORY_{DECLARE,DEFINE}): Added an extra argument to pass back destructor for the object created by the factory. Changed the ACE_FACTORY_DEFINE to generate this destructor function to pair with factory function so that we can deallocate the object in the same heap it was created. (ACE_SVC_INVOKE): This will now pass in 0, which means we don't want to use the destructor function. * ace/Parse_Node.{h,cpp} (symbol): Added an extra argument to get back the destructor function from ACE_FACTORY. Only Function_Node actually uses it. (ACE_Function_Node::symbol): Initialize the Service_Object with added destructor function ptr so it will get destructed in the "right place". * ace/Service_Config.{h,cpp} (load_static_svcs): Invoke the factory method with added argument to get back the destructor function and then, pass it in to ace_create_service_type function. (ACE_Service_Manager): Changed to use the more generic ACE_FACTORY_DEFINE than using ACE_SVC_FACTORY_DEFINE. (ACE_SERVICE_ALLOCATOR): Must match with signature of the new factory method. * ace/Service_Type.{h,cpp} (ACE_Service_Object_Type,ACE_Service_Type_Impl): Keep the destruction function in these object, if use provides one, then use it to destruct the object, otherwise, just use delete. * ace/Naming_Context.{h,cpp}: Changed to use ACE_FACTORY_{DEFINE,DECLARE}. * ace/Object_Manager.cpp: Changed the signature of Service_Manager. * ace/Svc_Conf.h: Changed the signature of ace_create_service_type. * ace/Svc_Conf_y.cpp: * ace/Svc_Conf.y: Try to get the destruction function from factories in svc_location. (ace_create_service_type): Pass in the destruction function if provided one. Fri Apr 17 08:31:38 1998 Douglas C. Schmidt * ace/Signal.cpp (dispatch): Fixed a typo. Thanks for David Levine's help pointing this out. Thu Apr 16 21:12:48 1998 Douglas C. Schmidt * ace/Signal.cpp: There was a major portability violation in the ACE_Sig_Handler::dispatch() method, which was previously acquiring a mutex lock. This is NOT permitted in the POSIX signal handler spec. In addition, the implementation had other nasty consequences related to dynamic allocation of memory in the signal handler, which has a bad habit of breaking non-reentrant uses of "new". The consequence of all this is that you really shouldn't be modifying signal handlers via the Reactor in multiple threads of control. In general, threads and signals are just plain evil, so they are best addressed via sigwait() anyhow... Thanks to Sumedh and Naga for first tracking this down. Thu Apr 16 20:51:42 1998 David L. Levine * ace/config-linux-pthread.h: added ACE_HAS_THREADS. ace/config-irix6.x-g++.h: added ACE_HAS_THREADS and ACE_MT_SAFE. Thanks to Dave Tallman for reporting these. Thu Apr 16 04:14:53 1998 Irfan Pyarali * ace/Timeprobe: This class is used to instrument code. This is accomplished by inserting time probes at different location in the code. ACE_Timeprobe then measures the time difference between two time probes. This class provides a lightweight implementation for measuring the time required to execute code between two time probes. When a time probe executes, it records the time, the id of the calling thread, and an event description. The event description can either be an unsigned long or a string (char *). If string are used, care must be taken cause only pointer copies are done and the string data is *not* copied. The recorded time probes can then be printed by calling print_times(). If you have used unsigned longs as event descriptions in any of your time probes, you must provide an event description table that maps the unsigned longs to readable strings. This map is a simple array of strings, and the event number is used as the index into the array when looking for the event description. If you have only used strings for the event description, this map is not necessary. Wed Apr 15 23:01:08 1998 Nanbor Wang * ace/Thread_Manager.cpp (exit): Don't delete the ACE_Thread_Exit object of the thread here. ACE_Thread_Manager::exit will be called back again when performing TSS cleanup. Thanks to Dave Tallman for the bug report. Wed Apr 15 17:12:14 1998 Steve Huston * ace/config-hpux-11.x-hpc++.h: Explicitly set ACE_SIZEOF_LONG based on compiler switch for processor/memory model. Wed Apr 15 16:25:38 1998 Irfan Pyarali * ace/WFMO_Reactor.cpp (handle_signal): Changed break to return 0. * ace/OS.cpp (uname): We have to make sure that the size of (processor + subtype) is not greater than the size of name->machine. So we give half the space to the processor and half the space to subtype. The -1 is necessary for because of the space between processor and subtype in the machine name. Thanks to Andrew Marchewka (Andrew_Marchewka@SRT.CCMAIL.compuserve.com) for suggesting these changes. Wed Apr 15 08:52:52 1998 David L. Levine * tests/Reactor_Exceptions_Test (handle_input): removed ACE_NOTREACHED wrapper around return statement at end. Now that the previous statement is a function call, the compiler (cxx) doesn't detect that the statement can't be reached. Wed Apr 15 01:03:42 1998 Douglas C. Schmidt * ace/OS.i (ACE_SOCKCALL_RETURN): Added a work-around for a Borland 5.02 compiler bug. The key turns out to be the throw-away intermediate assignment statement to correctly keep the value of WSAGetLastError(). Thanks to Dave Tallman for reporting this. Tue Apr 14 23:35:19 1998 Nanbor Wang * ace/Profile_Timer.cpp (elapsed_rusage): The differences of user time and system time for GETRUSAGE were not calculated. * performance-tests/Synch-Benchmarks/Options.cpp (print_results): Added dump code for ACE_HAS_GETRUSAGE. * ace/ace_{dll,lib}.dsp: Removed Service_Main.cpp from the projects. We don't really need them in ACE DLL. * ace/Service_Main.cpp: Removed the file from CVS. Lots of Service_Config examples can be found all round ACE directories so we really don't need it here anymore. Tue Apr 14 20:30:53 1998 Steve Huston * ace/OS.i (mutex_init, cond_init): Added sections to properly handle error conditions on platforms which claim ACE_HAS_PTHREADS_1003_DOT_1C. Tue Apr 14 16:39:42 1998 Nanbor Wang * ace/ACE.cpp (ldfind): Fixed a miscalculated string size. Thanks to Jason Katz for reporting the bug. Tue Apr 14 14:33:33 1998 David L. Levine * tests/Thread_Manager_Test.cpp (main): don't try to suspend/resume DCE threads, because they don't support it. Added a start barrier, to ensure that worker threads set up their signal handlers before the main thread tries to signal them. Drop DEFAULT_ITERATIONS from 100000 to 10000 because 100000 takes a long time on a 200 MHz Pentium. Tue Apr 14 12:59:04 1998 Douglas C. Schmidt * tests/Hash_Map_Manager_Test.cpp: Changed the consts to size_t, as well... Tue Apr 14 11:40:23 1998 David L. Levine * tests/Hash_Map_Manager.cpp: made type, size_t, of String_Table_size explicit, instead of using the default type of int. Tue Apr 14 10:10:46 1998 Douglas C. Schmidt * ACE version 4.4.41 released. Tue Apr 14 07:19:25 1998 David L. Levine * bin/make_release (create_kit): ACE+TAO instead of ACE_TAO. Thanks to Doug for reporting this. * ace/OS.h (ACE_Thread_Adapter): added friend class declaration to avoid g++ warning: only defines a private destructor and has no friends. * ace/OS.cpp (ACE_Thread_Adapter::invoke): only declare local thr_desc if ACE_HAS_WIN32 and ACE_HAS_MFC. Tue Apr 14 00:46:05 1998 Douglas C. Schmidt * ACE version 4.4.40 released. Mon Apr 13 19:19:13 1998 Douglas C. Schmidt * ace/OS: Made the destructor of ACE_Thread_Adapter private to keep people like Russ from abusing this class... ;-) * ace/OS.cpp (invoke): We were incorrectly deleting this and then using one of its fields! Thanks to the ever-vigilant Russ Noseworthy for reporting this. * ace/Log_Record.cpp (print): Added VERBOSE_LITE support to the code so we don't spew out quite so much information. * ace/Log_Msg.cpp (log): Replaced all calls to ACE_Log_Record::print() so that they pass the ACE_Log_Msg::flags_ parameter. * ace/Log_Record.h: Changed the 'int verbose' parameter to 'u_long verbose_flag' parameter so that we can pass in the ACE_Log_Msg::flags_ and check to see what they are enabled with! * tests/test_config.h: Changed VERBOSE to VERBOSE_LITE so we don't have quite so much junk printed out for the tests! * ace/Log_{Priority,Record}: Added a new flag called VERBOSE_LITE that isn't quite as verbose as VERBOSE (it only prints things that can change between calls to the ACE_Log_Msg::log() method). In addition, also changed the ACE_Log_Record::print() method so it prints the string format for the ACE_Log_Priority types. This is a lot more legible than printing the numbers. * ace: Removed all uses of ACE_HAS_WILDCARD_BIND. This is now the default behavior. If there's some weird platform that DOESN'T have this behavior, we'll deal with that by setting the ACE_LACKS_WILDCARD_BIND flag. * ace/OS.cpp (invoke): Removed the (void *) cast on delete this. It wasn't necessary. Thanks to Steve Huston and David Levine for reporting this. Mon Apr 13 19:12:49 1998 Nanbor Wang * ace/DEV_Connector.i (ACE_DEV_Connector): * ace/Asynch_IO.cpp (accept,addresses): UNICODE changes. Mon Apr 13 18:05:26 1998 Steve Huston * tests/Thread_Manager_Test.cpp: Disabled the suspend/resume action for Pthreads platforms. Mon Apr 13 10:18:59 1998 David L. Levine * ace/High_Res_Timer.i (hrtime_to_tv): in tv.usec calculation, moved the cast to long to after the division by global_scale_factor_. This is necessary for compatibility with ACE_U_LongLong. * bin/make_release (get_versions): use $KIT instead of hard-coded ACE, so that it works with TAO. (tag): translate dots to underscores, because CVS doesn't allow dots in tags. Thanks to Doug and Hans Rohnert for reporting these. Sun Apr 12 21:11:53 1998 Nanbor Wang * ace/OS.h: Prevent using ACE_HAS_MOSTLY_UNICODE_APIS without UNICODE. * ace/OS.cpp (thr_create): * ace/Thread_Manager.cpp (spawn_i): Removed directive ACE_NO_THREAD_ADAPTER and its related code. Sat Apr 11 22:20:51 1998 Nanbor Wang * tests/Thread_Manager_Test.cpp (main): Don't check execute result of kill_grp statement if we are running on Win32 platforms. thr_kill is not supported there. Sat Apr 11 20:00:12 1998 Douglas C. Schmidt * ACE version 4.4.39, released Sat Apr 11 20:00:12 1998. Sat Apr 11 19:58:56 1998 Douglas C. Schmidt * Nanbor removed a bunch of *.MAK files, which were quite large and taking up lots of space. Sat Apr 11 18:58:24 1998 Steve Huston * ace/INET_Addr.cpp: Fixed missing paren. * netsvcs/servers/servers4.mdp: Added ..\lib to include directories for Release build. Sat Apr 11 13:28:19 1998 Douglas C. Schmidt * ACE version 4.4.38, released Sat Apr 11 13:28:19 1998. Sat Apr 11 12:46:08 1998 Douglas C. Schmidt * ace/config-mvs.h: Added some ACE_SIZEOF_* macros for MVS. Thanks to Chuck Gehr for reporting this. * ace/INET_Addr.cpp: Added a newline and a better explanation of what went wrong if an error occurs. Thanks to Luca for reporting this. Fri Apr 10 02:42:35 1998 Nanbor Wang * ace/Log_Msg.{h,cpp} (log_hexdump): * ace/ACE.{h,cpp} (format_hexdump): The buffer to be hex-dumped should always be of type (const char *) no matter we have UNICODE system strings or not. * ace/OS.{h,cpp} (ACE_CE_Bridge): This new class bridges a text-based ACE programs with a default window that prints out the default ACE_Log_Msg output. CE always uses non-static object manager and we replace the original main function with a well know entry that the main window program can call back from to invoke the ACE program in a separate thread. * ace/Log_Record.{h,cpp}: Added support for passing strings as windows messages. * ace/Log_Msg.cpp (log): Specialized CE support. * windoezCE: The template windows program that receives ACE messages. See CE-Status or README file for more info. Fri Apr 10 00:41:23 1998 Douglas C. Schmidt * tests/Reactor_Exception_Test: Tidied the test up a bit. Thanks to Bob Laferriere for suggesting this. * tests/test_config.h: Enabled ACE_Log_Msg::VERBOSE since it gives more information that can be useful for debugging. Fri Apr 10 00:04:03 1998 Irfan Pyarali * ace/Proactor.cpp (post_completion): Added a new method to the Proactor. It can be used to post a result to the completion port of the Proactor. If errors occur, the result will be deleted by this method. If successful, the result will be deleted by the Proactor when the result is removed from the completion port. Therefore, the result should have been dynamically allocated and should be orphaned by the user once this method is called. Changed the timer mechanism to use this new method rather than posting to the completion port directly. Thanks to Jason Katz for the improvements. Thu Apr 9 17:31:47 1998 Douglas C. Schmidt * Updated all the Makefile dependencies and also added the appropriate CVS strings to all Makefiles. * examples/IPC_SAP/SOCK_SAP: Improved both the CPP-unserver.cpp and CPP-inserver.cpp programs so they work identically wrt concurrency and logic. * ace/LSOCK_Stream.cpp: Fixed the get_remote_addr() and get_local_addr() methods to work correctly. Apparently, getpeername() doesn't work appropriately for UNIX domain sockets, so we simply have both methods call getsockname(). Thanks to Chuck Gehr for pointing out this problem. * ace/FILE_IO.cpp (get_local_addr): The RHS has an additional field that is the FILE name, which did not get copied. Added an ACE_dynamic_cast() to do the right thing here. Thanks to Ganesh Pai for reporting this. * ace/Malloc*: Factored out all the code in ACE_Static_Allocator into a new non-templatized base class called ACE_Static_Base_Allocator so that we don't trigger multiply defined symbols when we use this in TAO. Thanks to Carlos for this very insightful trick! * tests/Thread_Manager_Test.cpp (main): Added ACE_ASSERT statements so that we bailout if things go awry. Thanks to Robert J. Laferriere for reporting this. Thu Apr 09 18:06:53 1998 Nanbor Wang * ace/High_Res_Timer.i (hrtime_to_tv): Cast the parameter for usec to long. It can be fixed because of Darrell's vigilance. Thu Apr 09 17:55:21 1998 Steve Huston * ace/config-hpux-10.x.h, config-hpux11.h, config-aix-4.2.x.h: Added ACE_HAS_WILDCARD_BIND. Thu Apr 09 16:43:26 1998 Irfan Pyarali * ace/ACE.*: Changed *_version() functions to be non-inlined. After this change, inclusion of ace/Version.h can be moved into ACE.cpp. This change helps as all of ACE doesn't have to be compiled after Version.h changes (Version.h changes every time a new beta is produced). Thu Apr 9 12:27:23 1998 Carlos O'Ryan * tests/Hash_Map_Manager_Test.cpp: POOL_SIZE was simple "const POOL_SIZE" I changed that to "const int POOL_SIZE". Added missing template instantiation for Static_Allocator. Thu Apr 09 10:50:18 1998 Nanbor Wang * ace/WFMO_Reactor.cpp (dump): Fixed signed/unsigned mismatched warnings on NT. Thanks to Darrell for noticing the bug. Thu Apr 9 09:37:08 1998 Douglas C. Schmidt * ace/Malloc_T: Moved the ACE_Static_Allocator::dump() method into the Malloc_T.cpp file so we'd get a vtable... Thanks to David Levine for reporting this. * tests/Hash_Map_Manager_Test.cpp (run_test): Added a return value to make G++ and David Levine happy ;-). Thu Apr 09 10:50:18 1998 Nanbor Wang * ace/WFMO_Reactor.cpp (dump): Fixed signed/unsigned mismatched warnings on NT. Thanks to Darrell for noticing the bug. Wed Apr 08 17:29:01 1998 Irfan Pyarali * ace/SOCK_Acceptor.cpp (open): There was a boo-boo in open() as we were only calling bind_port() and ignoring the port supplied by the user. Call bind_port only if port == 0. Wed Apr 8 01:09:52 1998 Douglas C. Schmidt * ace/Malloc_T: Added a new ACE_Static_Allocator class, which is highly optimized for allocations where (1) all the memory size is known in advance and (2) no deletions are done. This class will ultimately be used in TAO to improve it's startup performance for operation tables initialization. * tests/Hash_Map_Manager_Test.cpp: Enhanced the test so that it uses the new ACE_Static_Allocator feature. * ace/OS: Added support for the rename() method. Thanks to Ganesh Pai for suggesting this. * ace/config-win32-common.h, config-sunos*.h: config-irix-6*.h: Enable the ACE_HAS_WILDCARD_BIND macro. * ace/ACE.cpp: Modified the bind_port() method so that it is more efficient on platforms that interpret a 0 port to bind() as a request for the kernel to select the port. Thanks to Chris Cleeland for pointing this out. * ace/Hash_Map_Manager: Made a bunch of minor changes to fix some subtle deadlocks with intra-class locking. * tests/Map_Manager_Test.cpp: Restructured the tests so that we don't keep recomputing end() and rend() of the map in each loop iteration! Wed Apr 08 10:02:16 1998 David L. Levine * bin/make_release: added this script that creates ACE and/or TAO releases. * Makefile: added support for make_release. See comments at the top of the Makefile. The old release mechanism has been retained; to use it: make release-old or make releaseall-old. Wed Apr 08 00:37:33 1998 Irfan Pyarali * ace/ACE.cpp (bind_port): This call was not flexible enough as it always assumed that the user wanted INADDR_ANY. Added an extra parameter to this function where the user can pass in the addr that she is interested in. This extra parameter defaults to INADDR_ANY, so no existing should break. * ace/SOCK_Acceptor.cpp (open): Not enough information was being passed to the new ACE::bind_port() call. Changed open() so that the sin_addr part of the address is passed along to ACE::bind_port(). Tue Apr 07 15:25:08 1998 David L. Levine * ace/config-irix*.h: fixed determination of ACE_SIZEOF_LONG_DOUBLE, depending on system release and ABI. Thanks to Robert J. Laferriere for figuring it all out. Mon Apr 06 01:29:35 1998 Nanbor Wang * ace/ace_ce_dll.dsp: Update project files. Rearrange dll filenames a bit so that it's eaier to have various ACE libraries for various CE supported CPUs. Files for every supported CPU are generated under CPU specific directory as follow: CPU Directory Name Sh3 series ace/WCE/SH aced.{lib,dll} ace.{lib,dll} MIPS series ace/WCE/MIPS aced.{lib,dll} ace.{lib,dll} x86 emulation ace/WCE/x86em aced.{lib,dll} ace.{lib,dll} * ace/config-win32-common.h: Prevent CE from using wsock32.lib. Sun Apr 05 16:44:31 1998 Nanbor Wang * ace/OS.h (ASYS_ONLY_MULTIBYTE_STRING): New macro. Used to activate wchar string to char string conversion only under CE, under other cases, the argument to this macro is treated as a regular char string. * ace/INET_Addr.cpp (set): Changed to use ASYS_ONLY_MULTIBYTE_STRING. This has gotten out of control now. I need to think of a better name for these macros. Tue Apr 07 09:30:28 1998 David L. Levine * include/makeinclude/platform_lynxos.GNU: set up PATH when cross-compiling. With this change, users don't need to do anything special to their platform_macros.GNU or environment to cross-compile for LynxOS (assuming that the default platform_lynxos.GNU configuration is suitable). Mon Apr 06 16:28:32 1998 Steve Huston * examples/Service_Configurator/IPC-tests/server/svc.conf: Corrected library name to load tests from. Thanks to Sandro Doro for noticing there was a problem here. Sun Apr 05 10:20:26 1998 David L. Levine * include/makeinclude/platform_lynxos.GNU: only define CROSS-COMPILE if not building on LynxOS. * ace/OS.h: fixed ACE_CAST_CONST definition with Sun CC. Sun Apr 05 00:20:52 1998 Nanbor Wang * ace/ACE.h: Moved "#include "ace/OS.h" out of _ACE_H_ block to resolve the circular inclusion that occured when building ACE Unicode Release version. Sat Apr 04 21:19:32 1998 Douglas C. Schmidt * ACE version 4.4.37, released Sat Apr 04 21:19:32 1998. Sat Apr 04 19:41:03 1998 Nanbor Wang * ace/OS.cpp (thr_exit): Forgot to access creation flags thru the access function. Sat Apr 04 14:01:53 1998 Steve Huston * performance-tests/Makefile: Put UDP back in dir list. Sat Apr 04 07:45:33 1998 David L. Levine * ace/Basic_Types.h,config-sunos4*.h,README: don't use u_longlong_t on Suns if ACE_LACKS_U_LONGLONG_T is defined. Define ACE_LACKS_U_LONGLONG_T in all SunOS4 config files. Thanks to John Lindal for reporting this. Sat Apr 4 02:06:57 1998 Nanbor Wang * ace/OS.cpp (invoke,thr_exit): (*Win32*) We also need to consider threads that are not spawned by ACE_Thread_Manager by checking the validity of cached ACE_Thread_Descriptor. In any rate, please avoid using thread functions in ACE_Thread::* and ACE_OS::thr_* directly. Sat Apr 4 01:03:17 1998 Alexander Babu Arulanthu * ace/Map_Manager.cpp (map): Added map method for the iterator interface. Sat Apr 4 00:55:30 1998 Douglas C. Schmidt * netsvcs/clients/Naming/{Client,Dump_Restore}/Makefile: Moved all program source names to PSRC, not SRC, for 'make depend'. Fri Apr 3 21:18:51 1998 Douglas C. Schmidt * ace/OS.cpp (cleanup): Moved ACE_Cleanup::cleanup() back into the *.cpp file so that we have at least one non-inline virtual function. * ace/OS (cleanup): Created a dummy ACE_Cleanup constructor since the lack of this may be causing a bug with CC and the linker for TAO's IDL compiler. Also moved the constructor and destructor of ACE_Cleanup into the OS.i file and made them inline. We'll fix this bug yet!!!! Fri Apr 03 18:45:35 1998 Steve Huston * apps/JAWS/clients/Blobby/Makefile * apps/JAWS/clients/Caching/Makefile * examples/ASX/Event_Server/Event_Server/Makefile * examples/ASX/UPIPE_Event_Server/Makefile * examples/Logger/simple-server/Makefile * examples/Mem_Map/IO-tests/Makefile * examples/Reactor/Multicast/Makefile * examples/Service_Configurator/Misc/Makefile * examples/Shared_Malloc/Makefile * performance-tests/Synch-Benchmarks/Makefile Adjusted for corresponding changes to rules.bin.GNU and/or rules.lib.GNU, below. * examples/Connection/non_blocking/Makefile * examples/Service_Configurator/IPC-tests/server/Makefile * examples/Timer_Queue/Makefile * performance-tests/Misc/Makefile Moved all program source names to PSRC, not SRC, for 'make depend'. * performance-tests/Makefile: Removed UDP from list of dirs to build. * include/makeinclude/rules.bin.GNU: Set OBJEXT and VOBJS from the SRC files in the Makefile (LSRC sets VLOBJS in rules.lib.GNU; SRC sets VOBJS in rules.bin.GNU). * include/makeinclude/rules.local.GNU: depend rule will also operate on $(PSRC) in addition to $(SRC). PSRC is new - if you have more than one program to build in a makefile, set PSRC to the source files for make depend. * include/makeinclude/rules.lib.GNU: Use VLOBJS for archive lib object files; using VOBJS gets it confused with VOBJS in rules.bin.GNU and makes it very difficult to build lib and exe from same Makefile. Fri Apr 3 10:40:10 1998 Nanbor Wang * ace/OS.cpp (invoke): We were using AfxGetThread to determine whether a thread was created with AfxBeginThread or _beginthreadex. This seemed to cause some subtle problem with MSVC 4.2. Since we always cached the Thread_Descriptor in TSS now, we can just check how a thread was created and use the appropriate thread exiting method. Thanks to Detlef Becker for tracing down this obscure bug. * ace/Thread_Manager.{h,i} (flags): Added this new access function into ACE_Thread_Descriptor to get the creation flags for a thread. Fri Apr 03 10:01:32 1998 Steve Huston * ace/ACE.cpp (handle_timed_complete): On AIX, always check a completed non-blocking connect() because AIX sets only the write handle from select regardless of whether the connect succeeded or not. * netsvcs/clients/Naming/Dump_Restore/Dump_Restore.cpp: Removed the #include - this is taken care of via ace/OS.h. Having the #include in Dump_Restore.cpp caused some very weird compile errors on DG/UX. * netsvcs/lib/Server_Logging_Handler.cpp: Fixed template instantiations for Base_Optimizer, non-static logging cases. Fri Apr 03 09:16:24 1998 David L. Levine * ace/OS.cpp (ACE_TSS_Info::key_in_use): return true if thread_count_ > 0, not if it is != -1. Thanks to Chris Lahey for finding and reporting this. * ace/OS.i (thr_yield): on VxWorks, changed argument of ::taskDelay () from 0 to 1. With an argument of 0, ::taskDelay () doesn't appear to yield the current thread. * tests/run_tests.vxworks: Reactor_Notify_Test is OK on VxWorks now. * ace/OS.h,config-sunos5.5-sunc++-4.x.h: added ACE_CAST_CONST, so that we can work around broken cast constness requirements with Sun CC 4.2. It requires, for example, that a reinterpret cast to a local pointer variable in a const member function be const. Wrong. * ace/Basic_Types.i (operator/ and %): fixed comments: former instead of latter. Thu Apr 02 16:23:12 1998 Irfan Pyarali * ace/WFMO_Reactor.i (dump): Also changed the method from HANDLE to ACE_HANDLE. Thu Apr 2 15:36:20 1998 Douglas C. Schmidt * ace: Added #define ACE_HAS_STL_QUEUE_CONFLICT to the config files which had ACE_HAS_STL_MAP_CONFLICT defined, i.e., config-sunos5.5-g++.h config-sunos5.5-sunc++-4.x.h Thanks to Russ Noseworthy for reporting this. Thu Apr 2 15:14:35 1998 Sumedh Mungee * ace/WFMO_Reactor.h (dump): Renamed HANDLE to ACE_HANDLE. Thu Apr 02 14:23:11 1998 David L. Levine * tests/Reactor_Notify_Test.cpp (Supplier_Task::handle_output): added a thr_yield () so that the Supplier_Task always gets a chance to run. * tests/run_tests.sh: Reactor_Notify_Test is OK on Chorus now. Wed Apr 01 18:59:42 1998 Irfan Pyarali * ace/WFMO_Reactor.cpp (dump): Added dump() methods. * ace/Msg_WFMO_Reactor.cpp (wait_for_multiple_events): Reverted Nanbor's change. The flag is properly set in ACE_Msg_WFMO_Reactor::alertable_handle_events(). Wed Apr 1 15:40:01 1998 Douglas C. Schmidt * ace: Made the WMFO_Reactor and Select_Reactor's dump() methods virtual to underscore the fact that the Reactor_Impl's new dump() method is also virtual. * ace/OS.h: Changed ACE_HAS_STL_MAP_CONFLICT to ACE_HAS_STL_QUEUE_CONFLICT for the appropriate cases in ACE. Thanks to Russ Noseworthy for reporting this. * ace/CORBA_Handler.cpp (ACE_CORBA_Handler): The reference_count_ data member wasn't being initialized correctly. Thanks to Mahesh Chandwani for reporting this. * ace: Renamed config-sunos5.5-sunc++-4.x-orbix.h to config-sunos5.x-sunc++-4.x-orbix.h since this config file works with SunOS 5.5 and 5.6. Thanks to Mahesh Chandwani for reporting this. Wed Apr 01 16:28:30 1998 David L. Levine * ace/Reactor.{h,cpp},Reactor_Impl.h (dump): added dump () method, which calls the (existing) dump () in the reactor implementation. * ace/High_Res_Timer.* (hrtime_to_tv): fixed conversion of ACE_hrtime_t to ACE_Time_Value to be compatible with ACE_U_LongLong. Wed Apr 01 09:32:27 1998 Nanbor Wang * ace/Msg_WFMO_Reactor.cpp (wait_for_multiple_events): Should not wait for all objects in this function. Tue Mar 31 15:27:25 1998 Steve Huston * apps/JAWS/server/JAWS_Pipeline_Handler.cpp: Defined 'status' in the put() function. * ace/config-dgux-4.x-ghs.h: Removed settings for ACE_SIZEOF_LONG_LONG since the compiler doesn't really support a long long that ACE is looking for (64-bit). Use the ACE-supplied ACE_ULongLong type. Tue Mar 31 10:46:23 1998 Nanbor Wang * ace/Msg_WFMO_Reactor.cpp: Changed to use MsgWaitForMultipleObjects if we are not under NT. Also in MsgWaitForMultipleObjectsEx, we should use NT defined flags instead of the boolean "alertable" directly. Tue Mar 31 07:22:09 1998 David L. Levine * ace/OS.i (cond_timedwait): restored ACE_HAS_DCE_DRAFT4_THREADS behavior to use absolute time. Special-case only on LynxOS, which requires a relative time. Thanks to Steve Coy for reporting this on HP-UX. * tests/Thread_Manager_Test.cpp (worker): cache the thread's Signal_Catcher on entry. That way, we don't have to dereference it in the worker's loop. It seems that a worker thread can continue to run after main exits (and cleans up TSS). That shouldn't happen, but it looks like it does on Linux, LynxOS, and Digital Unix. Thanks to James CE Johnson for verifying that the fix works on Linux/ Intel and DU 4.0. * examples/Threads/task_five.cpp (main): wrapped return statement at end with ACE_NOTREACHED. This will prevent compiler warnings from Green Hills and DEC CXX, and maybe SGI cc. Fri Mar 27 23:04:08 1998 David L. Levine * ace/config-linux-common.h: added ACE_DEFAULT_MAX_SOCKET_BUFSIZ 65535, because some Linux 2.1.x kernels fail setsockopts if bigger than that. Thanks to Ravi Nagabhyru for reporting that. Also changed hard-code ACE_PAGESIZE to ACE_HAS_GETPAGESIZE, even though getpagesize () doesn't get used. ACE_OS::getpagesize () uses sysconf on Linux. * performance-tests/UDP/udp_test.cpp (main): getopt.optarg instead of optarg, for -f option. * ace/IPC_SAP.cpp (enable,disable): removed the ACE_NOTREACHED wrappers around the return statements. Seems that some versions of Green Hills complain about an unreachable statement, but we'll live with it. This change is only visible with SGI, DEC CXX, and Green Hills. * include/makeinclude/platform_vxworks5.x_ghs.GNU: added missing close paren after ppc conditional. Thanks to Brian Mendel for reporting this. Fri Mar 27 16:47:26 1998 Steve Huston * tests/tests.mdp: Made settings for Env_Value_Test consistent with other tests, so that run_tests.bat can find it. * netsvcs/servers/servers4.mdp: Added ..\lib to Include directories when building in Release mode. Fri Mar 27 13:55:13 1998 Nanbor Wang * ace/High_Res_Timer.i (gettime): ACE_OS::gettimeofday doesn't take any argument. Fri Mar 27 09:50:52 1998 Steve Huston * ace/Strategies_T.cpp: Added #include "ace/Service_Repository.h" for compile on HP. Thanks to Steve Coy for this. Fri Mar 27 09:21:21 1998 David L. Levine * tests/test_config.h: with Green Hills on VxWorks, rename main to ace_main for compatibility with run_tests.vxworks. * ace/OS.{h,i},High_Res_Timer.* (gethrtime): added an optional argument to allow specifying start/increment/stop to a timer. It is currently only used on Chorus. On Chorus, using the default ACE_HRTIMER_GETTIME will use clock_gettime () instead of sysBench (). sysBench () disables interrupts, so it must be used with care. Thu Mar 26 21:18:57 1998 David L. Levine * ace/Basic_Types.h,config-g++-common.h,config-freebsd*.h, config-netbsd.h: moved setting of ACE_SIZEOF_LONG_DOUBLE to 12 from Basic_Types.h to config-g++-common.h and the FreeBSD/NetBSD config files. Thu Mar 26 20:53:30 1998 Nanbor Wang * ace/Containers.{h,i,cpp}: Changed the template parameter name to to avoid namespace polution. Thank to John Mulhern <9107@MN3.LAWSON.lawson.com> for suggestion this. Thu Mar 26 17:23:38 1998 Douglas C. Schmidt * ACE version 4.4.36, released Thu Mar 26 17:23:38 1998. Thu Mar 26 12:54:57 1998 David L. Levine * ace/IPC_SAP.cpp (enable,disable): wrapped return statement at end with ACE_NOTREACHED. * include/makeinclude/platform_vxworks5.x_ghs.GNU: added support for x86 targets. * ace/Basic_Types.h: sizeof (long double) is 8 on ghs/VxWorks/i386, not 12. Wed Mar 25 10:10:04 1998 David L. Levine * include/makeinclude/platform_{chorus,vxworks5.x}_ghs.GNU: change OFLAGS to OCFLAGS. * include/makeinclude/platform_chorus_ghs.GNU: if debug is enabled, link with crth_d.s.o instead of crth.s.o. * ace/config-g++common.h: don't #define ACE_HAS_TEMPLATE_SPECIALIZATION with egcs 2.91. Thanks to Sudish Joseph and Loren Rittle for reporting this apparent bug with egcs 2.91. (egcs 2.90 builds ACE cleanly with ACE_HAS_TEMPLATE_SPECIALIZATION.) * include/makeinclude/platform_vxworks5.x_g++.GNU: add VxWorks host bin directory to PATH if its not already there. Tue Mar 24 19:48:44 1998 Irfan Pyarali * ace/Proactor.cpp (timeout): Changed comparison from || to &&. Thanks to Jason Katz for reporting this. Tue Mar 24 18:14:18 1998 Steve Huston * ace/Env_Value_T.h: added #include "ace/OS.h" to get the definition for ACE_static_cast - AIX xlC needs it for auto template generation. Tue Mar 24 09:00:36 1998 Carlos O'Ryan * bin/auto_compile: Missing newline after the "DISABLED" message. Tue Mar 24 07:38:44 1998 David L. Levine * ace/config-sunos5.5-g++.h: replaced ACE_PAGE_SIZE with ACE_HAS_GETPAGESIZE, and added ACE_HAS_STL_MAP_CONFLICT. Thanks to Loren Rittle for reporting these. Mon Mar 23 12:06:30 1998 David L. Levine * performance_tests/UDP/udp_test.cpp: made use of the Reactor optional. With this change, the performance is comparable to the original C version. * ace/OS.{h,i} (wslen,wscpy): added these, and WChar typedef, for TAO. * include/makeinclude/platform_chorus_ghs.GNU: moved directories to /project/doc/mvme/. * ace/config-vxworks5.x.h: protected #define of ACE_MAIN so that it can be #defined on the command line. Mon Mar 23 11:38:43 1998 Nanbor Wang * ace/OS.h (MAXPATHLEN): Guard the MAXPATHLEN definition with #ifndef in case if has already been defined. Thanks to "Patrick J. McNerthney" for reporting this. Mon Mar 23 03:18:50 1998 Douglas C. Schmidt * ACE version 4.4.35, released Mon Mar 23 03:18:50 1998. Mon Mar 23 00:03:37 1998 Irfan Pyarali * examples/Reactor/ReactorEx/test_abandoned.cpp: Tests the WFMO_Reactor's ability to handle abandoned mutexes. * examples/Reactor/ReactorEx/test_apc.cpp: Tests the WFMO_Reactor's ability to handle regular APC notifications. Sun Mar 22 23:47:00 1998 Irfan Pyarali * ace/WFMO_Reactor.cpp: Added code to the Reactor to make it more resilient when the wait() function returns WAIT_IO_COMPLETION and WAIT_ABANDONED. ok_to_wait: Keep waiting if wait() returns WAIT_IO_COMPLETION. dispatch: Return if wait() returns WAIT_IO_COMPLETION. dispatch_handles: Added code to correctly handle WAIT_ABANDONED and to correctly figure out the index of the handler to be dispatched. Thanks to Beskrovny Evgeny (evgeny_beskrovny@icomverse.com) of Comverse Network Systems for pointing out the problem with WAIT_IO_COMPLETION. * ace/Reactor.cpp (run_alertable_event_loop): Added new function that runs the Reactor using alertable_handle_events() instead of handle_events(). Sat Mar 21 19:58:42 1998 Nanbor Wang * ace/OS.i (flock_destroy): lock->lockname_ should be cast to LPTSTR instead of char*. Thanks to Goran Lowkrantz for reporting this. * examples/Threads/task_five.cpp: Allow users to set thread stack size from command lines. If a user doesn't give one, it will be set to 8k on non-Windows platforms. Fri Mar 20 22:07:15 1998 Nanbor Wang * ace/ACE_Library.{mak,mdp}: Added Msg_WFMO_Reactor. * ace/Asynch_IO.cpp (cancel): Added version check because MSVC 4.2 doesn't support CancelIo. Fri Mar 20 21:46:16 1998 Douglas C. Schmidt * ACE version 4.4.34, released Fri Mar 20 21:46:16 1998. Fri Mar 20 20:53:27 1998 Nanbor Wang * ace/Parse_Node.cpp: Fixed typos. Fri Mar 20 14:18:53 1998 Douglas C. Schmidt * performance-tests/UDP/udp_test.cpp: Completed the ACE'ification of this test. Fri Mar 20 09:31:22 1998 David L. Levine * ace/OS.h: with ACE_LACKS_WCHAR_T, changed wchar_t typedef from long to ACE_UINT32 to ensure that it is 4 bytes on any platform. * performance-tests/UDP/udp_test.cpp: added this test, which provides UDP performance statistics. Thanks to Fred Kuhns for contributing the test. Thu Mar 19 10:15:27 1998 Steve Huston * ace/OS.i: Changed the dynamic library load/unload code so that on HP-UX, g++ does the same thing as aC++ (not like HP C++), using and shl_(un)load. Thanks to Kirill Rybaltchenko for this change. Thu Mar 19 10:13:35 1998 David L. Levine * performance-tests/Misc/preempt.cpp: 1) Added -f option to fork instead of spawning new threads. 2) Added -l option for specifying number of iterations of low priority thread/process. 3) On Solaris, print LWP ID. Thu Mar 19 02:47:42 1998 Nanbor Wang * ace/ace_dll.dsp: Link against user32.lib for all configurations for we now use Msg_WFMO and related APIs in ACE. (We should do the same to ace_lib.dsp.) * ace/config-WinCE.h: Added dummy definition of stdin and stdout. They don't have any real effect. * ace/ACE.{h,cpp} (ldopen,ldfind): Made these functions visible under CE. Modified them to work under CE. * ace/OS.cpp: Added scope name to day_of_week_name and month_name. They are used only on CE. * ace/OS.{h,i}: Added some dummy C methods for CE. Yacc and Lex generated codes use these functions, although we don't really use them in ACE. * ace/OS.i (exit): Added implementation of ACE_OS::exit under CE. Since there's no ExitProcess available, I use TerminateProcess, which is not exactly the same as using ExitProcess but that's the closest thing I can think of. (open): Made the char version unsupported under CE. (fread,fwrite,...): Added dummy C methods definition for CE. * ace/Parse_Node.cpp: Regular CE stuff. There's a boundary of char/wchar functions somewhere in this file. Most Svc_Conf stuff uses char functions but the information gets converted to wchar later. * ace/Service_Config.{h,i}: Added char version function for Service_Type under CE. Service_Type (and its subclasses) are the boundary of char/wchar functions. * ace/Service_Object.{h,i}: Added the chname method which always returns char value of a Service_Object under all platforms. * ace/Svc_Conf.y: * ace/Svc_Conf_y.cpp: * ace/Object_Manager.{cpp}: Regular CE stuff. * ace/Svc_Conf_l.cpp: Regular CE stuff. Haven't figure out a way to modify this from Svc_Conf.l yet. * ace/Service_Config.cpp * ace/Object_Manager.{cpp}: Ifdef'ed inclusion of Naming Context related header files out. Naming context uses Registry which uses iostream and STL, both are not available on CE (yet?). * ace/WFMO_Reactor.{h,cpp}: * ace/Proactor.{h,i,cpp}: * ace/Asynch_IO.{h,cpp}: Ifdef'ed the body so they are not visible under CE. CE doesn't have asynchronous IO. Wed Mar 18 21:30:39 1998 Douglas C. Schmidt * ACE version 4.4.33, released Wed Mar 18 21:30:39 1998. Wed Mar 18 16:36:17 1998 Douglas C. Schmidt * Makefile (releaseall): There is no more TAO.tar.gz. There are now two tar files, ACE.tar.gz and ACE+TAO.tar.gz. ACE+TAO.tar.gz contains ALL of ACE. In particular, it will always have the same version number and same ACE contents as ACE.tar.gz. The intent here is that people who just want to use ACE will use ACE.tar.gz and people who want to use ACE and TAO will use ACE+TAO.tar.gz. Thanks to David Levine and Irfan for helping with this. Wed Mar 18 15:50:30 1998 Nanbor Wang * ace/Log_Msg.cpp (ACE_Log_Msg): Added codes to grab ACE_Log_Msg_Manager's lock while updating the instance_count_. There was a race condition without the change. Thanks to Detlef Becker's thread creation stress test to reveal the bug. Tue Mar 17 17:20:00 1998 Nanbor Wang * examples/Threads/test.dsw: * examples/Threads/task_five.cpp: * examples/Threads/task_five.dsp: * examples/Threads/Makefile: Added a new ACE_Task testing program. Thanks to Detlef Becker for providing the source. Wed Mar 18 11:00:11 1998 Alexander Babu Arulanthu * ace/Hash_Map_Manager.cpp (map): This method has been added to the ACE_Hash_Map_Iterator_Base class. Wed Mar 18 09:25:30 1998 Chris Gill * ace/ace.dsw: added user32.lib to link for dynamic library on NT for all builds. Wed Mar 18 09:22:13 1998 David L. Levine * ace/Containers.cpp,Hash_Map_Manager.cpp,Map_Manager.cpp (operator *): initialize retv to 0 to avoid warning about using it before setting its value. * tests/Thread_Mutex_Test.cpp (test): added no-op statement to suppress GHS warning about unused local variable "mutex". * tests/Priority_Buffer_Test.cpp (consumer): added no-op statement to suppress GHS warning about unused local variable "cur_priority". * ace/README: removed ACE_HAS_BOOL. It was unused. * performance-tests/Misc/basic_func.{h,cpp},basic_perf.cpp: With MSVC 5.0, do something in the empty iteration because otherwise it gets completely optimized away. Thanks to Alexander Ovsiankin for providing this fix. Tue Mar 17 23:53:56 1998 Douglas C. Schmidt * examples/Threads/task_five.cpp (main): Reformatted Detlef's new torture test so that it conforms to ACE programming conventions. Tue Mar 17 23:22:20 1998 Irfan Pyarali * ace/Reactor.cpp (ACE_Reactor): If ACE_USE_MSG_WFMO_REACTOR_FOR_REACTOR_IMPL is defined, use ACE_Msg_WFMO_Reactor for ACE_Reactor::instance(). * examples/Reactor/ReactorEx/test_window_messages.cpp: Tests Msg_WFMO_Reactor's ability to handle regular events and window messages. Tue Mar 17 21:41:57 1998 David L. Levine * examples/Threads/task_five.cpp (svc): use ACE_OS::sleepq instead of ::Sleep. (main): declare "ii" outside of the first loop because it is used in other loops. Tue Mar 17 16:02:26 1998 Irfan Pyarali * ace/WFMO_Reactor: Changes were made to WFMO_Reactor to make it easier to extend it to handle window messages: - dispatch_handler() checks if there are window messages that need to be dispatched if the matches . If there are, they are dispatched by calling dispatch_window_messages(). - dispatch_window_messages() is a noop for WFMO_Reactor. - Checking the return values from Wait*() functions was changed as (WAIT_OBJECT_0 + nCount) is now a valid index. - Checking for remaining handles was abstracted into poll_remaining_handles(). - Expiring of timer was abstracted out into expire_timers(). Only the owner thread expires the timers. - calculate_timeout() was removed from wait_for_multiple_events(). * ace/Msg_WFMO_Reactor: A new Reactor that specializes the WFMO_Reactor. WFMO_Reactor uses WaitForMultipleObjects while Msg_WFMO_Reactor uses MsgWaitForMultipleObjects. This allows the Msg_WFMO_Reactor to react to Windows and COM/DCOM messages in addition to the regular WFMO_Reactor events. Thanks to Beskrovny Evgeny (evgeny_beskrovny@icomverse.com) of Comverse Network Systems for contributing this to ACE. Tue Mar 17 13:15:11 1998 Douglas C. Schmidt * ace/Future.cpp: Added missing ACE_MT macros so that we now compile correctly if we don't have threads. Thanks to Laura Paterno for reporting this. Tue Mar 17 15:13:17 1998 David L. Levine * ace/High_Res_Timer.cpp (dump): fleshed out the implementation. * ace/Profile_Timer.{h,cpp} (dump): implemented for platforms w/o ACE_HAS_PRUSAGE_T and ACE_HAS_GETRUSAGE. * ace/OS.i (gethrtime): with ACE_HAS_CLOCK_GETTIME, carefully construct return value to avoid arithmetic overflow if ACE_LACKS_LONGLONG_T. Mon Mar 16 22:18:07 1998 Douglas C. Schmidt * ace/IPC_SAP.cpp: Moved return values outside of the #ifdefs to quiet warning messages with KAI C++. Thanks to Laura Paterno for reporting this. Tue Mar 17 00:04:53 1998 Nanbor Wang * ace/Svc_Conf.y: * ace/Svc_Conf_y.cpp: Applied "Regular CE Tricks [TM]". Mon Mar 16 23:34:39 1998 Nanbor Wang * ace/README: * ace/config-WinCE.h: Added ACE_LACKS_STRRCHR. * ace/OS.i: Added implementation of ACE_OS::strrchr () when platforms don't provide one. Mon Mar 16 16:08:45 1998 David L. Levine * ace/High_Res_Timer.cpp: set global_scale_factor_ to 1000 with ACE_HAS_CLOCK_GETTIME, because clock_gettime has nanosecond resolution, and with PSOS. * ace/Profile_Timer.{h,cpp},tests/Handle_Set_Test.cpp: use units of microseconds instead of seconds if ACE_LACKS_FLOATING_POINT. * ace/OS.i (hostname): on Chorus, try the HOST environment variable if ::gethostname () returns an empty string. Mon Mar 16 13:04:58 1998 Seth Benjamin Widoff * ace/OS.h: Extended the ACE_HAS_STL_MAP_CONFLICT to include 'queue' as well as 'map.' 'queue' is defined in sys/stream.h, which is included in OS.h by netinet/in.h and sys/timod.h. Mon Mar 16 00:22:40 1998 Nanbor Wang * CE-status: Updated CE port status. * ace/config-WinCE.h: Added macro definitions for EOF and BUFSIZ. * ace/OS.{h,i} (ace_isspace): Added both char and wchar version functions. Notice that this can't be called isspace because most compilers implement isspace as a macro. (dlerror,dlsym): Added wchar version of these functions under CE. * ace/OS.cpp (fork_exec): Modified parameters passed to CreateProcess under CE. * ace/ARGV.{h,i,cpp}: Unicodize this class under CE. Notice that under CE, you won't be able to use environment variable substitution since there's no environment variable at all. * ace/Reactor.cpp: Don't include Service_Config.h and WFMO_Reactor.h under CE for now. Prevent Reactor from reconfigure the service configurator. * ace/Task.cpp: Don't include Service_Config.h under CE for now. Prevent Task_Base from reconfigure the service configurator. * ace/SString.cpp: Don't include Service_Config.h under CE for now. * ace/Svc_Conf.h: * ace/Shared_Object.{h,cpp}: * ace/Service_Type.{h,i,cpp}: * ace/Service_Repository.{h,cpp}: * ace/Service_Object.{h,i,cpp}: * ace/Service_Manager.{h,cpp}: * ace/Service_Config.{h,i,cpp}: Unicodize service configurator related classes. I still need to find a point which breaks the usage of char functions that flex and yacc use and wchar functions that most CE functions use. * ace/Get_Opt.{h,cpp}: * ace/Local_Token.{h,i,cpp}: * ace/Map_Manager.cpp: * ace/Message_Queue.cpp: * ace/Module.{h,i,cpp}: * ace/Parse_Node.cpp: * ace/Pipe.cpp: * ace/Stream.{h,cpp}: * ace/Stream_Module.{h,cpp}: * ace/Token_Manager.{h,cpp}: * ace/Activation_Queue.cpp: Unicodize classes. Regular CE stuff. Sat Mar 14 06:43:32 1998 David L. Levine * ace/Basic_Types.h,config-win32-common.h,config-irix*.h: moved WIN32 and SGI-specific code out of Basic_Types.h and into their respective config files. * ace/Object_Manager.h: changed ACE_HAS_NON_STATIC_OBJECT_MANAGER to ACE_HAS_NONSTATIC_OBJECT_MANAGER in comments. Thanks to Kirill Rybaltchenko for reporting this. * include/makeinclude/platform_chorus_ghs.GNU: set PATH, and remove /tmp/gh_*.[os] files that GreenHills leaves. * ace/INET_ADDR.cpp (get_host_name): on Chorus, save errno in error so that it gets propagated back to the caller. Sat Mar 14 00:13:22 1998 Douglas C. Schmidt * ace/Task.h (ACE_Task_Base): Give a default value of 0 for the Thread Manager so we can use this as a base class. * tests/Future_Test.cpp: Since the Scheduler provides its own activation queue it doesn't make sense to inherit from ACE_Task (which provides its own queue) but instead ACE_Task_Base (which doesn't define its own queue). Thanks to Loren Rittle for reporting this. * examples/Threads/future[12].cpp: Since the Scheduler provides its own activation queue it doesn't make sense to inherit from ACE_Task (which provides its own queue) but instead ACE_Task_Base (which doesn't define its own queue). Thanks to Loren Rittle for reporting this. * examples/Threads/future[12].cpp: Removed the explicit call to scheduler_->close() to avoid closing the scheduler down twice. Thanks to Loren Rittle for reporting this. Fri Mar 13 23:41:44 1998 Nanbor Wang * ace/Process.cpp (ACE_Process_Options): Moved column out of ifdef'ed area. Fri Mar 13 21:17:51 1998 David L. Levine * ace/Process.cpp (ACE_Process_Options): reordered initializers to match declaration order. Fri Mar 13 17:30:16 1998 Nanbor Wang * ace/Process.{h,i,cpp}: As CE's CreateProcess is basically broken, you can only start a new process using ACE_Process. You cannot set any of environment, process attributes, thread attributes, current directory, stratup info, and security attributes. I have modified these files so that most attribute access functions just do nothing. Some of "do nothing" functions were defined as ACE_INLINE on CE. * ace/Memory_Pool.cpp: Regular CE stuff. Fri Mar 13 17:42:17 1998 Irfan Pyarali * ace/WFMO_Reactor.cpp (handle_signal): If there are still notification in the queue, we need to wake up again. Fri Mar 13 09:09:08 1998 David L. Levine * ace/Profile_Timer.*,config-chorus.GNU,README, tests/Handle_Set_Test.cpp (test_performance): added ACE_LACKS_FLOATING_POINT support. * include/makeinclude/platform_chorus_ghs.GNU: removed -X445 from CFLAGS. I don't know what it does. Fri Mar 13 01:10:36 1998 Irfan Pyarali * ace/WFMO_Reactor: The following changes were made to make the registration and removal of event_handlers from WFMO_Reactor more robust. Thanks to Jonathan Biggar for helping out. - ACE_WFMO_Reactor_Handler_Repository::Common_Info now contains the delete_entry_ and close_masks_ fields as these were now common to all three structures. - handle_additions() and handle_deletions() were changed to make_changes_in_current_infos(), make_changes_in_suspension_infos(), and make_changes_in_to_be_added_infos() - Correct range for suspend_handlers() is 0 to max_handlep1_ rather than (max_handlep1_ - 1) - suspend_handlers(), resume_handlers(), add_network_events_i(), unbind_i(), suspend_handler_i(), resume_handler_i(), unbind_all(), now go through the to_be_add_info_ array when making changes. * examples/Reactor/ReactorEx/test_prerun_state_changes.cpp: New test added to check the Reactor's ability to handle state changes before getting a chance to run. * examples/Reactor/ReactorEx/test_talker.cpp (main): Remove the Procator from the Reactor so that the Proactor is not called after it has been destroyed. Thu Mar 12 19:36:43 1998 Douglas C. Schmidt * ACE-INSTALL.html: Tidied up a bunch of things in this file. Also, created a new $ACE_ROOT/os-patches/ directory and moved the patches for Linux and LynxOS into this in order to consolidate the patches into one location. * ace/WFMO_Reactor.cpp (upcall): Cleaned up a bunch of code to (1) avoid a nasty "dangling else" bug and (2) simplify a bunch of if/if statements. Thanks to Jonathan Biggar for pointing this out. Thu Mar 12 18:21:15 1998 James C Hu * ace/config-linux-common.h: Incorporated changes that were suggested by Robert Hanzlik to get ACE to compile on Linux using glibc 2.1 and libg++/gcc 2.8. Thu Mar 12 17:25:28 1998 James C Hu * ACE-INSTALL.html: Added a table to Supported Platforms and Compilers. Thu Mar 12 16:28:32 1998 Nanbor Wang * Apply regular string manipulation for CE to following files: ACE.cpp ARGV.cpp Acceptor.cpp Activation_Queue.cpp Asynch_Acceptor.cpp Asynch_IO.cpp CORBA_Handler.cpp Connector.cpp Containers.cpp DEV_Addr.cpp Dynamic_Service.cpp FIFO.cpp FIFO_Recv.cpp FIFO_Recv_Msg.cpp FIFO_Send.cpp FIFO_Send_Msg.cpp FILE_Addr.cpp FILE_Connector.cpp Filecache.cpp Future.cpp Get_Opt.cpp Hash_Map_Manager.cpp LSOCK.cpp LSOCK_CODgram.cpp LSOCK_Connector.cpp LSOCK_Dgram.cpp Local_Name_Space_T.cpp Local_Tokens.cpp Local_Tokens.i Malloc_T.cpp Map_Manager.cpp Mem_Map.cpp Memory_Pool.cpp Message_Queue.cpp Module.cpp Name_Proxy.cpp Name_Request_Reply.cpp Naming_Context.cpp Obstack.cpp Parse_Node.cpp Pipe.cpp Priority_Reactor.cpp Proactor.cpp Process_Manager.cpp Read_Buffer.cpp Registry_Name_Space.cpp Remote_Name_Space.cpp Remote_Tokens.cpp SPIPE_Acceptor.cpp SV_Semaphore_Complex.cpp SV_Semaphore_Simple.cpp Select_Reactor.cpp Service_Config.cpp Service_Main.cpp Service_Manager.cpp Service_Repository.cpp Service_Types.cpp Singleton.cpp Strategies_T.cpp Stream.cpp Svc_Handler.cpp TLI.cpp TLI_Acceptor.cpp TLI_Connector.i Task_T.cpp Time_Request_Reply.cpp Timer_Queue_Adapters.cpp Token_Collection.cpp Token_Invariants.cpp Token_Manager.cpp Token_Request_Reply.cpp WFMO_Reactor.cpp WFMO_Reactor.i XtReactor.cpp. Thu Mar 12 15:37:14 1998 David L. Levine * ace/Read_Buffer.* (read): null terminate the result buffer. Also, changed "inline" to "ACE_INLINE" and updated #includes so that ACE inlining works. Thu Mar 12 02:19:53 1998 Irfan Pyarali * ace/WFMO_Reactor.cpp (upcall): In the Select_Reactor, when it upcalls to an event_handler which returns a -1, the Select_Reactor only clears the specific mask bit for the handler. For example, for a call to Event_Handler::handle_input() which returns -1, the Select_Reactor clears the READ_MASK bit. In the WFMO_Reactor, if any handler returns a -1, then it clears ALL of the mask bits for the event handler. So, fixed WFMO_Reactor so that it works like Select_Reactor in this regard. Thanks to Jonathan Biggar for pointing this discrepancy out. * ace/WFMO_Reactor.cpp (dispatch_handles): The correct range check is {WAIT_OBJECT_0,WAIT_OBJECT_0 + this->handler_rep_.max_handlep1 () - index} and not {WAIT_OBJECT_0,WAIT_OBJECT_0 + this->handler_rep_.max_handlep1 ()} Thanks to Evgeny Beskrovny evgeny_beskrovny@icomverse.com for pointing this out. Wed Mar 11 15:20:09 1998 Douglas C. Schmidt * ace/OS.i (thr_getspecific): Added comments to the code to explain the unusual step of saving errno across calls to TlsGetValue() on Win32. Thanks to Tim Harrison for clarifying this. Wed Mar 11 00:39:29 1998 Nanbor Wang * CE-status: A temporary file to trace the progress of the CE port. * ace/ace_ce_dll.dsp: Added more .cpp files. * ace/High_Res_Timer.{h,cpp}: Undefined functions print_ave and print_total. These two function use STDOUT which is not supported on CE. We should probably modify the functions so they write results to Log_Msg. (get_register_scale_factor): This function always returns 1 on CE to prevent the use of High_Res_Timer. (get_env_global_scale_factor): Always returns -1 on CE because environment variables are not supported. * ace/Thread_Manager.cpp (spawn_i): WinCE doesn't support DuplicateHandle, therefore the best we can do now is just pass back the handle to the spawned thread. Notice that you *can't* close the handle by yourself under CE. Perhaps we shouldn't even try to pass this info back. ??? Applied regular CE porting tricks. * ace/SOCK_Dgram_Mcast.{h,cpp}: * ace/SOCK_Dgram_Bcast.{h,cpp}: Changed some function signatures to use wchar on CE. Applied regular CE porting tricks. * ace/IO_SAP.cpp: * ace/SOCK_CODgram.cpp: * ace/SOCK_Dgram.cpp: * ace/Select_Reactor.cpp: * ace/Timer_{Hash,Heap,List,Queue,Wheel}_T.cpp: Applied regular CE porting tricks. Erm, I'm running out of tricks. Tue Mar 10 20:27:57 1998 Nanbor Wang * ace/Reactor.h (reset_event_loop): Made the signature match with its definition in .cpp file. Tue Mar 10 15:07:00 1998 Douglas C. Schmidt * ace/Svc_Handler.cpp, ace/Module.cpp: Fixed some problems where Svc_Handlers in Modules were being deleted prematurely. Thanks to Steve Coy for reporting this. * ace/Reactor.h (ACE_Reactor): Added a "reset_event_loop" method so that it's possible to reset the loop again once the end_event_loop() method is called. Thanks to Eric Hopper for reporting this. * ace/IOStream_T.cpp (ACE_IOStream): Moved some code to work around some bugs with MSVC++ 5.0. Thanks to James CE Johnson for reporting this. Tue Mar 10 15:57:54 1998 Nanbor Wang * ace/Handle_Set.cpp (dump): Cast mask_.fd_count to size_t. Depend on whether you are using standard C++ library, the type of fd_count count be size_t or ssize_t. Thanks to Darrell for discovering this. Tue Mar 10 13:22:24 1998 Irfan Pyarali * ace/Asynch_IO.cpp (cancel): CancelIo is not supported on Win95. * ace/SString.cpp (set): Use ACE_WString::wstrlen(). Tue Mar 10 06:59:42 1998 David L. Levine * ace/SString.cpp (WString::set): added support for platforms that don't have wchar_t, or that treat wchar_t and ACE_USHORT16 as different types. * ace/OS.h,Basic_Types.h: moved ACE_USHORT16 typedef from OS.h to Basic_Types.h. * ace/High_Res_Timer.h: fixed comment: timer.start () instead of timer.stop () (twice). Mon Mar 09 22:15:43 1998 Irfan Pyarali * ace/SString.cpp (ACE_CString::operator=): Special cases have to considered carefully so that memory is managed properly. This is specially true when the ACE_CString::NULL_CString_ is used. * ace/SString.h (ACE_CString and ACE_WString): Added set methods that allows the user to set the strings without having to use the assignment operator. Mon Mar 09 16:11:16 1998 David L. Levine * examples/Map_Manager/test_hash_map_manager.cpp: added #include of ace/SString.h and template instantiations. Replaced gets with ACE_OS::fgets. * examples/Makefile,examples/Map_Manager/Makefile: added Map_Manager to examples DIRS and added RCS keyword string. Mon Mar 9 14:59:20 1998 Carlos O'Ryan * include/makeinclude/platform_irix6.x-sgic++.GNU: Added the definition for MATHLIB. Mon Mar 09 01:23:49 1998 Nanbor Wang * ace/ace_ce.dsw: * ace/ace_ce_dll.dsp: New project/workspace files for WinCE. This is a temporary workspace only and should be merged into ACE mail Win32 project/workspace when the port is stable enough. * ace/config-WinCE.h: Added ACE_LACKS_GETS. * ace/Synch.i (get_nesting_level): Defined it as not supported on CE. CE's CriticalSections don't have RecursionCount defined. We should be able to simulate this, however. * ace/Process.{h,cpp}: * ace/SString.{h,cpp}: Moved class ACE_Tokenizer from Process.* to SString.*. Although ACE_Tokenizer is used in ACE_Process[_Options], it really is a more general utility class. (operator<<): Conditionally compile these functions only when we are not running ACE on CE. * ace/OS.i (atoi): Added inline implementation for wchar version. (gets): Remove condition !defined (ACE_HAS_WINCE). This should be taken care of by ACE_LACKS_GETS. * ace/OS.h (atoi): Added wchar version of this function. (ASYS_WIDE_STRING): This macro converts char strings to wchar strings when ACE_HAS_MOSTLY_UNICODE_APIS is defined. (ASYS_MULTIBYTE_STRING): This macro converts wchar strings back to char strings *only* when ACE_HAS_MOSTLY_UNICODE_APIS is defined. * ace/INET_Addr.{h,cpp}: Redefined interface signatures on WinCE using ASYS_* macros. The principle here is to pass wide char strings in and get char strings out. That's because we will use mostly wchar strings in CE but most winsock APIs return (or uses char strings.) Doing so should reduce conversion between them to minimum. Converting debug messages with ASYS_TEXT. * ace/Log_Msg.cpp (open): * ace/ACE.cpp (get_ip_interfaces): Only convert the wide character string to a char string when ACE_HAS_MOSTLY_UNICODE_APIS flag is not set using the ASYS_MULTIBYTE_STRING macro. * ace/SOCK.cpp: * ace/SOCK_Acceptor.cpp: * ace/Malloc.cpp: * ace/Malloc_T.cpp: * ace/Synch.cpp: * ace/Message_Block.cpp: * ace/IPC_SAP.cpp: * ace/Handle_Set.cpp: * ace/Addr.cpp: Converting debugging messages to wchar strings for CE using the ASYS_TEXT macro. Sun Mar 08 14:29:30 1998 David L. Levine * apps/Gateway/Gateway/Event_Channel.cpp (initiate_acceptors): changed SUPPLIER_CONNECTOR to SUPPLIER_ACCEPTOR. Thanks to Dani Flexer for reporting this. * ace/OS.i (cond_timedwait): removed "struct" from declaration of local timespec_t relative_time, because timespec_t can be a typedef. Thanks to Steve Coy for reporting this. * Makefile: tag from ACE_wrappers, not its parent directory, to avoid confusing CVS. Sat Mar 07 16:46:58 1998 David L. Levine * ACE version 4.4.32, released Sat Mar 07 16:46:58 1998. Fri Mar 06 08:37:44 1998 David L. Levine * bin/ace_ld: made perl4-compatible. Thanks to Jerry Bickle for reporting this. * ace/os.i: (sigwait): removed "::" from before sigwait () call with ACE_HAS_ONEARG_SIGWAIT, in case it's a macro. Thanks to Kirill Rybaltchenko for reporting this. * bin/create_ace_build: made perl4-compatible. Thanks to Carlos for noticing this. * include/makeinclude/platform_vxworks5.x_g++.GNU: added WIN32 host support. Thanks to Paul von Behren for providing the patches. * ACE-INSTALL.html: added information from Paul von Behren on building on NT hosts for VxWorks targets. * tests/Recursive_Mutex_Test.cpp: 50 iterations instead of 100 on Chorus. * include/makeinclude/platform_chorus_ghs.GNU: added -G to LDFLAGS. * tests/run_tests.sh: added capability for executing the tests on a remote (Chorus) target. * examples/System_V_IPC/Makefile: added clean and realclean targets for VXWORKS. * Makefile: cd .. before tagging. Thu Mar 05 12:36:52 1998 Nanbor Wang * ace/OS.h (ACE_TRACE): Added a missing right paren. Thu Mar 05 10:04:06 1998 David L. Levine * include/makeinclude/platform_chorus_ghs.GNU: this works, though it may not be optimum. Thu Mar 05 01:33:08 1998 Nanbor Wang * ace/config-WinCE.h: Added more CE stuff. Ostream is now redefined as FILE on CE. * ace/OS.{i,cpp}: * ace/Synch_T.cpp * ace/Message_Queue.cpp: * ace/SOCK_Connector.i: Added ASYS_TEXT to numerous ACE_DEBUG/ACE_ERROR macros. We must use wide char strings in CE. * ace/ACE.{h,cpp}: Redefined sock_error to return wchar string on CE. Added ASYS_TEXT to debugging messages. * ace/Trace.{h,cpp}: * ace/Log_Msg.{h,cpp}: Made it UNICODE compatible. * ace/Log_Record.cpp: Changed how ostream is used on CE. Although the code here become some how platform dependent, fortunately, it can be shielded out from the users thru various macros. Added ASYS_TEXT. * ace/SString.h: Undefined friend relations of ACE_?String with ostream on CE. CE doesn't support . * ace/OS.h: Changed the definition of ASYS_TEXT to use _TEXT. This macro can be used with other compiler defined macros (e.g. __FILE__.) Added ASYS_TEXT to adorn parameters of ACE_TRACE so we don't need to modify our codes to make it portable to CE. * ace/Log_Msg.cpp: Removed macro definition of ACE_WSPRINTF. It didn't appear to be used anywhere. Wed Mar 04 09:32:32 1998 David L. Levine * ace/OS.cpp (readv,writev): added static cast of iov_len to int, to avoid unsigned comparison < 0. * ace/Containers.cpp (ACE_Fixed_Set_Iterator::done), ace/Map_Manager.cpp (ACE_Map_Iterator_Base::done): removed const from static cast to avoid warnings about meaningless type qualifier from GreenHills. * ace/Basic_Types.i (ACE_U_LongLong): added missing ACE_INLINE's. * ace/Svc_Conf.y,Svc_Conf_y.cpp, etc/Svc_Conf_y.cpp.diff (svc_location): delete svc_initializer after initializing svc_location. Thanks to Tom Arbuckle for reporting this. * include/makeinclude/platform_linux_lxpthreads.GNU: separated SOBUILD into compile and link steps because the Service_Configurator/server/* examples are unable to use files compiled with -fPIC and just labeled as .so as shared ELF objects. Thanks to Tom Arbuckle for reporting this. * include/makeinclude/platform_chorus_ghs.GNU: explicitly link in ioassign.o to resolve _cerr. * tests//SOCK_Connector_Test.cpp, ace/config-{chorus,lynxos,netbsd,psosim-g++,vxworks5.x, win32-common}.h: added ACE_LACKS_GETHOSTENT, so that SOCK_Connector_Test doesn't have to enumerate the platforms that don't have ::gethostent (). * tests/Basic_Types_Test.cpp (main): if ACE_LACKS_LONGLONG_T, use ACE_U_LongLong instead of long long. Tue Mar 03 22:15:16 1998 Nanbor Wang * ace/Remote_Name_Space.cpp: Replaced a bunch of usages of ACE_WString::rep (). They were passed to ACE_Name_Request which creates another copy for itself and nobody ever cleans up these memories. Thanks to John Mulhern <9107@MN3.LAWSON.lawson.com> for reporting this. * ace/OS.h (THR_DETACHED): Defined this macro so that we can simulate detached threads on NT (Hi Irfan! ;-). Thanks to Andre Arpin for prividing the use case of detached threads. * ace/Thread_Manager.cpp (exit): Added detached threads manipulating codes here. We now can simulate behaviros of UNIX detached threads on NT (no one cares about their return status.) Tue Mar 03 15:05:42 1998 David L. Levine * ace/Basic_Types.{h,i} (ACE_U_LongLong::operator *=): updated with James Hu's implementation. Now it's fast :-) * tests/Time_Value_Test.cpp (test_ace_u_longlong): added another test of operator *=. Mon Mar 2 19:21:36 1998 Douglas C. Schmidt * ace/OS.h: Changed all uses of "/localname" and "/globalname" to "localname" and "globalname" to avoid problems on UNIX. Thanks to John Mulhern <9107@MN3.LAWSON.lawson.com> for reporting this. * ace/OS.h: Changed "C:\\temp\\" to "C:\\temp" to avoid some minor problems on NT. Thanks to John Mulhern <9107@MN3.LAWSON.lawson.com> for reporting this. * netsvcs/lib/Log_Message_Receiver.cpp (Log_Message_Receiver_Impl): Removed some stray inline keywords. Thanks to Russ Noseworthy for reporting this. * ace/OS.i (sigwait): Added support for POSIX sigwait(). Thanks to Russ Noseworthy for reporting this. * ace/Containers.cpp (done): ace/Map_Manager.cpp (done): Corrected some misplaced "consts" in the ACE_static_cast macro. Thanks to Russ Noseworthy for reporting this. * include/makeinclude/platform_sunos5_sunc++.GNU (CXX): Commented out the -pta option since it might not be necessary. If this breaks code then we'll need to reevaluate this change. Thanks to Russ Noseworthy for suggesting this. Mon Mar 02 17:06:46 1998 Nanbor Wang * ace/Thread_Manager.cpp (exit): Added Win32 thread exit functionality. When a thread function falls out of scope, this functions is called by ACE_Thread_Control::exit and it will not call ACE_OS::thr_exit from here. Under this scenario, the ACE_Thread_Manager::exit simply falls thru the end. If a user call this function directly, this function will delete ACE_Thread_Exit::instance() first, which simulate the cleanup routine executed when a thread fall out of end by calling ACE_Thread_Manager::exit recursively. After this is done (returned from the second call,) this function will then call ACE_OS::exit, which clean up the TSS objects and then really exit the thread. Thanks to Gordon Watts for pointing this out. * ace/OS.cpp (thr_exit): Added Win32 thread exit functionality. ACE_OS::thr_exit now will try to clean up TSS objects by calling ACE_OS::cleanup_tss. You really should _not_ calling this function directly. Esp. from the main thread because I don't know how to tell if you are calling it from main thread thread or not and thus memory leak might occur. Mon Mar 02 09:13:26 1998 David L. Levine * ace/config-sunos5.5-sunc++-4.x.h: replaced ACE_PAGE_SIZE with ACE_HAS_GETPAGESIZE, and added ACE_HAS_STL_MAP_CONFLICT. Thanks to J. Russell Noseworthy for these recommendations. * ace/config-sunos5.6-sunc++-4.x.h: just #include config-sunos5.5-sunc++-4.x.h. There's no difference between the two at this point. * include/makeinclude/platform_sunos5_sunc++.GNU: added -R./ and -mt to LDFLAGS. Added -fast to LDFLAGS if "fast" flag is enabled. Thanks to J. Russell Noseworthy for these recommendations. * include/makeinclude/platform_sunos5.6_sparc_sunc++.GNU: just include platform_sunos5_sunc++.GNU. There's no difference between the two at this point. There is one significant net change to the 5.6 platform: -s is no longer included in LDFLAGS. * ace/config-chorus.h: added ACE_LACKS_ACE_IOSTREAM with ghs, because its iostream doesn't have separate operators for signed/unsigned char. Sun Mar 1 13:54:02 1998 Nanbor Wang * Makefile: Added cvs commands to automatically tag the CVS repository with version number 'ACE_9_9_99' tag and 'Current' tag. Sun Mar 1 12:26:13 1998 Alexander Babu Arulanthu * ace/Hash_Map_Manager.cpp (reset_i): * ace/Hash_Map_Manager.h: Added reset () method for the Hash_Map_Iterator. Sun Mar 01 10:59:27 1998 Irfan Pyarali * ace/Asynch_IO.cpp (cancel): Changed CancelIO to CancelIo. * ace/Synch.h (ACE_Lock): Added a virtual destructor to ACE_Lock. Sun Mar 01 08:38:00 1998 David L. Levine * ace/OS.h: use the new ACE_DEFAULT_SYNCH_TYPE for the default mutex, etc., type, so that it can be set VxWorks. The ACE default type on VxWorks is SEM_Q_FIFO, the same as VxWorks' default. The ACE default can be easily overridden in config.h by defining ACE_DEFAULT_SYNCH_TYPE. * ace/OS.i (sema_init): on VxWorks, use the type argument for the sema type, instead of hard-coding to SEM_Q_FIFO. * ACE-INSTALL.html: updated Linux/alpha "as" patch. Sat Feb 28 12:20:57 1998 Douglas C. Schmidt * ace/Message_Queue.cpp: Fixed the implementation of wait_not_{full,empty}_cond() so that they utilize the ACE_Time_Value it's passed. In addition, revised the implementation of peek_dequeue_head() so that it uses the new wait_not_empty_cond() implementation. Thanks to Tom Venturella for reporting this. Fri Feb 27 15:47:15 1998 David L. Levine * ACE-INSTALL.html: added very useful information from Chris Ryan about build ACE with NT/Tornado for VxWorks. * ace/config-chorus.h: use ACE_NEEDS_READV/WRITEV with GHS as well as with g++. * ace/Basic_Types.{h,i} (ACE_U_LongLong): added a bunch of arithmetic operators for Carlos :-) The operator *= is _very_ slow, until we come up with the right way to do it. * tests/Time_Value_Test.cpp (test_ace_u_longlong): added some tests of the new operators. Fri Feb 27 13:42:09 1998 Douglas C. Schmidt * ace/ACE.cpp (recv_n): Removed the MSG_PEEK flag since it didn't seem to work correctly. Fri Feb 27 11:18:28 1998 Chris Cleeland * ace/Log_Msg.cpp: Added three new conversion operators: "%{" calls inc() to increase the trace_depth, "%}" calls dec() to decrease the trace_depth, and "%$" is used in place of "\n" to insert a newline followed by appropriate current indentation. Thu Feb 26 21:36:27 1998 Douglas C. Schmidt * ACE version 4.4.31, released Thu Feb 26 21:36:27 1998. Thu Feb 26 16:48:53 1998 Douglas C. Schmidt * ace/OS.h: Added new macros for ACE_FILE_STREAM and ACE_FILE_CONNECTOR to be consistent with the ACE_SOCK_* stuff, etc. Thanks to Ganesh Pai for reporting this. Thu Feb 26 11:14:21 1998 David L. Levine * ace/Parse_Node.cpp (ACE_Location_Node): reordered initializers to match declaration order. Thu Feb 26 02:42:57 1998 Nanbor Wang * ace/Service_Config.cpp (load_static_svcs): Removed explicit constness cast from the allocation function. Wed Feb 25 23:08:44 1998 Douglas C. Schmidt * tests/MT_Reactor_Timer_Test.cpp: Made this test compile on platforms that lack threads and also updated the programming style to be consistent with other parts of ACE. * tests/Priority_Task_Test.cpp: Made this test compile on platforms that lack threads. * ace/Svc_Conf.h: Fixed the prototype for ace_create_service_type() to reflect the elimination of "const void *". * ace/Parse_Node: Eliminated more uses of "const void *" and changed them to plain ol' "void *". * ace/Service_Types.cpp (fini): Changed the "const void *" to be simply "void *" since it didn't seem to make any sense they way it was! Thanks to Stephen Coy for insisting on this... * ace/config-sunos5.*.h: Moved the ACE_HAS_REENTRANT_FUNCTIONS into the section of #defines that should be commented out if we're not building a multi-threaded library. * ace/Service_Config.cpp (open): Tightened up the comparison of the key with the ACE_DEFAULT_LOGGER_KEY to use string equality rather than pointer equality. Thanks to Stephen Coy for reporting this. Wed Feb 25 10:50:17 1998 David L. Levine * include/makeinclude/platform_osf1_4.0.GNU: added suppression of "no corresponding delete" warning, until that is fixed in libTAO. Added -lm to LIBS for MT_Cubit client. * include/makeinclude/platform_chorus_ghs.GNU: we can link now. * ACE-INSTALL.html: added information on Linux v. 2.0.x getsockname () bug. Tue Feb 24 15:07:50 1998 Nanbor Wang * tests/test.{mdp,mak}: Added Env_Value_Test and OrdMultiSet_Test into the workspace. Removed all odbc libraries from all projects. We don't really need them to run ACE. Thanks to gonzo@ing.puc.cl (Gonzalo A. Diethelm) for pointing this out. Tue Feb 24 07:14:16 1998 Douglas C. Schmidt * ace/Asynch_Acceptor.cpp (handle_accept): Update the event_handler's proactor pointer once it is accepted. Thanks to Jason Katz for reporting this. * apps/Gateway/Gateway/Event.h (class Subscription): Moved the htonl of total_consumers_ to *after* the loop that uses it! Thanks to Jorn Jensen for reporting this. Tue Feb 24 05:08:31 1998 Nanbor Wang * ace/Asynch_Acceptor.i: Filled in some missing keywords. * ace/Log_Record.h (ACE_Log_Record): Hacked it to work for CE. Undefined the ostream version of print (). I'm planning to drop iostream support on WinCE. (Then, I don't have to write my own. ;-) * ace/ACE.{h,i} (timestamp, format_hexdump): Removed UNICODE_ONLY version. Changed to use ASYS_TCHAR to differentiate this condition. * ace/OS.h (ACE_OS): Undefined shm_{open,unlink} if ACE_HAS_MOSTLY_UNICODE_APIS. * ace/OS.cpp (ctime,ctime_r): Added CE implementation. * ace/streams.h: Added /**/ between #include and <..> in several places. * ace/*: Changed ACE_HAS_UNICODE_ONLY to ACE_HAS_MOSTLY_UNICODE_APIS. Mon Feb 23 19:41:53 1998 Douglas C. Schmidt * ace/Asynch_Acceptor.i (bytes_to_read): Added an inline accessor for the bytes_to_read_ field. Thanks to Jason Katz for suggesting this. Mon Feb 23 12:26:06 1998 David L. Levine * ace/OS.cpp (sched_params): removed ACE_ADAPT_RETVAL from PTHREADS ::sched_setscheduler () call, because it returns the old scheduling policy, not 0, on success. * ace/config-osf1-4.0.h: removed ACE_HAS_EXCEPTIONS because that is enabled by platform_osf1_4.0{,_rcc}.GNU. * include/makeinclude/platform_osf1_4.0.GNU: added suppression of warning 835 because /usr/include/cxx/memory, line 505, triggers a warning about an unreferenced parameter. * include/makeinclude/platform_osf1_4.0{,_rcc}.GNU: added "exceptions = 1" so that ACE exception handling can be disabled on the make command line. Mon Feb 23 11:27:10 1998 David L. Levine * ACE version 4.4.30, released Mon Feb 23 11:27:10 1998. Mon Feb 23 11:11:18 1998 Nanbor Wang * ace/Process.h: Define ACE_Process_Options::NO_EXEC as 0 on Win32. It has no effect on NT anyway. Sun Feb 22 21:37:43 1998 David L. Levine * include/makeinclude/platform_vxworks5.x_g++.GNU: updated comments to reflect that WIND_BASE and WIND_HOST_TYPE environment variables must be set. Thanks to Nanbor for reporting that. Also, set CROSS-COMPILE flag. * include/makeinclude/rules.lib.GNU: updated VOBJS so that it will build the fancy new TAO/orbsvcs hierarchy. * include/makeinclude/platform_{chorus*,lynxos,vxworks5.x_g*}.GNU: set CROSS-COMPILE flag. It's only used by TAO at this point. * ace/Svc_Conf_y.cpp: updated based on new Svc_Conf.y. * etc/Svc_Conf_y.cpp.diff: regenerated for latest Svc_Conf_y.cpp. * ACE-INSTALL.html,include/makeinclude/platform_lynxos.GNU: moved LynxOS installation info from its platform file to ACE-INSTALL.html. Sun Feb 22 21:26:19 1998 James CE Johnson * tests/IOStream_Test.cpp (server): break out of while loop if read from client_handler fails. Sun Feb 22 13:06:20 1998 Douglas C. Schmidt * ace/Asynch_Acceptor.h (class ACE_Asynch_Acceptor): Made the accept method virtual so that users can override it and do things like enforce limits on the maximum number of simultaneous connections. Thanks to Jason Katz for suggesting this. Sun Feb 22 13:22:30 1998 Nanbor Wang * ace/OS.h: Moved definition of ACE_MAP_{PRIVATE,SHARED,FIXED} down to where every platform can see. Sun Feb 22 13:06:20 1998 Douglas C. Schmidt * ace/Svc_Conf.y: Fixed a couple of places where we were potentially dereferencing NULL pointers when services failed to load. Thanks to Eric C. Newton for reporting this. Sat Feb 21 12:44:51 1998 David L. Levine * ACE version 4.4.29, released Sat Feb 21 12:44:51 1998. Sat Feb 21 11:53:45 1998 Nanbor Wang * ace/Hash_Map_Manager.cpp (close_i): Remember to reset the current size to 0 after deallocating all entries in the map. Thanks to Alex for noticing this. Fri Feb 20 06:36:04 1998 David L. Levine * ace/Timer_Queue_Adapters (activate): added thread_names argument. * ace/OS.{h,i} (cond_timedwait): fixed on LynxOS (DCE_DRAFT4_THREADS), where pthread_cond_timedwait () expects a relative instead of absolute time. * tests/Buffer_Stream_Test (Consumer::svc): removed thr_yield for LynxOS, now that ACE_OS::cond_timedwait () is fixed. * ace/OS.i (mmap): use ACE_DEFAULT_FILE_PERMS on LynxOS for the shared memory object. * ace/Mem_Map.* (unmap): on LynxOS, write back the shared object to the plain file, if the mmap () protection included PROT_WRITE. * ace/README: added ACE_HAS_BOOL, which can be used by TAO. Thu Feb 19 17:59:53 1998 Nanbor Wang * apps/JAWS/clients/Caching/*: Reworked and cleaned up these files a bit. Added a test_URL.cpp file. Notice that these file will finally be moved to other directory. Thu Feb 19 15:52:50 1998 Stanley D Leeson * ace/Task.{h,cpp} (activate): added optional thread_names array argument. Thu Feb 19 12:55:00 1998 Nanbor Wang * ace/OS.h: Added /**/ between #include and '<', Thanks to gonzo@ing.puc.cl (Gonzalo A. Diethelm) for providing the patches. Thu Feb 19 11:18:08 1998 David L. Levine * ace/OS.h: added ACE_MAP_{PRIVATE,SHARED,FIXED}, and ACE_OS::shm_{open,unlink}. * ace/OS.i: added ACE_OS::shm_{open,unlink}, and mmap support on LynxOS. * ace/Mem_Map.*,Shared_Memory_MM.h,Filecache.cpp: default share value to ACE_MAP_PRIVATE instead of MAP_PRIVATE, to allow easy overriding in config files. * ace/config-lynxos.h: added ACE_HAS_SHM_OPEN, and map ACE_MAP_PRIVATE to ACE_MAP_SHARED because MAP_PRIVATE is not supported on LynxOS 2.5.0. * tests/Mem_Map_Test.cpp: replace file_size with line_length because that's more accurate. * tests/SOCK_Connector_Test.cpp: use ACE_DEFAULT_SERVER_HOST on LynxOS, and removed #include of sys/utsname.h because it's in OS.h. * include/makeinclude/platform_lynxos.GNU: added LYNXOS so that other Makefiles can easily know if where building for LynxOS. * ace/ACE.cpp (recv_n): commented out the MSG_PEEK flag check because it caused IOStream_Test to not terminate. * ace/Env_Value_T.{h,i}: moved ACE_Convert specializations from .i file to .h file, because the resulted in multiple instantiations with ACE_INLINE disabled, and missing specializations without ACE_HAS_TEMPLATES_REQUIRE_SOURCE and inlining enabled. * tests/TSS_Test.cpp: weakened to work with LynxOS. It has a very limited number of keys, maybe 16, and can't free them. And, the test always core dumps if we try to request more keys than it has available. * tests/run_tests.sh: disabled some tests on LynxOS. Thu Feb 19 10:41:05 1998 Douglas C. Schmidt * ace/SOCK.cpp (open): It appears that we don't need to do SO_REUSEADDR if protocol_family != PF_UNIX. Thanks to Chuck Gehr for reporting this. Wed Feb 18 22:34:40 1998 Nanbor Wang * examples/Reactor/Dgram/Dgram.dsw: * examples/Reactor/Dgram/Dgram.dsp: * examples/Reactor/Dgram/CODgram.dsp: Newly added files for NT. * examples/Reactor/Dgram/Dgram.cpp: * examples/Reactor/Dgram/CODgram.cpp: Made them runnable on NT. * ace/Process.h (ACE_Process_Options): Changed the definition of ACE_Process_Options::NO_EXEC to 0 for Win32 because it doesn't mean anything on NT (you must exec a new program on NT, no fork syntax available.) With this, we can simulate the fork effect more or less (still not portable thou. See examples/Reactor/Dgram/ for some examples.) Wed Feb 18 16:07:14 1998 Douglas C. Schmidt * netsvcs/lib/Log_Message_Receiver.cpp (log_output): There was a problem where "outputfile" can be NULL, which causes problems when it is dereferenced. Thanks to Stephen Coy for reporting this. * ace/ACE.cpp (ldfind): modified the code to allow it to consistently return a status indicating whether or not a potential shared library file was found. Thanks to Patrick J. McNerthney for reporting this. Wed Feb 18 15:30:48 1998 Carlos O'Ryan * include/makeinclude/rules.lib.GNU: Now we can create libraries with some files in subdirectories. Though the Makefile still needs to set VPATH. Wed Feb 18 12:22:48 1998 David L. Levine * tests/Buffer_Stream_Test.cpp (Consumer::svc): added a thr_yield so that the test magically works on LynxOS. ACE_OS::cond_timedwait is busted on LynxOS, we're investigating it. Wed Feb 18 11:53:00 1998 Carlos O'Ryan * bin/auto_compile: Added netsvcs to auto_compile list. Tue Feb 17 18:27:15 1998 Douglas C. Schmidt * ACE version 4.4.28, released Tue Feb 17 18:27:15 1998. Tue Feb 17 17:59:32 1998 Nanbor Wang * examples/Reactor/Multicast/Multicast.dsw: * examples/Reactor/Multicast/client.dsp: * examples/reactor/multicast/server.dsp: New project files. Tue Feb 17 15:53:41 1998 Douglas C. Schmidt * ace/ACE.cpp (recv_n): Added a check to drop out if the MSG_PEEK flag is set! Thanks to Keith Brown for reporting this. Tue Feb 17 12:56:24 1998 Chris Cleeland * include/makeinclude/wrapper_macros.GNU: Broke the "purify" command out of PRELINK into its own variable: PURELINK. This was done to quiet purify when building shared libraries. It wasn't possible simply to remove the PRELINK reference from SOLINK.cc because PRELINK is also used for specifying quantify. Also added two new variables: PURE_CACHE_DIR and PURE_CACHE_BASE_DIR. PURE_CACHE_DIR is the value of the purify/quantify '-cache-dir=' option, and PURE_CACHE_BASE_DIR is used as the base directory to build a user/compiler-specific cache directory. In general, you probably want to use them like this: "make PURE_CACHE_BASE_DIR=~/mypurecache", which will end up creating the directory ~/mypurecache--. Tue Feb 17 09:23:05 1998 David L. Levine * ace/OS.h: there were two SIGCHLD #defines, if it was not already #defined. I changed the second one to be SIGCLD instead. * ace/config-linux-common.h: removed ACE_LACKS_TCP_H on alpha because it's not necessary with glibc-2.0.6. Tue Feb 17 08:41:06 1998 Douglas C. Schmidt * ace/OS.h (ACE_PROPER_SINGLETON_INSTANTIATION): Changed spelling of SINGLETONE to SINGLETON. Thanks to Mark Maris for reporting this. Tue Feb 17 07:41:32 1998 Douglas C. Schmidt * ACE version 4.4.27, released Tue Feb 17 07:41:32 1998. Tue Feb 17 03:32:30 1998 Nanbor Wang * ace/ACE.*: Changes for Windows CE just keeps going and going and going... All following functions are member functions of class ACE. This member funcion has wchar version _only_ when ACE_HAS_UNICODE_ONLY is defined: timestamp I've added wchar version of the following member functions: strecpy strsplit_r strrepl basename execname format_hexdump These functions are not defined on CE because they make no sense on CE. strenvdup daemonize There is no stdin defined on CE. Before we implement a stdin for CE, these functions don't make any sense. read_adapter register_stdin_handler remove_stdin_handler Changing these functions to UNICODE will need to change the svc.conf parser. Therefore, I'll leave them to a later point. ldopen ldfind * ace/README: Added a new directive ACE_HAS_UNICODE_ONLY which indicates that most APIs must use wchar instead of char. (Note that on WinCE, only WinSock functions use the traditional char interfaces. Most other functions only support wchar interfaces, include str* functions.) Mon Feb 16 14:57:26 1998 David L. Levine * tests/Priority_Task_Test.cpp (open): fallback to minimum ACE_SCHED_OTHER priority instead of 0. * tests/Priority_Task_Test.cpp (open): suppress warning message about retrying task activation with fallback priority unless -d option is specified. * ace/High_Res_Timer.cpp: initialize global_scale_factor_ to 1 if ACE_HAS_{,AIX_}HI_RES_TIMER and ACE_WIN32 are not defined. Thanks to Robert Olson for reporting a problem with bad hires time values on Irix. Mon Feb 16 10:51:28 1998 Oliver Kellogg * include/makeinclude/platform_osf1_4.0_rcc.GNU: added this new platform file for Rational rcc (2.4.1) on DU 4.0. * ace/config-osf1-4.0.h: added ACE_LACKS_SIGNED_CHAR to RATIONAL section. * ace/OS.h: added __rational__ to list of users of long ACE_UNUSED_ARG. * ace/OS.i (gethostbyname_r): added some ACE_UNUSED_ARGs for Digital Unix. Sun Feb 15 16:32:52 1998 Nanbor Wang * netsvcs/clients/Naming/Client/svc.conf: Removed "-s" flag, which set the database name for local namespce. This was causing grief if users forgot to set this environment variable. Thanks to Johannes Gutleber for reporting this. Sun Feb 15 15:55:47 1998 Darrell Brunsch * ace/Timer_Hash_T.{cpp,h}: Timer Hash wasn't keeping the earliest node pointer up to date with cancels. Sat Feb 14 21:12:52 1998 Douglas C. Schmidt * ace/Synch_T.h (class ACE_Guard): this->acquire() already sets the owner, so we don't need to do it in the constructor. Sat Feb 14 20:57:59 1998 Nanbor Wang * netsvcs/lib/Log_Message_Receiver.{h,cpp} (log_output): Added this to all receiver classes. It allows writing messages to a user specified ostream. * netsvcs/lib/Server_Logging_Handler_T.cpp (handle_logging_record): * netsvcs/lib/Client_Logging_Handler.cpp (send): Use the above change to avoid missing data on NT. Thanks to Greg White for providing the fix. Sat Feb 14 18:34:37 1998 Darrell Brunsch * ace/Timer_{Wheel,Hash}_T.cpp: Fixed a bug with earliest time pointers not being set correctly. Thanks to Mark Evans for reporting this. * tests/Timer_Queue_Test.cpp: Added a quick test to check to make sure the earliest time is reported correctly. Sat Feb 14 18:28:19 1998 Douglas C. Schmidt * ace/SOCK_Dgram_Mcast.cpp (subscribe): Fixed a problem with the ACE_SOCK_Dgram_Mcast subscription method. Originally, each time the ACE_SOCK_Dgram_Mcast subscribe() method was invoked, it created a new socket, did appropriate setsockopt calls (e.g. SO_USEPORT), did a bind() to that socket, and then did the setsockopt call that actually joins the mcast group. The problem with this was that is wasn't possible to a single socket to subscribe to more than one multicast group. Multiple calls to ACE_SOCK_Dgram_Mcast.subscribe() didn't work because the new socket descriptor that was issued didn't listen to the old multicast group(s). The fix was to change the subscribe() method to only create, set up, and bind the socket if get_handle() == ACE_INVALID_HANDLE. Thanks to Dave Meyer for reporting this. Sat Feb 14 03:29:50 1998 Sergio Flores * ace/ACE.cpp (set_handle_limit): Fixed a couple of bugs setting the maximum number of file descriptors. If we use setrlimit, we should first get the hard limit before calling it, or we get an EINVAL for trying to set a hard limit of 0 and a soft limit greater than that. Also, for -1 the call was not setting the limit to the maximum allowable. * ace/OS.h (ACE_MAX_DGRAM_SIZE): Moved the #define ACE_MAX_DGRAM_SIZE from the PSOS specific part of OS.h. Fri Feb 13 19:25:55 1998 Douglas C. Schmidt * ace/Log_Record.cpp (ACE_Log_Record): Changed the "set" method for priority() so that it doesn't convert the priority into the base two logarithm of the parameter. Instead, this is handled by the "get" method of priority(). Thanks to Eric C. Newton for reporting this. * ace/OS.h: Added a new #define called ACE_MAX_DGRAM_SIZE, which is set to 8k by default. Naturally, this can be overwritten in platform-specific config.h files. Fri Feb 13 10:40:36 1998 David L. Levine * ACE version 4.4.26, released Fri Feb 13 10:40:36 1998. Thu Feb 12 14:33:12 1998 Nanbor Wang * ace/OS.i (mktemp): I missed this one in Win32 section. Fri Feb 13 09:04:13 1998 Oliver Kellogg * ace/config-osf1-4.0.h: added Rational RCC support. Wed Feb 11 09:50:27 1998 Steve Huston * ace/config-dgux-4.x-ghs.h * include/makeinclude/platform_dgux4_ghs.GNU: Configs for ACE on DG/UX 4 using Green Hills Multi C++ compiler, and draft 10 pthreads. * ace/README * ace/OS.h: New macro ACE_NEEDS_SCHED_H for platforms which needs to #include to get complete defs for thread scheduling. * ace/OS.cpp: Added a DG/UX-specific pthread_wait function for use with draft 10 pthreads on DG/UX. Wed Feb 11 09:32:10 1998 David L. Levine * ACE-INSTALL.html: updated DU CXX and Linux info. * ace/Makefile: moved INSTALL= to before include of rules.local.GNU, so that the (unused) install command doesn't show up with make -n. * include/makeinclude/platform_chorus_ghs.GNU: put posix -I before stdc -I. * ace/OS.h: removed include of stdfileio.h on ghs/Chorus. It's not necessary with the above change to platform_chorus_ghs.GNU. Wed Feb 11 09:24:51 1998 David L. Levine * ACE version 4.4.25, released Wed Feb 11 09:24:51 1998. Tue Feb 10 14:58:00 1998 Chris Gill * ace/Containers.cpp : removed unreachable break; Tue Feb 10 09:34:27 1998 David L. Levine * ace/INET_Addr.cpp (get_host_name): moved declaration of local "hentry" so that it's not seen on Chorus. * ace/OS.i (getprotoby{name,number}{,_r}): not supported on Chorus. * ace/Makefile: build Select_Reactor.o without -g on ghs/Chorus, because it causes GreenHills 1.8.8 to core dump. * ace/config-chorus.h: adjusted to work with GreenHills 1.8.8. * include/makeinclude/platform_chorus_ghs.GNU: use Gnu ar instead of ax, because we don't have a license for ax. * Timer_Queue_Adapters.{h,i} (activate): added stack and stack_size parameters to match declaration in ACE_Task_Base. * include/platform_linux{,_lxpthread}.GNU: removed -fno-strict-prototypes from CFLAGS because it is no longer needed. * include/makeinclude/platform_sunos5_g++.GNU: added -lposix4, to be consistent with the Sun C++ platform file. Some of the TAO tests need it. Mon Feb 09 18:10:37 1998 Chris Gill * ace/Containers.{cpp,h} : made next () a const member function in ACE_Ordered_MultiSet_Iterator Mon Feb 09 14:52:25 1998 David L. Levine * include/makeinclude/platform_chorus_ghs.GNU: added include path. * ace/config-chorus.h: with GreenHills, removed ACE_HAS_WCHAR_TYPEDEFS_CHAR and ACE_LACKS_UNISTD_H. We'll see if --multibyte_chars --wchar_t_keyword work. * ace/OS.h: added #include with GreenHills/Chorus. * netsvcs/clients/Naming/Client/Client_Test.cpp (handle_input): get input from stdin, not ACE_STDIN. Thanks to Jack Erickson for reporting this. Sun Feb 8 15:33:33 1998 Nanbor Wang * include/makeinclude/wrapper_macros.GNU: * include/makeinclude/rules.lib.GNU: * include/makeinclude/rules.local.GNU: Rename ACE_LDSO_Major_Minor_Version_Number to ACE_LDSO_Version_Number. * include/makeinclude/rules.local.GNU: Put back checking of current directory into library installation rules but with an extra check for null ACE_LDSO_Version_Number. Sun Feb 08 12:06:30 1998 David L. Levine * ACE-INSTALL.html: added Scott Snyder's egcs 1.0.1 patch, which allows netsvcs/lib/Server_Logging_Handler.cpp to build on Linux/RedHat 5.0. * include/makeinclude/wrapper_macros.GNU: protected ACE_ROOT... additions to INCLDIRS and LDFLAGS so they're only added once. Thanks to James CE Johnson for this addition. * ace/config-linux-common.h: added ACE_HAS_TERM_IOCTLS. Thanks to James CE Johnson for this addition. * examples/Naming/test_multiple_contexts.cpp,test_non_existent.cpp, test_writers.cpp: replaced uses of cout with ACE_DEBUG. * examples/performance-tests/Misc/basic_perf.cpp, context_switch_time.cpp,preempt.cpp: divide ACE_hrtime_t by ACE_UINT32, to prevent ambiguity with ACE_U_LongLong operator / overloading. Sun Feb 8 01:45:59 1998 Nanbor Wang * include/makeinclude/wrapper_macros.GNU (versioned_so): Added a new directive to allow automatic installing of so libraries with version number. This flag is default to 0. Put this line, versioned_so = 1 in your platform_*.GNU file to enable this feature. (ACE_LDSO_Major_Minor_Version_Number): Define the version number to be appended to versioned so libraries (Notice: it include a dot at the beginning.) If versioned_so == 0, this macro expand to nothing. * include/makeinclude/rules.lib.GNU (INSTALL): * include/makeinclude/rules.local.GNU (INSTALL rules): Modified installation rules to allow installing so libraries with version numbers. * include/makeinclude/platform_netbsd.GNU: * include/makeinclude/platform_freebsd[_pthread].GNU: Enabled new versioned_so feature. Sat Feb 07 05:51:15 1998 Nanbor Wang * ace/Synch_T.cpp (ACE_TSS): Changed to use MessageBox on WinCE. Because there's no console in WinCE, we can't output warning messages to stderr. * ace/README (ACE_HAS_UNICODE_ONLY): This new directive is used to removed some char version function definitions because it doesn't make too much sense to support these function when most, if not all, strings in the system are wchar strings. * ace/OS.{h,i} (ACE_DEFAULT_LOGGER_KEY): Added wchar definition if we are using UNICODE. (ACE_SHE_{TRY,FINALLY,EXCEPT}): WinCE doesn't support Win32 structual exception, so these macros should be defined as on UNIX platforms. (mktime): Removed this function from WinCE. Don't even think about using them. (ACE_HAS_UNICODE_ONLY): If this directive is defined, the char version of the following functions are not defined in ACE_OS: chdir mkdir mkfifo mktemp getcwd unlink tempnam Some of them has wchar version. (chdir,mkdir,getcwd): Added wchar version. Unfortunately, getcwd still doesn't work for WinCE. * ace/OS.cpp (mktemp): Added wchar version of this function. Other changes added. Please refer to the entry above. If platform/compiler supports this function, then both char and wchar versions are defined as inline functions in OS.i. (socket_{init,fini}): Removed leading :: from WSAStartup and WSACleanup because these two are implemented as macros on WinCE. Changed to use MessageBox instead of cerr for outputing error messages. * ace/config-win32-common.h: Don't defined ACE_HAD_P_READ_WRITE on WinCE. * ace/config-WinCE.h: Defined directive ACE_HAS_UNICODE_ONLY. * ace/ace_dll.dsp: Adjusted CE project settings. Fri Feb 06 15:28:11 1998 David L. Levine * ace/config-sunos5.5-sunc++-4.x.h: disable explicit template instantiations with CC 4.2, because it still does implicit instantiation. We need to figure out how to disable that. Then, we can enable -instances=global to get the real be