summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* * miscfuncs.cc (WritePipeOverlapped): Define second parameter LPCVOID,Corinna Vinschen2012-06-273-3/+9
| | | | | rather than PCVOID. * miscfuncs.h (WritePipeOverlapped): Ditto.
* * advapi32.cc (_ADVAPI32_): Define. Explain why.Corinna Vinschen2012-06-274-3/+41
| | | | | | | | | | | | | (ImpersonateNamedPipeClient): Add missing WINAPI. * ntdll.h (STATUS_INVALID_PARAMETER): Only define if it isn't already. (STATUS_DLL_NOT_FOUND): Ditto. (STATUS_ENTRYPOINT_NOT_FOUND): Ditto. (enum _EVENT_TYPE): Guard against redefinition since it's already defined in Mingw64's ntdef.h. (enum _TIMER_TYPE): Ditto. (enum _SECTION_INHERIT): Define if using Mingw64 headers since it's missing in Mingw64's ntdef.h. * winlean.h (__STRALIGN_H_): Define before including windows.h.
* * winsup.h (GetLastError): Drop redundant definition.Corinna Vinschen2012-06-262-4/+5
|
* * libc/include/sys/types.h: Don't use the same preprocessor guard for time_t,Christopher Faylor2012-06-262-1/+10
| | | | | timespec, and itimerspec. Add a separate guard specifically for timespec and always unconditionally define itimerspec.
* fix typoChristopher Faylor2012-06-261-1/+1
|
* * cygwait.cc (cancelable_wait): Make sure that timer is cancelled beforeChristopher Faylor2012-06-252-6/+10
| | | | cancelling thread.
* * cygwait.h (cancelable_wait): Need to force time to negative to indicateChristopher Faylor2012-06-252-1/+6
| | | | relative time.
* PR 14125Doug Evans2012-06-232-0/+103
| | | | | | | | | | | | | | | | | | | | | | | | * NEWS: Document additions to .gdb_index. * dwarf2read.c: #include "gdb/gdb-index.h". (DW2_GDB_INDEX_SYMBOL_STATIC_SET_VALUE): New macro. (DW2_GDB_INDEX_SYMBOL_KIND_SET_VALUE): New macro. (DW2_GDB_INDEX_CU_SET_VALUE): New macro. (dwarf2_read_index): Recognize version 7. (dw2_do_expand_symtabs_matching): New args want_specific_block, block_kind, domain): All callers updated. (dw2_find_symbol_file): Handle new index CU values. (dw2_expand_symtabs_matching): Match symbol kind if requested. (add_index_entry): New args is_static, kind. All callers updated. (offset_type_compare, uniquify_cu_indices): New functions (symbol_kind): New function. (write_psymtabs_to_index): Remove duplicate CU values. (write_psymtabs_to_index): Write .gdb_index version 7. doc/ * gdb.texinfo (Index Section Format): Document version 7 format. include/gdb/ * gdb-index.h: New file.
* * path.cc (realpath): Fix comment.Corinna Vinschen2012-06-222-2/+6
|
* * path.cc (realpath): Call mount_info::conv_to_posix_path rather thanCorinna Vinschen2012-06-212-1/+10
| | | | | mount_info::cygdrive_posix_path to convert DOS paths to POSIX paths. Add comment to explain why that's necessary at all.
* * cygwait.h (LARGE_NULL): Define.Christopher Faylor2012-06-196-9/+31
| | | | | | | | | | | | | | (cancelable_wait): Define variant which accepts DWORD time argument. (cygwait): Use cancelable_wait with DWORD argument. (cygwait): Use cancelable_wait with DWORD argument and cw_sig_eintr for timeout-only case. * exceptions.cc (handle_sigsuspend): Use LARGE_NULL as second argument to distinguish between cancelable_wait variants. * thread.cc (pthread_mutex::lock): Ditto. (pthread::join): Ditto. (semaphore::_timedwait): Ditto. * thread.h (fast_mutex::lock): Ditto. * wait.cc (wait4): Ditto.
* Revert errneous checkin.Christopher Faylor2012-06-1920-77/+95
| | | | Check in actual change associated with ChangeLog.
* * cygwait.cc (cancelable_wait): Mimic old cygwait behavior more closely wrtChristopher Faylor2012-06-1920-90/+78
| | | | | | | | handling of call_signal_handler. * cygwait.h (WAIT_CANCELED): Move here and redefine. (WAIT_SIGNALED): Ditto. * thread.h (WAIT_CANCELED): Delete. (WAIT_SIGNALED): Ditto.
* merge from gccDJ Delorie2012-06-192-0/+5
|
* * cygheap.cc (init_cygheap::init_installation_root): Rearrange codeCorinna Vinschen2012-06-182-6/+28
| | | | | creating valid native NT installation_root path. Only strip last backslash from path if the result is a valid NT path. Explain why.
* Add '#include "cygwait.h"' throughout, where appropriate.Christopher Faylor2012-06-1718-176/+269
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * DevNotes: Add entry cgf-000012. * Makefile.in (DLL_OFILES): Add cygwait.o. * sigproc.h: Remove cygwait definitions. * cygwait.h: New file. Define/declare Cygwin waitfor functions. * cygwait.cc: Ditto. * exceptions.cc: Include cygwait.h. (handle_sigsuspend): Accommodate change in cancelable_wait arguments. (sigpacket::process): Display thread tls in debugging output. * fhandler.cc (fhandler_base_overlapped::wait_overlapped): Use symbolic names for signal and cancel return. * fhandler_console.cc (fhandler_console::read): Ditto. (fhandler_dev_dsp::Audio_out::waitforspace): Ditto. fhandler_dev_dsp::Audio_in::waitfordata): Ditto. * fhandler_fifo.cc (fhandler_fifo::wait): Ditto. * fhandler_serial.cc (fhandler_serial::raw_read): Ditto. * fhandler_tty.cc (fhandler_pty_slave::read): Ditto. * select.cc (cygwin_select): Ditto. * wait.cc (wait4): Ditto. * thread.cc (cancelable_wait): Move definition to cygwait.h. (pthread_cond::wait): Accommodate change in cancelable_wait arguments. (pthread_mutex::lock): Ditto. (pthread_spinlock::lock): Ditto. (pthread::join): Ditto. (pthread::thread_init_wrapper): Display tls in debugging output. (semaphore::_timedwait): Ditto. * thread.h (cw_sig_wait): Move to cygwait.h. (cw_cancel_action): Delete. (cancelable_wait): Move declaration to cygwait.h.
* 2012-06-12 Rafael Ávila de Espíndola <respindola@mozilla.com>Rafael Ávila de Espíndola2012-06-122-1/+6
| | | | * plugin-api.h (ld_plugin_output_file_type): Add LDPO_PIE.
* Fix last ChangeLog entry.Yaakov Selkowitz2012-06-121-1/+1
|
* * regex/regcomp.c (p_ere): Allow vertical-line followingYaakov Selkowitz2012-06-112-0/+8
| | | | left-parenthesis in ERE, as in glibc.
* * include/sys/elf_common.h (R_386_16): Define.Yaakov Selkowitz2012-06-102-0/+11
| | | | | | (R_386_PC16): Define. (R_386_8): Define. (R_386_PC8): Define.
* * select.cc (cygwin_select): Remove select_timeout test.Christopher Faylor2012-06-103-6/+9
| | | | | (select_stuff::wait): Return select_set_zero on timeout. (thread_socket): Report timeout when debugging.
* merge from gccDJ Delorie2012-06-083-0/+17
|
* * avr.h: (AVR_ISA_XCH): New define.Nick Clifton2012-06-072-3/+15
| | | | | (AVR_ISA_XMEGA): Use it. (XCH, LAS, LAT, LAC): New XMEGA opcodes.
* * include/elf.h: Update from FreeBSD.Yaakov Selkowitz2012-06-068-245/+1401
| | | | | | | | | | | | * include/machine/elf.h: New header, from FreeBSD. * include/sys/elf.h: Ditto. * include/sys/elf32.h: Update from FreeBSD. * include/sys/elf64.h: Ditto. * include/sys/elf_common.h: Ditto. (R_IA64_*): Define Linux-style names as aliases to R_IA_64_*. (R_SH_*): Define, based on sh-4 psABI. (R_390_*): Define, based on s390x psABI. * include/sys/elf_generic.h: Ditto.
* * libc/stdio/findfp.c (__sinit): Avoid infinite recursion onCorinna Vinschen2012-06-052-0/+10
| | | | _REENT_SMALL targets. Add comment to explain.
* * fhandler_disk_file.cc (fhandler_disk_file::link ): TranslateCorinna Vinschen2012-06-042-1/+7
| | | | STATUS_NOT_SUPPORTED to EPERM as well.
* * dtable.cc (dtable::dup3): Only return with lock set when O_EXCL flag isChristopher Faylor2012-06-043-2/+16
| | | | | passed in. * syscalls.cc (dup_finish): Pass O_EXCL in flags to dtable::dup3.
* * DevNotes: Add entry cgf-000011.Christopher Faylor2012-06-037-20/+74
| | | | | | | | | | | | | | | | | | | * fhandler.h (fhandler_base::refcnt): Delete. (fhandler_base::inc_refcnt): New function. (fhandler_base::dec_refcnt): New function. * cygheap.h (cygheap_fdnew::~cygheap_fdnew): Accommodate split of refcnt to inc_refcnt/dec_refcnt. (cygheap_fdget::cygheap_fdget): Ditto. (cygheap_fdget::~cygheap_fdget::cygheap_fdget): Ditto. * dtable.cc (dtable::release): Ditto. (cygwin_attach_handle_to_fd): Ditto. (dtable::init_std_file_from_handle): Ditto. (dtable::dup3): On success, return with fdtab locked. * dtable.h (dtable): Add dup_finish as a friend. * syscalls.cc (dup_finish): Define new function. Increment refcnt while fdtab is locked. (dup2): Use common dup_finish() to perform dup operation. (dup3): Ditto.
* * new-features.sgml (ov-new1.7.16): Document ReFS support.Corinna Vinschen2012-06-032-0/+8
|
* *** empty log message ***Corinna Vinschen2012-06-031-0/+2
|
* * globals.cc (ro_u_refs): New R/O unicode string.Corinna Vinschen2012-06-0310-23/+143
| | | | | | | | | | | | | | | | | | | | | | | | | | | * mount.cc (fs_info::update): Recognize ReFS. * mount.h (enum fs_info_type): Add refs. (class fs_info): Add refs flag and accessor methods. * ntdll.h (RtlAddAccessAllowedAceEx): Declare. (RtlAddAccessDeniedAceEx): Declare. * path.h (path_conv::fs_is_refs): Define. * sec_helper.cc (_recycler_sd): New function to create security descriptors suitable for the recycler bin starting with Vista. * security.cc (add_access_allowed_ace): Use RtlAddAccessAllowedAceEx and drop code to set AceFlags explicitely. (add_access_denied_ace): Use RtlAddAccessDeniedAceEx and drop code to set AceFlags explicitely. * security.h (_recycler_sd): Declare. (recycler_sd): Define. * syscalls.cc (desktop_ini): Change formatting. (desktop_ini_ext): Define third line of recycler desktop.ini file since Vista, (try_to_bin): Handle ReFS just like NTFS. Write Vista and later Recycler in all uppercase, just like shell32 does when recreating it. Fix comments to include ReFS. Don't implicitely reuse object attributes from earlier NtOpenFile call, rather recreate it for safety. Use recycler_sd call when creating security descriptor for Recycler dirs and files on Vista and later. Write third line of desktop.ini when on Vista and later.
* * cygcheck.cc (dump_sysinfo): Change "Server 8" to officialCorinna Vinschen2012-06-032-2/+7
| | | | "Server 2012".
* * winbase.h: Add missing copyright date.Christopher Faylor2012-06-032-1/+5
|
* * select.cc (cygwin_select): Make sure that we only return -1 as an errorChristopher Faylor2012-06-032-6/+17
| | | | | return. (select_stuff::wait): Semi-revert to previous method for filling out w4.
* * select.cc (cygwin_select): Add some comments.Christopher Faylor2012-06-032-8/+24
| | | | (select_stuff::wait): Ditto.
* * DevNotes: Add entry cgf-000010.Christopher Faylor2012-06-035-149/+216
| | | | | | | | | | | | | | | | * select.cc (set_handle_or_return_if_not_open): Remove unneeded final backslash from definition. (cygwin_select): Reorganize to incorporate outer retry loop. Move remaining time recalculation here for retry case. Use select_stuff::wait_states for loop control. (select_stuff::cleanup): Avoid unneeded initialization. (select_stuff::wait): Modify definition to return select_stuff::wait_states. Eliminate is_cancelable. Don't element 1 of an array if it is a cancel handle. Remove loop. Rely on being called from enclosing loop in cygwin_select. Remove time recalculation when restarting. Try harder to always return from the bottom. * select.h (select_stuff::wait_state): New enum. (select_stuff::wait): Modify declaration to return select_stuff::wait_states.
* * exceptions.cc (setup_handler): Make debugging output a little more verbose.Christopher Faylor2012-06-032-1/+6
|
* * cygtls.h (_cygtls::protect_linked_list): Delete unused field.Christopher Faylor2012-06-022-1/+4
|
* Fix typo.Corinna Vinschen2012-05-311-1/+1
|
* * libc/stdio/local.h (_newlib_sfp_lock_exit): Fix typo in non-pthreadCorinna Vinschen2012-05-312-1/+6
| | | | version.
* * libc/stdio/fgetws.c (_fgetws_r): Call _mbsnrtowcs_r rather thanCorinna Vinschen2012-05-302-3/+12
| | | | _mbsrtowcs_r and restrict number of wide chars to n - 1.
* * hookapi.cc (find_first_notloaded_dll): Extend comment. Fix usage ofCorinna Vinschen2012-05-303-9/+23
| | | | | | | | mapped memory. Shorten static library name buffer to MAX_PATH. Use strlcpy to copy library name to buffer. Only Unmap "map" if it has been Mapped before. * pinfo.cc (status_exit): Drop unneeded declaration of find_first_notloaded_dll in favor of the declaration in winsup.h.
* * thread.cc: Remove temporary newlib workaround, now that newlibCorinna Vinschen2012-05-302-85/+12
| | | | | | | | | | handles thread cancellation by itself. (class __cygwin_lock_handler): Remove. (__cygwin_lock_cleanup): Remove. (__cygwin_lock_lock): Revert newlib workaround, (__cygwin_lock_trylock): Ditto. (__cygwin_lock_unlock): Ditto. (pthread::pop_cleanup_handler): Ditto.
* * libc/stdio/local.h (_newlib_flockfile_start): New macro toCorinna Vinschen2012-05-3046-161/+301
| | | | | | | | | | | | | | | secure stream related critical section against thread cancellation. (_newlib_flockfile_exit): Ditto. (_newlib_sfp_lock_end): Ditto. (_newlib_sfp_lock_start): Ditto for the list of streams. (_newlib_sfp_lock_exit): Ditto. (_newlib_sfp_lock_end): Ditto. Use aforementioned macros in place of _flockfile/_funlockfile and __sfp_lock_acquire/__sfp_lock_release throughout the code. * libc/stdio/fclose.c: Explicitely disable and re-enable thread cancellation. Explain why. * libc/stdio/freopen.c: Ditto. * libc/stdio64/freopen64.c: Ditto.
* Resync config/ from GCC.Joseph Myers2012-05-2913-13/+273
|
* * select.cc (select_stuff::wait): Temporarily disable restartingCorinna Vinschen2012-05-292-3/+14
| | | | entirely.
* * security.h (cygsidlist::+=): Correctly copy well_known_sid info fromCorinna Vinschen2012-05-292-3/+11
| | | | source cygsid.
* * Makefile.in (LIBS): Re-add advapi32.dll. Explain why.Corinna Vinschen2012-05-295-30/+36
| | | | | | | * make-64bit-version-with-mingw-w64.sh (LIBS): Ditto. * cyglsa.c: Drop NTDLL function declarations. Use equivalent advapi32 functions again, throughout. * cyglsa64.dll: Regenerate.
* * registry.cc (reg_key::build_reg): Fix typo in debug output.Corinna Vinschen2012-05-252-1/+5
|
* * select.cc (select_stuff::wait): When not returning after receivingCorinna Vinschen2012-05-252-4/+16
| | | | | a signal, recalculate timeout. Apply temporary fix to avoid crashes after calling the signal handler. Explain.