summaryrefslogtreecommitdiffstats
path: root/winsup/cygwin
Commit message (Collapse)AuthorAgeFilesLines
...
* * fhandler_socket.cc (fhandler_socket::bind): Fix error code forCorinna Vinschen2013-02-042-1/+6
| | | | empty filename.
* * fhandler_socket.cc (fhandler_socket::bind): Fix length check ofCorinna Vinschen2013-02-042-4/+12
| | | | | AF_LOCAL filename so it never accesses memory beyond namelen. Also make sure filename is NUL-terminated.
* * DevNotes: Add entry cgf-000022.Christopher Faylor2013-01-319-68/+100
| | | | | | | | | | | | | | | | | | | | | | * 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.
* * miscfuncs.cc (__import_address): Check if malloc field points directly atChristopher Faylor2013-01-232-1/+7
| | | | 'malloc'.
* * miscfuncs.cc (__import_address): On second thought, the chance that thisChristopher Faylor2013-01-232-1/+6
| | | | pointer could be NULL is very low so don't bother checking for it.
* * exceptions.cc (exception::handle): Make attempt to recursively dump stackChristopher Faylor2013-01-232-1/+6
| | | | fatal.
* * miscfuncs.cc (__import_address): Avoid NULL explicitly.Christopher Faylor2013-01-232-1/+5
|
* * miscfuncs.cc (__import_address): Avoid treating random instructions as importChristopher Faylor2013-01-233-2/+12
| | | | | jump. * malloc_wrapper.cc (malloc_init): Remove comment about 64-bit.
* * dcrt0.cc (dll_crt0_1): Comment assumption.Christopher Faylor2013-01-213-0/+12
| | | | | * exceptions.cc (sigpacket::setup_handler): Avoid sending signals during fork processing.
* * dcrt0.cc (dll_crt0_1): Flag that we are working "incyg". Handle any signalsChristopher Faylor2013-01-212-1/+18
| | | | | (presumably exiting signals) which may have come in while we are in the process of setting up.
* Update copyrightsChristopher Faylor2013-01-211-1/+1
|
* * update-copyright: Recognize configure.ac scripts too.Christopher Faylor2013-01-212-2/+6
|
* Use same fix to silence newer gcc as in 64 bit branchCorinna Vinschen2013-01-211-1/+1
|
* * cygerrno.h (__reg3): Define.Christopher Faylor2013-01-213-4/+9
| | | | * cygmalloc.h (__reg3): Ditto.
* * cygerrno.h: Conditionally define __regN for cygserver.Christopher Faylor2013-01-212-0/+14
|
* * malloc_wrapper.cc (malloc_init): Re-add inadvertently dropped comment whichChristopher Faylor2013-01-212-0/+8
| | | | explains what's going on with the use_internal calculation.
* Throughout, update copyrights to reflect dates which correspond to main-branchChristopher Faylor2013-01-21158-215/+233
| | | | checkins. Regularize copyright format.
* Throughout, change __attribute__ ((regparm (N))) to just __regN. Throughout,Christopher Faylor2013-01-2160-513/+512
| | | | | | | | | | | | | | | | | | | (mainly in fhandler*) start fixing gcc 4.7.2 mismatch between regparm definitions and declarations. * gendef: Define some functions to take @ declaration to accommodate _regN defines which use __stdcall. * gentls_offsets: Define __regN macros as empty. * autoload.cc (wsock_init): Remove unneeded regparm attribute. * winsup.h (__reg1): Define. (__reg2): Define. (__reg3): Define. * advapi32.cc (DuplicateTokenEx): Coerce some initializers to avoid warnings from gcc 4.7.2. * exceptions.cc (status_info): Declare struct to use NTSTATUS. (cygwin_exception::dump_exception): Coerce e->ExceptionCode to NTSTATUS. * fhandler_clipboard.cc (cygnativeformat): Redefine as UINT to avoid gcc 4.7.2 warnings. (fhandler_dev_clipboard::read): Ditto.
* * update-copyright (update_maybe): Accommodate perl-style copyright comments.Christopher Faylor2013-01-212-2/+7
|
* * update-copyright: Silently skip nonexistent files. Display filename onChristopher Faylor2013-01-212-8/+22
| | | | update. Don't update non-Red Hat copyrights.
* * update-copyright: Update standard copyright information based on cvs log andChristopher Faylor2013-01-202-0/+85
| | | | current sandbox status.
* * malloc_wrapper.cc: Change 'use_internal_malloc' to 'use_internal' throughout.Christopher Faylor2013-01-204-32/+51
| | | | | | | | | | | | (export_malloc_called): Delete. (internal_malloc_determined): New variable. (malloc_init): Control calculation of internal/external malloc based on 'internal_malloc_determined'. Use import_address() to determine if malloc in user_data is ours or not. * miscfuncs.cc (thread_wrapper): Make static. (__import_address): Define new function. * miscfuncs.h (import_address): New define. (__import_address): Declare new function.
* * sigproc.cc (sig_dispatch_pending): Add correct regparm attributes to matchChristopher Faylor2013-01-202-8/+18
| | | | | | | | | declaration. (pid_exists): Ditto. (proc_subproc): Ditto. (sig_clear): Ditto. (sig_send): Ditto. (checkstate): Ditto.
* * syscalls.cc (rename): Remove ill-conceived NFS workaround fromCorinna Vinschen2013-01-192-46/+8
| | | | 2013-01-10 for self-inflicted NFS server problem.
* * exceptions.cc (ctrl_c_handler): Remove special-case handler forChristopher Faylor2013-01-193-9/+8
| | | | | | "cygwin_finished_initializing". * sigproc.cc (exit_thread): Undefine ExitThread earlier to avoid recursion on error return.
* * errno.cc (errmap): Map ERROR_LOCK_VIOLATION to EBUSY.Corinna Vinschen2013-01-182-3/+7
|
* * mmap.cc (handler_disk_file::msync): Add call to FlushFileBuffersCorinna Vinschen2013-01-182-1/+13
| | | | to implement MS_SYNC.
* * mmap.cc (handler_disk_file::msync): Retry up to 99 times if FlushViewOFileChristopher Faylor2013-01-182-7/+21
| | | | fails with ERROR_LOCK_VIOLATION.
* * sigproc.cc (no_signals_available): Finally remove this macro entirely.Christopher Faylor2013-01-162-14/+10
| | | | | (exit_thread): Ensure process lock is released on error exit. (sig_send): Simplify "its_me" test. Remove no_signals_available tests.
* * pthread.cc (pthread_exit): Add kludge to accommodate noreturn attribute.Christopher Faylor2013-01-162-1/+6
|
* fix typoChristopher Faylor2013-01-141-1/+1
|
* * include/pthread.h (pthread_exit): Mark as "noreturn".Christopher Faylor2013-01-142-1/+5
|
* fix typoChristopher Faylor2013-01-141-1/+1
|
* Fix copyrightsCorinna Vinschen2013-01-144-5/+5
|
* update with my changesChristopher Faylor2013-01-141-0/+21
|
* *** empty log message ***Corinna Vinschen2013-01-141-0/+27
|
* * exceptions.cc (signal_exit): Move captive process termintation...Christopher Faylor2013-01-147-38/+31
| | | | | | | | | | | | | | | | (_cygtls::interrupt_setup): ...into here. (sigpacket::process): Simplify setting of handler when have_execed. (_cygtls::interrupt_setup): Don't call proc_subproc when we've execed. * globals.cc (exit_states): Delete unneeded ES_EXEC_EXIT. * pinfo.cc (pinfo::exit): Change debugging output. Call proc_terminate rather than the now-obsolete sigproc_terminate. Don't set exit_state to ES_EXEC_EXIT. Set exit_state to ES_FINAL later. * sigproc.cc (sigproc_terminate): Delete function. (wait_sig): Don't call proc_subproc if have_execed. * sigproc.h (sigproc_terminate): Delete declaration. * sync.h (lock_process::lock_process): Don't set exit_state to ES_PROCESS_LOCKED. (lock_process::operator LONG): Define.
* * DevNotes: Add entry cgf-000021.Christopher Faylor2013-01-114-16/+29
| | | | | * select.cc (select): Unconditionally return when a signal is detected. (select_stuff::wait): Ditto.
* * syscalls.cc (rename): Drop handling paths > 32757 chars, emit EINVALCorinna Vinschen2013-01-112-22/+28
| | | | | | instead, thus simplifying code allocating and filling pfri. Drop size and use constant expression in NtSetInformationFile call. Add comments. Drop redundant test for fs_serial_number and change comment accordingly.
* * fhandler.h (class dev_console): Flag for expanded control sequence.Corinna Vinschen2013-01-113-3/+52
| | | | * fhandler_console.cc (char_command): Supporting cursor style modes.
* * path.h (path_conv::fs_type): New method.Corinna Vinschen2013-01-103-8/+74
| | | | | | * syscalls.cc (rename): Check for cross-device situation before touching anything. Explain why. Workaround NFS bug in call to NtSetInformationFile(FileRenameInformation).
* * cygerrno.h: Fix copyright.Corinna Vinschen2013-01-093-3/+6
| | | | * exceptions.cc: Drop comment explaining removed variable.
* * dcrt0.cc (main_thread_sinit): New inline function. Fix and explainCorinna Vinschen2013-01-092-2/+31
| | | | | a stdio initialization issue. (dll_crt0_1): Call main_thread_sinit rather than __sinit.
* * thread.cc (pthread_rwlock::lookup_reader): Remove parameter: always assumeChristopher Faylor2013-01-073-20/+29
| | | | | | | | | | | that we're looking for the current thread. (pthread_rwlock::tryrdlock): Eliminate self variable. Accommodate change in lookup_reader(). (pthread_rwlock::unlock): Ditto. (pthread_rwlock::rdlock): Ditto. Move add_reader call after writer tests to more closely mimic old behavior. (pthread_rwlock::wrlock): Accommodate change in lookup_reader(). * thread.h ((pthread_rwlock::lookup_reader): Eliminate argument.
* * thread.cc (pthread_rwlock::add_reader): Perform new operation here and returnChristopher Faylor2013-01-073-19/+27
| | | | | | | | pointer to allocated RWLOCK_READER structure. (pthread_rwlock::rdlock): Reorganize to reflect new add_reader functionality. (pthread_rwlock::tryrdlock): Ditto. Remove unneeded call to lookup_reader(). * thread.h (pthread_rwlock::RWLOCK_READER::RWLOCK_READER): New constructor. (pthread_rwlock::add_reader): Reflect new functionality.
* * globals.cc (exit_states): Renumber so that ES_EXIT_STARTING is first, asChristopher Faylor2013-01-043-2/+9
| | | | | | intended. * sigproc.cc (wait_sig): Only stop accepting signals after exit_state > ES_EXIT_STARTING.
* * sigproc.cc (exit_thread): Set thread signal mask so that no signals are sentChristopher Faylor2013-01-032-1/+7
| | | | to an exiting thread.
* * sigproc.cc (no_signals_available): Remove exit_state test since signals areChristopher Faylor2013-01-032-16/+24
| | | | | | | | available in a limited fashion when exiting. (sig_dispatch_pending): Ditto. (sig_send): Ditto. (exit_thread): Rearrange to avoid an unnecessary DuplicateProcess when exiting. (wait_sig): Allow special signals when exiting.
* update copyrightChristopher Faylor2013-01-021-1/+1
|
* * DevNotes: Add entry cgf-000020, relating to previous checkin.Christopher Faylor2013-01-022-1/+34
|