summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* * fhandler.cc (fhandler_base_overlapped::wait_overlapped): HandleChristopher Faylor2011-03-092-24/+49
| | | | | | | | | | overlapped_fallback error condition like other error conditions. Set res carefully and specifically for each condition rather than resorting to a default. (fhandler_base_overlapped::write_overlapped): Preserve errno in overlapped_fallback condition. Correct write_overlapped_fallback to avoid inappropriate looping. (fhandler_base_overlapped::write_overlapped_fallback): Add some more comments.
* * fhandler.cc (fhandler_base_overlapped::write_overlapp): Oops! AccommodateChristopher Faylor2011-03-092-1/+6
| | | | change in arguments to wait_overlapped.
* * errno.cc (errmap): Change mapping of NO_SYSTEM_RESOURCES to EFBIG.Christopher Faylor2011-03-096-57/+193
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * fhandler.cc (MAX_OVERLAPPED_WRITE_LEN): New constant. (MIN_OVERLAPPED_WRITE_LEN): Ditto. (fhandler_base_overlapped::close): Accommodate change in arguments to wait_overlapped. (fhandler_base_overlapped::setup_overlapped): Add __stdcall and regparm modifiers. (fhandler_base_overlapped::destroy_overlapped): Ditto. (fhandler_base_overlapped::has_ongoing_io): Ditto. (fhandler_base_overlapped::wait_overlapped): Modify to return an enum returning various states. Accept nonblocking parameter. (fhandler_base_overlapped::read_overlapped): Add __stdcall and regparm modifiers. Rework to attempt to be smarter about reacting to states returned by wait_overlapped. (fhandler_base_overlapped::write_overlapped): Ditto. Add fallback option for when wait_overlapped detects that smaller chunks must be written. (fhandler_base_overlapped::write_overlapped_fallback): Ditto. * fhandler.h (DEFAULT_PIPEBUFSIZE): Move definition here from pipe.cc. (fhandler_base::has_ongoing_io): Define with __stdcall and regparm modifiers. (fhandler_base_overlapped::wait_return): New enum. (fhandler_base_overlapped::max_atomic_write): New variable. (fhandler_base_overlapped:: wait_overlapped): Accommodate changes mentioned above to arguments and modifiers. (fhandler_base_overlapped::setup_overlapped): Ditto for modifiers. (fhandler_base_overlapped::read_overlapped): Ditto. (fhandler_base_overlapped::write_overlapped): Ditto. (fhandler_base_overlapped::destroy_overlapped): Ditto. (fhandler_base_overlapped::has_ongoing_io): Ditto. (fhandler_base_overlapped::fhandler_base_overlapped): Zero max_atomic_write. * fhandler_fifo.cc (fhandler_fifo::fhandler_fifo): Set max_atomic_write to the size of the DEFAULT_PIPEBUFSIZE. (fhandler_fifo::wait): Accommodate change in arguments to wait_overlapped. * pipe.cc (fhandler_pipe::fhandler_pipe): Set max_atomic_write to the size of the DEFAULT_PIPEBUFSIZE. (fhandler_pipe::create_selectable): Allow minimum size of DEFAULT_PIPEBUFSIZE. (DEFAULT_PIPEBUFSIZE): Delete here, move to fhandler.h.
* * security.cc: Fix copyright dates.Corinna Vinschen2011-03-082-2/+6
|
* * fhandler.cc (fhandler_base::open): When creating a file on aCorinna Vinschen2011-03-088-21/+85
| | | | | | | | | | | | | | | filesystem supporting ACLs, create the file with WRITE_DAC access. Explain why. * fhandler_disk_file.cc (fhandler_disk_file::mkdir): Ditto for directories. * fhandler_socket.cc (fhandler_socket::bind): Ditto for sockets. * path.cc (symlink_worker): Ditto for symlinks. * security.cc (get_file_sd): Always call GetSecurityInfo for directories on XP and Server 2003. Improve comment to explain why. (set_file_attribute): Explicitely cast mode_t value to bool in call to get_file_sd. * wincap.h (wincaps::use_get_sec_info_on_dirs): New element. * wincap.cc: Implement above element throughout.
* 2011-03-07 Chris Sutcliffe <ir0nh34d@users.sf.net>Chris Sutcliffe2011-03-083-16/+23
| | | | | | | * include/winbase.h (PSAPI_WORKING_SET_BLOCK, PSAPI_WORKING_SET_INFORMATION): Move from here... * include/psapi.h (PSAPI_WORKING_SET_BLOCK, PSAPI_WORKING_SET_INFORMATION): ... to here.
* sim: bfin: new portMichael Frysinger2011-03-062-0/+86
| | | | | | | This can boot Das U-Boot and a Linux kernel. It also supports Linux userspace FLAT and FDPIC (dynamic and static) ELFs. Signed-off-by: Mike Frysinger <vapier@gentoo.org>
* 2011-03-05 Chris Sutcliffe <ir0nh34d@users.sf.net>Chris Sutcliffe2011-03-053-3/+8
| | | | | * include/w32api.h: Increment version to 3.16. * Makefile.in: Ditto.
* 2011-03-05 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>Chris Sutcliffe2011-03-052-0/+10
| | | | * include/commctrl.h (NMTCKEYDOWN): Define.
* 2011-03-05 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>Chris Sutcliffe2011-03-052-0/+37
| | | | | * include/wtsapi32.h (WTSSendMessageA, WTSSendMessageW, WTSSendMessage): Define.
* 2011-03-05 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>Chris Sutcliffe2011-03-052-0/+21
| | | | | * include/winbase.h (PSAPI_WORKING_SET_BLOCK, PSAPI_WORKING_SET_INFORMATION): Define.
* 2011-03-05 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>Chris Sutcliffe2011-03-052-4/+8
| | | | * include/winbase.h (__GNUC_EXTENSION): Define, replacing __MINGW_EXTENSION.
* Guard against M4 versions with a buggy strstr.Ralf Wildenhues2011-03-052-0/+12
| | | | | | config/: * override.m4: Error out if a buggy M4 was detected, to avoid spurious diffs in generated files.
* 2011-03-05 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>Chris Sutcliffe2011-03-052-1/+5
| | | | * lib/kernel32.def (FreeLibraryAndExitThread): Fix definition.
* 2011-03-04 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>Chris Sutcliffe2011-03-052-0/+15
| | | | | | * include/winbase.h (FILE_ENCRYPTABLE, FILE_IS_ENCRYPTED, FILE_READ_ONLY, FILE_ROOT_DIR, FILE_SYSTEM_ATTR, FILE_SYSTEM_DIR, FILE_SYSTEM_NOT_SUPPORT, FILE_UNKNOWN, FILE_USER_DISALLOWED): Define.
* 2011-03-04 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>Chris Sutcliffe2011-03-053-1/+12
| | | | | | * include/winioctl.h (_DRIVE_LAYOUT_INFORMATION_MBR): Add _DRIVE_LAYOUT_INFORMATION_MBR_DEFINED guard. * include/ddk/winddk.h (_DRIVE_LAYOUT_INFORMATION_MBR): Ditto.
* 2011-03-04 Seth Jackson <sethj@users.sourceforge.net>Chris Sutcliffe2011-03-053-0/+10
| | | | | * include/winnt.h (PAGE_WRITECOMBINE): Define. * include/winbase.h (THREAD_MODE_BACKGROUND_BEGIN, THREAD_MODE_BACKGROUND_END): Define.
* 2011-03-04 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>Chris Sutcliffe2011-03-052-2/+14
| | | | | | * include/winbase.h (__MINGW_EXTENSION): Define. (OVERLAPPED): Add __MINGW_EXTENSION around nameless union / struct to correct issue with -std=c99.
* * fhandler_procsys.cc (fhandler_procsys::exists): Rewrite.Corinna Vinschen2011-03-042-53/+133
| | | | | (fhandler_procsys::fill_filebuf): Fill buffer with valid string even if reading the symlink fails.
* Adjust test of with_ppl.Sebastian Pop2011-03-043-2/+7
| | | | | | | 2011-03-03 Sebastian Pop <sebastian.pop@amd.com> * configure.ac: Adjust test of with_ppl. * configure: Regenerated.
* * posix_ipc.cc (ipc_cond_timedwait): If ipc_mutex_unlock fails, returnCorinna Vinschen2011-03-032-5/+29
| | | | | | actual error number. (_mq_send): Break loop if ipc_cond_timedwait returns with error. (_mq_receive): Ditto.
* * libc/include/string.h: Include sys/cdefs.h.Corinna Vinschen2011-03-032-0/+5
|
* * libc/include/sys/cdefs.h (__CONCAT1): Define.Corinna Vinschen2011-03-033-1/+32
| | | | | | | | | (__CONCAT): Define. (__STRING): Define. (__XSTRING): Define. (__ASMNAME): Define. * libc/include/string.h (strerror_r): Use __ASMNAME to take target specific label prefixes into account.
* * errno.cc (__xpg_strerror_r): Add accidentally missing condition.Corinna Vinschen2011-03-032-0/+5
|
* * fhandler_procsys.cc (fhandler_procsys::open): Call worker existsCorinna Vinschen2011-03-022-1/+6
| | | | method, rather than wrapper.
* * include/ddk/winddk.h (TIMER_INFORMATION_CLASS): Define.Corinna Vinschen2011-03-022-0/+36
| | | | | | (TIMER_BASIC_INFORMATION): Define. (NtQueryTimer): Define. (ZwQueryTimer): Define.
* Add -lpwl to ppllibs, and -lisl to clooglibs.Sebastian Pop2011-03-024-52/+139
| | | | | | | | 2011-03-02 Sebastian Pop <sebastian.pop@amd.com> * configure.ac: Add -lpwl to ppllibs. * config/cloog.m4: Add -lisl to clooglibs. * configure: Regenerated.
* * autoload.cc (dll_load): Avoid in_forkee test since this apparently fails evenChristopher Faylor2011-03-012-2/+7
| | | | when not forked.
* * include/cygwin/version.h: Bump CYGWIN_VERSION_DLL_MINOR to 9.Christopher Faylor2011-03-012-1/+5
|
* 2011-03-01 Aaron Landwehr <snaphat@gmail.com>Jeff Johnston2011-03-013-2/+7
| | | | | * libm/complex/cproj.c: Fix typo. * libm/complex/cprojf.c: Ditto.
* * autoload.cc (dll_load): Only perform DONT_RESOLVE_DLL_REFERENCES hack onChristopher Faylor2011-03-014-1/+20
| | | | | | systems which need it. * wincap.cc (use_dont_resolve_hack): Set as appropriate. * wincap.h (use_dont_resolve_hack): Define.
* * autoload.cc (dll_load): Make inline. Clarify logic.Christopher Faylor2011-02-282-3/+10
|
* ChangeLog libiberty/Kai Tietz2011-02-282-0/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | 2011-02-28 Kai Tietz <kai.tietz@onevision.com> * filename_cmp.c (filename_ncmp): New function. * functions.texi: Regenerated. ChangeLog include/ 2011-02-28 Kai Tietz <kai.tietz@onevision.com> * filenames.h (filename_ncmp): New prototype. ChangeLog bfd/ 2011-02-28 Kai Tietz <kai.tietz@onevision.com> * archive.c (_bfd_find_nested_archive): Use filename_(n)cmp. (adjust_relative_path): Likewise. (_bfd_construct_extended_name_table): Likewise. * corefile.c (generic_core_file_matches_executable_p): Likewise. * elf32-bfin.c (bfinfdpic_relocate_section): Likewise. * elf32-frv.c (elf32_frv_relocate_section): Likewise. * elf32-spu.c (sort_bfds): Likewise. (spu_elf_auto_overlay): Likewise. * syms.c (_bfd_stab_section_find_nearest_line): Likewise. * xcofflink.c (xcoff_set_import_path): Likewise. * xtensa-isa.c (xtensa_regfile_lookup): Likewise. (xtensa_regfile_lookup_shortname): Likewise.
* gas/Maciej W. Rozycki2011-02-282-0/+5
| | | | | | | | | | * config/tc-mips.c (macro): Handle M_PREF_AB. include/opcode/ * mips.h (M_PREF_AB): New enum value. opcodes/ * mips-opc.c (mips_builtin_opcodes): Add "pref" macro.
* Swap ChangeLog entries.Maciej W. Rozycki2011-02-281-2/+3
|
* * autoload.cc (dll_load): Only call LoadLibraryExW withCorinna Vinschen2011-02-272-2/+11
| | | | | | DONT_RESOLVE_DLL_REFERENCES if a normal LoadLibrary call failed with ERROR_INVALID_ADDRESS. (LsaRegisterLogonProcess): Align comment to previous change.
* * autoload.cc: Use LoadDLLfuncEx3 for all winmm functions. Accommodate changesChristopher Faylor2011-02-262-38/+65
| | | | | | | | | | | to LoadDLLprime. (LoadDLLprime): Take an extra argument indicating whether this dll needs special handling on fork. Place this information in the "handle" location. (LoadDLLfuncEx3): Eliminate "func" handling. Pass new no_resolve_on_fork argument to LoadDLLprime. (dll_load): New function. (std_dll_init): Accommodate changes to dll_info::handle. Use dll_load to load DLL in both cases where it is used.
* * autoload.cc: Make autoloaded ntdll function non-optional. Ditto forCorinna Vinschen2011-02-263-16/+26
| | | | | | | secur32 functions, except for LsaRegisterLogonProcess. Change return value to ERROR_PROC_NOT_FOUND. Explain why. * sec_auth.cc (lsaauth): Handle ERROR_PROC_NOT_FOUND from call to LsaRegisterLogonProcess when generating the errno value.
* fix pr numberAlan Modra2011-02-251-1/+1
|
* PR 12519Alan Modra2011-02-252-3/+23
| | | | | * internal.h (ELF_SECTION_IN_SEGMENT_1): Don't match zero size sections at start or end of PT_DYNAMIC.
* ChangeLog include/Kai Tietz2011-02-232-90/+12
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2011-02-23 Kai Tietz <kai.tietz@onevision.com> * dwarf2.h (_ELF_DWARF2_H): Renamed to _DWARF2_H. (DWARF2_External_LineInfo, DWARF2_Internal_LineInfo, DWARF2_External_PubNames, DWARF2_Internal_PubNames, DWARF2_External_CompUnit, DWARF2_Internal_CompUnit, DWARF2_External_ARange, DWARF2_Internal_ARange): Removed. ChangeLog binutils/ 2011-02-23 Kai Tietz <kai.tietz@onevision.com> * dwarf.c (read_leb128): Use bfd_vma instead of long type. (dwarf_vmatoa): New helper routine. (process_extended_line_op): Use for adr bfd_vma type and print those typed values via BFD_VMA_FMT or via dwarf_vmatoa for localized prints. (fetch_indirect_string): Adjust offset's type. (decode_location_expression): Adjust argument types and uvalue type. (read_and_display_attr_value): Likewise. (read_and_display_attr): Likewise. (decode_location_expression): Adjust printf format. (process_debug_info): Likewise. (display_debug_lines_raw): Likewise. (display_debug_lines_decoded): Likewise. (display_debug_pubnames): Likewise. (display_debug_loc): Likewise. (display_debug_aranges): Likewise. * dwarf.h (DWARF2_External_LineInfo, DWARF2_Internal_LineInfo, DWARF2_External_PubNames, DWARF2_Internal_PubNames, DWARF2_External_CompUnit, DWARF2_Internal_CompUnit, DWARF2_External_ARange, DWARF2_Internal_ARange): Added.. (read_leb128): Adjust return type.
* * libc/stdio/fmemopen.c (fmemopen): Fix EINVAL condition. Avoid SEGVCorinna Vinschen2011-02-222-2/+7
| | | | if incoming buffer is NULL.
* * dcrt0.cc: Fix copyright dates.Corinna Vinschen2011-02-224-5/+11
| | | | | * winsup.h: Ditto. * syscalls.cc (_read): Move EXPORT_ALIAS to its rightful place.
* Forced checkinCorinna Vinschen2011-02-220-0/+0
|
* * cygwin.din: Mark __assert* and _abort as NOSIGFE.Christopher Faylor2011-02-222-4/+8
|
* Add missing Changelog entry for previous patch:Corinna Vinschen2011-02-211-0/+11
| | | | | | | | | | | * fhandler_socket (fhandler_socket::readv): Call recv_internal directly, rather than recvmsg. (fhandler_socket::writev): Call send_internal directly, rather than sendmsg. * net.cc (cygwin_recv): Call fhandler_socket::recvfrom directly, rather than cygwin_recvfrom. (cygwin_send): Call fhandler_socket::sendto directly, rather than cygwin_sendto.
* * fhandler_socket (fhandler_socket::readv): Call recv_internal directly,Corinna Vinschen2011-02-212-28/+44
| | | | | | | | | | rather than recvmsg. (fhandler_socket::writev): Call send_internal directly, rather than sendmsg. * net.cc (cygwin_recv): Call fhandler_socket::recvfrom directly, rather than cygwin_recvfrom. (cygwin_send): Call fhandler_socket::sendto directly, rather than cygwin_sendto.
* * fhandler.cc (fhandler_base_overlapped::close): Finish any pending I/O beforeChristopher Faylor2011-02-212-1/+15
| | | | | | closing. (fhandler_base_overlapped::wait_overlapped): Defensively zero bytes read. Add more info to debugging output.
* * dcrt0.cc (dll_crt0_1): Add a CYGHEAP_DEBUG conditional for debugging whichChristopher Faylor2011-02-182-2/+16
| | | | allocates a lot of space at startup.
* * cygwin.sc: Set alignment of .cygheap section to 64K.Corinna Vinschen2011-02-182-0/+5
|