summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* * exceptions.cc (_cygtls::handle_exceptions): When being debugged,Corinna Vinschen2008-02-282-2/+8
| | | | | leave through SetThreadContext, too, to keep exception handler stack intact.
* * exceptions.cc (open_stackdumpfile): Add comments.Corinna Vinschen2008-02-282-1/+8
|
* * exceptions.cc (open_stackdumpfile): Use NtCreateFile to createCorinna Vinschen2008-02-282-5/+28
| | | | stackdump file.
* * mkpasswd.c (main): Simplify generating SYSTEM entry. Add entriesCorinna Vinschen2008-02-282-15/+10
| | | | for LocalService and NetworkService accounts. Change comments.
* * exceptions.cc (stack_info::walk): Fix typo.Corinna Vinschen2008-02-272-1/+5
|
* * cygtls.cc (_cygtls::init_exception_handler): Fix comment.Corinna Vinschen2008-02-272-7/+6
|
* Fix dateCorinna Vinschen2008-02-271-1/+1
|
* * (struct __DIR_cache): Switch order of members so that the bufferCorinna Vinschen2008-02-272-1/+6
| | | | given to NtQueryDirectoryFile is 8 byte aligned.
* * cygtls.cc (_cygtls::handle_threadlist_exception): Make it clear that theChristopher Faylor2008-02-273-3/+25
| | | | | | function never actually returns. * exceptions.cc (_cygtls::handle_exceptions): Jump out of function rather than returning to avoid meddling by previously installed exception handlers.
* PR 3134Nick Clifton2008-02-272-1/+10
| | | | | | | | | | | | | * h8300.h (h8_opcodes): Add an encoding for a mov.l instruction with a 32-bit displacement but without the top bit of the 4th byte set. * gas/h8300/pr3134.s: New test. * gas/h8300/pr3134.d: Expected disassembly * gas/h8300/h8300.exp: Run the new test. * gas/h8300/h8300-coff.exp: Fix test for COFF based ports to accept h8300-rtemscoff not just h8300-rtems.
* * dcrt0.cc (initial_env): Only use local buffer "buf" if DEBUGGING isCorinna Vinschen2008-02-2511-65/+103
| | | | | | | | | | | | | | | | | | | | | | | | | | enabled. Replace calls to GetEnvironmentVariable by calls to GetEnvironmentVariableA for clarity. Call GetEnvironmentVariableA with NULL buffer. (cygbench): Ditto, drop local buffer. * environ.cc (getearly): Call GetEnvironmentVariableA. (environ_init): Retrieve unicode environment and convert to current codepage locally. (getwinenveq): Ditto. * exceptions.cc (try_to_debug): Accommodate new sys_mbstowcs calling convention. * fhandler_clipboard.cc (set_clipboard): Call sys_mbstowcs to retrieve required buffer length. * fork.cc (frok::child): Call GetEnvironmentVariableA. * miscfuncs.cc: Accommodate changed arguments in calls to sys_mbstowcs. * sec_auth.cc: Ditto. * strfuncs.cc (sys_wcstombs_alloc): Fix formatting. (sys_mbstowcs): Change arguments to allow specifying a source string length. (sys_mbstowcs_alloc): Ditto. * uinfo.cc (cygheap_user::ontherange): Accommodate changed arguments in calls to sys_mbstowcs. * winsup.h (sys_mbstowcs): Adjust declaration. (sys_mbstowcs_alloc): Ditto.
* 2008-02-24 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>Chris Sutcliffe2008-02-243-6/+7
| | | | | | * include/winnt.h: Update guard around KEY_WOW64_64KEY and KEY_WOW64_32KEY definitions. * include/winreg.h (KEY_WOW64_64KEY, KEY_WOW64_32KEY): Remove.
* 2008-02-23 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>Chris Sutcliffe2008-02-242-2/+10
| | | | * include/winnt.h (KEY_WOW64_64KEY, KEY_WOW64_32KEY): Define.
* Fix strtod("-0x", NULL).Eric Blake2008-02-212-23/+39
| | | | | * libc/stdlib/strtod.c (_strtod_r): Fall back to 0 if hex parse fails.
* config:Paolo Bonzini2008-02-202-3/+7
| | | | | | 2008-02-20 Uros Bizjak <ubizjak@gmail.com> * mh-ppc-darwin (BOOT_CFLAGS): Use +=, not =.
* * path.cc (cwdstuff::set): Revert error handling change in caseCorinna Vinschen2008-02-202-13/+14
| | | | DuplicateHandle fails, because it breaks Vista/Longhorn workaround.
* 2008-02-20 Paolo Bonzini <bonzini@gnu.org>Paolo Bonzini2008-02-208-721/+1261
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | PR bootstrap/32009 PR bootstrap/32161 * configure.ac (CFLAGS_FOR_TARGET, CXXFLAGS_FOR_TARGET): Compute here. * configure: Regenerate. * Makefile.def: Define stage_libcflags for all bootstrap stages. * Makefile.tpl (BOOT_LIBCFLAGS, STAGE2_LIBCFLAGS, STAGE3_LIBCFLAGS, STAGE4_LIBCFLAGS): New. (CFLAGS_FOR_TARGET, CXXFLAGS_FOR_TARGET): Subst from autoconf, without $(SYSROOT_CFLAGS_FOR_TARGET) and $(DEBUG_PREFIX_CFLAGS_FOR_TARGET). (BASE_TARGET_EXPORTS): Append them here to C{,XX}FLAGS. (EXTRA_TARGET_FLAGS): Append them here to {LIB,}C{,XX}FLAGS. (configure-stage[+id+]-[+prefix+][+module+]): Pass stage_libcflags for target modules. Don't export LIBCFLAGS. (all-stage[+id+]-[+prefix+][+module+]): Pass stage_libcflags; pass $(BASE_FLAGS_TO_PASS) where [+args+] was passed, and [+args+] after the overridden CFLAGS_FOR_TARGET and CXXFLAGS_FOR_TARGET. (invocations of `all'): Replace $(TARGET_FLAGS_TO_PASS) with $(EXTRA_TARGET_FLAGS), $(FLAGS_TO_PASS) with $(EXTRA_HOST_FLAGS). * Makefile.in: Regenerate. config: 2008-02-20 Paolo Bonzini <bonzini@gnu.org> PR bootstrap/32009 * mh-ppc-darwin (BOOT_CFLAGS): Reenable.
* * sigproc.cc (sig_send): Use sigmask of target thread if it is specifiedChristopher Faylor2008-02-192-2/+7
| | | | otherwise default to main sigmask.
* * cr16.h (cr16_num_optab): Declared.Nick Clifton2008-02-182-1/+6
| | | | * cr16-opc.c (cr16_num_optab): Defined
* 2008-02-16 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>Paolo Bonzini2008-02-162-3/+12
| | | | | | PR libgcj/33085 * libtool.m4 (_LT_COMPILER_PIC) [ mingw, cygwin ] <GCJ>: Do not use -DDLL_EXPORT. Backport from upstream.
* * fhandler.cc (fhandler_base::fpathconf): Fix _PC_NAME_MAX andCorinna Vinschen2008-02-162-2/+15
| | | | _PC_PATH_MAX cases.
* * include/sys/cygwin.h (__INT_MAX_PATH): Remove.Corinna Vinschen2008-02-163-4/+10
| | | | | (external_pinfo): Convert program_long to pointer. * external.cc (fillout_pinfo): Add buffer for program_long value.
* * include/sys/cygwin.h (__INT_MAX_PATH): Define to 32K.Corinna Vinschen2008-02-152-1/+8
| | | | (external_pinfo): Set size to __INT_MAX_PATH.
* * include/sys/cygwin.h (external_pinfo): Define program_long size usingChristopher Faylor2008-02-152-1/+6
| | | | external buffer size rather than cygwin-internal buffer size.
* Perform whitespace cleanup throughout.Christopher Faylor2008-02-1545-315/+315
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | * dcrt0.cc (signal_shift_subtract): Eliminate ancient backwards compatibility. (check_sanity_and_sync): Ditto. * winsup.h (SIGTOMASK): Ditto. Just use constant in signal calculation. * include/cygwin/version: Remove backwards signal mask compatibility define. * path.cc (symlink_info::check_sysfile): Cosmetic change. * registry.cc (get_registry_hive_path): Remove unneeded variable. * exceptions.cc (handle_sigsuspend): Eliminate thread signal mask and use either main sigmask or current thread sigmask. (set_process_mask): Ditto. (sighold): Ditto. (sigrelse): Ditto. (sigset): Ditto. (set_process_mask_delta): Ditto. (_cygtls::call_signal_handler): Ditto. * fhandler_process.cc (format_process_status): Ditto. * fhandler_termios.cc (fhandler_termios::bg_check): Ditto. * pinfo.h (class pinfo): Ditto. * select.cc (pselect): Ditto. * signal.cc (sigprocmask): Ditto. (abort): Ditto. (sigpause): Ditto. (sigsend): Ditto. (wait_sig): Ditto. * thread.h (pthread::parent_tls): New member. * thread.cc (pthread::pthread): Record parent_tls here. (pthread::thread_init_wrapper): Initialize sigmask from parent thread.
* include/Alan Modra2008-02-152-6/+9
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * bfdlink.h (struct bfd_link_hash_table): Delete creator field. (struct bfd_link_info): Add output_bfd. bfd/ * elflink.c: Replace all accesses to hash->creator field with output_bfd->xvec. * cofflink.c: Likewise. * coff-h8300.c: Likewise. * ecoff.c: Likewise. * elf32-m68hc1x.c: Likewise. * elf32-ppc.c: Likewise. * elf64-alpha.c: Likewise. * elf64-ppc.c: Likewise. * elf64-sparc.c: Likewise. * elfxx-mips.c: Likewise. * i386linux.c: Likewise. * m68klinux.c: Likewise. * sparclinux.c: Likewise. * sunos.c: Likewise. * xcofflink.c: Likewise. * linker.c: Likewise. (_bfd_link_hash_table_init): Don't store creator. ld/ * ldmain.h (output_bfd): Delete. * ldmain.c (output_bfd): Delete. Replace all occurrences of output_bfd with link_info.output_bfd. * ldcref.c: Likewise. * ldctor.c: Likewise. * ldemul.c: Likewise. * ldexp.c: Likewise. * ldfile.c: Likewise. * ldlang.c: Likewise. * ldmisc.c: Likewise. * ldwrite.c: Likewise. * pe-dll.c: Likewise. * emultempl/aix.em: Likewise. * emultempl/alphaelf.em: Likewise. * emultempl/armcoff.em: Likewise. * emultempl/armelf.em: Likewise. * emultempl/avrelf.em: Likewise. * emultempl/beos.em: Likewise. * emultempl/elf-generic.em: Likewise. * emultempl/elf32.em: Likewise. * emultempl/gld960.em: Likewise. * emultempl/hppaelf.em: Likewise. * emultempl/irix.em: Likewise. * emultempl/linux.em: Likewise. * emultempl/lnk960.em: Likewise. * emultempl/m68hc1xelf.em: Likewise. * emultempl/mmix-elfnmmo.em: Likewise. * emultempl/mmo.em: Likewise. * emultempl/pe.em: Likewise. * emultempl/pep.em: Likewise. * emultempl/ppc32elf.em: Likewise. * emultempl/ppc64elf.em: Likewise. * emultempl/scoreelf.em: Likewise. * emultempl/sh64elf.em: Likewise. * emultempl/spuelf.em: Likewise. * emultempl/sunos.em: Likewise. * emultempl/vanilla.em: Likewise. * emultempl/vxworks.em: Likewise. * emultempl/xtensaelf.em: Likewise. * emultempl/z80.em: Likewise. * ldlang.c (open_output): Don't return output, instead write link_info_output_bfd directly. * emultempl/alphaelf.em: Replace occurrences of link_info.hash->creator with link_info.output_bfd->xvec. * emultempl/hppaelf.em: Likewise. * emultempl/ppc32elf.em: Likewise. * emultempl/ppc64elf.em: Likewise. * emultempl/spuelf.em: Likewise.
* * cygheap.cc (cwcsdup): New function.Corinna Vinschen2008-02-1423-60/+138
| | | | | | | | | | | | | | | | | | | | | | (cwcsdup1): New function. * cygheap.h (cygheap_user::get_windows_id): New method returning PWCHAR. (cwcsdup): Declare. (cwcsdup1): Declare. * registry.cc (get_registry_hive_path): Use WCHAR instead of char throughout. (load_registry_hive): Ditto. * registry.h (get_registry_hive_path): Change declaration accordingly. (load_registry_hive): Ditto. * sec_helper.cc (cygpsid::string): New method returning PWCHAR. * security.h (cygpsid::string): Declare. * syscalls.cc (seteuid32): Convert local name var to WCHAR. * uinfo.cc (cygheap_user::env_userprofile): Convert local name buffers to WCHAR. Call sys_wcstombs_alloc to generate puserprof buffer. * winsup.h: Fix comment. (NT_MAX_PATH): New definition for maximum internal path length. Use throughout where appropriate. * include/limits.h (PATH_MAX): Set to 4096 as on Linux.
* 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.