summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* * libc/stdio/vfprintf.c (_VFPRINTF_R): Use actual length ofCorinna Vinschen2009-06-165-28/+58
| | | | | | | | | | | radix char instead of assuming length 1. * libc/stdlib/gdtoa-gethex.c: Remove use of USE_LOCALE. (gethex): Allow multibyte decimal point. Fix compiler warnings due to different signedness of pointer types. * libc/stdlib/strtod.c: Remove use of USE_LOCALE. (_strtod_r): Allow multibyte decimal point. * libc/stdlib/wcstod.c (_wcstod_r): Evaluate correct wide char endptr position if the decimal point is a multibyte char.
* 2009-06-16 Craig Howland <howland@LGSInnovations.com>Jeff Johnston2009-06-163-2/+8
| | | | | | * libc/ctype/local.h (__locale_charset): Add arguments to prototype * libc/stdlib/local.h (__locale_charset): Ditto.
* 2009-06-16 Craig Howland <howland@LGSInnovations.com>Jeff Johnston2009-06-162-15/+18
| | | | | | | * libc/include/math.h: Simplify fpclassify, isinf, isnan, and signbit macros to remove un-necessary extension use. isinf and isnan also changed to use fpclassify. isfinite macro modified to run faster by only calling fpclassify once instead of possibly twice.
* merge from gccDJ Delorie2009-06-162-6/+19
|
* * net.cc (get_flags): New static function to generate interface flagsCorinna Vinschen2009-06-152-115/+300
| | | | | | | | | | | | value. (get_ipv4fromreg_ipcnt): New static function to fetch number of configured IPv4 addresses for a given NIC from registry. (get_ipv4fromreg): New static function to fetch configured IPv4 addresses for a given NIC from registry. (get_friendlyname): New static function to generate friendly name. (get_hwaddr): New static function to copy hardware address. (get_xp_ifs): Restructure slightly. Add code to generate IPv4 entries entries for interfaces which are disconnected.
* * configure.ac: Define is_elf for QNX Neutrino targets.Nick Clifton2009-06-153-2/+7
| | | | * configure: Regenerate.
* PR 10263Nick Clifton2009-06-152-10/+21
| | | | | | | | | | | | * arm-dis.c (print_insn): Ignore is_data if the user has requested the disassembly of data as well as instructions. * objdump.c (disassemble_bytes): Set the DISASSEMBLE_DATA bit in the flags field of the disassemble_info structure if the -D switch is in operation. * dis-asm.h (struct disassemble_info): New value for the flags field.
* * errno.cc (errmap): Add mapping for ERROR_IO_INCOMPLETE.Christopher Faylor2009-06-145-16/+47
| | | | | | | | | | | | | * fhandler.cc (fhandler_base::fcntl): Fix comment. (fhandler_base::wait_overlapped): Accept an optional len parameter. Use the len parameter when WriteFile fails with ERROR_IO_PENDING. Make debug output less alarming. (fhandler_base::write_overlapped): Pass len to wait_overlapped. * fhandler.h (fhandler_base::wait_overlapped): Add an optional argument denoting the number of characters intended to be written. * fhandler_tty.cc (fhandler_pty_master::close): Don't close archetype handles when cygwin is still initializing since the handles aren't actually opened at that point.
* * localtime.cc (time2): Take another stab at fixing a compiler warning.Corinna Vinschen2009-06-142-1/+5
|
* * localtime.cc (time2): Take a stab at fixing a compiler warning.Christopher Faylor2009-06-142-1/+5
|
* * fhandler.cc (fhandler_base::wait_overlapped): Honor nonblocking flag forChristopher Faylor2009-06-144-7/+21
| | | | | | writes. Don't reset event handle when we see a ERROR_IO_PENDING. * sigproc.cc (stopped_or_terminated): Use bool constants for consistency. * wait.cc (wait4): Remove nonsensical comment.
* * fhandler_socket.cc (fhandler_socket::recv_internal): Set namelenCorinna Vinschen2009-06-132-1/+11
| | | | pointer to NULL if name pointer is NULL. Explain why.
* * faq-using.xml (faq.using.emacs): Update.Corinna Vinschen2009-06-122-2/+12
|
* * localtime.cc (time2): Change "spring gap" to "spring forward gap"Corinna Vinschen2009-06-122-5/+10
| | | | in comment.
* * localtime.cc (time2): Add workaround for spring gap problem. AddCorinna Vinschen2009-06-122-1/+27
| | | | explaining comment.
* * Makefile.in (SUBLIBS): Add librt.a.Corinna Vinschen2009-06-122-1/+9
| | | | (librt.a): New rule to build librt.a.
* Improve ChangeLog entry. Fix posix_ipc.cc copyrightCorinna Vinschen2009-06-122-2/+3
|
* * posix_ipc.cc (check_path): Fix typo in comment. Align namingCorinna Vinschen2009-06-122-4/+17
| | | | convention rules to Linux. Add comment.
* Add PC-relative branch instructions to moxie port.Anthony Green2009-06-114-3/+15
|
* * path.cc (oopts): Sort alphabetically, add missing "auto" andCorinna Vinschen2009-06-102-31/+70
| | | | | | | | | | | "override" entries. (from_fstab_line): Handle mount points same as Cygwin itself. Use "cygdrive prefix" as posix name of cygdrive prefix. (from_fstab): Add auto entries for /usr/bin and /usr/lib. Add MOUNT_AUTOMATIC and MOUNT_IMMUTABLE flags to default root dir entry. Use "cygdrive prefix" as posix name of default cygdrive prefix. (getmntent): Allocate smaller buffers. Align output closer to output of mount(1).
* * libc/ctype/tolower.c (tolower): Cast conversion result fromCorinna Vinschen2009-06-093-2/+8
| | | | | mbtowc/wctomb to unsigned char to avoid negative return values. * libc/ctype/toupper.c (toupper): Ditto.
* * autoload.cc (GetSystemTimes): Remove.Corinna Vinschen2009-06-093-35/+44
| | | | | | | | | | * fhandler_proc.cc (format_proc_uptime): Use global system_info rather than retrieving a local copy of the SYSTEM_INFO. Drop call to GetSystemTimes and retrieve SystemPerformanceInformation on all systems again with buffer size big enough for 64 bit systems. (format_proc_stat): Use global system_info rather than retrieving a local copy of the SYSTEM_INFO. Retrieve SystemPerformanceInformation with buffer size big enough for 64 bit systems.
* Fix ChangeLog entryCorinna Vinschen2009-06-081-1/+1
|
* * autoload.cc (GetSystemTimes): Define.Corinna Vinschen2009-06-083-39/+61
| | | | | | | | | * fhandler_proc.cc (format_proc_uptime): Use GetSystemInfo to retrieve processor count. Use GetSystemTimes when available to retrieve system idle time. Improve debug output. (format_proc_stat): Use GetSystemInfo to retrieve processor count. Improve debug output. Ignore if SystemPerformanceInformation returns error. Explain why.
* * fork.cc (frok::parent): Remove ancient code erroneously flushingCorinna Vinschen2009-06-082-4/+5
| | | | stdout descriptor.
* * cygerrno.h (save_errno::~save_errno): Set errno directly to avoidCorinna Vinschen2009-06-082-1/+6
| | | | flooding debug output.
* * path.cc (symlink_info::check): Return with error set to ENOENT ifCorinna Vinschen2009-06-082-1/+7
| | | | STATUS_NO_MEDIA_IN_DEVICE is returned.
* * cygheap.h (mini_cygheap): New struct.Christopher Faylor2009-06-089-185/+104
| | | | | | | | | | | | | | | | | | | | | | | | | (init_cygheap): Inherit locale field via mini_cygheap. * cygheap.cc (cygheap_at_start): Define new variable. (cygheap): Initialize as cygheap_at_start so that locale information is always available. (cygheap_init): Initialize cygheap iff it is set to cygheap_at_start. * shared_info.h (memory_init): Accommodate argument change. * memory.cc (memory_init): Accept an argument indicating whether cygheap should be initialized or not. * dcrt0.cc (child_info_fork::handle_fork): Pass false to memory_init(). (child_info_spawn::handle_spawn): Ditto. (dll_crt0_0): Pass true to memory_init when not forking or execing. * cygheap.h (cygheap_types::HEAP_2_DLL): New enum. * dll_init.h (dll): Remove unused namelen field. (dll_list::load_after_fork): Accommodate change in arguments. * dll_init.cc (dll_list::alloc): Allocate dll information in the cygwin heap. (dll_list::detach): Free dll information from the cygwin heap. (dll_list::load_after_fork): Use dll information in the cygwin heap directly rather than querying parent. * fork.cc (frok::first_dll): Delete. (frok::child): Don't report on first_dll. Don't pass it to load_on_fork. (frok::parent): Don't set first_dll. (fork): Ditto.
* * include/ddk/ntapi.h: Add NtXxx equivalent to ZwXxx where missingCorinna Vinschen2009-06-075-12/+2029
| | | | | | | | | and vice versa. * include/ddk/ntifs.h: Ditto. * include/ddk/winddk.h: Ditto. * lib/ntdll.def (NtPlugPlayControl, NtQueryInstallUILanguage, ZwPlugPlayControl, ZwQueryInstallUILanguage): Add entry points defined in header, but missing in lib. Omit NT4-only entry points.
* * dll_init.cc (dll_list::alloc): Allocate memory using a sectionCorinna Vinschen2009-06-072-25/+72
| | | | | | | object. Explain why. Drop call to GetSystemInfo, rather call getpagesize to get allocation granularity. Only align to allocation granularity under WOW64. Use roundup2 to align. (dll_list::detach): Call NtUnmapViewOfSection instead of VirtualFree.
* * mmap.cc: Use NtUnmapViewOfSection instead of UnmapViewOfFileCorinna Vinschen2009-06-062-5/+12
| | | | | | throughout for symmetry. (fhandler_dev_mem::munmap): Use correct process handle in call to NtUnmapViewOfSection.
* Print moxie addresses nicely.Anthony Green2009-06-062-0/+6
|
* * dll_init.h (struct dll): Set size of name element to ANYSIZE_ARRAY.Corinna Vinschen2009-06-063-36/+60
| | | | | | | | * dll_init.cc: Fix formatting. (dll_list::alloc): Only allocate as much memory for struct dll as necessary for given DLL name. (dll_list::load_after_fork): Only read a single page of parent memory. Only read more if namelen indicates that it's necessary.
* * winbase.h (ilockexch): Fix asm constraints.Dave Korn2009-06-052-11/+25
| | | | (ilockcmpexch): Likewise.
* * heap.cc (heap_init): Fix typo in comment.Corinna Vinschen2009-06-052-1/+5
|
* * fhandler_clipboard.cc: Avoid calling system_printf.Corinna Vinschen2009-06-042-103/+112
| | | | | | | | (set_clipboard): Add basic error checking. Set errno here. Per MSDN, don't call GlobalFree on data block transferred to clipboard. (fhandler_dev_clipboard::write): Drop setting errno after call to set_clipboard. (fhandler_dev_clipboard::read): Add basic error checking. Simplify code.
* * new-features.sgml: Add changes to console BS and Space key.Corinna Vinschen2009-06-042-0/+9
|
* * fhandler_console.cc (set_console_title): Convert title string toCorinna Vinschen2009-06-042-5/+9
| | | | wchar_t and call SetConsoleTitleW.
* * fhandler_console.cc (fhandler_console::read): Allow Ctrl-Space toCorinna Vinschen2009-06-042-1/+9
| | | | emit a NUL byte.
* * thread.cc (__cygwin_lock_lock): Delete racy optimisation.Dave Korn2009-06-042-14/+10
| | | | (__cygwin_lock_unlock): Likewise.
* merge from gccDJ Delorie2009-06-032-0/+16
|
* * libc/string/wcwidth.c: Optimize for speed.Corinna Vinschen2009-06-034-4/+112
| | | | | | | | | | | * libc/locale/locale.c (lc_ctype_cjk_lang): New static int. (loadlocale): In case of setting LC_CTYPE, set lc_ctype_cjk_lang to 1 if the language is "jp", "ko", or "zh", to 0 otherwise. (__locale_cjk_lang): New function. * libc/string/local.h (__locale_cjk_lang): Declare. * libc/string/wcwidth.c: Fix comments. (__wcwidth): Handle CJK Ambiguous Width characters according to setting returned by __locale_cjk_lang.
* * strfuncs.cc (sys_cp_mbstowcs): Fix condition.Corinna Vinschen2009-06-032-1/+5
|
* ChangeLog:Ulrich Weigand2009-06-032-0/+12
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * mdebugread.c (mdebug_type_void, mdebug_type_char, mdebug_type_short, mdebug_type_int, mdebug_type_int_32, mdebug_type_int_64, mdebug_type_long_32, mdebug_type_long_64, mdebug_type_long_long_64, mdebug_type_unsigned_char, mdebug_type_unsigned_short, mdebug_type_unsigned_int_32, mdebug_type_unsigned_int_64, mdebug_type_unsigned_long_32, mdebug_type_unsigned_long_64, mdebug_type_unsigned_long_long_64, mdebug_type_adr_32, mdebug_type_adr_64, mdebug_type_float, mdebug_type_double, mdebug_type_complex, mdebug_type_double_complex, mdebug_type_fixed_dec, mdebug_type_float_dec, mdebug_type_string): Remove. (basic_type_data): New global variable. (basic_type): New function. (parse_type): Remove static basic type map map_bt. Call basic_type to get basic types instead of using mdebug_type_ variables. (parse_symbol): Use builtin types instead of mdebug_type_ variables. (upgrade_type): Likewise. (parse_procedure): Likewise. (psymtab_to_symtab_1): Likewise. (_initialize_mdebugread): Do not initialize mdebug_type_ variables. Initialize basic_type_data. include/coff/ChangeLog: * symconst.h (btLong64, btULong64, btLongLong64, btULongLong64, btAdr64, btInt64, btUInt64): New defines.
* * strfuncs.cc (sys_cp_wcstombs): Implement reverse functionalityCorinna Vinschen2009-06-032-12/+29
| | | | | | of the change to sys_cp_mbstowcs from 2009-05-30. (sys_cp_mbstowcs): Slightly reformat. Fix comment to accommodate change to sys_cp_wcstombs. Don't write to *ptr if dst is NULL.
* * fhandler_console.cc (fhandler_console::read): Convert Alt-BackspaceCorinna Vinschen2009-06-032-2/+10
| | | | to \033\177 or to \377 dependent on the setting of dev_state->metabit.
* * Makefile.tpl (all): Avoid a trailing backslash.Ralf Wildenhues2009-06-033-2/+10
| | | | * Makefile.in: Regenerate.
* * config.sub, config.guess: Update from upstream sources.Ben Elliston2009-06-023-40/+19
|
* 2009-06-02 Richard Earnshaw <rearnsha@arm.com>Jeff Johnston2009-06-022-5/+5
| | | | | * libc/include/sys/config.h: Remove specification of _REENT_SMALL for thumb2.
* * path.cc (path_conv::check): Don't call set_exec for files on "noacl"Corinna Vinschen2009-06-022-1/+9
| | | | mount points.