Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/winsup
AgeCommit message (Collapse)Author
2013-01-02* DevNotes: Add entry cgf-000020, relating to previous checkin.Christopher Faylor
2013-01-02* cygtls.h (_cygtls::signal_exit): Delete from class.Christopher Faylor
* exception.h (cygwin_exception): New class. (cygwin_exception::dumpstack): Declare new function. (cygwin_exception::context): Ditto. (cygwin_exception::dump_exception): Ditto. * exceptions.cc (cygwin_exception::dump_exception): Move into cygwin_exception class. Accommodate new variable names. (cygwin_exception::dumpstack): Ditto stackdump -> dumpstack. (exception::handle): Move andreas processing earlier. Defer signal processing decisions to the signal thread where they belong. Pass exception information to sig_send via new siginfo_t si_cyg field. (ctrl_c_handler): Wait for SIGHUP signal to be processed since it could cause a process exit and we don't want races with thread exit lock. (signal_exit): Move back here from sigproc.cc. Modify arguments and remove from sigpacket class. Decide when to dump core based on signal type. (sigpacket::process): Handle exiting signals in context of threads rather than in the signal thread. Signal debugger on non-Windows signals. Remove setup_signal_exit call. * sigproc.cc (no_signals_available): Remove argument. (signal_exit_code): Delete. (close_my_readsig): Ditto. (_cygtls::signal_exit): Move to exceptions.cc. (sigproc_terminate): Don't attempt to terminate signal thread. (setup_signal_exit): Delete. (exit_thread): Use new si_cyg entry in siginfo_t. (sig_send): Just use empty initializer for si. Accommodate change in no_signals_available argument. (wait_sig): Remove attempt to "go asynchronous" on process exit. Delete __SIGEXIT handling. Don't ever exit. * sigproc.h: Remove __SIGEXIT from signal enum. Renumber. * include/cygwin/signal.h (siginfo_t): Add si_cyg entry.
2012-12-31* sigproc.cc (wait_sig): Remove spurious extern.Christopher Faylor
2012-12-31* dtable.cc (dtable::dup3): Fix bounds checking for valid newfd.Christopher Faylor
* syscalls.cc (dup2): Ditto. * winsup.h (events_terminate): Delete obsolete function declaration.
2012-12-28* DevNotes: Add entry cgf-000019.Christopher Faylor
* dcrt0.cc (do_exit): Just set exit_state to ES_EVENTS_TERMINATE and nuke call to events_terminate which just set a superfluous flag. * sigproc.cc (signal_exit_code): New variable. (setup_signal_exit): Define new function. (_cygtls::signal_exit): Remove accommodations for closing the signal pipe handle. (exit_thread): Just sleep if we're exiting. (wait_sig): If signal_exit_code is set, just handle bookkeeping signals and exit ReadFile loop if there is nothing more to process. Call signal_exit at end if signal_exit_code is non-zero. * sigproc.h (setup_signal_exit): Declare new function. * exceptions.cc (sigpacket::process): Use setup_signal_exit to control exiting due to a signal. (exception::handle): Ditto. Query exit_state rather than defunct exit_already to determine if we are exiting. * globals.cc (ES_SIGNAL_EXIT): New enum. * sync.h (lock_process::release): New function for explicitly unlocking muto. (lock_process::~lock_process): Use release method.
2012-12-27* fork.cc (child_info::prefork): Fix error message formatting.Christopher Faylor
2012-12-23Fix tid comment.Christopher Faylor
2012-12-22* select.h (select_stuff): Remove variable names from parameter declarations.Christopher Faylor
(select_info): Ditto. (select_record::dump_select_record): Declare new debugging-only function. (select_info): Zero all fields. (select_pipe_info): Ditto. (select_socket_info): Ditto. (select_serial_info): Ditto. (select_mailslot_info): Ditto. * select.cc (select_record::dump_select_record): Define new debugging-only function. (select_stuff::test_and_set): Call dump_select_record when debugging. * thread.cc (pthread_mutex::unlock): Revert setting of tid to NULL since, in this context, it is a number, not a pointer. (pthread_spinlock::unlock): Ditto.
2012-12-22Back out prematurely checked-in change.Christopher Faylor
2012-12-22* sigproc.cc (exit_thread): undef ExitThread or suffer recursion. Attempt toChristopher Faylor
lock process prior to calling sig_send.
2012-12-22Revert the reversion and go with implementation described in cgf-000017, withChristopher Faylor
some modifications. * init.cc (dll_entry): Revert previous change. * miscfuncs.cc: Include sigproc.h for exit_thread declaration. * winsup.h (ExitThread): Define as 'exit_thread' to ensure no accidental use. * sigproc.cc (exit_thread): New function. (wait_sig): Handle __SIGTHREADEXIT case. Don't just block rather than returning from this function. * sigproc.h (__SIGTHREADEXIT): New enum. (exit_thread): Declare. * sync.cc (muto::release): Accept a tls command-line argument. * sync.h (muto::release): Accept a tls command-line parameter. Default to &_my_tls. * cygerrno.h (__set_errno): Define as extern so that no function code is ever emitted. * cygserver_ipc.h (cygserver_ipc.h): Ditto. * miscfuncs.h (transform_chars): Ditto. * path.h (has_attribute): Ditto. * security.h (privilege_luid): Ditto. * winsup.h (flush_file_buffers): Ditto.
2012-12-21* DevNotes: Add entry cgf-000018.Christopher Faylor
* init.cc (dll_entry): Grab process lock before exiting to ensure that thread doesn't exit before parent if parent is exiting. * _cygtls.cc (_cygtls::call2): Revert previous 2012-12-21 change. * miscfuncs.cc (thread_wrapper): Ditto. * thread.cc (pthread::exit): Ditto. * sigproc.cc (exit_thread): Ditto. (wait_sig): Ditto. * sync.cc (muto::release): Ditto. * sync.h (muto::release): Ditto. * sigproc.h (__SIGTHREADEXIT): Delete enum. (exit_thread): Delete declaration.
2012-12-21* DevNotes: Add entry cgf-000017.Christopher Faylor
* _cygtls.cc (_cygtls::call2): Use new exit_thread function in place of ExitThread. * miscfuncs.cc (thread_wrapper): Ditto. * thread.cc (pthread::exit): Ditto. (pthread_mutex::unlock): Set tid to NULL rather than 0. (pthread_spinlock::unlock): Ditto. * pinfo.cc (commune_process): Actually call lock_process constructor. * sigproc.cc (exit_thread): New function. (wait_sig): Handle __SIGTHREADEXIT case. Don't just block rather than returning from this function. * sigproc.h (__SIGTHREADEXIT): New enum. (exit_thread): Declare. * sync.cc (muto::release): Accept a tls command-line argument. * sync.h (muto::release): Accept a tls command-line parameter. Default to &_my_tls.
2012-12-20 * pathnames.sgml (pathnames-at): Drop confusing description onCorinna Vinschen
"embedded double quotes".
2012-12-20 * dcrt0.cc (build_argv): Allow quoted filenames in @ expression.Corinna Vinschen
2012-12-20Add missing file.Christopher Faylor
2012-12-20* select.h (select_stuff::select_stuff): Make default constructor always zeroChristopher Faylor
everything while constructor with int arg just zeroes next. * select.cc (select_stuff::test_and_set): Revert to using default constructor.
2012-12-19* select.cc (select_stuff::wait): Add windows error number to error message.Christopher Faylor
2012-12-18* select.cc (select_stuff::test_and_set): Remove workaround and use properChristopher Faylor
constructor.
2012-12-18* select.cc (select_stuff::test_and_set): Work around problem of new() notChristopher Faylor
returning zeroed memory.
2012-12-14 * utils.sgml (mount): Document sparse mount option.Corinna Vinschen
2012-12-14 * new-features.sgml (ov-new1.7.18): Add sparse change.Corinna Vinschen
* pathnames.sgml (mount-table): Document sparse mount option.
2012-12-14*** empty log message ***Corinna Vinschen
2012-12-14 * fhandler.cc (fhandler_base::write): Don't attempt to sparsifyCorinna Vinschen
an already sparse file. Drop check for FILE_SUPPORTS_SPARSE_FILES flag. Explicitely set FILE_ATTRIBUTE_SPARSE_FILE attribute in cached attributes. (fhandler_base::lseek): Only set did_lseek if sparseness is supported. * fhandler_disk_file.cc (fhandler_disk_file::ftruncate): Don't attempt to sparsify an already sparse file. Explicitely set FILE_ATTRIBUTE_SPARSE_FILE attribute in cached attributes. * mount.cc (oopt): Add "sparse" flag. (fillout_mntent): Ditto. * path.h (enum path_types): Add PATH_SPARSE. (path_conv::support_sparse): New method. (path_conv::fs_flags): Constify. (path_conv::fs_name_len): Ditto. include/sys/mount.h: Replace unused MOUNT_MIXED flag with MOUNT_SPARSE.
2012-12-11* sigproc.h (sig_send): Accept tid as argument #3. Default to NULL.Christopher Faylor
* sigproc.cc (sig_send): Ditto. Pass tid to other sig_send. (sigpending): Send current thread as arg #3.
2012-12-08* exceptions.cc (sigpacket::process): Reorganize to avoid use of tls beforeChristopher Faylor
initialization. * fhandler_fifo.cc (fhandler_fifo::arm): Avoid improper printing of integer as a string in debug output.
2012-12-07* sigproc.h (sigpacket): Remove parameter names from declarations.Christopher Faylor
(sigpacket::sigtls): Rename from 'tls'. * exceptions.cc (sigpacket::process): Define local tls variable and assign that to sigtls if appropriate. Clarify debugging output. * sigproc.cc (sig_send): Accommodate tls -> sigtls rename. (pending_signals::add): Ditto. (wait_sig): Ditto.
2012-12-07* cygtls.h (_cygtls::get_signal_arrived): Add parameter to make lock/unlockChristopher Faylor
conditional. * exceptions.cc (_cygtls::interrupt_setup): Don't get a lock when setting signal_arrived since we already have one. * gendef: Add some comments to make it easier to find functions.
2012-12-06 * new-features.sgml (ov-new1.7.18): New section. Document cfsetspeed.Yaakov Selkowitz
2012-12-06 * include/cygwin/wait.h (WAIT_ANY): Define.Yaakov Selkowitz
(WAIT_MYPGRP): Define.
2012-12-05 * child_info.h (class child_info_spawn): Drop unused member lock.Corinna Vinschen
(CURR_CHILD_INFO_MAGIC): Update. * sigproc.cc (child_info_spawn::child_info_spawn): Drop setting lock.
2012-12-05* cygtls.h (_cygtls::will_wait_for_signal): Rename from 'signal_waiting' toChristopher Faylor
something more expressive. Reflect rename throughout. (_cygtls::get_signal_arrived): Rename from create_signal_arrived. Move lock here. (_cygtls::set_signal_arrived): Use get_signal_arrived. * exceptions.cc (_cygtls::interrupt_setup): Use get_signal_arrived. * tlsoffsets.h: Regenerate.
2012-11-30revert erroneous checkinChristopher Faylor
2012-11-30* spawn.cc (child_info_spawn::worker): Make detection of '/c' case insensitiveChristopher Faylor
when looking for cmd.exe command line.
2012-11-28* Makefile.in: Remove old from CFLAGS and move C*FLAGS so that they can beChristopher Faylor
manipulated by Makefile.common.
2012-11-28* Makefile.in: Move CFLAGS and CXXFLAGS so that they can be manipulated byChristopher Faylor
Makefile.common. Add -static-libstdc++ to *LDFLAGS. Add dependencies for loadlib.h. * loadlib.h: Update copyright. (_load_sys_library): Properly define set_dll_library as WINAPI to avoid stack corruption.
2012-11-28* Makefile.in (ZLIBS): Common define to force static load.Christopher Faylor
(MINGW_LDFLAGS): Use static libgcc.
2012-11-27* Makefile.in: Make sure that libz is always loaded staticly.Christopher Faylor
2012-11-27* Makefile.in (Makefile): Rely on 'configure' not 'configure.in'.Christopher Faylor
2012-11-26ChangeLog:Christopher Faylor
2012-11-26 Christopher Faylor <me.cygwin2012@cgf.cx> * configure.ac: Rename from configure.in. * configure.in: Delete. * configure: Regenerate. cygserver/ChangeLog: 2012-11-26 Christopher Faylor <me.cygwin2012@cgf.cx> * configure.ac: Rename from configure.in. * configure.in: Delete. * configure: Regenerate. cygwin/ChangeLog: 2012-11-26 Christopher Faylor <me.cygwin2012@cgf.cx> * configure.ac: Rename from configure.in. * configure.in: Delete. * configure: Regenerate. doc/ChangeLog: 2012-11-26 Christopher Faylor <me.cygwin2012@cgf.cx> * configure.ac: Rename from configure.in. * configure.in: Delete. * configure: Regenerate. lsaauth/ChangeLog: 2012-11-26 Christopher Faylor <me.cygwin2012@cgf.cx> * configure.ac: Rename from configure.in. * configure.in: Delete. * configure: Regenerate. testsuite/ChangeLog: 2012-11-26 Christopher Faylor <me.cygwin2012@cgf.cx> * configure.ac: Rename from configure.in. * configure.in: Delete. * configure: Regenerate. utils/ChangeLog: 2012-11-26 Christopher Faylor <me.cygwin2012@cgf.cx> * configure.ac: Rename from configure.in. * configure.in: Delete. * configure: Regenerate.
2012-11-26* ccwrap: Don't drop mingw header file paths unless we've specified them withChristopher Faylor
--with-windows-headers.
2012-11-26 * fhandler_registry.cc: Drop Mingw.org considerations.Corinna Vinschen
* fhandler_serial.cc: Ditto. * fhandler_socket.cc: Ditto. * fhandler_tape.cc: Ditto. * fhandler_tty.cc: Ditto. * net.cc: Ditto. * ntdll.h: Ditto. * sched.cc: Ditto. * sec_helper.cc: Ditto.
2012-11-26 * bloda.cc: Drop Mingw.org considerations.Corinna Vinschen
* dump_setup.cc: Ditto. * strace.cc: Ditto.
2012-11-26 * transport_pipes.cc (pipe_instance_lock_once): Remove.Corinna Vinschen
(pipe_instance_lock): Remove. (pipe_instance): Remove. (initialise_pipe_instance_lock): Remove. (transport_layer_pipes::accept): Drop entire pipe_instance handling. (transport_layer_pipes::close): Ditto.
2012-11-23 * cygserver.cc (main): Call listen right after creating theCorinna Vinschen
transport. * transport_pipes.cc (transport_layer_pipes::listen): Create first instance of the named pipe here. Connect the client side to block it for further use by the system. (transport_layer_pipes::accept): Don't handle first pipe instance here. Change debug output accordingly.
2012-11-23* configure.in: Remove unneeded ALLOC substitution.Christopher Faylor
* configure: Regenerate. * aclocal.m4: Ditto.
2012-11-23* configure.in: Add previously-missed AC_NO_EXECUTABLES.Christopher Faylor
* configure: Regenerate. * aclocal.m4: Ditto.
2012-11-23cygwin/ChangeLog:Christopher Faylor
2012-11-23 Christopher Faylor <me.cygwin2012@cgf.cx> * Makefile.in: Use explicit path to mkdir. lsaauth/ChangeLog: 2012-11-23 Christopher Faylor <me.cygwin2012@cgf.cx> * Makefile.in: Use /bin/mkdir to make directories. testsuite/ChangeLog: 2012-11-23 Christopher Faylor <me.cygwin2012@cgf.cx> * Makefile.in: Remove old Makefile.common'isms. Don't rely on in-build tools.
2012-11-23 * sysv_sem.cc (semundo_clear): Move condition to break fromCorinna Vinschen
inner loop to the right spot.
2012-11-23ChangeLog:Christopher Faylor
2012-11-12 Christopher Faylor <me.cygwin2012@cgf.cx> * Makefile.common: Revamp for new configury. Add default compilation targets, include .E processing. Add magic for allowing "CFLAGS" to control optimization options in "CXXFLAGS". * configure.cygwin: New include for Cygwin configure.in's. * acinclude.m4: Delete old definitions. Implement AC_WINDOWS_HEADERS, AC_WINDOWS_LIBS, AC_CYGWIN_INCLUDES, target_builddir, winsup_srcdir. * aclocal.m4: Regenerate. * autogen.sh: New file. * ccwrap: New script. * c++wrap: New script. * config.guess: New script. * config.sub: New script. * configure: Regenerate. * configure.in: Eliminate LIB_AC_PROG_* calls in favor of standard. Delete ancient target test. * install-sh: New script. cygserver/ChangeLog: 2012-11-12 Christopher Faylor <me.cygwin2012@cgf.cx> * Makefile.in: Revamp for new configury. * configure.in: Revamp for new configury. * aclocal.m4: Regenerate. * configure: Ditto. * autogen.sh: New script. cygwin/ChangeLog: 2012-11-22 Christopher Faylor <me.cygwin2012@cgf.cx> * select.cc (select): Don't return -1 when we've timed out after looping. 2012-11-22 Christopher Faylor <me.cygwin2012@cgf.cx> * Makefile.in: Revamp for new configury. (datarootdir): Add variable setting. (winver_stamp): Accommodate changes to mkvers.sh setting. (libc.a): Fix race when libm.a might not have been built yet. * configure.in: Revamp for new configury. * aclocal.m4: Regenerate. * configure: Ditto. * autogen.sh: New script. * mkvers.sh: Find include directives via CFLAGS and friends rather than assuming that w32api lives nearby. utils/ChangeLog: 2012-11-12 Christopher Faylor <me.cygwin2012@cgf.cx> * aclocal.m4: Regenerate. * configure: Ditto. * autogen.sh: New script. * configure.in: Revamp for new configury. * Makefile.in: Revamp for new configury. Rename ALL_* to just *. Always use "VERBOSE" setting. (MINGW_CXX): Don't include CFLAGS in definition. (all): Define target first, before everything else so that it is the default. (ps.exe): Don't add useless -lcygwin. (ldh.exe): For consistency, add to existing MINGW_LDFLAGS rather than redefining them. (cygcheck.exe): Always include -lz for MINGW_LDFLAGS. Don't try to figure out where to find it. (dumper.exe): Simplify check. Assume libraries are installed rather than trying to retrieve from source tree. (install): Just use /bin/mkdir to create directories. (Makefile): Regenerate when standard dependencies change. * dump_setup.cc: Always include zlib.h. Remove accommodations for it possibly not existing. * parse_pe.cc: Add define which allows building with installed binutils package. * dumper.cc: Ditto.