aboutsummaryrefslogtreecommitdiff
path: root/winsup/cygwin
AgeCommit message (Collapse)AuthorFilesLines
2005-07-05* dcrt0.cc (cygwin_exit): Mark as "noreturn".Christopher Faylor3-2/+10
* sigproc.cc (child_info::ready): Don't signal parent that we are a cygwin process if we are dynamically loaded.
2005-07-05* malloc.cc: Update to version 2.8.2.Christopher Faylor2-5/+18
2005-07-05 * fhandler_tape.cc (fhandler_dev_tape::close): Don't do "extra stuff"Corinna Vinschen2-10/+21
when we know we're execing.
2005-07-05Change foo (void) to foo () for all c++ functions throughout. Remove allChristopher Faylor35-212/+187
fhandler_*::dump functions throughout. * fhandler.h (fhandler_dev_mem::close): Remove pass-through function in favor of virtual method. (handler_dev_raw::close): Ditto. (fhandler_dev_clipboard::fixup_after_exec): New method. * fhandler_dev_mem.cc (fhandler_dev_mem::close): Eliminate pass through * fhandler_dev_raw.cc (fhandler_dev_raw::close): Ditto. * fhandler_clipboard.cc (fhandler_dev_clipboard::close): Don't go to extra effort when execing. (fhandler_dev_clipboard::fixup_after_exec): New function. * fhandler_console.cc (fhandler_console::close): Don't do "extra stuff" when we know we're execing. * fhandler_disk_file.cc (fhandler_disk_file::close): Ditto. * fhandler_dsp.cc (fhandler_dev_dsp::close): Ditto. * fhandler_fifo.cc (fhandler_fifo.cc::close): Ditto. function in favor of base function. * fhandler_random.cc (fhandler_dev_random::close): Ditto. * fhandler_registry.cc (fhandler_registry::close): Ditto. * fhandler_tty.cc (fhandler_tty_slave::close): Ditto. * fhandler_virtual.cc (fhandler_virtual::close): Ditto. * pinfo.cc (proc_waiter): Remove unneeded hExeced declaration. * sigproc.cc: Ditto. * winsup.h (hExeced): Define here. * fhandler_virtual.cc (fhandler_virtual::fixup_after_exec): Just call close() to reinitialize things to known state.
2005-07-05* cygtls.h (_cygtls): Perform minor reformatting.Christopher Faylor8-48/+65
* winsup.h (close_all_files): Reflect argument change. * dtable.cc (close_all_files): Ditto. * dtable.h: Ditto. * fhandler.h: Ditto. * spawn.cc (spawn_guts): Move close_all_files back to its original location in first P_OVERLAY test but use argument denoting that handles are only supposed to be closed, not released (more work to be done here). * syscalls.cc (close_all_files): Take an argument denoting whether to release closed files or not. * path.cc (symlink): Change argument names to reflect linux man page. (symlink_worker): Ditto. Also appropriately set ENOENT for empty strings.
2005-07-05ARGH. Check in previous uncommitted-but-ChangeLog'ed entry.Christopher Faylor1-3/+4
2005-07-04 * cygheap.h (struct init_cygheap): Delete cygwin_regname member.Corinna Vinschen3-19/+13
* external.cc (cygwin_internal): Use cygpsid::get_id for CW_GET_UID_FROM_SID and CW_GET_GID_FROM_SID. Turn CW_SET_CYGWIN_REGISTRY_NAME and CW_GET_CYGWIN_REGISTRY_NAME into noops.
2005-07-03* thread.cc (pthread_mutex::init): Remove unneeded efault/mutex check.Christopher Faylor1-0/+4
2005-07-03add missing ChangeLog entriesChristopher Faylor1-0/+3
2005-07-03* thread.h (verifyable_object_state verifyable_object_isvalid): Delete functionChristopher Faylor3-214/+215
declaration that should have been static. * thread.cc (verifyable_object_state verifyable_object_isvalid): Make inline static. (pthread*::is_good_object): Move to directly after verifyable_object_state verifyable_object_isvalid and make inline.
2005-07-03Replace valid memory checks with new myfault class "exception handling", almostChristopher Faylor32-446/+514
everywhere. Leave some thread.cc stuff alone for now. * cygtls.h: Kludge some definitions to avoid including a problematic windows header. (_cygtls::_myfault): New entry. (_cygtls::_myfault_errno): Ditto. (_cygtls::fault_guarded): New function. (_cygtls::setup_fault): Ditto. (_cygtls::return_from_fault): Ditto. (_cygtls::clear_fault): Ditto. (myfault): New class. * exceptions.cc (handle_exceptions): Handle case of guarded fault in system routine. * gendef: Add another entry point for setjmp that the compiler doesn't know about and won't complain about. * gentls_offsets: Just include windows.h rather than kludging a HANDLE def. * miscfuncs.cc (check_null_str): Delete. (check_null_empty_str): Ditto. (check_null_empty_str_errno): Ditto. (check_null_str_errno): Ditto. (__check_null_invalid_struct): Ditto. (__check_null_invalid_struct_errno): Ditto. (__check_invalid_read_ptr): Ditto. (__check_invalid_read_ptr_errno): Ditto. (dummytest): New function. (check_iovec_for_read): Delete. (chec_iovec): Rename from check_iovec_for_write. Take a read/write parameter. * tlsoffsets.h: Regenerate. * winsup.h: Remove check_* declarations. (check_iovec_for_read): Delete declaration. Turn into a define instead. (check_iovec_for_write): Ditto. (check_iovec): New declaration. * thread.h: Use ifdef guard name consistent with other header files.
2005-07-03should have been checked in on 2005-06-29Christopher Faylor1-1/+1
2005-07-03* include/cygwin/version.h: Bump DLL minor number to 19.Christopher Faylor2-1/+5
2005-06-30 * fhandler.cc (fhandler_base::readv): Use malloc/free instead of alloca.Corinna Vinschen2-4/+11
(fhandler_base::writev): Ditto.
2005-06-30* cygerrno.h: Make multi-inclusion safe.Christopher Faylor9-19/+86
* fhandler_termios.cc (fhandler_termios::tcsetpgrp): Deal with EINTR. * dcrt0.cc (dll_crt0_0): Accommodate init_console_handler argument change. * winsup.h: Ditto. * fhandler_tty.cc (fhandler_tty_slave::open): Ditto. * exceptions.cc (init_console_handler): Ditto. Ignore console events if we're not attached to a terminal. * fhandler_tty.cc (fhandler_tty_slave::open): Ditto. * wincap.cc: Implement has_null_console_handler_routine throughout. * wincap.h: Ditto.
2005-06-30revert erroneous checkinChristopher Faylor1-4/+4
2005-06-29* autoload.cc (LoadDLLprime): Use a more descriptive name for autoload textChristopher Faylor3-5/+11
sections. * cygwin.sc: Ditto.
2005-06-27 * fhandler_disk_file.cc (fhandler_disk_file::facl): Add missing break.Corinna Vinschen2-0/+5
2005-06-24 * path.cc (path_conv::check): Don't strip trailing dots and spacesCorinna Vinschen2-1/+6
at the start of the path.
2005-06-24 * fhandler.cc (rootdir): Don't set errno.Corinna Vinschen3-7/+11
* syscalls.cc (statvfs): Set errno to ENOTDIR if rootdir() failed.
2005-06-22 * fhandler.h (class fhandler_dev_tape): Add declaration forCorinna Vinschen3-1/+52
fixup_after_fork and set_close_on_exec. * fhandler_tape.cc (fhandler_dev_tape::open): Create mt_mtx mutex inheritable. (fhandler_dev_tape::close): Close mt_mtx. (fhandler_dev_tape::dup): Duplicate mt_mtx and mt_evt as necessary. (fhandler_dev_tape::fixup_after_fork): New method. (fhandler_dev_tape::set_close_on_exec): New method.
2005-06-21 * security.cc (get_initgroups_sidlist): Drop special_pgrp parameter.Corinna Vinschen2-9/+14
(get_setgroups_sidlist): Avoid duplicate groups in group list. (create_token): Remove special_pgrp local variable. Accomodate change to get_initgroups_sidlist call.
2005-06-21 * uinfo.cc (uinfo_init): Call reimpersonate to set the main thread'sCorinna Vinschen2-0/+6
impersonation token.
2005-06-20 * fhandler_proc.cc (format_proc_partitions): Only list recognizedCorinna Vinschen2-2/+8
partitions. Use partition number given by PartitionNumber member.
2005-06-20fix indentationChristopher Faylor1-98/+98
2005-06-18 * glob.c: (glob0): New local variable `limit`. Use in calls to glob1Corinna Vinschen4-17/+48
and globextend. (glob1): Add `limit' parameter. (glob2): Ditto. (glob3): Ditto. (globextend): Ditto. Implement GLOB_LIMIT handling. * include/glob.h (GLOB_LIMIT): New define. * include/cygwin/version.h: Bump API minor number.
2005-06-18* wincap.h (wincaps::detect_win16_exe): Declare.Christopher Faylor4-16/+38
(wincapc::detect_win16_exe): Implement. * wincap.cc: Populate detect_win16_exe where appropriate. * spawn.cc (spawn_guts): Only go out of the way to detect 16-bit apps on systems which are flummoxed by them.
2005-06-18* spawn.cc (spawn_guts): Detect when executing a 16-bit application and avoidChristopher Faylor2-4/+15
setting the process pipe since this causes conniptions in Windows 9x.
2005-06-17 * cygwin.din (inet_pton): Export.Corinna Vinschen5-1/+62
(inet_ntop): Export. * net.cc (cygwin_inet_pton): Implement inet_pton for AF_INET for now. (cygwin_inet_ntop): Implement inet_ntop for AF_INET for now. * include/arpa/inet.h (inet_pton): Declare. (inet_ntop): Declare. * include/cygwin/version.h: Bump API minor number.
2005-06-17 * fhandler.h (fhandler_union): Add missing members corresponding toCorinna Vinschen2-1/+8
fhandler_fifo and fhandler_netdrive.
2005-06-16 * syscalls.cc (statvfs): Handle the case when GetDiskFreeSpaceExCorinna Vinschen2-4/+21
succeeds but GetDiskFreeSpace fails by faking bytes-per-sector and sectors-per-cluster values.
2005-06-15add missing entryChristopher Faylor1-0/+1
2005-06-15* cygthread.cc (cygthread::detach): Fix debugging output.Christopher Faylor6-6/+12
* dcrt0.cc (dll_crt0_1): Create signal_arrived early -- before any filename manipulation. * sigproc.cc (sigproc_init): Don't create signal_arrived here. * fork.cc (fork_child): Ditto.
2005-06-14* path.cc (path_conv::check): Always reset to FH_FS when component != 0 andChristopher Faylor2-14/+16
FH_NETDRIVE to fix problems with strict case checking.
2005-06-12 * fhandler_socket.cc (fhandler_socket::recvmsg): Avoid SEGV in OpenSSHCorinna Vinschen2-0/+7
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 Faylor2-1/+7
2005-06-11* fhandler_console.cc (fhandler_console::read): Fix a compiler warning.Christopher Faylor2-1/+5
2005-06-11* include/pthread.h: Change PTHREAD_MUTEX_DEFAULT to PTHREAD_MUTEX_NORMAL.Christopher Faylor4-24/+47
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 Vinschen2-4/+10
ret to 0. (fhandler_socket::sendmsg): Ditto.
2005-06-10whitespace changes to hopefully force snapshot run.Christopher Faylor1-1/+1
2005-06-10 * cygwin.din (imaxabs): Export.Corinna Vinschen4-2/+24
(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 Faylor2-1/+19
impossible failure condition.
2005-06-09* cygtls.h (_local_storage::setmode_file): New element.Christopher Faylor6-75/+95
(_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 Faylor2-1/+6
WaitForSingleObject.
2005-06-09* cygwin.sc: Place .cygwin_dll_common in a more sensible spot.Christopher Faylor2-4/+8
2005-06-09* cygwin.sc: Place .cygwin_dll_common.Christopher Faylor3-1/+10
* init.cc (threadfunc_ix): Use a more common name for the section name.
2005-06-09* include/pthread.h (PTHREAD_MUEXT_INITIALIZER): Change toChristopher Faylor2-1/+6
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 Faylor2-3/+7
valid WFMO return.
2005-06-09Change pthread::cancelable_wait to just cancelable_wait, throughout.Christopher Faylor6-48/+70
* 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 Faylor2-24/+28