Thu Jul 3 20:36:19 1997 Nanbor Wang * performance-tests/Misc/childbirth_time.cpp: Changed the parameter type of "Profiler" from int to size_t to make g++ happy. Thu Jul 03 20:03:18 1997 David L. Levine * ace/Reactor.cpp (remove_handler): added ACE_UNUSED_ARG when NSIG != 0. Wed Jul 2 23:41:43 1997 Nanbor Wang * performance-tests/Misc/childbirth_time.cpp: Fixed some typos. Wed Jul 2 23:13:10 1997 Douglas C. Schmidt * performance-tests/Misc/childbirth_time.cpp: Revised the code to use ACE programming style. Wed Jul 02 23:02:24 1997 Douglas C. Schmidt * ACE version 4.2.15, released Wed Jul 02 23:02:24 1997. Wed Jul 2 22:23:49 1997 Douglas C. Schmidt * ace/Service_Config.cpp: Used the new ACE_LACKS_UNIX_SIGNALS macro to reduce the #ifdef complexity somewhat. * ace/config-{chorus,win32-common}.h: Added #define for ACE_LACKS_UNIX_SIGNALS. * ace/OS.h: If a platform (e.g., Chorus) doesn't support signals then #define NSIG 0. * ace/Reactor.cpp: Chorus does not support signals. Make the call to register/remove_handler(sig_set, evnet_handler) return succesfully so that some of the examples and test programs do not need to be changed. Thanks to Wei Chiang for this. * ace/config-chorus.h: Added a new macro for ACE_LACKS_NAMED_POSIX_SEM to handle Chorus. Thanks to Wei Chiang for this. * ace/OS.i: Define macros ACE_PTHREAD_CLEANUP_* so that the related code does not need to be surrounded with #ifdefs. Thanks to Wei Chiang for this. * ace/OS.i: Chorus does not support named semaphores. The code that to do with names in sema_init() and sema_destory() is therefore disabled. Thanks to Wei Chiang for this. * ace/config-chorus.h: Added support for ACE_LACKS_PTHREAD_CLEANUP and ACE_HAS_POSIX_SEM to the Chorus port. Thanks to Wei Chiang for this. Wed Jul 2 17:37:09 1997 Douglas C. Schmidt * ace/Hash_Map_Manager.cpp: Clarified the behavior of close_i() a bit more. Wed Jul 2 09:54:36 1997 Douglas C. Schmidt * ace/Hash_Map_Manager.cpp: Fixed a couple more size_t->u_long conversions for ACE_Hash_Map_Manager::hash(). This didn't harm anything but it's good to be consistent. Wed Jul 2 16:46:59 1997 Nanbor Wang * performance-tests/Misc/childbirth_time.cpp: Added this program to measure child process/thread creation mechanisms on various platforms. Native thread creation test only supports Solaris and NT threads so far. But you can still use ACE_OS::thr_create method on your platform if not supported. Wed Jul 2 15:59:53 1997 Darrell Brunsch * ace/High_Res_Timer.cpp: Created a function get_registry_scale_factor that finds out the speed of the processor using the NT registry (in megahertz). This means that ACE_High_Res_Timers should automatically get the correct scale factor. * tests/Timer_Queue_Test.cpp: Removed the call to get_env_global_scale_factor(). Wed Jul 2 15:39:33 1997 Tim H. Harrison * ace/Process.cpp: Modified spawn to check for the NO_EXEC flag after forking on UNIX. If it's set, spawn returns the child pid without exec'ing. Updated the NT version to always return the child pid on success. Wed Jul 02 10:55:23 1997 David L. Levine * tests/SPIPE_Test.cpp,UPIPE_SAP_Test.cpp: tweaked the static functions a bit to avoid warnings about unused statics on VxWorks. Wed Jul 02 00:16:07 1997 Douglas C. Schmidt * ACE version 4.2.14, released Wed Jul 02 00:16:07 1997. Tue Jul 1 22:49:58 1997 Douglas C. Schmidt * ace/Strategies_T.h: Changed the return value of all the hash() methods to be u_long. * tests/Map_Manager_Test.cpp (hash): Changed the return value of all the hash() methods to be u_long. * ace/SString.cpp: Changed the return value of all the hash() methods to be u_long. * ace/Hash_Map_Manager: Changed the return value of hash() to return a u_long in order to (1) be consistent with the return value of hash_pjw() and (2) give the maximal range for the hash function. Thanks to Marina Spivak for reporting this. Tue Jul 01 14:47:22 1997 David L. Levine * ace/High_Res_Timer.{h,i} (gettime): use gettime () static function to wrap all calls to ACE_OS::gethrtime (). On ACE_WIN32, if the global scale factor has not been set, then gettime () uses ACE_OS::gettimeofday () instead of ACE_OS::gethrtime (), because gettimeofday doesn't need the scale factor. Mon Jun 30 17:28:53 1997 Douglas C. Schmidt * Makefile (RELEASE_FILES): Removed the rpc++ directory from the main release since this doesn't seem to be widely used and the GPL copyleft confuses people. Mon Jun 30 15:08:04 1997 David L. Levine * include/makeinclude/platform_vxworks5.x_g++.GNU: added -lgcc to LDFLAGS. Mon Jun 30 12:00:02 1997 Douglas C. Schmidt * ACE version 4.2.13, released Mon Jun 30 12:00:02 1997. Sat Jun 28 08:27:27 1997 David L. Levine * ace/OS.h: added definitions of ACE_SHLIB_HANDLE and ACE_DEFAULT_SHLIB_MODE on platforms other than ACE_HAS_SVR4_DYNAMIC_LINKING and hpux. * ace/OS.i: split definitions of ACE_OS::cond_* member functions into two: for ACE_WIN32/VXWORKS and all others. That allows us to break the circular dependencies between those functions and the ACE_OS::sema_* member functions. * ace/Svc_Conf_y.cpp: commented out unused args and wrapped assignments in "if" conditionals with parenthesis to avoid g++ warnings. * ace/{ACE,INET_Addr,OS}.cpp (VxWorks only): added ACE_UNUSED_ARG calls. * ace/Parse_Node.cpp (ACE_Stream_Node,ACE_Dynamic_Node,ACE_Dummy_Node constructors): reordered initializers to match declaration order. * ace/Profile_Timer.h (elapsed_time): commented out unused arg "et". * ace/Read_Buffer.cpp (rec_read): initialized local variable "c" to make sure that it is always defined before use. * ace/SPIPE_Acceptor.cpp (remove): don't declare local variable "result" if ! ACE_HAS_STREAM_PIPES, because it's not used in that case. * ace/config-vxworks5.x-g++.h: added ACE_LACKS_IOSTREAM_FX, ACE_LACKS_LINEBUFFERED_STREAMBUF, and ACE_LACKS_SIGNED_CHAR. * ace/IOStream_T.h (ipfx): comment out unused variable "need". * platform_vxworks5.2_g++.GNU: added -Wall now that the ACE library builds cleanly with it. * platform_vxworks5.x_g{++,hs}.GNU: renamed 5.x instead of 5.2. * netsvcs/lib/Token_Handler.cpp: reordered initializers to match declaration order. * tests/SV_Shared_Memory_Test.cpp: moved template specializations so that they're not done on platforms that don't support SV IPC. * examples/IOStream/client/iostream_client.cpp, examples/IOStream/server/iostream_server.cpp: use ACE_HAS_STRING_CLASS rather than __GNUC__ to determine whether the platform has a String class. Fri Jun 27 13:10:46 1997 Douglas C. Schmidt * ace: Changed the name of config-vxworks5.2-g++.h to config-vxworks5.x-g++.h since it works with 5.2 and 5.3. * examples/Mem_Map/IO-tests/IO_Test.cpp: Fixed some bugs that were preventing this from running correctly. Fri Jun 27 13:37:37 1997 Steve Huston * ace/Svc_Conf.y: Finished the sanity checks started below. Fri Jun 27 11:55:13 1997 Darrell Brunsch * ace/Timer_Queue_T.cpp: added a check for an empty queue in expire Fri Jun 27 07:53:58 1997 David L. Levine * tests/Message_Queue_Notifications_Test.cpp (handle_output, handle_exception,main): added ACE_UNUSED_ARG (fd) to avoid compilation warnings about unused arguments. Fri Jun 27 01:08:54 1997 Douglas C. Schmidt * ace/Connector.cpp (create_AST): Replaced the gratuitous #ifdef for ACE_WIN32 and EXCEPT_MASK with the new CONNECT_MASK. This is much cleaner! * ace/Event_Handler.h: Added a new CONNECT_MASK that defaults to READ_MASK | WRITE_MASK (with | EXCEPT_MASK thrown in for Win32). Thanks to Irfan for this suggestion. Thu Jun 26 19:53:11 1997 Nanbor Wang * ace/OS.i (strtok_r): Added check on a null string so we won't go past the end of a string. * performance-tests/Misc/context_switch_time.cpp (main): Added get_env_gloval_scale_factor() at the very beginning so that high resolution timer can return correct time in millisecond. Thu Jun 26 15:29:55 1997 Darrell Brunsch * tests/Timer_Queue_Test.cpp: Changed the random scheduling to use past times instead of future time. This should fix some unusual behavior of this test. Thanks to Gonzalo A. Diethelm for reporting this. Thu Jun 26 12:38:16 1997 Douglas C. Schmidt * ACE version 4.2.12, released Thu Jun 26 12:38:16 1997. Thu Jun 26 01:11:10 1997 Douglas C. Schmidt * ace/Svc_Conf.y: Added some sanity checks to make sure we don't segfault when things go wrong during the svc.conf file parsing. Thanks to Steve Huston for this suggestion. Thu Jun 26 08:36:37 1997 David L. Levine * Makefile: fix UPTODATE check (for release target) by not running it in a sub-shell. Also, added ACE-lessons.html to RELEASE_FILES. * performance-tests/Misc/context_switch_time.cpp: use same priority values on Win32 platforms as on Solaris, because thread priority increases with increasing priority values on both of those platforms. Thu Jun 26 01:34:46 1997 Nanbor Wang * performance-tests/Misc/misc.{mak,mdp}: Added makefile for NT. * ace/{FILE,DEV}.{h,i}: Added the disable(int signum) function to prevent NT from disabling a FILE/DEV using socket calls. Wed Jun 25 12:59:00 1997 * ace/Synch_T.h (ACE_SYNCH_PROCESS_MUTEX and ACE_SYNCH_NULL_MUTEX): Added new template typedef to the list. * tests/Message_Queue_Notifications_Test.cpp: New test for demonstrating notification qualities of Message_Queue. * ace/Strategies.h: Added accessors to these classes to make them more usable. Wed Jun 25 10:47:34 1997 Steve Huston * ace/Parse_Node.cpp: Insure that ACE_Object_Node::symbol(void) returns 0 if the underlying shared library can't be loaded. * ace/OS.h: Added a new type, ACE_SHLIB_HANDLE to allow dynamic linking using correct types on all platforms that support it. Also added a const ACE_SHLIB_DEFAULT_MODE for the 'mode' argument when doing a dlopen-like operation. Moved the ACE_OSCALL_* macros to this file from OS.i * ace/OS.i: Moved ACE_OSCALL_* macros out of here and into OS.h. Added support for dlopen/close/sym/error on HP-UX. Note - the Service_Configurator tests do not run yet on HP - I'm working on that. * ace/Service_Record.{h, i, cpp}: Use new ACE_SHLIB_HANDLE type for dynamic loading operations. * ace/Parse_Node.{h, cpp}: Use new ACE_SHLIB_HANDLE where appropriate. * ace/Strategies_T.cpp: Use new ACE_SHLIB_HANDLE type. Wed Jun 25 02:36:05 1997 Nanbor Wang * ace/OS.i (gmtime_r): Modified the implementation of gmtime_r when OS doesn't provide one. Notice that the implementation only simulate the semantic and is not thread-safe. * ace/OS.h: Moved definition of ACE_SHLIB_HANDLE typedef and ACE_DEFAULT_SHLIB_MODE global variable for Win32 to where it belongs. * ace/OS.i: Changed the return type of dlopen() when ACE_HAS_UNICODE to ACE_SHLIB_HANDLE. * ace/OS.{h,i}: Moved ACE_OSCALL and ACE_OSCALL_RETURN for WIN32 from OS.i to OS.h. Wed Jun 25 01:23:58 1997 Nanbor Wang * ace/OS.i (strtok_r): Modified the implementation when OS does not provide reentrant strtok_r so that our imp. comforms with the semantic of strtok_r (). Wed Jun 25 00:37:56 1997 Douglas C. Schmidt * ACE version 4.2.11, released Wed Jun 25 00:37:56 1997. Tue Jun 24 21:30:53 1997 David L. Levine * ace/Svc_Conf_y.cpp: commented out unused args and wrapped assignments in "if" conditionals with parenthesis to avoid g++ warnings. Tue Jun 24 18:15:46 1997 Nanbor Wang * ace/Reactor.cpp (wait_for_multiple_events): Modified the way to manipulate timeout value so that we can differentiate when there are timeout events to be handle from no timer and we want to wait indefinitely. Tue Jun 24 16:52:22 1997 David L. Levine * ace/OS.h: reverted ACE_hrtime_t to unsigned __int64 with VC++. This might break something, but we need to know what. Tue Jun 24 16:38:52 1997 Darrell Brunsch * Added Visual C++ 5.0 specific workspace (.dsw) and project (.dsp) files to both the ace and tests subdirectory. ACE.DSW in the root directory contains all the project files, so a batch build should be able to build all the project files. Tue Jun 24 14:27:47 1997 Darrell Brunsch * ace/Timer_{Hash,Heap,List,Wheel}_T.cpp: Changed cancel (type..) to call cancellation() even if there are no timers to cancel. This causes the correct behavior of calling handle_close () during expire when handle_timeout() returns -1. Thanks to Hamutal Yanay for pointing this out. * tests/Timer_Queue_Test.cpp: Updated to correctly test this. Tue Jun 24 13:02:51 1997 David L. Levine * ace/SString.h (ACE_SString ctor): changed "allocator" to "alloc". Thanks to Brian Mendel for reporting this. Tue Jun 24 12:58:28 1997 James C Hu * include/makeinclude/platform_irix6.4*: Shuts up useless warnings about multiply defined template instances. Tue Jun 24 12:50:52 1997 Douglas C. Schmidt * ACE version 4.2.10, released Tue Jun 24 12:50:52 1997. Tue Jun 24 00:44:30 1997 Nanbor Wang * ace/SPIPE.{h,i}: Added the disable(int signum) function to prevent NT from disabling an SPIPE using socket calls. Mon Jun 23 22:14:39 1997 Douglas C. Schmidt * ace/Svc_Conf*: Changed the name of the YYSTYPE field ACE_Static_Node_ to static_node_ to be consistent with the other fields. Mon Jun 23 18:28:55 1997 David L. Levine * ace/ACE.cpp: added auto_basic_array_ptr specialization. * ace/Service_Config.cpp, tests/Future_Test.cpp, examples/Threads/future[12].cpp: added auto_basic_ptr specializations. * include/makeinclude/platform_vxworks5.2_g++.GNU: reworked to supported different targets, instead of only PowerPC. Mon Jun 23 16:06:35 1997 James C. Hu * ace/OS.i: Moved definition of sema_* methods to follow cond_* methods to remove compiler warnings on SGI. Mon Jun 23 09:42:08 1997 Darrell Brunsch * tests/Timer_Queue_Test.cpp: added testing for cancellation during expire (when of handle_timeout() in an event handler returning -1). Mon Jun 23 09:18:39 1997 David L. Levine * Makefile: added up-to-date check for "make release" from /project/adaptive/ACE_wrappers. Also, "make release" now adds release entry to latest ChangeLog. * ace/Makefile: build shared library before static library. This appears to fix a problem with Sun C++ 4.{1,2} possibly related to its template instantiation scheme. If the static library is built first, then .shobj/Reactor.so and .shobj/Timer_Hash.so (and possibly others) fail to build due to ACE_TimeValue::normalize () "relocations remain against allocatable but non-writable sections". Thanks to Steve Huston and Satoshi Ueno for reporting this, and to Satoshi for verifying the fix. * ace/ACE.cpp (terminate_process): removed used of ACE_OSCALL_RETURN macro because its defined in OS.i, and so not available if inlining is disabled. * ace/Auto_Ptr.{h,i}: made "p_" protected instead of private so that it can be accessed with the new class arrangement. Also, made the auto_array_ptr operator-> const. * ace/Sched_Params.cpp (previous_priority, VxWorks only): removed ACE_UNUSED_ARG (policy) because policy is used in this function. * netsvcs/lib/TS_Clerk_Handler.cpp (parse_args): wrapped TCHAR argument to sizeof in parenthesis. Mon Jun 23 09:12:04 1997 Nanbor Wang * ace/Auto_Ptr.i (auto_array_ptr): Fixed a typo. Mon Jun 23 08:03:46 1997 Darrell Brunsch * ace/Auto_Ptr.h: changed inheritance of auto_basic_array_ptr in auto_array_ptr to include the template parameter X. * ace/IOStream_T.i: removed default parameter in the definition of ACE_Streambut_T::recv_n() and ACE_SOCK_Dgram_SC::recv_n() Mon Jun 23 01:13:15 1997 * ace/OS.cpp (fork_exec): Fixed the usage of ACE_WIDE_STRING. * test_registry_iterator.cpp (main): Fixed the usage of ACE_WIDE_STRING. * netsvcs/lib/TS_Clerk_Handler.cpp (parse_args): Fixed the usage of ACE_WIDE_STRING. * ace/Auto_Ptr.h: Added support for basic types by seperating the auto_ptr classes into two. One that requires the -> operator support and the other that does not. The former inherits from the latter. * ace/{FILE,DEV,SPIPE}_Addr.h: Added support for multibyte and wide character addr_to_string and string_to_addr functionality. * ace/Connector.cpp && ace/Acceptor.cpp (info): Fixed sizeof bug. * examples/Connection/blocking/SPIPE: Added UNICODE support for this example. * ace/OS.h: Added new macro ACE_MULTIBYTE_STRING. * ace/ACE.cpp (terminate_process): Fixed unused args errors. Sun Jun 22 09:58:36 1997 Douglas C. Schmidt * Released version 4.2.9 for testing. * ace/Log_Msg.cpp (open): Changed the use of ACE_LOG_MSG-> within the open() method to use this-> in order to avoid deadlocks. Thanks to Per Andersson for reporting this. * ace/ACE.cpp: Changed the use of __SVR4 and __unix to sparc and unix to work better with various UNIX environments. Thanks to Michael R. MacFaden for these changes. * ace/Handle_Set.cpp (count_bits): Added special code to handle the case where fdmask is typedef'd as a long rather than an int. Thanks to Eric Newton and James Johnson for reporting this. * ace/IOStream.h: Changed the name of QuotedString to ACE_Quoted_String to be consistent with the ACE naming scheme. Thanks to James Johnson for suggesting this. * ace/IOStream_T.i: Added this new file to split off the inlined code from the header file. * ace/ACE.cpp (terminate_process): Remove the ACE_UNUSED_ARG(signum) from terminate_process(). Thanks to Wei Chiang for reporting this. Sun Jun 22 17:19:18 1997 David L. Levine * examples/Threads/process_manager.cpp (main): replaced call to kill with terminate. Sat Jun 21 10:48:34 1997 Douglas C. Schmidt * examples/Reactor/FIFO: Added a new example that illustrates how the Reactor and the FIFO wrappers work together. Thanks to Johannes Gutleber for sending this. * tests/Time_Service_Test.cpp (main): Replaced the kill() call with the terminate() call since kill() isn't portable across platforms. * ace/Process: The kill() method on this class was being used incorrectly. I've created a new method called terminate() that terminates the process. * ace/Process_Manager: Renamed the kill() method to terminate() and updated the implementation to use the new ACE::terminate_process() call. * ace/ACE: Moved the incorrect Win32 and Chorus implementations of ACE_OS::kill() and put them in a new static method called ACE::terminate_process(). * ace/ACE: Changed the name of the is_process_active() to the more concise process_active(). * ace/OS.i: Added an implementation of ACE_OS::kill() for Chorus. Note that this doesn't behave as UNIX does -- it kills the process id rather than sending a signal! Thanks to Wei Chiang for these fixes. * examples/Reactor/Misc/notification.cpp: Added patches to run this example under Chorus. Thanks to Wei Chiang for these fixes. * ace/Connector.cpp (create_AST): Changed the order of some instructions in Connector::create_AST method to make it more safer to use in multi-thread environment. Thank to Paul Han for reporting the problem and the fix. * ace/Connector.cpp (create_AST): Make sure to pass in the "mask" when calling remove_handler() so that we get the right set of bits removed from the Reactor. * tests/Reactor_Timer_Test.cpp (class Time_Handler): Changed int to long to avoid type conversion problems on 64 bit SGI. Thanks to Fred LaBar for reporting this. * examples/Reactor/FIFO: Added a test program to illustrate the interaction of the ACE Reactor with the FIFO IPC mechanism. Thanks to Johannes Gutleber for this test. * examples/Reactor/Misc/pingpong.cpp: Added support for Chorus. Thanks to Wei Chiang for this. * ace: Added a number of minor changes to signal assignment code so that ACE will compile with Tandem NonStop. Thanks to Jan Perman for these fixes. * ace/config-tandem.h: Added a new config file for the Tandem NonStop-UX 4.2MP platform. Thanks to Jan Perman for contributing this. * include/makeinclude/platform_tandem.GNU: Added a new platform file for the Tandem NonStop-UX 4.2MP platform. Thanks to Jan Perman for contributing this. * ace/config-unixware-2.1.2-g++.h: Added a new config file for UNIXWARE 2.1.2. Thanks to Ganesh Pai (gpai@voicetek.com) for contributing this. * include/makeinclude/platform_unixware_g++.GNU: Updated the UNIXWARE platform config file to work for version 2.1.2. Thanks to Ganesh Pai (gpai@voicetek.com) for contributing this. * ace/Handle_Set.cpp (count_bits): Added another 0xff mask to prevent problems with sign extension on machines with 32 bit ints and 64 bit longs. Thanks to James Johnson for reporting this. * ace/OS.h: Updated all of the ACE_DEFAULT* macros in OS.h so that they can be overridden by #defines in the config.h file. Thanks to Chuck Gehr for suggesting this. Thu Jun 19 22:20:20 1997 David L. Levine * ace/OS.h (VxWorks/g++ only): added horrible hack to work around mismatch of memcmp, etc., prototypes in . * ace/OS.i: reordered many function definitions to avoid use before definition. Building with g++ 2.7.2 on VxWorks 5.3.1 revealed them. * ace/config-vxworks5.2-g++.h: removed ACE_HAS_STRING_CLASS and ACE_HAS_GNU_CSTRING_H, because those aren't distributed with Tornado 1.0.1. Thu Jun 19 15:31:53 1997 Darrell Brunsch * ace/Timer_Wheel_T.cpp: Fixed problem with expire () not expiring timers with a timeout of the current time. This was causing problems with Timer_Queue_Test when high profile timers were disabled (such as Windows NT when the environment variable ACE_SCALE_FACTOR was undefined) Wed Jun 18 19:43:35 1997 David L. Levine * ace/Signal.cpp: 'removed "const" from #define of ACE_MAX_SIGNAL_HANDLERS because it broke Irix 6.2 build. Thanks to Gonzalo A. Diethelm for reporting this. * examples/Threads/task_four.cpp (Invoker_Task::svc): fixed typo, n_tasks instead of ntasks. Wed Jun 18 11:25:14 1997 Nanbor Wang * examples/Threads/{task_four,token}.cpp: Changed the use of cerr/cout to ACE_DEBUG macro. Thanks to Chuck Gehr for pointing these out. Tue Jun 17 15:11:09 1997 David L. Levine * ace/config-sunos5.5-sunc++-4.x.h, include/makeinclude/platform_sunos5_sunc++.GNU: support enabling of exception handling via "exceptions=1" make flag. Exception handling does seem to work with Sun C++ 4.2, even on MP machines, if patch 104631-02 "C++ 4.2: Jumbo Patch for C++ 4.2 on Solaris SPARC" is applied. Please beware that enabling of exception handling can adversely affect peformance, even if the program doesn't use it. So, we haven't enabled it by default. Thanks to Chris Cleeland for suggesting not to enable it by default. * ace/IOStream.h: added #include of "ace/config.h" so that ACE_LACKS_ACE_IOSTREAM can be checked. Thanks to Ganesh Pai for reporting this problem. * ace/ACE.cpp (get_handle): use /dev/udp instead of /dev/ip on SVR4 machines because it has other read permission by default (on Solaris 2.x). * ace/ACE.cpp (get_ip_interfaces): use auto_array_ptr instead of auto_ptr so that the array gets deleted properly, and zero it out to avoid unitialized memory read reports from Purify. * ace/Timer_Hash_T.cpp (cancel): added "[]" to delete of timer_ids array. Purify rules. * Timer_Queue_Test.cppc (test_performance): added "[]" to delete of times array. Purify rules. Tue Jun 17 15:31:01 1997 Steve Huston * ace/ACE.cpp: Fixed get_ip_interfaces (and count_interfaces) to work properly on HP-UX (and probably other similar UNIXes). Needed to work with non-IP interfaces present, and fixed to copy the IP address without the fudge factor being applied. Tue Jun 17 14:02:01 1997 Nanbor Wang * ace/{Free_List.h,Free_List.cpp,Timer_Queue_T.h}: Added #include "ace/Synch_T.h" to Free_List.h and removed related inclusion from Free_List.cpp and Timer_Queue_T.h. Thanks to Jack Erickson for reporting this problem. Tue Jun 17 09:41:48 1997 David L. Levine * tests/Enum_Interfaces_Test.cpp: changed name of log file to match the program name, so that the one-button test can easily find it. Tue Jun 17 04:58:38 1997 Nanbor Wang * ace/Timer_Queue_T.h: Added include file "ace/Synch_T.h" to avoid compilation errors in SC 4.1. We didn't notice this because most of us have moved to SC 4.2. Don't know why this didn't cause any problem in SC 4.2. Thanks to Jack Erickson for reporting this bug. Mon Jun 16 22:25:18 1997 Steve Huston * ace/ACE.cpp: Fixed conditional compiles to compile the interface counting code for HP - it reports 0 interfaces, so it needs more debugging still. * include/makeinclude/platform_hpux_aCC.GNU: added -g to link command for building shared library. * tests/Buffer_Stream_Test.cpp: fixes to execute correctly and only fail assertions on real failures. Mon Jun 16 19:05:13 1997 Steve Huston * ace/Free_List.cpp: added #include ace/Synch.h, needed by Free_List.i. Fixes compile errors on HP-UX. Mon Jun 16 10:59:55 1997 Darrell Brunsch * ace/Timer_Wheel_T.cpp: Changed expire () so it doesn't access past the end of an array when it finds nothing to expire. Thanks to Norbert Rapp for catching this. Sun Jun 15 03:44:21 1997 Nanbor Wang * examples/Threads/thread_specific.cpp (worker): Changed the output of diagnostics from using cout to using printf. Also corrected several portability problems. Thanks for Chuck Gehr for pointing these out. * ace/OS.i (thread_mutex_trylock): Corrected the code for NT. Now this function returns 0 if lock is obtained and -1 otherwise. Thanks to Robert V. Head for noticing this. * performance-tests/Synch-Benchmarks/Synch_Tests.{mdp.mak}: Added project workspace and makefile for NT to this directory. * performance-tests/Synch-Benchmarks/svc.conf: * performance-tests/Synch-Benchmarks/{Options,Benchmark}.h: * performance-tests/Synch-Benchmarks/*.cpp: Reworked these files to have them compiled on NT. Sat Jun 14 03:53:13 1997 Nanbor Wang * performance-tests/Synch-Benchmarks/pipe_proc_test.cpp (class Pipe_Proc_Test): Changed the type of pipe_handles[] from int to ACE_HANDLE. * performance-tests/Synch-Benchmarks/sysvsema_test.cpp: When creating the semaphore, explicitly cast the key value to (key_t) since NT couldn't handle the conversion. Fri Jun 13 19:32:03 1997 Steve Huston * ace/ACE.cpp: Fixed count_interfaces to compile on non-SVR4 systems such as HP-UX. Not tested yet. * ace/OS.i: Fixed mis-arranged conditional compile for HP-UX in asctime_r. Fri Jun 13 03:13:51 1997 Nanbor Wang * ace/config-win32-common.h: Added a "pragma comment" directive to direct MSVC to link in mswsock.lib automatically. Thanks to Bill Tang for reminding this. * ace/ace.{mak,mdp}: Removed explicit inclusion of mswsock.lib. Thanks to Bill Tang for reminding this. * examples/OS/Process/Process.{mdp,mak}: For some reasons, I got an "unknown link error, please refer to documentation for appropriate technical supports" when building this example on NT (didn't help much, did it?) Reassigning the linked library solved the problem. * examples/OS/Process/process.cpp: Updated class name ACE_ProcessEX to ACE_Process because ACE_ProcessEX no longer exists. Also, all exec'ed programs' absolute names have been changed and let the environment variable "path" to decide which program(s) to exec. Thu Jun 12 15:48:16 1997 Chris Cleeland * ace/ACE.cpp (get_ip_interfaces): Corrected code in the BSDish section so that it at least compiles on Linux. I haven't tested this AT ALL. * ace/Timer_Queue_T.cpp (calculate_timeout): When this was called with the default argument from handle_events(), max_timeout was passed as zero, which would cause a SEGV when attempts were made to deref it. Added protection to simply return a zero ptr in that case. Thu Jun 12 13:18:03 1997 Steve Huston * ace/OS.{h,i,cpp}: Changes for HP-UX 10 primarily. Threads support for DCE Draft 4 threads (bundled with HP-UX 10). Correct usage of reentrant C library functions for HP-UX. * ace/OS.i: Changed timeout argument to 2nd select function to allow the compiler to pick a conversion operator. As it was, HP compiler would not compile it. * ace/Service_Object.cpp: When deleting the service memory pointed to by a void *, use "operator delete" rather than deleting a void, which is prohibited by the current ANSI C++ draft. * ace/config-hpux-10.x.h: This is now a compiler-independent header file, and is included by config-hpux-10.x-hpc++.h. This file contains all correct settings for HP-UX 10.x, and compiler-specific config files should use this - see config-hpux-10.x-hpc++.h. * ace/config-hpux-10.x-hpc++.h: New config file for either of the HP compilers (HP C++ or HP aC++). It figures it out internally, and uses config-hpux-10.x.h for OS details. * include/makeinclude/rules.lib.GNU: Allow for doing a PRELIB step when building a shared library, and not using .shobj/*.so files. This allows HP aC++ to close all template instantiations for the entire library at once, rather than separately, reducing the size of the resultant library significantly. * include/makeinclude/platform_hpux-aCC.GNU: build libraries with templates instantiated all at once. Compile with flags for using the reentrant versions of C library functions. Wed Jun 11 15:20:15 1997 Nanbor Wang * ace/Timer_Queue_T.{h,cpp} (calculate_timeout): Changed the second parameter the_timeout from a ref. to a ptr. to a ptr in order to avoid compilation warning. Since the pointer itself is not modified within the function, it's ok to change this. * ace/Reactor.cpp (wait_for_multiple_events): Added ACE_Time_Value the_timeout as a place holder for timeout value when max_wait_time is NULL. Otherwise, Timer_Queue::calculate_timeout won't process the timer queue even it's not empty. Wed Jun 11 11:14:29 1997 James C Hu * include/makeinclude/platform_mvs.GNU (RANLIB): Requested change from Check Gehr (gehr@sweng.stortek.com), RANLIB = echo Wed Jun 11 04:47:52 1997 Nanbor Wang * ACE.cpp (count_interfaces): Two bugs were corrected here. Both were typo. * tests/Timer_Queue_Test.cpp: Added include file ace/Timer_Queue.h Tue Jun 10 16:02:52 1997 Darrell Brunsch * ace/SString.{h,cpp}: Changed the parameters in CString::substring() and WString::substring(). Removed const and changed length to a ssize_t because of signed/unsigned comparison warnings. * ace/ACE.cpp: Changed a loop variable in get_ip_interfaces() to a size_t because of a signed/unsigned comparison warning. Tue Jun 10 12:47:49 1997 * ace/SString.cpp (operator = and operator +=): There were two bugs here. operator= forgot to tack on the NULL terminator after the memcpy() and operator+= appended the second string incorrectly. Thanks to Michael R. MacFaden for pointing these out. Tue Jun 10 12:16:04 1997 Darrell Brunsch * ace/Makefile: Updated to reflect newly added files * ace/Proactor.cpp: Removed template specializations. * ace/Reactor.cpp: Removed some template specializations. * ace/Timer_Hash.h: Added an include for Timer_Heap. * ace/Timer_Hash_T.cpp: Changed a reference to ACE_Timer_Node to ACE_Timer_Node_T * ace/Timer_{Hash,Heap,List,Wheel}_T.h: Changed #include "ace/Timer_{...}.h" to "ace/Timer_{...}_T.h". * ace/Timer_Queue.cpp: Removed some template specializations. * ace/Timer_Queue.h: Removed the including of Timer_Queue.cpp since there are no templates to warrant it. * ace/Timer_{Hash,Heap,List,Wheel}.cpp: Added these and put the appropriate template specializations here. Tue Jun 10 02:08:25 1997 Nanbor Wang * examples/Log_Msg/README: Revised. * examples/Log_Msg/test_log_msg.cpp: Revised program output so that it's clearer to explain. Mon Jun 09 15:46:41 1997 * OS.i (mutex_lock): When WaitForSingleObject returns WAIT_ABANDONED, the lock is held by the calling thread. Therefore we must return 0 from the method. I have added a new mutex_lock() method that takes an extra "abandoned" parameter. This is set wehen the mutex is abandoned. Thanks to Dieter Quehl for pointing this out. Mon Jun 9 02:31:36 1997 Nanbor Wang * tests/Sigset_Ops_Test.cpp (main): Comment out testing of invalid sigset checking for most platforms don't seem to support it. Perhaps the ACE's sigset* functions should remove this check for compatibility. Sun Jun 8 11:39:06 1997 Douglas C. Schmidt * ace/OS.i (set): There was a typo here where ((long) (d - (double) l)) * 1000000 should be (long) ((d - (double) l) * 1000000) since otherwise the values are always 0. Thanks to Jim Crossley for reporting this. * tests/Enum_Interfaces_Test.cpp (main): Changed ACE_UINT32 to size_t to be consistent with the class definition. Thanks to Nanbor Wang for reporting this. * ace/Token.h: Added some no-op method for ACE_Token so that it will still compile even if ACE_HAS_THREADS isn't defined. Sun Jun 8 01:37:52 1997 Nanbor Wang * examples/Log_Msg/README: Added a README file. * tests/Sigset_Ops_Test.cpp (main): bug fixed. Sat Jun 7 16:40:22 1997 Douglas C. Schmidt * ace/SString.h (string.): Added a substring() member function to ACE_*String classes. Thanks to Michael MacFaden for contributing this. * ace/ACE: Added a new method called int get_ip_interfaces(count, address_array) which will query the OS kernel for the IP addresses for each network interface found and return a count and array of ACE_INET_Addr objects. The reason for adding this method is that most client apps assume gethostbyname(uname|gethostname)) will work. If the nameservices is misconfigured/broken or the machine is multi-homed, the client apps have alot of coding to do to figure out if an inteface represents a local address or not. On UNIX, this includes the loopback addr. On NT, the loopback addr is not added (but may change the impl if others think this useful). Thanks to Michael MacFaden for contributing this. * ace/Synch[_T]: Changed all the classes so that internal instance variables are now protected rather than private. This allows greater flexibility if there's a need to subclass (which shouldn't occur very much...). Thanks to Reza Roodsari for suggesting this. Fri Jun 06 21:30:57 1997 David L. Levine * ace/Timer_{Hash,Wheel}_T.cpp: added #includes of ace/High_Res_Timer.h. Also, in Timer_Wheel_T.cpp (cancel), moved the declaration of "i" out of the loop because it's used in two different loops. Fri Jun 06 17:11:13 1997 * OS.i (sleep): If ACE_POLL_IS_BROKEN is defined, use select() to do micro second sleeps. * ace/CORBA_Handler.h (ACE_CORBA_*): The new version of Orbix (2.2C01) on NT finally supports namespaces. So now the macros ACE_CORBA_n need to be defined using the "::" and not the "_" for NT if the new Orbix is being used. Thanks to John Morey (jmorey@tbi.com) for the changes. Fri Jun 06 02:16:08 1997 * Sigset_Ops_Test.cpp: Added to test correct implementation of sigset manipulating functions. * run_tests.{sh,bat}, Makefile: Added Sigset_Ops_Test. Thu Jun 05 20:32:39 1997 David L. Levine * tests/Timer_Queue_Test.cpp (randomize_array): removed static qualifier now that it's a template function. It caused a warning with Sun C++. Thu Jun 05 18:28:36 1997 * ace/Asynch_Acceptor.cpp (open): The Proactor was beening passed implicitly. I have made this explicit by making this a parameter to open. Thanks to MehulM@spa-marketing.com (Mehul Mahimtura) for this. Thu Jun 5 12:06:45 1997 Chris Cleeland * ace/Timer_Queue_T.h (ACE_Timer_Queue_T): Overloaded calculate_timeout with a version that accepts a pointer to storage for the ACE_Time_Value as an argument. This has a small performance win over the other b/c it does not take a lock. The change was made after examining Quantify output for TAO and observing that this lock caused Reactor::wait_for_multiple_events() to consume a substantial percentage of processing time. * ace/Reactor.cpp (wait_for_multiple_events): This now uses a different version of calculate_timeout() that doesn't require taking a lock. Thu Jun 05 08:48:49 1997 David L. Levine * ace/Reactor.cpp: added template specializations. * ace/Timer_Queue_T.cpp (ACE_Timer_Queue_T ctor): rearranged initializers to match declaration order. Thu Jun 5 06:08:06 1997 Nanbor Wang * ace/OS.i (sigaddset, sigdelset, sigismember): NSIG itself is invalid and must be excluded. Wed Jun 04 21:24:35 1997 David L. Levine * ace/config-sunos5.5-g++.h: fixed typo: #define instead of #defined ACE_HAS_CLOCK_GETTIME. * ace/config-sunos5.5-sunc++*.h: Combined config-sunos5.5-sunc++-4.x.h and config-sunos5.5-sunc++-4.1.h, and removed the latter. The Orbix config file now #includes config-sunos5.5-sunc++-4.x.h and adds its differences. * include/makeinclude/platform_sunos5_sunc++*.GNU: Combined platform_sunos5_sunc++.GNU and platform_sunos5_sunc++-4.1.GNU, and removed the latter. platform_sunos5_sunc++_orbix.GNU now includes the non-orbix file and adds its differences. Also, added optional CC -fast support. To enable, just add "fast=1" to your "make" invocation. Wed Jun 04 12:21:41 1997 * tests: Made the following config files consistent: UNIXclerk.conf UNIXtokens.conf Win32clerk.conf Win32server.conf Win32tokens.conf * ace/OS.h: Made sure that some #defines were guarded for redefinition specially for the Bristol (that provides Win32 API on AIX) headers. Thanks to Rich Christy (rchristy@cccis.com) for suggesting these changes. * ace/Handle_Set.h: Changed the type of handle_index from int to u_int on Win32. Thanks to Jack Erickson (jack@cibc.com) for suggesting this. * ace/FILE.h (ACE_FILE_STREAM): Fixed this #define from ACE_FILE_Stream to ACE_FILE_IO. Tue Jun 3 21:23:48 1997 Douglas C. Schmidt * ace/Timer_{Queue,Hash}: Fixed some uses of template typedefs since GCC is too lame to handle them correctly. Therefore, I had to expand TIMER_QUEUE into the ugly fully expanded name. * ace/Timer_Queue_T.cpp: Moved the implementation of ACE_Event_Handler_Handle_Timeout_Upcall from Timer_Queue.* into Timer_Queue_T.* since only template classes should go into *_T.* files. Tue Jun 3 18:16:02 1997 Darrell Brunsch * ace/Timer_Queue.*: Templatized ACE_Event_Handler_Handle_Timeout_Upcall with LOCK Added deletion() to Upcall Functors. This gets called if there are any nodes in a queue and the queue's destructor is called * ace/Timer_Queue_T.*: Changed iterator accessor to public Removed two template parameters from ACE_Timer_Node_T so only EVENT is left. Added accessors instead of using friendships, and deleted the constructor (use set() instead) Changed iterator into a general iterator (with first(), next(), isdone() and item () methods) Added remove_first () method that removes and returns the earliest timer in the queue Added ACE_Free_List support * ace/Timer_Heap*: Added upcall functor deletion() support Added remove_first () method that removes and returns the earliest timer in the queue * ace/Timer_List*: Changed to double-linked circular list and changed the timer_id to be a pointer to the node (like it is in Timer Wheel and Timer Hash) Added upcall functor deletion() support Added remove_first () method that removes and returns the earliest timer in the queue Added check for timer_id of -1 so we don't try to delete the error code if it is passed into cancel Changed Timer_List_Iterator_T constructor parameter from list to listParm to resolve a conflict with STL. Thanks to Todd Barkalow for this fix * ace/Timer_Wheel*: Added HighRes timer support Added upcall functor deletion() support Added earliest_pos_ variable to keep track of the list with the earliest node Created an expire that is specialized for ACE_Timer_Wheel Added remove_first () method that removes and returns the earliest timer in the queue Added check for timer_id of -1 so we don't try to delete the error code if it is passed into cancel * ace/Timer_Hash*: Added Timer Hash Queue - This is a class that can take another timer queue type (Timer List, Timer Heap...) as a template parameter (BUCKET) and then do an intermediate hash of a timer to determine which queue among a table of timer queues to put the timer into. ACE_Timer_Hash is typedefed to the Timer List version and ACE_Timer_Hash_Heap is typedefed to the Timer Heap version Added HighRes timer support Added upcall functor deletion() support Created an expire that is specialized for ACE_Timer_Hash Added remove_first () method that removes and returns the earliest timer in the queue Added check for timer_id of -1 so we don't try to delete the error code if it is passed into cancel * ace/Free_List.* Added ACE_Free_List and ACE_Locked_Free_List. These are used to maintain free lists of nodes. ACE_Free_List is a abstract class where ACE_Locked_Free_List is a concrete one that has a mutex parameter (LOCK). * ace/OS.h: Added ACE_DEFAULT_TIMER_HASH_TABLE_SIZE constant Added ACE_DEFAULT_FREE_LIST_* constants * ace/Proactor.*: Added deletion() to Upcall Functors. This gets called if there are any nodes in a queue and the queue's destructor is called. * tests/Timer_Queue_Test.cpp: Added HighRes timer support Changed the array of timer queues into a list (to more easily add/remove/comment out an entry) Added some more performance tests with randomization Tue Jun 3 00:26:06 1997 Douglas C. Schmidt * ace/OS.h: Changed the access protection for ACE_cond_t, ACE_sema_t, ACE_event_t, and ACE_rwlock_t so that it is protected rather than private. In addition, added ACE_Export to all of these classes so that they are visible outside of a DLL. Thanks to Ivan Murphy for these suggestions. * ace/OS.h: Changed the value of ACE_MAX_DEFAULT_PORT on Win32 to 0 in order to work around a nasty NTism... Thanks to Jon Biggar for reporting this. Mon Jun 2 16:29:48 1997 James C Hu * ace/Process.*: - Fixed ACE_Process::spawn to close descriptors after having been duped. - Fixed ACE_Process::spawn to exit () after an error is encountered in the child process, rather than returning. - Fixed ACE_Process_Options::set_handles to duplicate handles that are passed in, and then to close them in the destructor. Sun Jun 01 22:21:28 1997 David L. Levine * examples/Threads/tss1.cpp: made some globals non-static or const so that tss1 will link with Sun C++ 4.2 -O3. I don't know what the problem is; it only shows up with optimization enabled. These fixes work around it. Sun Jun 01 20:29:20 1997 James CE Johnson * ace/IOStream*: - removed the old 4/5/97 comments - made operator>>, << on QuotedString a template This last makes QuotedString much more functional. As templated functions, the QuotedString can now be used on other iostream-type objects. The previous method of defining the function only for the type of ACE_IOStream being created was didn't provide this flexibility. Sat May 31 07:01:22 1997 Douglas C. Schmidt * ace/Log_Msg.cpp (open): To avoid handle leaks, we need to shutdown the message_queue before trying to reopen it. Thanks to Per Andersson for this suggestion. * include/makeinclude/platform_osf1_4.0.GNU: Added a new platform config file. Thanks to James Johnson for this. Fri May 30 16:25:25 1997 * CPP-inclient.cpp (main): Properly compare to the "quit" string. Thanks to "Andre Arpin" for reporting this. * tests/UPIPE_SAP_Test.cpp (connector): Changed the eof marker in the strings. Fri May 30 14:04:44 1997 James C Hu * include/makeinclude/platform_irix6.4_sgic++.GNU: added to make things compile on latest SGI machines. Removed +pp and -woff... flags from the CCFLAGS variable. Added new -woff flags to hide other warnings. * ace/config-irix6.4-sgic++*.h: copied corresponding configs from irix6.2 and removed ACE_HAS_SVR4_TIME, since this seems to be no longer true of irix6.4. Fri May 30 02:39:39 1997 * ace/Connector.cpp (create_AST): On Win32, added the except mask when registering with the Reactor to find out when asynchronous connects complete. (Svc_Tuple): Made sure that the default value for the timer_id in AST is not 0. 0 is a valid timer_id. I have changed this to be -1. (handle_exception): Added this method. On Win32, the except mask must also be set for asynchronous connects. Thu May 29 21:28:25 1997 * Process.*: Removed the ACE_Process_Old class. * Local_Tokens_T.*: Removed all these files. They have not been used by the token library for some time. They were mistakenly put in the release. Thu May 29 02:00:14 1997 * ACE.cpp (is_process_active): Added this method which checks if a process is still alive. Thanks to Chris (CLahey@cccis.com) for this code. * ace/OS.i (kill): Changed PROCESS_ALL_ACCESS to PROCESS_TERMINATE. * ace/ACE.cpp (bind_port): Changed the implementation of this method such that a recently used port is not used again in the next call to this method on Win32, i.e., upper limit is decreased even in the successful case. This fixes the problem on Win32 where binding to a recently used port works but the following connect fails. * ace/Acceptor.cpp (close): Added a close method that allows us to shutdown the Acceptor (without having to destroy it). * ace/Connector.cpp (close): Added a close method that allows us to shutdown the Connector (without having to destroy it). * apps/Gateway/Gateway/Proxy_Handler_Connector.cpp (handle_close): Removed this method. This code seemed to be duplicating the code in the handle_close of the proxies. (initiate_connection): Removed the code that did rescheduling. The proxies are responsible for this. * apps/Gateway/Gateway/Event_Channel.cpp (initiate_proxy_connection): Must *always* use the correct synch options while connecting. (reinitiate_proxy_connection): Always register for timeouts if we are not disconnecting. This allows us to remove duplicated logic in Proxy_Handler_Connector. The new logic of close() allows us to remove the code that use to remove the proxy from the map to prevent double deletes. (close): Changed the shutdown logic to: Tell everyone that the spaceship is here (behind the comet), close down the connector, close down the acceptor, tell everyone that it is now time to commit suicide. * apps/Gateway/Gateway/Proxy_Handler.cpp (handle_timeout): Must return 0, or else the timer queue will cancel the handler and *all* its timeouts. * apps/Gateway/Peer/svc.conf,Makefile: We now generate a Peer shared library (instead of just an .so). The svc.conf was changed to reflect this. * tests/UPIPE_SAP_Test.cpp: Fixed output message. * Handle_Set.i (operator): Fixed typo. Thu May 29 11:09:52 1997 David L. Levine * include/makeinclude/rules.local.GNU: check for directory write permission before attempting to install. This helps support shared ACE workspaces. There are two easy ways to not install "private" libraries in the shared workspace: 1) remove write permission from $WRAPPER_ROOT/ace, or 2) add "INSTALL=" to invocations of "make". Thu May 29 06:07:18 1997 Douglas C. Schmidt * ace/OS.i (thr_join): Revised some code in the #ifdef'd out version of ACE_OS::thr_join() so that it will compile correctly. Note that this code isn't currently used, but someday it will be. Thanks to Hamutal Yanay for reporting this. Wed May 28 16:37:57 1997 David L. Levine * ace/OS.{h,i} (ACE_Time_Value): added default constructor, which does not call normalize (). ACE_Time_Value::normalize () was showing up as a relatively minor, but signficant hot spot in Event Channel latency tests. Wed May 28 16:02:53 1997 James C Hu * ace/OS.i: Changes to strdup and getpid for CHORUS, as per Wei Chiang's suggestions. Tue May 27 18:26:51 1997 Douglas C. Schmidt * ace/config-hpux-10.x-decthreads.h: Added support for HP/UX 10.10 with DCE threads. Thanks to Shankar Krishnamoorthy for these fixes. * ace/Local_Tokens_T.h: #if def'd out all of this file since it doesn't seem to be used anymore. Thanks to Shankar Krishnamoorthy for reporting this. * ace/Makefile (TEMPLATE_FILES): Removed Local_Tokens_T since it doesn't appear to be used anywhere. Tue May 27 18:47:34 1997 James C Hu * tests/*.cpp: Various changes for EBCIDIC compatibility. Thanks to Chuck Gehr for pointing out the need for this! * tests/test_config.h: Added ACE_ALPHABET to aid a-z sending and comparing. Tue May 27 15:03:25 1997 David L. Levine * tests/Future_Test.cpp: added ACE_Future{_Rep} template specializations. Tue May 27 07:49:03 1997 Douglas C. Schmidt * ace/Future.cpp: Made a few minor reformatting changes to Per's new Future enhancements. Tue May 27 14:19:14 1997 Per Andersson * ace/Future: Fixed self assignment bug in ACE_Future<>::operator=(). Fixed bug in ACE_Future<>::set(). It is now possible to do a ACE_Future<>::set() followed by a ACE_Future<>::get() without hanging forever. Moved all handling of the ACE_Future_Rep<> reference count into three new static ACE_Future_Rep<> member functions, create, attach, assign and detach. Removed one mutex from ACE_Future_Rep<> by changing the reference count from an ACE_Atomic_Op into a plain int. The ACE_Future_Rep<>::value_ready_mutex_ mutex is instead used for serializing changes to the reference count. (ACE_Future_Rep<>::attach, ACE_Future_Rep<>::detach()) Removed mutex from ACE_Future<> the serialization is performed by the ACE_Future_Rep<>::attach, ACE_Future_Rep<>::detach() and ACE_Future_Rep<>::assign() functions. Changed the ACE_Future<> default constructor to always create a ACE_Future_Rep<> * tests/Future_Test.cpp: Added test case for ACE_Future<>::set() followed by ACE_Future<>::get(). Added test for working ACE_Future::operator=(). The test is not fool proof but it crashes or hangs the test process with the old ACE_Future<> implementation. Mon May 26 14:19:14 1997 James C Hu * ace/OS.{h,i}: Fixed difftime implementation for cases where systems implement it as a macro. Fixed tempnam by adding ACE_LACKS_TEMPNAM. Sun May 25 11:36:22 1997 Douglas C. Schmidt * examples/Reactor/Misc: Removed test_handle_set.cpp since it is now completed subsumed by tests/Handle_Set_Test.cpp. * tests/Handle_Set_Test.cpp: Updated the test of the ACE_Handle_Set so that it shows how fast the iterator works. * ace/Reactor.cpp: Updated the Reactor to use the new ACE_Handle_Set_Iterator (whic no longer requires calling operator++ to advance the iterator). * ace/Handle_Set: Rewrote the ACE_Handle_Set_Iterator to speed it up. The result seems to be about 15% faster than the original. * ace/OS.h: Changed the MSB_MASK static constant into a macro and moved it from Handle_Set.cpp into OS.h, changing its name to ACE_MSB_MASK. * ace/Sched_Params.cpp (priority_max): Added another #ifdef for Chorus. Thanks to Wei Chiang for reporting this. * include/makeinclude/platform_sunos5_sunc++_orbix.GNU: added -l in front of orbixmt. Thanks to Wei Chiang for pointing this out. * ace/ACE.cpp: Changed the default port for NT so that it starts at 65279 rather than 65535. Hopefully, this will fix that annoying bug that has been plaguing us on NT 4.0 for months. Thanks to Goran Lowkrantz for reporting this. Sat May 24 23:42:32 1997 David L. Levine * performance-tests/Misc/test_naming.cpp (do_testing): replaced strlen () calls in character array size with constant expression. Sat May 24 12:07:48 1997 Douglas C. Schmidt * Released version 4.2.1 for testing. * ace/Reactor.cpp (bind): Fixed a stupid typo where I was using the ACE_REACTOR_EVENT_HANDLER macro instead of the ACE_REACTOR_HANDLE macro. Thanks to Detlef for reporting this. * ace/OS.i: Added a new macro called ACE_HAS_THR_MINSTACK to deal with weirdo mangling of names by Tandem. Thanks to Jan Perman for reporting this. * ace/OS.h: Added a new macro ACE_LACKS_PRI_T for those platforms using STHREADS (e.g., Tandem NonStop OS) that don't have pri_t defined. Thanks to Jan Perman for reporting this. * ace/Connector.cpp (connect): Make sure to save/restore errno since svc_handler->close() may change it. Thanks to Michael Hartman for reporting this. * include/makeinclude/platform_chorus.GNU: Added a new platform macros file for Chorus. Thanks to Wei Chang for this. * ace/OS.cpp (sched_params): Reordered the #ifdefs so that Chorus comes first. * ace/OS.i (sleep): If the platform defines ACE_HAS_CLOCK_GETTIME then we'll use the nanosleep() method rather than sleep(). * ace/OS.h: disabled THR_NEW_LWP for Chorus. Thanks to Wei Chang for reporting this. * ace/Sched_Params.cpp: ACE_SCHED_OTHER and ACE_SCHED_RR have the same value on Chorus. Thanks to Wei Chang for reporting this. Sat May 24 09:21:08 1997 David L. Levine * netsvcs/lib/Server_Logging_Handler.cpp: protected second ACE_Svc_Handler specialization for case that ACE_HAS_THREADS, when ACE_HAS_TLI. It had gotten lost in the last pass of that module. Thanks to Sandro Doro for reporting this problem. Sat May 24 03:19:38 1997 Nanbor Wang * ace/OS.i (sigaddset, sigdelset, sigemptyset, sigfillset, sigismember): Modified the implementation of these function so as to conform with POSIX standard. Basically all functions do the same things they did but more conservative protections are added. The modified semantic becomes, sigemptyset, sigfillset, sigaddset, sigdelset: return 0 if succeed, -1 otherwise. sigismember: returns 0 if signum is not in the set, 1 if signum is in the set, and -1 if error occurs. If error occured, errno will be set to one of the following value: EFAULT: sigset is not a valid address. EINVAL: signum is not a valid signal number. Notice that, so far, this is for NT only. Sat May 24 01:53:22 1997 James C Hu * performance-tests/Misc/test_naming.cpp (do_testing): Thanks to Sandro Doro, squashed a bug where we were trying to concatenate onto a string constant. Fri May 23 01:01:01 1997 Douglas C. Schmidt * ace/config-hpux-9.x.h: Added #define ACE_HAS_BROKEN_ENUMS #define ACE_HAS_IP_MULTICAST #define ACE_LACKS_GETPGID Thanks to Neil Cohen for reporting these. * ace/Thread_Manager.h: Made the private methods and data members protected so that subclasses can extend it. Thanks to Hamutal Yanay for this suggestion. Fri May 23 21:27:05 1997 David L. Levine * ace/Process.{h,cpp} (env_argv): added "const" to char * type in return type, for argument compatibility in call to ACE_OS::execve (). * ace/Process.cpp (spawn): removed unreachable return statement at end of function. Thanks to Dave Mayerhoefer for reporting the above two problems. * ace/{IOStream*,Makefile}: Split out templates into ace/IOStream_T.{h,cpp} files. This way, automatic template instantiation systems that require templates to be in separate files, such as on Irix 6.2, will be able to build IOStream_Test and the ACE_IOStream examples without warnings. (The ACE_IOSTREAM_BUILDING_TEMPLATE macro that did this only worked if ACE_TEMPLATES_REQUIRE_SOURCE was defined. It's no longer needed with the separate template files.) * tests/IOStream_Test.cpp, examples/IOStream/client/iostream_client.cpp, examples/IOStream/server/iostream_server.cpp: swapped ACE_Streambuf and ACE_Streambuf_T class names so that the template class has the "_T". And renamed ACE_IOStream_T for consistency. * ace/{IOStream.*,README}, tests/IOStream_Test.cpp, examples/IOStream/client/iostream_client.cpp, examples/IOStream/server/iostream_server.cpp, config-hpux-9.x*.h: Added ACE_LACKS_ACE_IOSTREAM protection so that these can easily be built on platforms that have trouble with ACE_IOStream. * Priority_Task_Test.cpp: removed close () because it didn't really close the Task, and added printout to main () after all tasks have been spawned to help debug non-termination. * ace/OS.cpp: (thr_create, with STHREADS only): *thr_handle was used but *thr_id had been set by ::thr_create, so threads never got activated. Fixed by using *thr_id instead of *thr_handle in the calls to ACE_OS::thr_setprio and ACE_OS::continue. Thanks to Jan Perman for reporting this problem. Fri May 23 20:12:33 1997 James C Hu * tests/SV_Shared_Memory_Test.cpp: Thanks to Chuck Gehr, fixed ASCII dependent code in the parent and child routines. Fri May 23 02:58:28 1997 Nanbor Wang * ace/OS.i (dlsym): Added ACE_USES_ASM_SYMBOL_IN_DLSYM, support for platforms (FreeBSD) which use assembly symbols instead of C symbols in dlsym (). * ace/config-freebsd[-pthread].h: Added flag ACE_HAS_CHARPTR_DL and ACE_USES_ASM_SYMBOL_IN_DLSYM. Thu May 22 08:14:21 1997 David L. Levine * tests/Tokens_Test.cpp: added deletes to avoid memory leaks. Wed May 21 16:15:48 1997 David L. Levine * ace/{config-irix6.2*.h,README}: removed ACE_LACKS_IOSTREAM_SETGET because tests won't build with it. Also, added ACE_LACKS_SIGNED_CHAR. * ace/IOStream.h: removed "const" from PUT_PROT of u_char * and void *. This should allow the IOStream test and examples to build and run on Irix platforms. Thanks to Torbjorn Lindgren and Amos Shapira for reporting this, and to James Hu for helping fix it. * ace/{OS.cpp,Sched_Params.cp} (Solaris only): use 0 min priority again, with workaround in ACE_OS::thr_create to not use ::pthread_attr_setschedparam () if the priority is 0. Instead, the priority of the newly created thread is set to 0 (if it wasn't created with 0) after the thread is created, with ::pthread_setschedparam (). Wed May 21 15:23:37 1997 Chris Cleeland * ace/Strategies_T.* (ACE_Hash_Addr): Eliminated the ADDR_T template parameter as a base class. It is now a wholly-contained member of the ACE_Hash_Addr<> with conversion operators. This caused problems on certain compilers, notably HP-UX. Wed May 21 14:13:36 1997 James C Hu * ace/OS.{h,i} (difftime): Added implementation to ACE_OS. I don't expect any problems since it is in ANSI. * ace/OS.{h,i} (tempnam): Added implementation to ACE_OS. Wed May 21 01:17:40 1997 Douglas C. Schmidt * Released version 4.2. * ace/Acceptor.cpp (activate_svc_handler ): Removed an unnecessary return 0. Thanks to Amos Shapira for reporting this. * ace/Message_Block.cpp (release): I believe that ACE_Message_Block::release() should return something other than 0, i.e., it should return the result of release_i(). Thanks to Amos Shapira for reporting this. Wed May 21 01:17:40 1997 Per Andersson * Moved most code from netsvcs/lib/Server_Logging_Handler.* to Server_Logging_Handler_T.*. Made template out of ACE_Server_Logging_Handler and ACE_Server_Logging_Acceptor. Factorised out as much as possible to reduce code duplication. The log record processing was moved from ACE_Server_Logging_Handler it should now be handled by the Log_Message_Receiver class. It is now possible to change how log records processed without changing code in Server_Logging_Handler* and it is possible to have several Server_Logging_Handlers that processes log records in different ways without duplicating all the server code. All that is needed is to write a new/change Log_Message_Receiver and instantiate a couple of templates. * netsvcs/lib/Server_Logging_Handler.h added lots of typedefs for making template instantiations easier. * netsvcs/lib/Server_Logging_Handler.h addad lots template instatiations, there are now 58 all together. * Added netsvc/lib/Log_Message_Receiver.{h,cpp}, implementstwo simple log message receivers that prints the log record to stderr. Tue May 20 13:50:17 1997 Douglas C. Schmidt * ace/config-hpux-9.x.h: Added a #define for ACE_HAS_BROKEN_ENUM, ACE_HAS_IP_MULTICAST, and ACE_LACKS_GETPGID. Thanks to Neil Cohen for reporting this. * include/makeinclude/platform_sunos5_sunc++_orbix.GNU: Replaced the use of -lITsrv with -lorbixmt. Thanks to Wei Chiang for this. * include/makeinclude/platform_osf1_3.2.GNU: Make sure that all the template repositories are in the same directory to work around problems with the C++ compiler. Also added -lrt to get the apps and tests to run. Thanks to Tom Dobridge for this help. Tue May 20 17:13:15 1997 Carlos O'Ryan * ace/config-hpux-10.x-nothread.h: * ace/config-hpux-10.x-aCC.h: * ace/Stream_Modules.cpp: ACE_LACKS_STREAM_MODULES is no longer needed, moving the inclusion of "ace/Task.h" to the beginning of "ace/Stream_Modules.h" solved the problem nicely. * ace/config-hpux-10.x.h: * ace/config-hpux-10.x-aCC.h: ACE_HAS_BROKEN_HPUX_TEMPLATES is not needed on newer HP/CXX compilers; further, old ones will not compile ACE even if the macro is defined. * ace/Timer_List_T.h: * ace/Timer_Queue_T.i: I moved the definition of ACE_Timer_Queue_T::lock() from the .i file to the .h file, HP/CXX gets completely confused otherwise. I also added a number of ACE_INLINE missing in the .i file. * ace/Stream_Modules.h: * ace/Stream_Modules.cpp: I had to move the inclusion of "ace/Task.h" outside of the protections against multiple inclusion for Stream_Modules.h. That seems to solve the ciclyc dependancy for Task->Module->Stream_Module->Task. BTW, the same thing was already done in "ace/Log_Record.h". I'll try to remove the ACE_LACKS_STREAM_MODULES macro, it seems that the last change makes it redundant. * ace/Signal.cpp: HP/CXX compiler will not close the library unless ACE_MAX_SIGNAL_HANDLERS is defined as "const size_t". The previous definition ("size_t") did compile tough. * ace/Log_Record.h: We need to include "ace/ACE.h" before "ace/Log_Priority.h". * ace/Log_Priority.h: HP/CXX compiler seems to reserve a few bits in enums, so the ENSURE_32_BITS trick would result in a compile time error. Since HP enums are always 32 bits we could skip the definition for ENSURE_32_BITS altogether, but I prefer to keep a consistent namespace across plaforms, I have found a value for ENSURE_32_BITS that seems to work. * include/makeinclude/platform_hpux.GNU: Some options to improve compile time, since we use explicit template instantiation there is no need for a ptcomp o ptlink phase. Tue May 20 09:10:18 1997 Nanbor Wang * ace/config-freebsd-pthread.h: * ace/config-freebsd.h: Removed "FreeBSD" directive because gcc on FreeBSD defines __FreeBSD__ automatically. * ace/OS.i (sigaddset, sigdelset, sigismember): Added range checking to these functions in order to avoid disasters. Sig number should be between 1 and NSIG. (sigwait): Changed ifdef (FreeBSD) to ifdef (__FreeBSD__) since compiler does it for us. Tue May 20 08:41:11 1997 David L. Levine * examples/Threads/tss2.cpp: added #include of ace/Thread.h because Sun C++ 4.1 needs it. Mon May 19 16:04:32 1997 David L. Levine * bin/create_ace_build: changed startup line for compatibility with bash. This startup line lets the script run without hard-coding the full path to the perl executable, as long as perl is on the user's PATH. Mon May 19 12:45:21 1997 Douglas C. Schmidt * examples/Threads/reader_writer.cpp: Changed the code so that we don't try to treat thread ids as ints! Thanks to Chuck Gehr for reporting this. Sun May 18 21:57:54 1997 David L. Levine * examples/Threads/tss2.cpp: added second parameter to ACE_TSS_Singleton template specialization. Sun May 18 09:20:15 1997 Douglas C. Schmidt * examples/Threads/TSS_Data.h: Added the second parameter for ACE_SYNCH_MUTEX since Rich and Chris updated ACE_TSS_Singleton. * ace/Singleton.cpp: Added the updated version of ACE_TSS_Singleton that implements the Double-Checked Locking pattern. Thanks to Rich Christy and Chris Lahey for this. * ace/Strategies_T.cpp (activate_svc_handler): Fixed the logic so that a value is always returned. Thanks to David Levine for noticing this. Sun May 18 07:25:11 1997 David L. Levine * netsvcs/lib/Server_Logging_Handler.cpp: removed second ACE_Svc_Handler specialization for non-threaded, has-TLI case. That's because it is the same as the first; the only difference was that one specialized with ACE_SYNCH and the other with ACE_NULL_SYNCH. Without threads, those macros expand to the same thing. Thanks Sandro Doro for reporting this. * examples/Threads/tss2.cpp: added ACE_TSS template specialization. Sat May 17 23:24:34 1997 Nanbor Wang * ace/OS.i (sigismember): Corrected the code when ACE_LACKS_SIGSET. Sat May 17 00:06:04 1997 * examples/ASX/Event_Server/Transceiver/transceiver.cpp (Event_Transceiver): Corrected signal registration for Win32. * apps/Gateway/Gateway/Gateway.cpp (parse_args): Since the Connector is now fixed, non-blocking is now working fine. * ace/Connector.cpp (handle_close,create_AST): Made sure we close down the svc_handler on error. * ace/{Acceptor.cpp,Connector.cpp} (activate_svc_handler): The if statement logic in these methods was incorrect. * ace/SOCK_Connector.cpp (connect): Just like in complete(), we start out with non-blocking disabled on the . * ace/OS.h: When ACE_LACKS_SIGSET is defined, changed the definition of sigset_t from void * to unsigned int. Sat May 17 12:25:22 1997 Douglas C. Schmidt * ace/{Acceptor,Connector,Strategies_T}: Make sure to either enable or disable ACE_NONBLOCK (depending on the flags). This ensures that we always start with the I/O mode set to a deterministic state. Thanks to Irfan for suggesting this. * ace/Connector: Added a new "flags" parameter to the ACE_Connector and ACE_Strategy_Connector which keeps track of flags that control how Svc_Handler are initialized prior to being activated. * ace/Strategies_T.cpp (activate_svc_handler): Make sure to set the peer's handle into non-blocking mode *before* calling the Svc_Handler's open() method. This ensures that things are set up correctly when this hook is called. Sat May 17 02:19:27 1997 Nanbor Wang * ace/config-freebsd.h (ACE_HAS_BROKEN_TIMESPEC_MEMBERS): * ace/OS.i (set, timestruct_t, nanosleep): * ace/High_Res_Timer.cpp (elapsed_time): * ace/README: Added ACE_HAS_BROKEN_TIMESPEC_MEMBERS so that we can fix that problem FreeBSD 2.1.x brings by defining timespec as { time_t ts_sec ; long ts_nsec }. Notice: This is highly non-portable. Please refer to ACE code and see how to write portable. Fortunately, only older versions of FreeBSD have this. Yesterday's hack didn't work, so, it's removed. Thanks to Satoshi Ueno for reporting and helping debug on his FreeBSD 2.1.7R box. Sat May 17 00:06:04 1997 * apps/Gateway/Gateway/Proxy_Handler.cpp (open): Turn on non-blocking I/O only after the Channel is done sending the id to the Peer. * apps/Gateway/Gateway/Gateway.cpp: - Added necessary DLL build macros. - Removed error checking for Reactor::remove_handler() for STDIN as STDIN is never registered with the Reactor on Win32. - Fixed the registration of SIGINT. - blocking_semantics_ should be 1 when blocking is on and not 0. - Since the Connector is currently broken with respect to non-blocking connects, I have put a temporary fix such that only blocking connects are done. Revert this after the Connector is fixed. * apps/Gateway/Gateway/Event_Channel.cpp: - Only if socket_queue_size > 0, do we set a new value. - In reinitiate_proxy_connection(), we must unbind the proxy from the proxy_map_ as we are no longer responsible for this. The Connector should now be responsible for this. * apps/Gateway/Gateway/Concrete_Proxy_Handlers.cpp: Added necessary DLL build macros. * apps/Gateway/Peer/Peer.cpp: - Added include file and necessary DLL build macros. - Removed error checking for Reactor::remove_handler() for STDIN as STDIN is never registered with the Reactor on Win32. - Fixed the registration of SIGINT. * apps/Gateway/{Peer,Gateway}: Added Win32 makefiles. * ace/ACE.cpp (read_adapter): Handle for the read_adapter should always be STDIN. Fri May 16 18:43:17 1997 Nanbor Wang * ace/config-freebsd.h: Minor modification for working on FreeBSD 2.1.x platform. Added includion of and . Defined ACE_HAS_POSIX_TIME for 2.1.x. Redefine timespec to timeval to hack around a bug on 2.1.x. Thanks to Satoshi Ueno for reporting this. Fri May 16 12:25:32 1997 Douglas C. Schmidt * netsvcs/lib: Reverted back to the original Server_Logging_Handler behavior since the new version is breaking GCC's templates. * ace/Log_Record.h: need to #include "ace/ACE.h" before "ace/Log_Priority.h" so that "Log_Priority.h" sees the configuration stuff (otherwise the following fix won't work). * ace/Log_Priority.h: Added a workaround for lame C++ compilers like the one on HP/UX that can't support large enums. Thanks to Robert Head for reporting this. * ace/Singleton: Added the new ACE_TSS_Singleton, which stores Singletons in thread-specific storage. Thanks to Chris Lahey and Rich Christy for this. * ace/OS.h: Removed the ACE_Singleton_Strategy since we don't need it anymore. * netsvcs/lib: Added the new Server_Logging_Handler_T.* and Log_Message_Receiver.* netsvcs. Thanks to Per Andersson for contributing these. * examples/Misc/Makefile: Removed the XtReactor tests from the Makefile until we figure out a good way to get them integrated with the appropriate libraries. * ace/config-irix6.2-sgic++-nothread.h: Added the following: ACE_LACKS_LINEBUFFERED_STREAMBUF ACE_HAS_SETOWN ACE_HAS_SYSENT_H ACE_HAS_SYSINFO Thanks to Torbjorn Lindgren for reporting this. * ace/Proactor.cpp: Changed the use of lock() to mutex() since we changed the name in Timer_Queue. * ace/Timer_Queue_T.i: Changed the name of the lock() method to mutex() to work around compile problems with HP/UX. Thanks to Robert Head for reporting this workaround. * ace/config-irix5.3-sgic++.h: Made a few changes to get ACE to work on IRIX 5.3. Thanks to Eugene R. Somdahl for these fixes. * ace/OS: Added calloc() implementation. I don't know how this managed to fall through the cracks! * include/makeinclude/platform_osf1_4.0.GNU: Added a few more tweaks courtesy of James Johnson. * include/makeinclude/platform_osf1_3.2.GNU: Added a few more tweaks courtesy of Tom Dobridge. * include/makeinclude/platform_osf1_4.0.GNU (DLD): Added -shared -expect_unresolved '*' so that calls to the linker via cxx will work correctly. Thanks to Thilo for this. * include/makeinclude/platform_chorus.GNU: Removed CLASSIXDIR = /usr/home/chiang/chorus/merge/extended-i386at, added the nostdinc flag, and removed extra whitespace. Thanks to Wei Chiang for reporting this. Fri May 16 00:02:33 1997 * ace/ReactorEx: Even though changes to the owner field are very well synchronized within the class code, the owner() accessor is public and can be called from out side the class. Therefore, I have added a owner_i() that does not do locking. All internal calls to check the owner will use the new accessor, whereas application code outside the class can still use the old synchronized accessor. Fri May 16 11:39:51 1997 Nanbor Wang * ace/OS.i (sigaddset, sigdelset, sigemptyset, sigfillset, sigismember): Added implementation when ACE_LACKS_SIGSET so that platforms (NT?) without these functions can still manipulate sigset_t variables. Thu May 15 22:19:59 1997 Douglas C. Schmidt * examples/ASX/Event_Server/Event_Server: Removed the THR_DETACHED flag from options so that we can wait on the threads correctly. * ace/Stream_Modules.cpp: Changed the logic for determining when to compile the Stream_Modules.cpp code. Now, we compile it unless ACE_LACKS_STREAM_MODULES is defined (i.e., we're on HP/UX 10.x using aCC). * netsvcs/lib/Server_Logging_Handler.cpp (handle_input): Fixed a bug in handle_input() where we need to return the result, not just 0 or 1. Thanks to Per Andersson for reporting this. * ace/Log_Priority.h: Changed the values of the enums in ACE_Log_Priority so that they can be dealt with via bitwise operations. Thanks to Per Andersson for this. * include/makeinclude/platform_osf1_4.0.GNU: Added support for templates. Thanks to Steve Huston and James Johnson for verifying this. * include/makeinclude/platform_osf1_3.2.GNU: Got rid of all unresolved symbol warnings using cxx 5.5 on DEC/OSF v3.2 by using the linker flag "-expect_unresolved '*'." In addition, I added -threads to the DCFLAGS macro. Thanks to Tom Dobridge for this. * ace/Strategies_T: Added a minor ACE_Reactive_Strategy extension to enable non-blocking I/O in active_svc_handler(). Thanks to Arturo Montes for contributing this. * ace/config-osf1-4.0[-g++].h: Added a #define for ACE_POLL_IS_BROKEN since DEC UNIX's poll() doesn't seem to work correctly as a highres timer. Thanks to James Johnson and Thilo for reporting this. * examples/Threads/thread_specific.cpp (worker): Changes size_t i back to int i to avoid a signed/unsigned complaint. Thanks to David Levine for reporting this. * ace/config-chorus.h: Added ACE_LACKS_MPROTECT, ACE_HAS_IP_MULTICAST, and ACE_LACKS_SOCKETPAIR to the Chorus port. Thanks to Wei Chiang for reporting this. * ace/OS.i: Added ACE_LACKS_ACCESS to the Chorus config file and VxWorks config file, as well as to OS.i. : * ace/OS.i: Added ACE_LACKS_GETSERVBYNAME to the Chorus config file and VxWorks config file, as well as to OS.i. * ace/OS.i: Added ACE_LACKS_SBRK to the Chorus config file, as well as to the definition of the ACE_OS::sbrk() function. * ace/OS.h: Removed #include /**/ from the Chorus-specific part of OS.h since it's already included elsewhere. Thanks to Wei Chiang for reporting this. * ace/Reactor: Added a typedef for ACE_Reactor_Token to ACE_Null_Mutex for situations where ACE_MT_SAFE is *disabled*. This makes the code more consistent. * ace/Reactor: Added an interface that makes it possible to acquire a reference to the that is used to serialize the internal Reactor's processing logic. This can be useful for situations where you need to avoid deadlock efficiently when are used in multiple threads. Thanks to Detlef for pointing out the utility of this. Thu May 15 23:34:30 1997 Tim H. Harrison * ace/Process_Manager.cpp (spawn_n): Changed ACE_Process_Manager::start_n to ACE_Process_Manager::spawn_n. Thu May 15 15:39:13 1997 Carlos O'Ryan * include/makeinclude/platform_hpux.GNU: * ace/config-hpux-10.x.h: * ace/config-hpux-10.x-nothread.h: HP/CXX cannot achieve template closure, not even using the dummy exec trick: apparently the repository gets a bit corrupted. HP/CXX (version 10.24) support explicit template instantiation, I believe this to be a superior method for ensuring library closure (and it works). * ace/Task_T.cpp: * ace/Stream_Modules.cpp: I have changed the hack to compile under HP-UX, "ace/Module.h" is once more included in ace/Task_T.cpp, but "ace/Stream_Modules.cpp" is protected: it will be empty under HP-UX unless included from the "ace/Stream_Modules.h". I still believe that there is a problem in the cyclic dependancy Task -> Module -> Thru_Task -> Task; but it seems that the current hack works better. * ace/OS.h: Defining ACE_UNUSED_ARG as (a) for HP/CXX does not work so I moved it to the SGI and GCC definition. * ace/OS.i: More unused args. * ace/Handle_Set.h: Removed the extra qualification for ACE_Handle_Set::NBITS, HP/CXX sends a lot of warnings with that. * ace/IOStream.h: It included "IOStream.cpp" I think that "ace/IOStream.cpp" is better. * ace/Local_Name_Space_T.h: Ditto for "Local_Name_Space.h" Thu May 15 17:40:06 1997 * ace/ReactorEx.i (owner): Since changes to the owner field are very well synchronized, we do not need to synchronize this accessor. * ace/IOStream.h: Added /**/ after #include directives. * ace: Update Win32 makefiles to include UNICODE make option. Thu May 15 08:54:53 1997 David L. Levine * Makefile (release, cleanrelease): use -prune option to "find" instead of filtering its output. Thanks to Chris Cleeland for suggesting this. Wed May 14 21:52:22 1997 Douglas C. Schmidt * ace/UPIPE_Stream.cpp (control): We need to "cast away const" so that this method can call the Stream's control() method (which is non-const). Thanks to David Levine for locating this. * ace/Singleton.cpp: Finished re-implementing ACE_Singleton. * examples/ASX/Message_Queue/buffer_stream.cpp: Updated this example to illustrate (1) how filters work in an ACE_Stream and (2) to make sure that resizing buffers work. * ace/UPIPE_Stream.h: Changed the signature of control() to take an int so that it will match the base class signature. * ace/Singleton.h: The new ACE_SingletonEx isn't working yet. I've #ifdef'd it out until it works. * examples/Threads/tss2.cpp: Updated this test program to illustrate the use of the new ACE_SingletonEx class. * ace/Singleton.h: Added a new instance() method to the ACE Singleton that can be used to set the Singleton. This is useful for situations where the type being used as the Singleton doesn't have a default constructor. Thanks to Arturo Montes for this suggestion. * ace/Singleton: Factored out common code in the Singleton and SingletonEx implementations so they will be cleaner and more portable. * ace/Local_Name_Space_T.h, ace/Map_Manager.h, ace/Hash_Map_Manager.h, ace/SString.h, ace/Hash_Map_Manager.cpp: Changed all uses of the identifier "allocator" to "alloc" to avoid conflicts with MSVC++ STL 5.0. Thanks to William L. Gerecke for reporting this. * ace/config-aix-4.[12].x.h: Replaces ACE_LACKS_PTHREAD_THR_SIGSETMASK with ACE_HAS_SIGTHREADMASK. Thanks to Chris Lahey for this. * ace/OS.i (thr_sigsetmask): Added the ACE_HAS_SIGTHREADMASK support for AIX. Thanks to Chris Lahey for this. * ace/Singleton: Added the new ACE_SingletonEx, which supports both heap-based and thread-specific storage-based Singletons. Thanks to Chris Lahey for this. * ace/OS.h: Added the new ACE_Singleton_Strategy to OS.h. Thanks to Chris Lahey for this. Wed May 14 16:32:57 1997 David L. Levine * Makefile: use cpio instead of tar to allow easy filtering of CVS files from the release. Wed May 14 15:00:58 1997 * examples/IPC_SAP/SOCK_SAP/CPP-inclient.cpp (main): Fixed code. * examples/Naming: Replaced multiple makefiles with one makefile. * ace/OS.h: Added UNICODE support for some #defines. * OS.i (vsprintf): Added support for this in ACE_OS. * OS.cpp (socket_init && socket_fini): It is ok to print out cout and cerr messages from here (as the C runtime library is still attached) but it is *not* ok to print out ACE_DEBUG messages. God only knows the state of the thread specific LogMsg instance when the process reaches this piece of code. Also added a (handy) sprintf that has the following prototype: sprintf (wchar_t *buf, const char *format, ...) * ace/Process: UNICODE fixes. * tests: Fixed the following such that they work with UNICODE: Pipe_Test.cpp Process_Mutex_Test.cpp Process_Strategy_Test.cpp Time_Service_Test.cpp Tokens_Test.cpp * Time_Service_Test.cpp (main): Fixed typo in the svc.conf filename for the clerk. Tue May 13 18:56:27 1997 Douglas C. Schmidt * ace/IOStream.h: To make C++ compilers happy I added the following changes by modifying ACE_IOStream & operator>>( ACE_Time_Value *& tv ); to be ACE_IOStream & operator>>( ACE_Time_Value *& tv ); Thanks to Chuck Gehr for this fix. Tue May 13 21:32:12 1997 David L. Levine * ace/Process.cpp (~ACE_Process_Options): delete command_line_buf_ was missing the []. * examples/Threads/process_manager.cpp (main): avoid compiler warning due to implicit creation of temporary by explicitly creating an ACE_Process_Options instance. It gets passed to ACE_Process_Manager::spawn (ACE_Process_Options &), which takes a non-const reference. Tue May 13 18:08:32 1997 * examples/ASX/UPIPE_Event_Server: Made enough fixes for this to compile on Win32 but more work need to be done for this to work on Win32. * ace/OS.i (kill): The error result for ::OpenProcess() is null and *not* invalid handle. * ace/Process.i (kill): Changed the implementation to remove the ACE_OS::kill() code from ACE_Process::kill() for Win32. This allows us to avoid calling ::OpenProcess() unnecessarily. * tests: For Win32, added Reactor_Exceptions_Test and Priority_Tasks_Tests. Files changes include run_tests.bat, tests.mak, and tests.mdp. * tests/Future_Test.cpp (main): Fixed memory leaks in main() and in name_i(). * tests/Thread_Pool_Test.cpp (open): The loop was messed up causing memory leaks. I fixed it. * ace/UPIPE_Stream.cpp (close): I am not sure why the stream was closed with M_DELETE_NONE. This indicates that close() should not delete any Tasks. This caused a memory leak as the Tasks in the Tail and Head modules were not deleted. I have removed this to fix the memory leak. Also added a destructor such that mb_last_ is released if it is still around. Tue May 13 16:48:18 1997 James C Hu * ace/Process.cpp: Added implementations to new interfaces to ACE_Process_Options::setenv (char *envp[]), and ACE_Process_Options::command_line (char *argv[]). * apps/JAWS/server/HTTP_Response.cpp: Required changes so that CGI processing will work with the new ACE_Process class. * apps/JAWS/stress_testing/benchd.cpp: Requried changes due to changes in the ACE_Process interface. Tue May 13 15:22:01 1997 Tim H. Harrison * ace/Process_Manager.h: Changed ACE_Process_Manager::start to ACE_Process_Manager::spawn. * ace/Process.cpp (spawn): The check for a null environment argv was incorrect. Thanks to Nanbor for finding this. Mon May 12 18:59:39 1997 David L. Levine * ace/config-mvs.h: conditionally use ACE_HAS_UCONTEXT_T or ACE_LACKS_UCONTEXT_H depending on __COMPILER_VER__. Thanks to Chuck Gehr for this fix. * OS.h, OS.cpp (thr_create), Task.h, Thread.h, Thread_Manager.h: use ACE_DEFAULT_THREAD_PRIORITY instead of -1, because -1 is a valid priority on Win32. Thanks to Irfan for discovering this problem with Priority_Task_Test. * ace/Thread_Manager.cpp (wait_grp,wait_task): changed type of loop index "i" from size_t to int to avoid signed/unsigned comparison. Mon May 12 18:41:19 1997 Nanbor Wang * ace/config-freebsd-pthread.h: * ace/config-freebsd.h: Added ACE_LACKS_RWLOCK_T to FreeBSD config files. Thanks to Amancio Hasty for noticing this. Mon May 12 17:11:50 1997 Tim H. Harrison * ace/Process.h: Changed ACE_Process::start to ACE_Process::spawn. Added new argv-style methods for ACE_Process::setenv and ACE_Process::command_line. These new argv-style methods do not have implementations yet. Mon May 12 15:27:41 1997 Douglas C. Schmidt * ace/config-aix-4.[12].x.h: Added ACE_HAS_EXCEPTIONS to the AIX 4.* config files. Thanks to Chris Lahey for this. Mon May 12 13:49:54 1997 * ace/Thread_Manager.cpp (wait): We have to make sure that while we wait for these threads to exit, we do not have the lock. Therefore we make a copy of all interesting entries and let go of the lock. We then do the join(). * ace/Task.cpp (wait): Removed the extra locking in wait(). The Thread Manager will handle this correctly. * ace/ACE.cpp (register_stdin_handler): Changed the options such that the Thread Manager used for the adapter is passed along to the method executed by the new thread. We can then notify the thread manager when this adapter thread exits. * examples/ASX/Event_Server/Event_Server: Changed the way the reference count was being kept on the context. Now, the reference count starts with zero and every instance and every active Task increments it. This works well as Task::close() is called one from the module being deleted and from the active thread going away. Mon May 12 11:11:51 1997 * ace/Process.*: Removed the old ACE_Process and replaced it with what was ACE_ProcessEx. * ace/Process_Manager.{i,cpp}: Updated to use the new ACE_Process API. Mon May 12 08:16:38 1997 David L. Levine * ace/config-freebsd*.h: added support for FreeBSD 2.1.7R. Thanks to Satoshi Ueno for figuring out the differences and to Nanbor Wang for updating the config files. Sun May 11 17:36:59 1997 * tests/{Pipe_Test.cpp, Process_Mutex_Test.cpp, Time_Service_Test.cpp, Token_Service_Test.cpp}: Updated these files to use the new ACE_Process API. Sun May 11 14:40:51 1997 David L. Levine * ace/config-osf1-4.0.h: put back ACE_HAS_RECURSIVE_THR_EXIT_SEMANTICS. * ace/ACE_Process.cpp (ACE_Process_Options ctor): reordered initializers to match declaration order. Sat May 10 19:44:28 1997 * Process.h: ACE_ProcessEx now works on Solaris and NT. There have been some changes to the API. ACE_ProcessEx::cl_options and ACE_ProcessEx::path have been combined into ACE_ProcessEx::command_line. ACE_ProcessEx::command_line must be used to specify path and command-line arguments. There is also a second ACE_ProcessEx::setenv method that allows applications to set environment variables in a "VAR=VALUE" format. Sat May 10 10:51:11 1997 Douglas C. Schmidt * ace/config-osf1-3.2.h: Added three new flags to the config file for OSF/1 3.2: #define ACE_LACKS_SETSCHED #define ACE_LACKS_RWLOCK_T #define ACE_LACKS_GETPGID Thanks to Tom Dobridge for reporting this. Fri May 09 16:37:48 1997 David L. Levine * ace/config-osf1-4.0.h: added DEC_CXX. * ace/config-osf1-4.0-g++.h: removed commented-out ACE_HAS_RECURSIVE_THR_EXIT_SEMANTICS. Thanks to Thilo Kielmann for patches for the above two OSF config files. * ace/Sched_Params.cpp (priority_min): On Solaris (with STHREADS), don't return priority of 0 because ::pthread_attr_setschedparam () will refuse to use it (with EINVAL). So, bump priority of 0 up to 1. * tests/Priority_Task_Test.cpp: retry the task activation with priority 0 if it fails with non-zero priority. This lets the test run on platforms such as Linux that only let the superuser set non-zero priority. * ace/ACE_Process.cpp (ACE_Process_Options ctor): reordered initializers to match declaration order. * examples/Connection/non_blocking/test_lsock_acceptor.cpp: fixed typo in template specializations: ACE_LSOCK_ACCEPTOR instead of ACE_SOCK_LACCEPTOR. Fri May 9 13:07:20 1997 Douglas C. Schmidt * ace/UNIX_Addr: Changed the return values of all the set() methods so that they conform to the signature used by the INET_Addrs. * examples/Connection/non-blocking: Added two new test programs, test_lsock_{connector,acceptor}.cpp that * ace/LSOCK_Stream.cpp: Revised the get_remote_addr() method so that it uses the underlying ACE_SOCK::get_remote_addr() method rather than the get_local_addr() method. Hopefully, this will fix an ACE bug with UNIX domain sockets. Thanks to Paul Han for reporting the problem and the fix. * include/makeinclude/platform_aix4.2.GNU (LLIBS): Changed LLIBS = -lC_r -lC -lpthreads -lbsd -ltli_r -ldl -lc_r -lm -lc $(ACELIB) to LLIBS = -ltli_r -ldl $(ACELIB) MakeC++SharedLib_r includes all the other libs automatically in the search. * apps/Gateway/Gateway/Proxy_Handler.h: Moved the handle_close() method into the public section since the Connector now calls it. * ace/Containers.cpp: Updated all the operator= methods so that they no longer try to return *this. Thanks to Chris Lahey for reporting this. * ace/IOStream.h: Replaced __alpha with DIGITAL_UNIX && DEC_CXX. Thanks to Thilo for reporting this. * build/gcc/tests/Simple_Message_Block_Test.cpp (main): Changed the use of ACE_Mutex to ACE_SYNCH_MUTEX so that everything will build correctly on non-MT platforms. * ace/Timer_{Heap,List}_T.cpp: To ensure backwards compatibility with the old "int" return value of Timer_*::schedule() we must cast the long value to int before returning it. Thanks to Thilo Kielmann for reporting this. * ace/Acceptor.cpp, ace/Connector.cpp: If an active or passive connection times out and the Connector or Acceptor calls the handle_timeout() method of the Svc_Handler, we now keep track of whether the handle_timeout() method returns -1. If so, we call handle_close() on the Svc_Handler automatically. Thanks to Michael Hartman for suggesting this. * tests/IOStream_Test.cpp: Fixed this test so that it runs on non-MT platforms. * ace/Module.cpp: Changed the implementation of the close_i() method so that it will wait for all active threads in a Task to exit before deleting the task. * ace/Task: Added a wait() method on an ACE_Task that will use the new ACE_Thread_Manager::wait_task() method to block until all threads have shutdown in a Task. * ace/Thread_Manager: Finally implemented the wait_task() and wait_grp() interfaces on ACE_Thread_Manager. * ace/SOCK_Dgram.cpp: Added a timed recv() operation. Thanks to Hongbo Xu for contributing this. * ace/Timer_Queue_T.cpp: Added #include "ace/Synch.h" to keep the DEC C++ compiler happy. Thanks to James CE Johnson for this. * ace/Containers.i (size): Changed to so that this compiles on the Alpha. Thanks to James CE Johnson for this. * ace/IOStream.h: Include the std_macros header on the Alpha. Thanks to James CE Johnson for this. * include/makeinclude/platform_osf1_4.0.GNU (SOBUILD): Removed -lACE from the link line. Thanks to James CE Johnson for this. * tests/Timer_Queue_Test.cpp: Changed all the int timer ids to long so that the test will work on DEC ALPHAs. Thanks to Thilo Kielmann for reporting this. * ace/Process: Fixed a number of compile problems for UNIX. * ace/Process.h: Changed the methods named stdin/stdout/stderr to std_in/std_out/std_err to avoid name clashes with the standard C library. * ace/OS: Changed the use of ACE_Unbounded_Set to ACE_Unbounded_Stack in order to get the appropriate semantics for TSS cleanup on NT. * ace/Containers: Enhanced the ACE_Unbounded_Stack class so that it supports insert()/remove()/find() methods. These rather unorthodox methods are useful for implementing the TSS semantics required by OS.cpp. * ace/Containers: Revised all the interfaces for the various containers so that they all have the same "look and feel." Fri May 9 00:00:21 1997 James C Hu * apps/JAWS/server/HTTP_Request.{h,cpp}: Added a uritopath translation method, so that CGI location can be computed as it is searched. Added methods to access the parsed headers. * apps/JAWS/server/HTTP_Response.{h,cpp}: Flushed out the implementation of cgi_response () method. If all goes well, it should be able to execute a CGI program. I don't set the IO handles to point at the socket handle yet. * apps/JAWS/server/README: Updated description of JAWS behavior. Thu May 8 18:04:14 1997 Irfan Pyarali * ace/Containers: Made the return values of Container methods more consistant with other components of ACE (i.e., 0 for success, -1 for failure). * ace/Containers (ACE_Unbounded_Stack::delete_all_nodes): Fixed subtle bug in delete_all_nodes. * ace/OS.cpp (ACE_TSS_Cleanup::exit): Changed because of return value changes in ACE containers. * Containers: Added size methods to stack containers and consolidated friendship between ACE_Unbounded_Stack_Iterator and ACE_Unbounded_Stack * tests/Message_Block_Test.cpp: I was incorrect about each data block having its own lock. Since *many* data blocks can share the same lock, for the case of message block chains, we would like to optimize locking. Therefore, the first guy in the chain grabs the lock and passes it to the continuation chain. When each guy in the chain gets it, it compares the passed lock to its own locking strategy. If it is the same lock, no need to acquire the lock again. If our lock is different, then we do our own locking. * tests/Simple_Message_Block_Test.cpp: This test program is a torture test that illustrates how ACE_Message_Block reference counting works, how and when locks are used, how memory is managed, and how continuation chains of message blocks are made. Ideally used with purify :-) * tests: Added new test. Following changed: Makefile run_tests.bat run_tests.sh tests.mak tests.mdp Thu May 8 18:04:14 1997 James C Hu * include/makeinclude/platform_irix6.2_sgic++.GNU: Moved SGI C++ options out of CPPFLAGS into CCFLAGS so that gcc won't emit diagnostics during a make depend. Thu May 8 11:52:41 1997 Chris Cleeland * ace/{Task,Thread}.h: Added documentation describing thread priority determination to methods where priority is an [optional] argument. Note that if you want to inspect the REAL documentation, you should look at the code for ACE_OS::thr_create(). But that's convoluted and touchy. * ace/Strategies_T.h (ACE_Cached_Connection_Strategy): Added documentation for this class. Thu May 08 00:10:00 1997 * ace/Process.*: This is the first pass at the new ACE_Process class. It is now called ACE_ProcessEx. When it is completely ported to Solaris, we'll replace the current ACE_Process with ACE_ProcessEx. * examples/OS/Process/process.cpp: Added some examples for the new ACE_ProcessEx. Wed May 07 21:58:29 1997 * ace/Message_Block.h: ACE_Data_Block calling delete on the ACE_Message_Block was incorrect. This was a hack to simplify the locking issues! However this optimization leaded to incorrect code. Therefore I have taken this behavior out. The new implementation will lock and unlock multiple times in the case when there are message_blocks in the continuation field, all of which point to same data block. However, this is a strange case that can be optimized later. For now correct code is more important. Also, the continuation message blocks are only deleted in the release() method and not in the destructor. This will ensure that if message blocks of the stack are chained together, we will not call release on message blocks of the stack. Also note that release() should only be called on message blocks that have been dynamically allocated. Message blocks of the stack will clean up properly when the activation record of the method completes. Dynamically allocated messages blocks should *never* be chained with message blocks allocated of the stack. * examples/ASX/Event_Server/Event_Server/Peer_Router.h: Removed empty definitions of assignment operator and copy constructor. * examples/ASX/Event_Server/Event_Server/event_server.cpp (handle_input): Added code here will make sure we actually wait for the user to type something. On platforms like Win32, handle_input() is called prematurely (even when there is no data). * examples/ASX/Event_Server/Event_Server/Peer_Router.cpp: Changed a log message. Wed May 7 22:55:00 1997 James C Hu * JAWS/server/*: Debugging changes! GET and HEAD both work now. As well as changes to make it compile cleanly on VXWORKS, as reported by David. Wed May 07 16:05:39 1997 David L. Levine * ace/Makefile: added Timer_Wheel to FILES. Thanks to Thilo Kielmann for reporting this. * include/makeinclude/platform_irix6.2_sgic++.GNU: enabled CPPFLAGS to instantiate all templates so that gatewayd will build. Thanks to Nathan N. Vuong for reporting this problem and Eric Dean Russell for supplying and the fix. * ace/Map_Manager.h: updated comments to indicate that find functions return a non-negative integer if the item is found. * ace/Map_Manager.cpp (find_i (const EXT_ID &, INT_ID &)): return index instead of 0 if the item is found, to be consistent with find_i (const EXT_ID &). * ace/IOStream.cpp (ACE_Streambuf_T ctor): added initializations of eback_saved_ and pbase_saved_ to avoid unitialized memory read reports from Purify. Tue May 6 07:39:25 1997 Douglas C. Schmidt * ace/Service_Config.cpp (open): Make sure to perform the daemonization logic first so that we get a new process created before initializing reactors, etc. Thanks to Adrian Salt for reporting this. * examples/IPC_SAP/SOCK_SAP/CPP-inserver-poll.cpp (main): Changed ACE::INVALID_HANDLE to ACE_INVALID_HANDLE. Thanks to Dani Flexer for reporting this. * tests/Conn_Test.cpp (compare_i): Changed the comparison from a1 == a2 to a1 != a2 since this appears to be what is needed. We need to improve the comments here! * tests/Conn_Test.cpp: Split the definition of the Svc_Handler template into its own Conn_Test.h file to work around "features" with AIX C++. Thanks to Chris Lahey for reporting this. * ace/Containers.cpp: Fixed a bug in the set() method for ACE_Unbounded_Queue. Again, thank goodness for cs242! * ace/Containers.cpp: Fixed a bug in the enqueue_head() logic for ACE_Unbounded_Queue. Thank goodness for cs242 ;-). * ace/Containers.cpp: Added a destructor for ACE_Node to keep the compilers happy. Tue May 06 11:31:49 1997 David L. Levine * netsvcs/lib/*.cpp: removed break statements after ACE_RETURNs to avoid unreachable statement warnings from GHS. * ace/OS.cpp (mktime): added time_t cast of -1 (error) return to avoid compiler warning. * ace/config-vxworks-ghs-1.8.h: added ACE_LACKS_SIGNED_CHAR. * ace/Containers.cpp (dequeue_head): fixed typos in variable names. * examples/Service_Configurator/IPC-tests/server/Handle_Thr_Stream.cpp: removed #ifdef ACE_HAS_TLI around some template specializations so that this subproject will build on platforms non-TLI platforms such as Linux. Tue May 6 17:02:54 1997 James C Hu * ace/OS.{h,i}: Added strftime (). Also, enhanced strcasecmp implementation to account for lexicographical ordering for mismatches. * apps/JAWS/server/Parse_Headers.{h,cpp} (class Headers_Map): Changed signature of casting operator to return a pointer rather than a reference to a constant pointer, to fix anachronism warning Doug found. * apps/JAWS/server/HTTP_Config.{h,cpp}: Added class HTTP_Config to be a container for HTTP server options such as locations of directories, port, etc. * apps/JAWS/server/HTTP_Helpers.{h,cpp}: Added code to enhance support for CGI scripts: - Added HTTP_decode_string to HTTP_Helper class, to deal with percent codes. * apps/JAWS/server/HTTP_Request.{h,cpp}: Added code to enhance support for CGI scripts: - Added cgi_, cgi_env_, and cgi_args_ data members to and corresponding accessors. - Added nice accessors to the important data members to simplify other parts of the code. - Added method to parse URI to determine the name of the CGI executable if present. * apps/JAWS/server/HTTP_Response.{h,cpp}: Added code to enhance support for CGI scripts: - Hooks are now present to make the appropriate calls to activate a CGI program. * apps/JAWS/server/*.{h,cpp} Various changes from the ACE mailing list incorporated. Cosmetic changes for ACE coding style. SGI fixes. Tue May 6 00:00:54 1997 Chris Cleeland * ace/Message_Block.cpp: Added template specialization for ACE_Guard<> that prevented ACE from compiling under Linux. Mon May 5 22:17:15 1997 Sumedh Mungee * apps/JAWS/stress_testing: Removed the usleep definition from global.h, it was unused by the program. Mon May 05 21:01:42 1997 David L. Levine * ace/config-linux*.h: added ACE_HAS_STRING_CLASS. Thanks to Luis Lopes for reporting this. Mon May 05 19:58:16 1997 * ace/ace.{mak,mdp}: Readded IOStream.cpp to the makefile. * ace/Synch_T.h: Added ACE_SYNCH_RECURSIVE_MUTEX. * ace/Timer_Queue: Added an extra template parameter to Timer_Queues that specifies the type of locking to be used inside of the timer queue. Also changed the functor callback routines so that they are more descriptive compared to operator (). Mon May 5 21:37:01 1997 Douglas C. Schmidt * ace/Message_Block: Revised the release() logic for ACE_Message_Block and ACE_Data_Block so that we will delete both within the same block of code in order to hold the lock. This should prevent nasty race conditions in multi-threaded programs. Thanks to Craig Perras for reporting this problem. * ace/Message_Block.cpp: Replaced an explicit acquire()/release() of ACE_Lock::locking_strategy_ with a call to an ACE_Guard. * ace/Containers.cpp (set): Optimized for the common case where we're increasing the size of the set by 1. * ace/Containers: Merged the ACE_Set_Node, ACE_Stack_Node, and ACE_Set_Node into a single "ACE_Node" class. This tidies up the code quite a bit. * ace: Removed the Set.* and Stack.* files and replaced them with the Containers.* files. This file contains the ACE_*Stack, ACE_*Queue, and ACE_*Set classes. If this revised file scheme breaks existing code please let me know and I'll provide backwards compatibility. * ace/Stack: Changed the name of ACE_Unbounded_Queue::enqueue() to ACE_Unbounded_Queue::enqueue_tail() and also added ACE_Unbounded_Queue::enqueue_head(). * ace/OS: Changed the names of the parameters of the ACE_OS::mem* methods from ACE_OS::mem* (void *s, const void *t) to ACE_OS::mem* (void *t, const void *s) since "t" should stand for "target" and "s" for "source." Thanks to Andres Kruse for pointing this out. * ace/Stack: Removed the peek() method from ACE_Unbounded_Queue. This functionality is now subsumed by the get(..., 0) method. If this breaks any existing code please let me know. * ace/Stack.h: Moved all the functionality from ACE_Unbounded_Set into ACE_Unbounded_Queue. That's really where this belonged in the first place. Thanks to David Levine for noticing this. * ace/Set.h: Moved ACE_Set_Node from the *.cpp file into the *.cpp file in anticipation of AIX C++ compiler bugs ;-). * examples/ASX/Event_Server/Transceiver/transceiver.cpp: Rearranged the location where we register to receive standard input so that the socket handle will not be initialized at this point. Thanks to craig perras for reporting this. * examples/ASX/Event_Server/Transceiver/transceiver.cpp (Event_Transceiver): Make sure to #ifdef around SIGQUIT for WIN32 since it lacks this signal. Thanks to craig perras for reporting this. * ace/config-osf1-4.0-g++.h: Removed the ACE_LACKS_SIGNED_CHAR since this seems to be compiler specific. Thanks to Thilo for this insight. * ace/Strategies_T: Added a number of fixes and enhancements to the new Hash_Addr and ACE_Cached_Connect_Strategy classes. * ace/Strategies_T.h: Added #include for "Hash_Map_Manager.h". Thanks to Amos Shapira for reporting this. * ace/config-hpux-10.*.h: Applied a number of patches courtesy of Carlos O'Ryan. * ace/Dump.cpp: Changed a cast from delete (ACE_Dumpable_Ptr *) this->dumper_; to delete (ACE_Dumpable *) this->dumper_; This fixes a potential bug. Thanks to Carlos O'Ryan for this bug report. * ace/DEV_IO.h, * ace/SPIPE_Stream.h: Removed the = 0 default value for one send() method to avoid ambiguity with the other send() method. Thanks to Carlos O'Ryan for this bug report. * ace/Map_Manager.cpp (advance): Removed a cast to size_t since that is always true. Thanks to David Levine for pointing this out. * ace/XtReactor: Moved the remove_handler_i() and register_handler_i() methods into the protected portion of the class. Since these should never be called by the client I've moved them into protected portion to ensure this is the case. * ace/XtReactor: Changed the implementation of the XtReactor to use long for dealing with timers. Thanks to Stuart Powell for reporting this. Mon May 5 17:16:41 1997 Carlos O'Ryan * ace/config-hpux-10.x.h, config-hpux-10.x-nothread.h: Some patches are needed to compile ACE under HP-UX (using HP/C++), I documented those patches. Mon May 05 11:50:39 1997 David L. Levine * netsvcs/lib/Server_Logging_Handler.cpp: fixed ACE_Svc_Handler specializations, yet again, for Linux w/LXPthreads. Thanks to Luis Lopes for reporting this problem with sufficient detail for us to track it down. * ace/Stack.* (ACE_Unbounded_Queue): 1) made peek () const. 2) added another peek (u_int index = 0) function that can peek at any queue item, not just the first. It returns a pointer to the item (or 0 if not found), to avoid copying. 3) changed return type of size () from int to size_t. 4) inlined size (). * ace/Strategies_T.cpp (connect_svc_handler, operator==): added return type. * netsvcs/lib/Server_Logging_Handler.cpp: fixed template specializations for platforms that have neither THREADS nor TLI. Thanks to Nanbor Wang for reporting this. Sun May 4 12:34:09 1997 Douglas C. Schmidt * ace/OS.cpp: If ACE_HAS_THREADS isn't defined then we'll just use mktime() without the locking. * ace/Set: Removed the get() methods from the ACE_Fixed_Set and ACE_Bounded_Set since they don't make much sense on these abstractions. * ace/Set: Changed the new "find" method to be called "get" to correspond to the new "set" method I'm adding. * ace/SString.cpp: Added a operator << for ACE_CString in order to print it with iostreams. * ace/Set.cpp: Added a reset method to the ACE_Unbounded_Set to remove all the nodes without completely destroying the set. * ace/SString: Added friend operator+ to both ACE_CString and ACE_WString in order to provide a concatenation operator. * ace/SString: Added a compare() method to all the ACE String classes. This behaves just like the Standard C library strcmp() function. * ace/Message_Queue.i: Oddly, there were a bunch of methods defined in this *.i file that didn't have ACE_INLINE in front of them. I'm surprised this didn't give compile errors on some platforms. I've fixed this by moving these methods into the *.cpp file. * ace/Stream, ace/Service_Repository, ace/Reactor, ace/Message_Queue, ace/Map_Manager, ace/Malloc_T, ace/Hash_Map_Manager, ace/Set: Added a done() method on all the iterators so that we can check within the iteration itself to see if there are any remaining elements. In addition, updated the return value of advance() on all iterators so that it returns 1 if we're not done and 0 if we're done. Sun May 04 07:22:49 1997 David L. Levine * ace/Timer_Heap_T.cpp: changed some more int declarations to longs. Sat May 3 17:38:19 1997 Douglas C. Schmidt * Changed all uses of Reactor::{scheduler_timer,cancel}() and Timer_{Queue,List,Heap,Wheel}::{schedule,cancel}() to use long rather than int. This is important since it ensures that we can make the Timing Wheels trick of casting the Timer_Node * to long work correctly on machines that have 64 bit pointers, 64 bit longs, and 32 bit ints (e.g,. DEC ALPHA). Thanks to Thilo Kielmann for pointing this out, even though he finds this solution distasteful ;-). * netsvcs/lib/TS_Clerk_Handler.cpp (initiate_connection): I believe there was also a bug here -- if schedule_timer() returns 0 that's not an error! * apps/Gateway/Gateway/Pr