summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* PR gas/2626Nick Clifton2008-02-142-1/+8
| | | | | | | | | * avr.h (AVR_ISA_2xxe): Define. * config/tc-avr.c (mcu_types): Change the ISA tyoe of the attiny26 to AVR_ISA_2xxe. (avr_operand): Disallow post-increment addressing in the lpm instruction for the attiny26.
* Import this patch from gcc:Nick Clifton2008-02-142-12/+19
| | | | | | 2008-01-24 David Edelsohn <edelsohn@gnu.org> * libtool.m4: Backport AIX 6 support from ToT Libtool.
* * configure.in: Remove non-working options.Christopher Faylor2008-02-143-2160/+3195
| | | | * configure: Regenerate.
* * syscalls.cc (_isatty): Define as an alias to isatty to override newlibChristopher Faylor2008-02-133-2/+27
| | | | | | version. * thread.cc (pthread_kill): Deal with signal 0 as per POSIX and also avoid manipulating an invalid thread.
* * posix.sgml: Move llrint, llrintf, llrintl, lrintl, rintl, wcstol,Corinna Vinschen2008-02-132-11/+35
| | | | | | | | | wcstoll, wcstoul, wcstoull, wcsxfrm from unimplemented to implemented POSIX interfaces. Change headline of "GNU extensions" to "GNU and Linux extensions". Add fgetxattr, flistxattr, fremovexattr, fsetxattr, getxattr, lgetxattr, listxattr, llistxattr, lremovexattr, lsetxattr, removexattr, setxattr, wcpcpy and wcpncpy to list of implemented GNU functions.
* * cygtls.cc (_cygtls::init_exception_handler): Revert patchCorinna Vinschen2008-02-135-5/+58
| | | | | | | | | | from 2005-12-02. * exceptions.cc (stack_info::walk): Add workaround for NT 5.2 64 bit OSes. * wincap.h (wincaps::has_restricted_stack_args): New element. * wincap.cc: Implement above element throughout. (wincapc::init): Reset has_restricted_stack_args if not running under WOW64.
* 2008-02-11 Patrick Mansfield <patmans@us.ibm.com>Jeff Johnston2008-02-121-0/+180
| | | | | | | | | | * libc/machine/spu/straddr.h: New file, supplies _straddr. * libc/machine/spu/strcat.c: Use _straddr and _strcpy. * libc/machine/spu/strcpy.c: Use _strcpy. * libc/machine/spu/strcpy.h: Supply _strcpy for optimized SPU str[n]cpy and str[n]cat. * libc/machine/spu/strncat.c: Use _straddr and _strcpy. * libc/machine/spu/strncpy.c: Use _strcpy.
* 2008-02-12 Jeff Johnston <jjohnstn@redhat.com>Jeff Johnston2008-02-122-16/+22
| | | | | | | * libc/machine/powerpc/vfprintf.c (_VFPRINTF_R): Prepare for user specifying --disable-newlib-io-long-long on configure. Call _fflush_r instead of fflush. For _mbtowc_r, pass the reentrant pointer passed in rather than _REENT.
* 2008-02-12 Peter Rosin <peda@lysator.liu.se>Jeff Johnston2008-02-122-7/+8
| | | | | | * libc/stdlib/getopt.c (getopt_internal): Handle optional arguments better for long options and short options not appearing as the first option in a sequence.
* 2008-02-02 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>Chris Sutcliffe2008-02-123-12/+24
| | | | | * include/specstrings.h (IN, OUT, OPTIONAL): Remove. * include/windef.h (IN, OUT, OPTIONAL): Define.
* 2008-02-11 Patrick Mansfield <patmans@us.ibm.com>Jeff Johnston2008-02-116-142/+113
| | | | | | | | | | * libc/machine/spu/straddr.h: New file, supplies _straddr. * libc/machine/spu/strcat.c: Use _straddr and _strcpy. * libc/machine/spu/strcpy.c: Use _strcpy. * libc/machine/spu/strcpy.h: Supply _strcpy for optimized SPU str[n]cpy and str[n]cat. * libc/machine/spu/strncat.c: Use _straddr and _strcpy. * libc/machine/spu/strncpy.c: Use _strcpy.
* 2008-02-11 Patrick Mansfield <patmans@us.ibm.com>Jeff Johnston2008-02-112-10/+17
| | | | | * libc/machine/spu/strlen.c: Remove the len variable and unneeded calculation of its value.
* * fhandler_disk_file.cc (fhandler_disk_file::fgetxattr): Remove unusedCorinna Vinschen2008-02-113-4/+53
| | | | | | attr. (fhandler_disk_file::fsetxattr): Ditto. * include/attr/xattr.h: New file.
* * xtensa-config.h (XCHAL_HAVE_THREADPTR): Redefine to zero.Bob Wilson2008-02-112-1/+12
| | | | (XCHAL_NUM_AREGS, XCHAL_MAX_INSTRUCTION_SIZE): New.
* * dcrt0.cc (dll_crt0_1): Fix typo in call to sys_wcstombs.Corinna Vinschen2008-02-113-2/+7
| | | | * miscfuncs.cc (next_char): Initialize ret to keep gcc happy.
* Fix ChangeLog entry.Corinna Vinschen2008-02-101-1/+1
|
* * Makefile.in (DLL_OFILES): Add ntea.o.Corinna Vinschen2008-02-1011-130/+562
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * cygwin.din (getxattr, listxattr, removexattr, setxattr, lgetxattr, llistxattr, lremovexattr, lsetxattr, fgetxattr, flistxattr, fremovexattr, fsetxattr): Export Linux extended attribute functions. Sort. * errno.cc (errmap): Add mappings for ERROR_EAS_DIDNT_FIT, ERROR_EAS_NOT_SUPPORTED, ERROR_EA_LIST_INCONSISTENT, ERROR_EA_TABLE_FULL, ERROR_FILE_CORRUPT, ERROR_INVALID_EA_NAME. * fhandler.h (class fhandler_base): Declare new fgetxattr and fsetxattr methods. (class fhandler_disk_file): Ditto. * fhandler.cc (fhandler_base::fgetxattr): New method. (fhandler_base::fsetxattr): New method. * fhandler_disk_file.cc (fhandler_disk_file::fgetxattr): New method. (fhandler_disk_file::fsetxattr): New method. * ntdll.h (STATUS_EA_TOO_LARGE): Define. (STATUS_NONEXISTENT_EA_ENTRY): Define. (STATUS_NO_EAS_ON_FILE): Define. * ntea.cc (read_ea): Rewrite for long pathnames and for using with Linux extended attribute functions. (write_ea): Ditto. (getxattr_worker): New static function. (getxattr): New function. (lgetxattr): New function. (fgetxattr): New function. (listxattr): New function. (llistxattr): New function. (flistxattr): New function. (setxattr_worker): New static function. (setxattr): New function. (lsetxattr): New function. (fsetxattr): New function. (removexattr): New function. (lsetxattr): New function. (fsetxattr): New function. * security.h (read_ea): Change declaration according to above changes. (write_ea): Ditto. * include/cygwin/version.h: Bump API minor version.
* * libc/ftw.cc (ftw): Allow nfds < 0 for glibc compatibility.Corinna Vinschen2008-02-103-0/+15
| | | | * libc/nftw.c (nftw): Ditto.
* Fix typo in latest ChangeLog entry.Corinna Vinschen2008-02-071-1/+1
|
* * dtable.cc (dtable::init_std_file_from_handle): Set access toCorinna Vinschen2008-02-074-1/+15
| | | | | | | | read/write of handle is connected to a tty or console. * fhandler_dsp.cc (fhandler_dev_dsp::dup): Set open flags correctly after duplicating from archetype. * fhandler_tty.cc (fhandler_tty_slave::dup): Ditto. (fhandler_pty_master::dup): Ditto.
* * bsd_helper.cc: Replace %E __small_printf format specifier with %luCorinna Vinschen2008-02-064-11/+21
| | | | | | | and call to GetLastError throughout. * bsd_mutex.cc: Ditto. * sysv_sem.cc (semget): Replace %X __small_printf format specifier with %llx.
* * miscfuncs.cc (next_char): Fix typos in comment.Corinna Vinschen2008-02-063-14/+7
| | | | * strfuncs.cc: Remove cygserver guards.
* Remove dependency from Cygwin internal code.Corinna Vinschen2008-02-064-12/+24
| | | | | | | | | | | * Makefile.in (CYGWIN_OBJS): Remove smallprint.o. (cygserver.exe): Remove strfuncs.o (strfuncs.o): Drop rule. * bsd_log.cc (_vlog): Use snprintf/vsnprintf instead of __small_sprintf/__small_vsprintf. * sysv_sem.cc (seminit): Use sys_malloc instead of malloc. Use snprintf instead of __small_sprintf. (semunload): Free the above allocated sema_mtx names here.
* * fhandler.h (fhandler_console::trunc_buf): Add to use as cache forCorinna Vinschen2008-02-067-34/+226
| | | | | | | | | | | | | | | | | | | | | | truncated multibyte characters on input. (fhandler_console::write_replacement_char): Declare new method. * fhandler_console.cc (CONVERT_LIMIT): Raise to 64K. (fhandler_console::fhandler_console): Initialize trunc_buf. (ERR): Define as independent value again. (fhandler_console::write_replacement_char): New method to print replacement chars. (fhandler_console::write_normal): Add handling for truncated multibyte sequences. Call next_char instead of pathetic CharNextExA function. Don't change src, rather just work with found later on. * miscfuncs.cc (is_cp_multibyte): Move here from strfuncs.cc. Don't call Windows function, restrict to well-known ANSI/OEM codepages and UTF-8. (next_char): Call CharNextExA only for doublebyte codepages. Implement for UTF-8 here. * strfuncs.cc (is_cp_multibyte): Move to miscfuncs.cc. * winsup.h (next_char): Declare. * include/limits.h (MB_LEN_MAX): Set to maximum value of MB_CUR_MAX as defined by newlib for now.
* * autoload.cc (CharToOemA): Remove.Corinna Vinschen2008-02-057-92/+136
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | (CharNextExA): Define. * environ.cc (codepage_init): Un-static. Set active_codepage to active codepage. Default to ansi regardless of buf pointer. * fhandler.h (dev_console::get_console_cp): New method. (dev_console::con_to_str): Change declaration according to new implementation. (dev_console::str_to_con): Ditto. * fhandler_console.cc (cp_convert): Remove. (dev_console::con_to_str): Redefine to take WCHAR as incoming console char. (dev_console::get_console_cp): Return correct codepage according to alternate_charset_active setting. (dev_console::str_to_con): Redefine to create WCHAR buffer for console output. (fhandler_console::read): Read console input as WCHARs. (base_chars): Fix typo in comment. (fhandler_console::char_command): Save and restore console output buffer using UNICODE functions. (fhandler_console::write_normal): Convert to write output in UNICODE. Use CharNextExA to recognize multibyte characters in input. Workaround problem with UTF-8 and MultiByteToWideChar. Simplify the loop for printing "normal" characters. * strfuncs.cc (active_codepage): New variable to store active codepage. (get_cp): Call codepage_init() if active_codepage is uninitialized. Just return active_codepage. (is_cp_multibyte): New function. * winsup.h (active_codepage): Declare. (codepage_init): Declare. (is_cp_multibyte): Declare.
* * mips.h: Update copyright.Adam Nemet2008-02-042-3/+18
| | | | | | | (INSN_CHIP_MASK): New macro. (INSN_OCTEON): New macro. (CPU_OCTEON): New macro. (OPCODE_IS_MEMBER): Handle Octeon instructions.
* * mips.h: Update copyright.Adam Nemet2008-02-042-1/+7
| | | | (E_MIPS_MACH_OCTEON): New macro.
* * Makefile.in: Don't link strfuncs.o from the Cygwin build dir.Corinna Vinschen2008-02-042-2/+10
| | | | Build it again with __OUTSIDE_CYGWIN__ defined.
* * smallprint.cc (__small_vsprintf): Use HEAP_NOTHEAP for type.Corinna Vinschen2008-02-043-2/+21
| | | | | | * strfuncs.cc (sys_wcstombs_alloc): Guard use of ccalloc to !__OUTSIDE_CYGWIN__ for use in cygserver. (sys_mbstowcs_alloc): Ditto.
* * configure.ac: Enable fortran for cris-*-elf and crisv32-*-elf.Hans-Peter Nilsson2008-02-023-2/+5
| | | | * configure: Regenerate.
* 2008-02-01 Brian Dessent <brian@dessent.net>Chris Sutcliffe2008-02-022-5/+14
| | | | | * Makefile.in: Add rules to generate multiple versions of libmoldname.a for the different runtime versions.
* 2008-02-02 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>Chris Sutcliffe2008-02-023-23/+34
| | | | | | | * include/specstrings.h: new file, move pseudo modifiers from windef.h. * include/windef.h (__in, __inout, __in_opt, __in_bcound, __in_ecount, __out, __out_ecount_part, __struct_bcount, __field_ecount_opt, __out_bcount_opt): Move to specstrings.h.
* 2008-01-31 Marc Gauthier <marc@tensilica.com>Bob Wilson2008-02-013-4/+9
| | | | | * configure.ac (xtensa*-*-*): Recognize processor variants. * configure: Regenerate.
* * miscfuncs.cc (cygwin_wcsncasecmp): Never access more than nCorinna Vinschen2008-02-012-18/+28
| | | | | characters. (cygwin_strncasecmp): Ditto. Fix for strings longer than n.
* * string.h: Re-enable inline strcasematch and strncasematchCorinna Vinschen2008-02-0112-60/+69
| | | | | | | | | | | | | | | implementations and rename to ascii_strcasematch/ascii_strncasematch. * dcrt0.cc: Replace str[n]casematch with ascii_str[n]casematch where applicable. * environ.cc: Ditto. * fhandler_process.cc: Ditto. * hookapi.cc: Ditto. * path.cc: Ditto. * spawn.cc: Ditto. * strace.cc: Ditto. * syscalls.cc: Ditto. * uinfo.cc: Ditto. * winf.cc: Ditto.
* * dcrt0.cc (dll_crt0_1): Use GetCommandLineW and convert to currentCorinna Vinschen2008-01-318-55/+155
| | | | | | | | | | | | | | | | | | | | | | | | codepage. * environ.cc (set_file_api_mode): Always set file api to ANSI if not using the OEM codepage. (codepage_init): Allow "utf8" codepage. * fhandler_clipboard.cc (set_clipboard): Convert clipbuf to void and cast as needed. Always convert input to wide char and write CF_UNICODETEXT to clipboard. (fhandler_dev_clipboard::read): Read CF_UNICODETEXT from clipboard and convert to current codepage if CYGWIN_NATIVE format is not available. * fhandler_console.cc: Drop redundant undef. * smallprint.cc (__small_vsprintf): Convert PWCHAR and UNICODE_STRING to current codepage for printing. * strfuncs.cc: Use PWCHAR throughout. (get_cp): Return CP_UTF8 for utf8_cp codepage setting. (sys_wcstombs): Allow NULL target buffer. (sys_wcstombs_alloc): New function. (sys_mbstowcs_alloc): Ditto. * winsup.h (codepage_type): Add utf8_cp. (HEAP_NOTHEAP): Define. (sys_wcstombs_alloc): Declare. (sys_mbstowcs_alloc): Declare.
* * cygheap.h (struct cwdstuff): Add dir member to store cwd handle.Corinna Vinschen2008-01-313-31/+41
| | | | | | | (cwdstuff::get_handle): New method. * path.cc (cwdstuff::set): When doit is true, always try to get directory handle. Fail if duplicating handle fails. Store handle in dir. Fix potential SEGV when setting drive_length.
* 2008-01-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>Paolo Bonzini2008-01-313-2/+20
| | | | | | | | PR bootstrap/34922 * configure.ac (PARSE_ARGS): Push suitable setting of ac_subdirs_all, for `./configure --help=recursive'. Handle `+' in generic toplevel directory disabling. * configure: Regenerate.
* Remove conflict marker as obvious.Brian Ford2008-01-301-1/+0
|
* Add OpenVMS extensions.Nick Clifton2008-01-302-6/+96
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * ia64.h (SHF_IA_64_VMS_GLOBAL, SHF_IA_64_VMS_OVERLAID) (SHF_IA_64_VMS_SHARED, SHF_IA_64_VMS_VECTOR) (SHF_IA_64_VMS_ALLOC_64BIT, SHF_IA_64_VMS_PROTECTED) (SHT_IA_64_VMS_TRACE, SHT_IA_64_VMS_TIE_SIGNATURES) (SHT_IA_64_VMS_DEBUG, SHT_IA_64_VMS_DEBUG_STR) (SHT_IA_64_VMS_LINKAGES, SHT_IA_64_VMS_SYMBOL_VECTOR) (SHT_IA_64_VMS_FIXUP, DT_IA_64_VMS_SUBTYPE) (DT_IA_64_VMS_IMGIOCNT, DT_IA_64_VMS_LNKFLAGS) (DT_IA_64_VMS_VIR_MEM_BLK_SIZ, DT_IA_64_VMS_IDENT) (DT_IA_64_VMS_NEEDED_IDENT, DT_IA_64_VMS_IMG_RELA_CNT) (DT_IA_64_VMS_SEG_RELA_CNT, DT_IA_64_VMS_FIXUP_RELA_CNT) (DT_IA_64_VMS_FIXUP_NEEDED, DT_IA_64_VMS_SYMVEC_CNT) (DT_IA_64_VMS_XLATED, DT_IA_64_VMS_STACKSIZE) (DT_IA_64_VMS_UNWINDSZ, DT_IA_64_VMS_UNWIND_CODSEG) (DT_IA_64_VMS_UNWIND_INFOSEG, DT_IA_64_VMS_LINKTIME) (DT_IA_64_VMS_SEG_NO, DT_IA_64_VMS_SYMVEC_OFFSET) (DT_IA_64_VMS_SYMVEC_SEG, DT_IA_64_VMS_UNWIND_OFFSET) (DT_IA_64_VMS_UNWIND_SEG, DT_IA_64_VMS_STRTAB_OFFSET) (DT_IA_64_VMS_SYSVER_OFFSET, DT_IA_64_VMS_IMG_RELA_OFF) (DT_IA_64_VMS_SEG_RELA_OFF, DT_IA_64_VMS_FIXUP_RELA_OFF) (DT_IA_64_VMS_PLTGOT_OFFSET, DT_IA_64_VMS_PLTGOT_SEG) (DT_IA_64_VMS_FPMODE, SHN_IA_64_VMS_SYMVEC): Define * readelf.c (dump_relocations): Decode OpenVMS-specific sections. (get_ia64_dynamic_type): Decode OpenVMS-specific tags. (get_dynamic_type): Handle IA64-specific tags. (get_ia64_section_type_name): Handle OpenVMS-specific sections. (get_section_type_name): Handle OS-specific sections (and particularly IA64 OpenVMS one). (get_elf_section_flags): Makes flags static. Add entries for IA64 and decode them.
* 2008-01-30 Brandon Sneed <nivenh@sourceware.org>Brandon Sneed2008-01-302-0/+12
| | | | * lib/bthprops.def: new file, bluetooth imports.
* 2008-01-30 Brandon Sneed <nivenh@sourceware.org>Brandon Sneed2008-01-302-0/+17
| | | | | | * include/windef.h (__in, __inout, __in_opt, __in_bcound, __in_ecount, __out, __out_ecount_part, __struct_bcount, __field_ecount_opt, __out_bcount_opt): Defined additional pseudo-modifiers.
* 2008-01-29 Brandon Sneed <nivenh@sourceware.org>Brandon Sneed2008-01-302-2/+39
| | | | | | | * include/ras.h (RAS_MaxDnsSuffix): corrected typo, was RAX_MaxDnsSuffix. (RASENTRYA, RASENTRYW): Added members (dwfOptions2, dwfOptions3, szDnsSuffix, dwTcpWindowSize, szPrerequisitePbk, szPrerequisiteEntry, dwRedialCount, dwRedialPause.
* 2008-01-29 Brandon Sneed <nivenh@sourceware.org>Brandon Sneed2008-01-296-3/+85
| | | | | | | | | | | | | | | | * include/winnt.h (SYSTEM_POWER_CONDITION): typedef. * include/winuser.h (PBT_POWERSETTINGCHANGE, DEVICE_NOTIFY_WINDOW_HANDLE, DEVICE_NOTIFY_SERVICE_HANDLE): define. * include/winuser.h (LPCGUID, HPOWERNOTIFY, POWERBROADCAST_SETTING): typedefs. * include/winuser.h (GUID_POWERSCHEME_PERSONALITY, GUID_MIN_POWER_SAVINGS, GUID_MAX_POWER_SAVINGS, GUID_TYPICAL_POWER_SAVINGS, GUID_ACDC_POWER_SOURCE, GUID_BATTERY_PERCENTAGE_REMAINING, GUID_IDLE_BACKGROUND_TASK, GUID_SYSTEM_AWAYMODE, GUID_MONITOR_POWER_ON): added externs for GUIDs. * include/winuser.h (RegisterPowerSettingNotification, UnregisterPowerSettingNotification): Add prototypes. * lib/user32.def: Added imports for the above prototypes. * lib/Makefile.in: Added build support for power-uuid.c. * lib/power-uuid.c: New file containing power GUID definitions.
* * include/ras.h (RAS_MaxDnsSuffix): define.Brandon Sneed2008-01-292-0/+5
|
* Added new PSAPI defines and exportsBrandon Sneed2008-01-293-0/+19
|
* * path.cc: Fix Samba version in comment.Corinna Vinschen2008-01-282-1/+5
|
* include/David Daney2008-01-272-1/+23
| | | | | | | | | | | | | | | | | | | | | | | | | | | 2008-01-26 David Daney <ddaney@avtrex.com> * demangle.h (demangle_component_type): Add DEMANGLE_COMPONENT_JAVA_RESOURCE, DEMANGLE_COMPONENT_COMPOUND_NAME, and DEMANGLE_COMPONENT_CHARACTER as new enum values. (demangle_component): Add struct s_character to union u. libiberty/ 2008-01-26 David Daney <ddaney@avtrex.com> * cp-demangle.c (d_dump): Handle DEMANGLE_COMPONENT_JAVA_RESOURCE, DEMANGLE_COMPONENT_COMPOUND_NAME, and DEMANGLE_COMPONENT_CHARACTER cases. (d_make_comp): Handle DEMANGLE_COMPONENT_COMPOUND_NAME and DEMANGLE_COMPONENT_JAVA_RESOURCE cases. (d_make_character): New function. (d_java_resource): Same. (d_special_name): Handle "Gr" case. (d_print_comp): Handle DEMANGLE_COMPONENT_JAVA_RESOURCE, DEMANGLE_COMPONENT_COMPOUND_NAME, and DEMANGLE_COMPONENT_CHARACTER cases. * testsuite/demangle-expected: Add test for java resource name mangling.
* * libc/sys/mmixware/isatty.c (_isatty): Renamed from isatty.Hans-Peter Nilsson2008-01-252-3/+8
| | | | Make ISO C.
* * path.cc (fs_info::update): Fix old-style Samba test to supportCorinna Vinschen2008-01-242-8/+14
| | | | recent as well as upcoming Samba releases.