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
AgeCommit message (Collapse)Author
2013-04-22 * include/sys/queue.h: Delete in favor of more complete newlib file.Corinna Vinschen
2013-04-22 Adapt to changes in newlib's sys/cdefs.h:Corinna Vinschen
* include/sys/sysinfo.h (struct sysinfo): Rename __unused member to __f. * libc/fts.c (__FBSDID): Drop definition. * regex/regexec.c (__unused): Drop definition.
2013-04-22 * include/cygwin/version.h (CYGWIN_VERSION_DLL_MINOR): Bump to 19.Corinna Vinschen
2013-04-16 * glob.cc: Include winsup.h before anything else.Corinna Vinschen
2013-04-12 * path.cc (symlink_info::check): Drop PC_KEEP_HANDLE flag forCorinna Vinschen
unrecognized reparse points as well. Reorganize code and comments handling reparse points for better readability.
2013-04-11 * hires.h (hires_ns::nsecs): Declare with bool parameter.Corinna Vinschen
* times.cc (hires_ns::nsecs): Take bool parameter. If set to true, don't use prime value (== return system wide absolute value).
2013-04-09fix YA typoChristopher Faylor
2013-04-09* cygtls.h (_cygtls::reset_signal_arrived): Actually reset the signal_arrivedChristopher Faylor
event. (_cygtls::handle_SIGCONT): Declare ew function. * cygwait.cc (is_cw_sig_handle): Delete. (is_cw_sig_cont): New convenience define. (cygwait): Clear signal if is_cw_sig_cont and we got a SIGCONT. * cygwait.h (cw_wait_mask): Add cw_sig_cont. * exceptions.cc (sig_handle_tty_stop): Tighten "incyg" region. Use cw_sig_cont param for cygwait. Don't zero signal here outside of lock. (sigpacket::setup_handler): Don't check for in_forkee since we will now never get here in that state. (_cygtls::handle_SIGCONT): Define new function. (sigpacket::process): Call handle_SIGCONT early to deal with SIGCONT. Nuke continue_now handling. Allow SIGKILL to kill a suspended process. Delete a couple of now-unneeded labels. (_cygtls::call_signal_handler): Reorganize setting of incyg within lock. * sigproc.cc (pending_signals): Simplify. (pending_signals::clear): New method. (_cygtls::remove_wq): Reorganize to always close wq.thread_ev if it exists to avoid handle leaks. (sig_clear): Simplify by just calling sigq.clear(). (sig_dispatch_pending): Always call sigq.pending even in signal thread to force another loop in wait_sig. (sig_send): Remove a "goto out" just before out: label. (pending_signals::add): Simplify. (pending_signals::del): Delete. (pending_signals::next): Delete. (wait_sig): Define variable q to be the start of the signal queue. Just iterate through sigq queue, deleting processed or zeroed signals. Only set clearwait when the current signal is SIGCHLD. * sigproc.h: Add a comment about an unused enum.
2013-04-08fix typoChristopher Faylor
2013-04-08 * fhandler_socket.cc (get_inet_addr): Handle abstract AF_LOCAL socket.Corinna Vinschen
(fhandler_socket::recv_internal): Create abstract socket name for AF_LOCAL datagram sockets. Explain why we do that.
2013-04-08* cygheap.cc (init_cygheap::find_tls): Add a comment.Christopher Faylor
* dcrt0.cc (parent_sigmask): Delete. (dll_crt0_1): Use spawn_info->moreinfo->sigmask rather than saved parent signal mask. * thread.cc (pthread::thread_init_wrapper): Add comment stressing the importance of maintaining ordering of statements.
2013-04-06 * mmap.cc (is_mmapped_region): Call LIST_UNLOCK on premature return.Corinna Vinschen
2013-04-03 * fhandler_proc.cc (format_proc_loadavg): Raise too small buffer sizeCorinna Vinschen
to avoid overwriting unrelated cygheap memory.
2013-04-03 * path.cc (class suffix_scan): Add member namelen.Corinna Vinschen
(suffix_scan::name_len): New method. (suffix_scan::has): Store namelen since we have it already anyway. Add a bit of explanation and a FIXME to comment. (suffix_scan::next): Never attach extra .lnk suffix if resulting filename length exceeds NAME_LEN. (symlink_info::check): Bail out immediately with ENAMETOOLONG if filename length exceeds NAME_LEN.
2013-04-01.Christopher Faylor
2013-03-31whitespaceChristopher Faylor
2013-03-31* child_info.h (cygheap_exec_info::sigmask): Declare new field.Christopher Faylor
* cygheap.cc (init_cygheap::find_tls): Rename threadlist_ix -> ix. Only take one pass through thread list, looking for eligible threads to signal. Set a new param indicating that function has found a sigwait* mask. * cygheap.h (init_cygheap::find_tls): Reflect new parameter. * dcrt0.cc (parent_sigmask): New variable. (child_info_spawn::handle_spawn): Save parent's signal mask here. (dll_crt0_1): Restore parent's signal mask to tls sigmask as appropriate. Call sig_dispatch_pending to flush signal queue when we can finally do something with signals. * exceptions.cc (sigpacket::process): Avoid attempting to handle signals if we haven't finished initializing. Rely on the fact that find_tls will do mask checking and don't do it again. Delete ill-named 'dummy' variable. * sigproc.cc (cygheap_exec_info::alloc): Save calling thread's signal mask in new sigmask field. (wait_sig): Try to debug when WFSO fails and DEBUGGING is defined. * thread.cc (pthread::set_tls_self_pointer): Make this a true automatic method rather than inexplicably relying on a thread parameter. (pthread::thread_init_wrapper): Accommodate set_tls_self_pointer change to non-static. Initialize sigmask before setting tid or suffer signal races. * ehread.h (pthread::set_tls_self_pointer): Make non-static, delete parameter.
2013-03-31whitespaceChristopher Faylor
2013-03-29 * cygthread.cc (cygthread::terminate_thread): Only try to freeCorinna Vinschen
thread stack on systems not freeing it by themselves. * wincap.h (wincaps::terminate_thread_frees_stack): New element. * wincap.cc: Implement above element throughout.
2013-03-29* pinfo.h (pinfo::status_exit): Rename from former static function in pinfo.cc.Christopher Faylor
(pinfo::operator == (char *)): Remove unused operator. * pinfo.cc (pinfo::status_exit): Move this function info pinfo class. Use progname from the pinfo rather than myself. Be defensive when inspecting procinfo.
2013-03-29* sigproc.cc (wait_sig): Avoid uninitialized use of nb when retrying.Christopher Faylor
Consolidate two error messages into one.
2013-03-29* sigproc.cc (pending_signals::retry): Declare new element.Christopher Faylor
(pending_signals::pending): Force an additional loop through wait_sig by setting retry whenever this function is called. (sig_send): Reorganize to wait for SIGHOLD at bottom. Always add signal to pending queue and work on whole queue rather than just the one signal. Loop when sigq.retry is set. Fix long-broken check for SIGCHLD after queued signals.
2013-03-28* exceptions.cc (exception::handle): Generalize comment.Christopher Faylor
2013-03-19test checkinChristopher Faylor
2013-03-10add newsChristopher Faylor
2013-03-10* cygtls.h (_cygtls::signal_debugger): Change argument type.Christopher Faylor
(_cygtls::copy_context): Delete declaration. * exceptions.cc (exception::handle): Don't call copy_context() here. Move signal_handler call earlier and always call it. (_cygtls::copy_context): Delete definition. (_cygtls::signal_debugger): Move copy_context logic here. Suspend thread receiving signal before gathering context information.
2013-03-09* spawn.cc (child_info_spawn::worker): Save and restore my_wr_proc_pipe aroundChristopher Faylor
non-execing operations to avoid handle leak seen in http://cygwin.com/ml/cygwin/2013-03/msg00152.html .
2013-03-07 * include/sys/un.h (UNIX_PATH_MAX): Rename from UNIX_PATH_LEN toCorinna Vinschen
follow Linux. * fhandler_socket.cc: Change UNIX_PATH_LEN to UNIX_PATH_MAX throughout. (fhandler_socket::recv_internal): Don't return prematurely in case of successful return. For AF_LOCAL sockets, overwrite returned AF_INET name with AF_LOCAL name.
2013-03-07 * fhandler_socket.cc (fhandler_socket::bind): Fix check for AF_LOCALCorinna Vinschen
filename length to allow non-NUL terminated strings within namelen bytes. Copy over sun_path to local array sun_path to have a NUL-terminated string for subsequent function calls. Move path_conv check before OS bind call to not bind the socket before being sure the file doesn't exist. Add and fix comments.
2013-03-06 * mount.cc (fs_names): Add trailing NULL element to avoid potentialCorinna Vinschen
SEGV in format_proc_filesystems.
2013-03-01Remove now-inappropriate comment.Christopher Faylor
2013-03-01fix latest changelog descriptionChristopher Faylor
2013-03-01* exceptions.cc (exception::handle): Eliminate buggy recursed value and justChristopher Faylor
check if we're exiting.
2013-02-26 * include/pthread.h (pthread_atfork): Add missing declaration.Corinna Vinschen
2013-02-21* include/error.h (error_message_count): Declare as dllimport.Yaakov Selkowitz
(error_one_per_line): Ditto. (error_print_progname): Ditto.
2013-02-09 * child_info.h (CURR_CHILD_INFO_MAGIC): Update.Corinna Vinschen
(class child_info_fork): Drop extraneous semicolon.
2013-02-04 * fhandler_socket.cc (fhandler_socket::bind): Fix error code forCorinna Vinschen
empty filename.
2013-02-04 * fhandler_socket.cc (fhandler_socket::bind): Fix length check ofCorinna Vinschen
AF_LOCAL filename so it never accesses memory beyond namelen. Also make sure filename is NUL-terminated.
2013-01-31* DevNotes: Add entry cgf-000022.Christopher Faylor
* cygtls.h (_cygtls::func): Define as a sa_sigaction style function. * exceptions.cc (sig_handle_tty_stop): Ditto. (_cygtls::interrupt_setup): Fix coercion to accommodate 'func' change. (ctrl_c_handler): Use tty kill_pgrp to send a signal. (sigpacket::process): Don't process sigflush here. (_cygtls::call_signal_handler): Reorganize to avoid a race. Always call sa_sigaction style function. * fhandler_termios.cc (is_flush_sig): Define new function. (tty_min::kill_pgrp): Handle tty flush when signal detected. (fhandler_termios::bg_check): Be slightly more paranoid about checking for valid tty. (fhandler_termios::sigflush): Don't flush unless tty owner. * fhandler_tty.cc (fhandler_pty_slave::ioctl): Use tty kill_pgrp to send signal. (fhandler_pty_master::ioctl): Ditto. * signal.cc (killsys): Delete definition. * sigproc.h (killsys): Delete declaration. * include/cygwin/signal.h (siginfo_t): Simplify union/struct nesting slightly. Implement mechanism to allow cygwin data passing.
2013-01-23* miscfuncs.cc (__import_address): Check if malloc field points directly atChristopher Faylor
'malloc'.
2013-01-23* miscfuncs.cc (__import_address): On second thought, the chance that thisChristopher Faylor
pointer could be NULL is very low so don't bother checking for it.
2013-01-23* exceptions.cc (exception::handle): Make attempt to recursively dump stackChristopher Faylor
fatal.
2013-01-23* miscfuncs.cc (__import_address): Avoid NULL explicitly.Christopher Faylor
2013-01-23* miscfuncs.cc (__import_address): Avoid treating random instructions as importChristopher Faylor
jump. * malloc_wrapper.cc (malloc_init): Remove comment about 64-bit.
2013-01-21* dcrt0.cc (dll_crt0_1): Comment assumption.Christopher Faylor
* exceptions.cc (sigpacket::setup_handler): Avoid sending signals during fork processing.
2013-01-21* dcrt0.cc (dll_crt0_1): Flag that we are working "incyg". Handle any signalsChristopher Faylor
(presumably exiting signals) which may have come in while we are in the process of setting up.
2013-01-21Update copyrightsChristopher Faylor
2013-01-21* update-copyright: Recognize configure.ac scripts too.Christopher Faylor
2013-01-21Use same fix to silence newer gcc as in 64 bit branchCorinna Vinschen
2013-01-21* cygerrno.h (__reg3): Define.Christopher Faylor
* cygmalloc.h (__reg3): Ditto.