aboutsummaryrefslogtreecommitdiff
path: root/winsup/cygwin/ChangeLog
AgeCommit message (Collapse)AuthorFilesLines
2005-06-14* path.cc (path_conv::check): Always reset to FH_FS when component != 0 andChristopher Faylor1-0/+5
FH_NETDRIVE to fix problems with strict case checking.
2005-06-12 * fhandler_socket.cc (fhandler_socket::recvmsg): Avoid SEGV in OpenSSHCorinna Vinschen1-0/+6
when trying to pass file descriptor by setting msg->msg_accrightslen to 0.
2005-06-11* Makefile.in: Avoid initial heap allocation since cygwin has its own heap.Christopher Faylor1-0/+5
2005-06-11* fhandler_console.cc (fhandler_console::read): Fix a compiler warning.Christopher Faylor1-0/+4
2005-06-11* include/pthread.h: Change PTHREAD_MUTEX_DEFAULT to PTHREAD_MUTEX_NORMAL.Christopher Faylor1-1/+19
Revert PTHREAD_MUTEX_INITIALIZER to PTHREAD_ERRORCHECK_MUTEX_INITIALIZER_NP since that is actually closer to what linux does. * thread.h (cw_cancel_action): New enum. (cancelable_wait): Use cw_cancel_action as third argument. * thread.cc (cancelable_wait): Ditto. Don't wait for cancel if cancel_action == cw_no_cancel. (pthread::create): Don't wait for cancel event since that is racy. (pthread_mutex::pthread_mutex): Set default to PTHREAD_MUTEX_ERRORCHECK. (pthread_mutexattr::pthread_mutexattr): Ditto. (pthread_mutex::_lock): Tell cancelable_wait not to wait for cancellation event. (semaphore::_timedwait): Accommodate change in cancelable_wait args. (pthread::join): Ditto.
2005-06-10 * fhandler_socket.cc (fhandler_socket::sendto): Always initializeCorinna Vinschen1-0/+6
ret to 0. (fhandler_socket::sendmsg): Ditto.
2005-06-10 * cygwin.din (imaxabs): Export.Corinna Vinschen1-0/+14
(imaxdiv): Export. (llabs): Export. (lldiv): Export. (strtoimax): Export. (strtoumax): Export. * include/inttypes.h (imaxabs): Activate declaration. (imaxdiv): Ditto. (strtoimax): Ditto. (strtoumax): Ditto. * include/cygwin/version.h: Bump API minor.
2005-06-09* cygthread.cc (cygthread::detach): Improve diagnostics for what should be anChristopher Faylor1-0/+5
impossible failure condition.
2005-06-09* cygtls.h (_local_storage::setmode_file): New element.Christopher Faylor1-0/+11
(_local_storage::setmode_mode): New element. * tlsoffsets.h: Regenerate. * cygwin.din (setmode): Define as cygwin_getmode. * syscalls.cc (setmode_helper): Use setmode_* variables from tls rather than using unthreadsafe static. (setmode): Break out fwalk stuff. (cygwin_setmode): New function. Put fwalk stdio stuff here.
2005-06-09* thread.cc (pthread_mutex::_lock): Use cancelable_wait rather thanChristopher Faylor1-0/+5
WaitForSingleObject.
2005-06-09* cygwin.sc: Place .cygwin_dll_common in a more sensible spot.Christopher Faylor1-0/+4
2005-06-09* cygwin.sc: Place .cygwin_dll_common.Christopher Faylor1-0/+5
* init.cc (threadfunc_ix): Use a more common name for the section name.
2005-06-09* include/pthread.h (PTHREAD_MUEXT_INITIALIZER): Change toChristopher Faylor1-0/+5
PTHREAD_NORMAL_MUTEX_INITIALIZER_NP to be closer to linux default.
2005-06-09* thread.cc (cancelable_wait): No-op change to make sure that res is always aChristopher Faylor1-0/+5
valid WFMO return.
2005-06-09Change pthread::cancelable_wait to just cancelable_wait, throughout.Christopher Faylor1-0/+9
* thread.h (cw_sig_wait): New enum. (fast_mutex::lock): Use cancelable_wait with resumable signal. (cancelable_wait): Change fourth argument to cw_sig_wait enum. * thread.cc (cancelable_wait): Ditto. Loop on signal detection if fourth argument == cw_sig_resume.
2005-06-08* cygwin.sc: Apparently nonloading sections need to go last.Christopher Faylor1-0/+4
2005-06-08* cygwin.sc: Restore resource and reloc sections and use more modern syntax forChristopher Faylor1-0/+5
stabs sections.
2005-06-08* environ.cc (spenvs): Remove cut/paste error which associated CYGWIN_DEBUGChristopher Faylor1-0/+5
with HOME.
2005-06-08 * security.cc (cygwin_logon_user): Run LogonUser in the primaryCorinna Vinschen1-1/+6
process token context. Fix potential handle leak.
2005-06-07 * pinfo.cc (pinfo::init): Define sa_buf as PSECURITY_ATTRIBUTES andCorinna Vinschen1-0/+25
allocate dynamically. (pinfo::set_acl): Replace sa_buf by dynamically allocated acl_buf. * sec_acl.cc (setacl): Allocate acl dynamically. * sec_helper.cc (sec_acl): Add test for alignment of acl when DEBUGGING is defined. (__sec_user): Same for sa_buf. * security.cc (verify_token): Define sd_buf as PSECURITY_DESCRIPTOR and allocate dynamically. (alloc_sd): Allocate acl dynamically. security.h (sec_user_nih): Change first parameter to SECURITY_ATTRIBUTES *. (sec_user): Ditto. * sigproc.cc (wait_sig): Define sa_buf as PSECURITY_ATTRIBUTES and allocate dynamically. * syscalls.cc (seteuid32): Define dacl_buf as PACL and allocate dynamically. * uinfo.cc (cygheap_user::init): Define sa_buf as PSECURITY_ATTRIBUTES and allocate dynamically. * winbase.h (ilockincr): Mark first argument of inline assembly as earlyclobber. (ilockdecr): Ditto.
2005-06-07* cygthread.cc (cygthread::detach): Make error message a little more detailed.Christopher Faylor1-0/+11
* fhandler.cc (fhandler_base::raw_read): Ditto for debug message. * dcrt0.cc (do_exit): Add some more synchronization tests. * fhandler_fifo.cc (fhandler_fifo::dup): Don't duplicate a nonexistent handle. Use derived return value rather than always retuning 0. * fhandler_netdrive.cc (fhandler_netdrive::exists): Wnet -> WNet. * winsup.h (exit_states): Add a couple of new exit states.
2005-06-06reformat ChangeLog entry slightly.Christopher Faylor1-2/+2
2005-06-06 * path.cc (symlink_info::check): If GetFileAttributes returnsCorinna Vinschen1-0/+5
with ERROR_SHARING_VIOLATION, the file exists.
2005-06-06 * uname.cc (uname): Change "amd64" to "x86_64" as on Linux.Corinna Vinschen1-0/+4
2005-06-06 * uname.cc (uname): Add missing break.Corinna Vinschen1-0/+4
2005-06-05* Makefile.in: Build sync.o with -fomit-frame-pointer and -O3.Christopher Faylor1-0/+4
2005-06-05* sync.cc (muto::acquire): Remove unneeded brackets and fix whitespace.Christopher Faylor1-0/+4
2005-06-05* malloc.cc: Update to Doug Lea's malloc v2.8.0.Christopher Faylor1-0/+4
2005-06-04* dcrt0.cc (cygwin_dll_init): Now initializes main_environ and cygtls. CommentChristopher Faylor1-0/+6
to explain the caveats of this method. * how-cygtls-works.txt: New file.
2005-06-03* dlfcn.cc (get_full_path_of_dll): Use a relative path when converting so thatChristopher Faylor1-0/+7
the standard Windows rules for finding a library will be used if no path is given. Stop explicitly searching /usr/bin since that is now in effect.
2005-06-02Revert 2005-05-30 close_all_files changes.Christopher Faylor1-0/+6
* spawn.cc (spawn_guts): When execing, close all files after the child has synced with us.
2005-06-02* fhandler_disk_file.cc (fhandler_disk_file::fchown): Make sure that disk openChristopher Faylor1-0/+5
is called in case we're passed in a non-existent device.
2005-06-01* include/machine/stdlib.h: New file.Christopher Faylor1-0/+4
2005-06-01* thread.h (List_remove): Revert most of 2005-05-30 change.Christopher Faylor1-0/+4
2005-06-01* cygwin.sc: Don't output .reloc or .rsrc sections. Clean up stuff aroundChristopher Faylor1-0/+6
.cygheap and use a workaround to get things working with newer (broken?) binutils.
2005-06-01* cygheap.cc (cygheap_end): Remove bogus section attribute.Christopher Faylor1-0/+5
* cygwin.sc: Make __cygheap_mid absolute. Remove unused _cygheap_foo.
2005-06-01* child_info.h (child_info::cygheap_h): Delete.Christopher Faylor1-0/+41
(child_info::dwProcessId): New field. * cygheap.cc (init_cheap): Delete. (dup_now): Ditto. (cygheap_setup_for_child): Ditto. (cygheap_setup_for_child_cleanup): Ditto. (cygheap_fixup_in_child): Simplify. Use new "child_copy" function to copy heap from parent. (_csbrk): Don't attempt allocation if within cygheap section. Fix so that more than one allocation will succeed. (cygheap_init): Reset possibly-nonzero region to zero. * cygheap.h (cygheap_setup_for_child): Delete declaration. (cygheap_setup_for_child_cleanup): Ditto. (cygheap_start): Define as an array. * cygwin.sc: Modernize. Remove unneeded sections. Define cygheap here. * dcrt0.cc (do_exit): Reflect argument change to close_all_files. * dtable.cc (dtable::vfork_parent_restore): Ditto. * dtable.h: Ditto. * fhandler.h: Ditto. * fork.cc (fork_copy): Call ReadProcessMemory if there is no thread (indicating that we're execing). (fork_child): Don't mess with hParent. (fork_parent): Remove hParent stuff. It happens earlier now. Remove call to cygheap_setup_for_child* stuff. (fork): Put child_info_stuff in grouped structure. Issue error if parent handle is not set. (child_copy): New function. * sigproc.cc (child_info::child_info): Put cygheap settings here. Set parent handle. (child_info::~child_info): Close parent handle if it exists. * spawn.cc (spawn_guts): Reorganize so that ciresrv is allocated at only the last minute so that cygheap changes are reflected. Delete cygheap_setup* calls. * syscalls.cc (close_all_files): Add an argument to flag when the fd entry should be released. * winsup.h (close_all_files): Add an argument to close_all_files declaration. Declare child_copy.
2005-05-30* thread.h (List_remove): Make node parameter const. Use simple comparison andChristopher Faylor1-0/+6
assignment rather than InterlockedCompareExchangePointer since access is already synchronized.
2005-05-30* dlfcn.cc (set_dl_error): Use UNIX error rather than Windows error.Christopher Faylor1-0/+4
2005-05-30* cygmagic: Remove debugging cruft missed on 2005-05-21.Christopher Faylor1-0/+4
2005-05-29 * path.cc (path_conv::check): Move component to function scope. SetCorinna Vinschen1-0/+6
PATH_RO only on *real* FH_NETDRIVEs or on non-FH_NETDRIVE virtual paths. Allow non-retrievable shares to be handled as files.
2005-05-29 * include/limits.h (LLONG_MIN, LLONG_MAX, ULLONG_MAX): Always define.Corinna Vinschen1-0/+4
2005-05-29* thread.h (pthread_key::set): Inline.Christopher Faylor1-0/+7
(pthread_key::get): Ditto. * thread.cc (pthread::set): Delete. (pthread::get): Ditto.
2005-05-29* cygwin.din: Remove signal front end from pthread_[gs]etspecific.Christopher Faylor1-0/+4
2005-05-29* fhandler_tty.cc (fhandler_tty_slave:tcflush): Use signed comparison.Christopher Faylor1-0/+4
2005-05-28* times.cc (time_ms::usecs): Coerce comparison to signed or whole test is aChristopher Faylor1-0/+5
no-op.
2005-05-27* cygheap.h: Reference _cygheap_start via .cygheap section.Christopher Faylor1-0/+7
* environ.cc: Fix force_into_environment typo throughout. (spenvs): Export CYGWIN_DEBUG if DEBUGGING.
2005-05-26* include/cygwin/version.h: Bump DLL minor number to 18.Christopher Faylor1-0/+4
2005-05-25 * ChangeLog: Remove accidentally checked in entry.Corinna Vinschen1-17/+0
2005-05-25* fhandler.h (fhandler_base::mkdir): New virtual method.Christopher Faylor1-0/+13
(fhandler_base::rmdir): Ditto. (fhandler_disk_file:mkdir): New method. (fhandler_disk_file:rmdir): Ditto. * dir.cc (mkdir): Implement with fhandlers. (rmdir): Ditto. * fhandler.cc (fhandler_base::mkdir): New virtual method. (fhandler_base::rmdir): Ditto. (fhandler_disk_file::mkdir): New method. (fhandler_disk_file::rmdir): Ditto. fhandler_random.cc: white space.