2005-04-12 Dick Porter <dick@ximian.com>
[mono.git] / mono / io-layer / ChangeLog
index b3d01ebf7bae26ca4ba7486fe534de8814b081b0..e2efd70f9266e38db7898b4de34a5962b2ebc13c 100644 (file)
@@ -1,3 +1,202 @@
+2005-04-12  Dick Porter  <dick@ximian.com>
+       
+       The daemon-less io-layer.  Extensive lowlevel changes in
+       handles.c, requiring some corresponding changes in other files
+       calling these functions.  Private_foo structures have been
+       eliminated.
+
+       File descriptor handling differences account for most of the
+       changes in io.c and sockets.c.
+
+       Other highlights:
+       
+       * mutexes.c: Named mutexes are now a distinct type.
+       * atomic.h: Fix a PPC uninitialised variable warning.
+       * wait.c: Check conditions before waiting on a condition variable.
+       * processes.c: Handle process fork and wait without a daemon
+       (though this has the limitation of only being able to wait for
+       child processes.)
+
+2005-04-07 Gonzalo Paniagua Javier <gonzalo@ximian.com>
+
+       * io-private.h:
+       * threads.c:
+       * threads.h:
+       * io.c:
+       * sockets.c:
+       * sockets.h: removed dead code that deals with async IO.
+
+2005-03-30  Zoltan Varga  <vargaz@freemail.hu>
+
+       * atomic.c (InterlockedIncrement): Fix fallback implementation of
+       InterlockedIncrement and InterlockedDecrement. Fixes #74228.
+
+2005-03-29  Sebastien Pouliot  <sebastien@ximian.com>
+
+       * io-layer.h: Add required header files for compiling with VS.NET.
+
+2005-03-17 Miguel de Icaza <miguel@novell.com>
+
+       * io.c: don't fail on NFS when there are no more locks available.
+
+2005-03-09  Dick Porter  <dick@ximian.com>
+
+       * error.c (_wapi_get_win32_file_error): ENFILE and EMFILE should
+       map to ERROR_TOO_MANY_OPEN_FILES, not ERROR_NO_MORE_FILES.  Fixes
+       bug 72671.
+
+2005-03-09  Dick Porter  <dick@ximian.com>
+
+       * daemon.c (process_process_fork): Initialise the handle data
+       before using it in the error case.  This is probably the error
+       we're working around in the previous change.  Spotted by Taru Jain
+       <tjain@novell.com> and Hemanth Yamijala <YHemanth@novell.com>.
+
+2005-03-07  Dick Porter  <dick@ximian.com>
+
+       * daemon.c: It looks like g_shell_parse_argv() can return
+       argv[0]=NULL somehow, yet still not give an error.  Make sure we
+       don't pass NULL to strrchr(), working around a segfault that
+       showed up on ZLM testing.
+
+2005-03-01 Gonzalo Paniagua Javier <gonzalo@ximian.com>
+
+       * sockets.c: translate EINPROGRESS to EWOULDBLOCK in connect. This is
+       the expected error code showed by the test case in bug #73053.
+
+2005-02-18 Gonzalo Paniagua Javier <gonzalo@ximian.com>
+
+       * io.c: another leftover.
+
+Fri Feb 18 17:37:29 CET 2005 Paolo Molaro <lupus@ximian.com>
+
+       * io.c: fixed logic in checking errno in rev 40815.
+
+Fri Feb 18 16:00:29 CET 2005 Paolo Molaro <lupus@ximian.com>
+
+       * threads.c: we don't depend on the GC checking tls
+       slots anymore.
+       * processes.c: remove unused ref to GC headers.
+
+Thu Feb 17 19:57:11 CET 2005 Paolo Molaro <lupus@ximian.com>
+
+       * io.c: remove _wapi_thread_cur_apc_pending () checks
+       when the siscall should return immediatly and handle
+       the case when a syscall is interrupted without
+       erroring out, but returning a 0 read/write if possible.
+       Still the cases of read from file need to be handled.
+
+Tue Feb 8 18:28:11 CET 2005 Paolo Molaro <lupus@ximian.com>
+
+       * threads.c: make people test with 1 MB stack per thread.
+
+2005-01-17  Dick Porter  <dick@ximian.com>
+
+       * timefuncs.h: Make WapiFileTime endian-aware, as it's often
+       cast to and from 64bit ints.  Fixes bug 71213.
+
+2005-01-11  Dick Porter  <dick@ximian.com>
+
+       * error.c (errno_to_WSA): Add EADDRNOTAVAIL error code
+       translation.
+
+Mon Jan 10 16:15:19 EST 2005 Neale Ferguson <nealeferguson@earthlink.net>
+
+       * atomic.h: Fix functions on s390.
+
+Mon Jan 10 20:30:19 CET 2005 Paolo Molaro <lupus@ximian.com>
+
+       * atomic.h: fix some functions on ppc (tests/interlocked.cs).
+
+2005-01-10  Dick Porter  <dick@ximian.com>
+
+       * misc.c (_wapi_calc_timeout): Guard against overflow when
+       calculating timeouts.  This makes waiting with a large
+       (Int32.MaxValue) timeout not return immediately.
+
+2004-12-23  Ben Maurer  <bmaurer@ximian.com>
+
+       * io.c (io_ops): make this `const' so it is shareable (well, only
+       really shareable if it is statically linked...)
+
+Mon Dec 20 11:58:33 CET 2004 Paolo Molaro <lupus@ximian.com>
+
+       * threads.c, threads.h: add accessor to get the pthread_key_t for
+       a tls id.
+
+2004-12-13 Gonzalo Paniagua Javier <gonzalo@ximian.com>
+
+       * io.c: check for the existence of 'dest' and set ERROR_ALREADY_EXISTS
+       if it exists and is not the same as 'src'.
+
+2004-12-01 Neale Ferguson <Neale.Ferguson@SoftwareAG-usa.com>
+
+       * atomic.h : Fix InterlockedCompareExchange for s390/s390x.
+
+2004-12-01 Gonzalo Paniagua Javier <gonzalo@ximian.com>
+
+       * processes.c: unquote the cmd path, allow for ' or " when quoting and
+       pass the quoted program name to the daemon, otherwise the call to
+       g_shell_unquote in the daemon will break things up.
+
+2004-10-14  Dick Porter  <dick@ximian.com>
+
+       * sockets.c (_wapi_accept): Revert the previous change.  We now
+       set the accepted socket to have the same blocking status as the
+       listening socket in managed code.  This follows MS behaviour.
+       
+2004-10-14  Dick Porter  <dick@ximian.com>
+
+       * sockets.c (_wapi_accept): On Darwin, make sure a newly
+       accept()ed socket is blocking.  Fixes bug 67355, patch by
+       grompf@sublimeintervention.com.
+
+2004-10-04 Gonzalo Paniagua Javier <gonzalo@ximian.com>
+
+       * system.c: check the number of online processors instead of the
+       existing ones. Sanitize return value if it's an error.
+
+2004-10-03 Ben Maurer  <bmaurer@ximian.com>
+
+       * system.c: Add support for getting the # of cpus.
+
+2004-09-28  Dick Porter  <dick@ximian.com>
+
+       * io.c (pipe_close_private): Fix one small typo in the last change
+       that totally hosed process creation with redirected pipes.
+
+2004-09-24  Dick Porter  <dick@ximian.com>
+
+       * wapi-private.h: 
+       * sockets.c: 
+       * socket-private.h: 
+       * io.c: 
+       * io-private.h: 
+       * handles-private.h: Cope when a file descriptor is reused while
+       the handle that thought it owned it is still referenced, instead
+       of asserting.  Probably fixes bug 66479, though we've been unable
+       to reproduce it.
+
+2004-09-09  Dick Porter  <dick@ximian.com>
+
+       * error.c:
+       * io.c: Set error codes everywhere.
+
+2004-09-06  Dick Porter  <dick@ximian.com>
+
+       * handles.c (_wapi_handle_unref): Reset the private record's type
+       (CloseHandle): Check for a fd mapping failure, and return FALSE.
+       (_wapi_handle_process_fork): Fix long-standing bug in checking
+       handle return values.  Also do the required bookkeeping with the
+       new process's handles.
+
+       * daemon.c: When creating a new process's handles, check whether
+       the shared space needs to be increased
+
+2004-09-05  Zoltan Varga  <vargaz@freemail.hu>
+
+       * shared.c (_wapi_shm_file): Fix leaking of filename.
+
 2004-08-19  Dick Porter  <dick@ximian.com>
 
        * handles.c (_wapi_handle_count_signalled_handles): Fix thinko