summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* * mount.cc (mount_info::conv_to_win32_path): Remove unused code.Corinna Vinschen2011-05-244-9/+9
| | | | | | * mount.h (class mount_info): Remove sys_mount_table_counter member. * shared_info.h (class shared_info): Ditto. (CURR_SHARED_MAGIC): Update.
* 2011-05-24 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>Andreas Krebbel2011-05-242-0/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * config/tc-s390.c (md_gather_operands): Emit an error for odd numbered registers used as register pair operand. 2011-05-24 Andreas Krebbel <Andreas.Krebbel@de.ibm.com> * opcode/s390.h: Add S390_OPCODE_REG_EVEN flag. 2011-05-24 Andreas Krebbel <Andreas.Krebbel@de.ibm.com> * s390-opc.c: Add new instruction types marking register pair operands. * s390-opc.txt: Match instructions having register pair operands to the new instruction types. 2011-05-24 Andreas Krebbel <Andreas.Krebbel@de.ibm.com> * gas/s390/esa-g5.d: Fix register pair operands. * gas/s390/esa-g5.s: Likewise. * gas/s390/esa-z9-109.d: Likewise. * gas/s390/esa-z9-109.s: Likewise. * gas/s390/zarch-z196.d: Likewise. * gas/s390/zarch-z196.s: Likewise. * gas/s390/zarch-z9-109.d: Likewise. * gas/s390/zarch-z9-109.s: Likewise. * gas/s390/zarch-z900.d: Likewise. * gas/s390/zarch-z900.s: Likewise. * gas/s390/zarch-z990.d: Likewise. * gas/s390/zarch-z990.s: Likewise.
* * pinfo.h (struct _pinfo): Reduce size of progname array slightly.Corinna Vinschen2011-05-242-2/+11
| | | | Explain why.
* * cygtls.h (strerror_buf): Resize to allow '-'.Eric Blake2011-05-232-2/+3
|
* strerror: match recent glibc changesEric Blake2011-05-232-4/+9
| | | | | * errno.cc (strerror): Print unknown errno as int. (__xpg_strerror_r): Likewise, and don't clobber strerror buffer.
* Fix typo in ChangeLog of previous commitChris Sutcliffe2011-05-231-1/+1
|
* 2011-05-23 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>Chris Sutcliffe2011-05-232-1/+9
| | | | | | | * include/time.h (daytime, timezone, tzname): Rework guards to expose when compiles with __STRICT_ANSI__. Thanks to Felipe Contreras for the report.
* * fhandler_process.cc (thread_info::fill_if_match): Reformat.Corinna Vinschen2011-05-232-7/+22
| | | | | (format_process_maps): Ditto. Fetch pointer to procinfo structure from mapped process. Print info about global shared Cygwin regions.
* 2011-05-22 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>Chris Sutcliffe2011-05-232-5/+7
| | | | | | | * include/stdlib.h (strtod): Remove possible static declaration to resolve issue with gcc. Thanks to Tobias Burnus for the report.
* 2011-05-22 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>Chris Sutcliffe2011-05-232-4/+11
| | | | | | | * include/stdlib.h (_rotl, _lrotl, _rotr, _lrotr): Resolve conflict with gcc by wrapping the functions in brackets. Thanks to Kai Tietz for the report.
* 2011-05-22 A.B., Khalid <abkhd@users.sourceforge.net>Chris Sutcliffe2011-05-233-6/+15
| | | | | * Makefile.in: Add support for msvcr100.dll. * msvcrt.def.in: Ditto.
* 2011-05-22 Antoine LECA <antoinel@users.sourceforge.net>Chris Sutcliffe2011-05-232-11/+17
| | | | | | * mingwex/mingw-fseek.c: The anonymous union feature for LARGE_INTEGER is not always available, go the long way and use the explicit named union members, which are also declared in winnt.h.
* 2011-05-22 Antoine LECA <antoinel@users.sourceforge.net>Chris Sutcliffe2011-05-232-1/+5
| | | | * mingwex/isblank.c: Fix typo in declaration.
* 2011-05-22 Antoine LECA <antoinel@users.sourceforge.net>Chris Sutcliffe2011-05-233-2/+11
| | | | | | | * include/_mingw.h: Define GCC system_header only if PCC is not defined. * include/stdlib.h: Fix a long-standing typo which prevented correct use of the MB_CUR_MAX macro/variable when DECLSPEC is not supported and <stdlib.h> is included before <ctype.h>.
* 2011-05-22 Chris Sutcliffe <ir0nh34d@users.sf.net>Chris Sutcliffe2011-05-232-1/+7
| | | | | | * include/wingdi.h (GCP_RESULTSW): Correct defintion. Thanks to Albrecht Schlosser for the report and the fix.
* 2011-05-22 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>Chris Sutcliffe2011-05-232-0/+7
| | | | | | * include/wchar.h: Include stdio.h to grab definition of FILENAME_MAX. Thanks to Jim Bell for the report and Greg Chicares for the fix.
* * fhandler_process.cc (struct dos_drive_mappings): Use malloc/freeCorinna Vinschen2011-05-212-44/+108
| | | | | | | | | | | | | | | | rather than cmalloc/cfree. Check return value from malloc before using it. (struct heap_info): Ditto. (struct thread_info): Ditto. Rename from stack_info. Rename members and local variables accordingly. (thread_info::thread_info): Store stack and TEB addresses. (thread_info::fill_if_match): Print "teb" if a TEB address has been found. Special case for WOW64, explain why. (format_process_maps): Fetch PEB address. Print MEM_RESERVE regions with equal signs to distinguish them from PAGE_NOACCESS regions. Fix printing of 'p' and 's' to differ between MEM_PRIVATE and MEM_MAPPED pages, as on Linux. Print 'g' instead of 'p for PAGE_GUARD pages. Print PEB and SharedUserData area if recognized.
* * miscfuncs.cc (CygwinCreateThread): Fix condition for adding theCorinna Vinschen2011-05-202-5/+8
| | | | guardsize to the stacksize. Fix accompanying comment.
* * miscfuncs.cc (CygwinCreateThread): Add accidentally missing comment.Corinna Vinschen2011-05-202-0/+5
|
* * fhandler_process.cc (struct heap_info): Change type of base and endCorinna Vinschen2011-05-202-12/+122
| | | | | | members to char *. Print "shared" rather than "share". (struct stack_info): New class to fetch process stack information. (format_process_maps): Initialize and check for stack information.
* * miscfuncs.cc (thread_wrapper): Remove statements added for debuggingCorinna Vinschen2011-05-202-2/+5
| | | | purposes.
* * child_info.h (CURR_CHILD_INFO_MAGIC): Update.Corinna Vinschen2011-05-2010-127/+295
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | (class child_info_fork): Remove stacksize, add stackaddr and guardsize members. * dcrt0.cc (child_info_fork::alloc_stack_hard_way): Partial rewrite to regenerate the stack exactly as in the parent. (child_info_fork::alloc_stack): Set stackaddr to 0, rather than stacksize. (dll_crt0_1): Check for stackaddr before changing the stack addresses in the TEB. * fork.cc (frok::child): Check for stackaddr here. (frok::parent): Set ch.stackaddr and ch.guardsize if not called from the main thread. * init.cc (dll_entry): Replace pointer to NT_TIB with pointer to TEB. Fix incorrectly changed address test before removing _my_tls. Set StackLimit to NULL on Windows 2000. Explain why. * miscfuncs.cc (struct thread_wrapper_arg): Store stackbase rather than stacksize, store commitaddr, remove guardsize. Store all pointers as char * for easier address arithmetic. (thread_wrapper): Rewrite to remove OS stack before calling thread function. Add lots of comments to explain what we do. (CygwinCreateThread): Reserve our own stack in case we got no application stack. Add comments. * ntdll.h (struct _TEB): Extend defintion up to DeallocationStack member. * thread.cc (pthread_attr::pthread_attr): Use "(size_t) -1" rather then 0xffffffff. * wincap.h (wincaps::has_stack_size_param_is_a_reservation): New element. * wincap.cc: Implement above element throughout.
* * thread.cc: Mark psiginfo and psignal as available in list ofYaakov Selkowitz2011-05-192-2/+7
| | | | optional cancellation points.
* * new-features.sgml (ov-new1.7.10): Document __fpurge.Yaakov Selkowitz2011-05-192-1/+5
|
* * cygwin.din (__fpurge): Export.Yaakov Selkowitz2011-05-194-1/+10
| | | | | * posix.sgml (std-solaris): Add __fpurge. * include/cygwin/version.h (CYGWIN_VERSION_API_MINOR): Bump.
* * libc/include/stdio_ext.h: New header.Yaakov Selkowitz2011-05-193-0/+50
| | | | * libc/stdio/fpurge.c [!__rtems__] (__fpurge): New function.
* * Makefile.am (install-data-local): Fix condition and rm call.Corinna Vinschen2011-05-193-4/+9
| | | | * Makefile.in: Regenerate.
* * posix.sgml (std-susv4): Remove chroot, futimes, hstrerror.Yaakov Selkowitz2011-05-182-4/+14
| | | | | | | (std-deprec): Add chroot. (std-bsd): Add futimes, hstrerror. (std-notimpl): Add clock_nanosleep, nexttoward, nexttowardf. Remove initstate, which is implemented and listed in std-susv4.
* * new-features.sgml (ov-new1.7.10): Document error.h functions.Yaakov Selkowitz2011-05-182-0/+9
|
* * cygwin.din (error): Export.Yaakov Selkowitz2011-05-186-1/+128
| | | | | | | | | | | | | | | | (error_at_line): Export. (error_message_count): Export. (error_one_per_line): Export. (error_print_progname): Export. * errno.cc (error_message_count): Define. (error_one_per_line): Define. (error_print_progname): Define. (_verror): New static function. (error): New function. (error_at_line): New function. * posix.sgml (std-gnu): Add error, error_at_line. * include/error.h: New header. * include/cygwin/version.h (CYGWIN_VERSION_API_MINOR): Bump.
* * new-features.sgml (ov-new1.7.10): Document CPU-time clock support.Yaakov Selkowitz2011-05-172-3/+18
| | | | Move pthread stack management APIs to separate listitem.
* * cygwin.din (clock_getcpuclockid): Export.Yaakov Selkowitz2011-05-1711-11/+156
| | | | | | | | | | | | | | | | | | | | | | | | | | | (pthread_getcpuclockid): Export. * hires.h (PID_TO_CLOCKID): New macro. (CLOCKID_TO_PID): New macro. (CLOCKID_IS_PROCESS): New macro. (THREADID_TO_CLOCKID): New macro. (CLOCKID_TO_THREADID): New macro. (CLOCKID_IS_THREAD): New macro. * ntdll.h (enum _THREAD_INFORMATION_CLASS): Add ThreadTimes. * posix.sgml (std-notimpl): Add clock_getcpuclockid and pthread_getcpuclockid from here... (std-susv4): ... to here. (std-notes): Remove limitations of clock_getres and clock_gettime. Note limitation of timer_create to CLOCK_REALTIME. * sysconf.cc (sca): Set _SC_CPUTIME to _POSIX_CPUTIME, and _SC_THREAD_CPUTIME to _POSIX_THREAD_CPUTIME. * thread.cc (pthread_getcpuclockid): New function. * timer.cc (timer_create): Set errno to ENOTSUP for CPU-time clocks. * times.cc (clock_gettime): Handle CLOCK_PROCESS_CPUTIME_ID and CLOCK_THREAD_CPUTIME_ID. (clock_getres): Ditto. (clock_settime): Set errno to EPERM for CPU-time clocks. (clock_getcpuclockid): New function. * include/pthread.h (pthread_getcpuclockid): Declare. * include/cygwin/version.h (CYGWIN_VERSION_API_MINOR): Bump.
* * miscfuncs.cc (thread_wrapper): Remove unused _cygtls record.Corinna Vinschen2011-05-173-2/+10
| | | | * mmap.cc (is_mmapped_region): Avoid crash if no mmaps exist.
* PR ld/12760Alan Modra2011-05-172-2/+11
| | | | | | | | | | | | | | include/ * bfdlink.h (struct bfd_link_callbacks <notice>): Add "flags" and "string" param. bfd/ * coff-aux.c (coff_m68k_aux_link_add_one_symbol): Adjust "notice" call. * elflink.c (elf_link_add_object_symbols): Likewise. * linker.c (_bfd_generic_link_add_one_symbol): Likewise. ld/ * ldmain.c (notice): Add "flags" and "string" param. * plugin.c (plugin_notice): Likewise. Handle indirect, warning and constructor syms.
* * libc/include/time.h (CLOCK_PROCESS_CPUTIME_ID): Rename fromYaakov Selkowitz2011-05-163-4/+12
| | | | | | | CLOCK_PROCESS_CPUTIME. (CLOCK_THREAD_CPUTIME_ID): Rename from CLOCK_THREAD_CPUTIME. * libc/include/sys/features.h [__CYGWIN__] (_POSIX_CPUTIME): Define. (_POSIX_THREAD_CPUTIME): Define.
* * globals.cc (__getlogin_username): Remove.Corinna Vinschen2011-05-163-5/+16
| | | | | | * uinfo.cc (getlogin_r): Fetch username from cygheap. (getlogin): Add static buffer username and fetch username from getlogin_r.
* * cygtls.h (struct _local_storage): Remove unused members rarg andCorinna Vinschen2011-05-165-51/+57
| | | | | | | | _localtime_buf. Remove username in favor of a global buffer. Reorder slightly to keep the net.cc stuff together. * globals.cc (__getlogin_username): New global char buffer. * tlsoffsets.h: Regenerate. * uinfo.cc (getlogin): Copy username into __getlogin_username.
* * libc/stdlib/strtod.c (_strtod_r): Fix nf/nd counts to not exceedCorinna Vinschen2011-05-162-8/+15
| | | | DBL_DIG.
* * heap.cc (heap_init): Rewrite initial heap allocation to use addressesCorinna Vinschen2011-05-166-60/+82
| | | | | | | | | | beyond 0x20000000. Explain why and how. * shared.cc (shared_info::heap_slop_size): Remove. * shared_info.h (class shared_info): Remove heap_slop_inited and heap_slop members. Remove heap_slop_size declaration. (CURR_SHARED_MAGIC): Update. * wincap.cc: Throughout, drop heapslop. * wincap.h (struct wincaps): Drop heapslop.
* * dcrt0.cc (child_info_fork::alloc_stack_hard_way): Check if theCorinna Vinschen2011-05-165-9/+59
| | | | | | | | | requested stack is application-provided within the user heap or an mmapped region. If so, just use it. Add comment to explain why. * miscfuncs.cc (thread_wrapper): If an application-provided stack has been given, implement cygtls area at the stackbase. Fix comment. * mmap.cc (is_mmapped_region): New function. * winsup.h (is_mmapped_region): Declare.
* include/Alan Modra2011-05-152-1/+4
| | | | | | * bfdlink.h (struct bfd_link_hash_entry): Remove u.undef.weak field. bfd/ * linker.c (_bfd_generic_link_add_one_symbol): Don't init u.undef.weak.
* * miscfuncs.cc (thread_wrapper): Add comments to assembler code.Corinna Vinschen2011-05-152-15/+21
|
* * new-features.sgml (ov-new1.7.10): Document pthread_attr_getguardsize,Corinna Vinschen2011-05-152-2/+9
| | | | | pthread_attr_setstack, pthread_attr_setstackaddr and pthread_attr_setguardsize.
* * libc/include/sys/features.h (_POSIX_THREAD_ATTR_STACKADDR): DefineCorinna Vinschen2011-05-152-1/+6
| | | | to 200112L for Cygwin.
* * cygwin.din (pthread_attr_getguardsize): Export.Corinna Vinschen2011-05-1512-24/+274
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | (pthread_attr_setguardsize): Export. (pthread_attr_setstack): Export. (pthread_attr_setstackaddr): Export. * init.cc (dll_entry): Remove wow64_test_stack_marker. Check for unusual stack address by testing stack addresses from current TEB. Check validity of _my_tls by testing if it's within the stack as given in current TEB. * miscfuncs.cc (struct thread_wrapper_arg): New structure used to push all required information to thread_wrapper function. (thread_wrapper): Wrapper function for actual thread function. If an application stack has been given, change %ebp and %esp so that the thread function runs on that stack. If the thread has been created by CygwinCreateThread, set up the POSIX guard pages if necessary. (CygwinCreateThread): New function. * miscfuncs.h (CygwinCreateThread): Declare. * ntdll.h (struct _TEB): Define all members up to Peb. * posix.sgml (std-susv4): Move pthread_attr_getguardsize, pthread_attr_setguardsize and pthread_attr_setstack here. (std-deprec): Add pthread_attr_setstackaddr. * sysconf.cc (sca): Set _SC_THREAD_ATTR_STACKADDR to _POSIX_THREAD_ATTR_STACKADDR. * thread.cc (pthread::precreate): Copy pthread_attr stackaddr and guardsize members. (pthread::create): Call CygwinCreateThread. (pthread_attr::pthread_attr): Initialize guardsize. (pthread_attr_setstack): New function. (pthread_attr_setstackaddr): New function. (pthread_attr_setguardsize): New function. (pthread_attr_getguardsize): New function. (pthread_getattr_np): Copy attr.guardsize. * thread.h (pthread_attr): Add member guardsize. * include/pthread.h (pthread_attr_getguardsize): Declare. (pthread_attr_setguardsize): Declare. * include/cygwin/version.h: Bump API minor number.
* * include/winbase.h (STACK_SIZE_PARAM_IS_A_RESERVATION): Define.Corinna Vinschen2011-05-152-0/+5
|
* * fhandler_process.cc (struct heap_info::heap): Convert base toCorinna Vinschen2011-05-133-26/+110
| | | | | | | | | | | | | | | | | | | | | | | uintptr_t. Add heap_id, end, flags members. (heap_info::heap_vm_chunks): Rename from heaps. (heap_info::heap_info): Rearrange using RtlQueryProcessDebugInformation to get information of heap virtual memory blocks. Store heap id and flags, as well as end address of each block. (heap_info::fill_if_match): Check incoming base address against full address range of heap chunks. Convert flag values in extra heap information. (format_process_maps): Change order so that heap check is done before MEM_MAPPED check since there are shareable heaps. * ntdll.h (PDI_HEAP_BLOCKS): Define. (HEAP_FLAG_NOSERIALIZE): Define. (HEAP_FLAG_GROWABLE): Define. (HEAP_FLAG_EXCEPTIONS): Define. (HEAP_FLAG_NONDEFAULT): Define. (HEAP_FLAG_SHAREABLE): Define. (HEAP_FLAG_EXECUTABLE): Define. (HEAP_FLAG_DEBUGGED): Define. (struct _DEBUG_HEAP_ARRAY): Define. (struct _DEBUG_HEAP_BLOCK): Define.
* Based on newlib patch to strptime by Peter Rosin <peda@lysator.liu.se>:Corinna Vinschen2011-05-122-0/+101
| | | | | | | | * libc/time/strptime.c (is_leap_year): New static function. (first_day): Ditto. (__strptime): Fill in tm_yday when all of tm_year, tm_mon and tm_mday are updated. Fill in tm_mon, tm_mday and tm_wday when both of tm_year and tm_yday are updated.
* * libc/time/strptime.c (strptime): Fill in tm_yday when all of tm_year,Corinna Vinschen2011-05-122-0/+87
| | | | | tm_mon and tm_mday are updated. Fill in tm_mon, tm_mday and tm_wday when both of tm_year and tm_yday are updated.
* * libc/time/strptime.c (first_day): Actually return the wdayCorinna Vinschen2011-05-122-2/+7
| | | | of the first day of the year.