]> sourceware.org Git - newlib-cygwin.git/log
newlib-cygwin.git
16 years ago* smallprint.cc (__small_vsprintf): Free allocated buffer rather than pointer
Christopher Faylor [Sun, 2 Mar 2008 22:25:07 +0000 (22:25 +0000)]
* smallprint.cc (__small_vsprintf): Free allocated buffer rather than pointer
into the buffer.

16 years agoUpdate ChangeLog.
Christopher Faylor [Sat, 1 Mar 2008 14:55:07 +0000 (14:55 +0000)]
Update ChangeLog.

16 years ago* cygtls.h (_cygtls::handle_threadlist_exception): Eliminate.
Christopher Faylor [Sat, 1 Mar 2008 14:53:44 +0000 (14:53 +0000)]
* cygtls.h (_cygtls::handle_threadlist_exception): Eliminate.
(_cygtls::init_threadlist_exceptions): Ditto.
* cygtls.cc (_cygtls::handle_threadlist_exception): Eliminate.
(_cygtls::init_threadlist_exceptions): Ditto.
(_cygtls::find_tls): Use myfault handling to deal with errors caused by
nonexistent threads.

16 years ago* cygtls.cc (_cygtls::init_exception_handler): Just return.
Christopher Faylor [Sat, 1 Mar 2008 13:19:08 +0000 (13:19 +0000)]
* cygtls.cc (_cygtls::init_exception_handler): Just return.

16 years ago* exceptions.cc (_cygtls::handle_exceptions): Only call rtl_unwind when
Christopher Faylor [Sat, 1 Mar 2008 13:18:22 +0000 (13:18 +0000)]
* exceptions.cc (_cygtls::handle_exceptions): Only call rtl_unwind when
exiting.  Just return, don't set thread context.
* gendef (_setjmp): Store %fs:0 in jmp_buf.
(_sjfault): Ditto.
(_ljfault): Restore %fs:0 from jmp_buf.
(_longjmp): Ditto.

16 years ago2008-02-29 Gregory Pietsch <gpietsch@comcast.net>
Jeff Johnston [Fri, 29 Feb 2008 21:11:57 +0000 (21:11 +0000)]
2008-02-29  Gregory Pietsch  <gpietsch@comcast.net>

        * libc/stdlib/getopt.c (getopt_internal): Rewrite to accept
        data area so as to support reentrant calls.  Change all callers
        to fill in data area with global values and restore any changes
        to the global values after call.
        (__getopt_r, __getopt_long_r, __getopt_long_only_r): New routines
        to support reentrancy that add a data area argument.
        * libc/include/getopt.h: Add new _r routines and provide macros
        so they can be called with using double-underscores.

16 years ago * fhandler_disk_file.cc (fhandler_disk_file::fchmod): Call close_fs
Corinna Vinschen [Fri, 29 Feb 2008 16:38:51 +0000 (16:38 +0000)]
* fhandler_disk_file.cc (fhandler_disk_file::fchmod): Call close_fs
instead of close to avoid calling close from wrong class when changing
a file system based device node.
(fhandler_disk_file::fchown): Ditto.
(fhandler_disk_file::facl): Ditto.

16 years agoChange accreditation for patch for PR3134
Nick Clifton [Fri, 29 Feb 2008 14:43:17 +0000 (14:43 +0000)]
Change accreditation for patch for PR3134

16 years ago * exceptions.cc (_cygtls::handle_exceptions): When being debugged,
Corinna Vinschen [Thu, 28 Feb 2008 17:57:42 +0000 (17:57 +0000)]
* exceptions.cc (_cygtls::handle_exceptions): When being debugged,
leave through SetThreadContext, too, to keep exception handler stack
intact.

16 years ago * exceptions.cc (open_stackdumpfile): Add comments.
Corinna Vinschen [Thu, 28 Feb 2008 17:09:34 +0000 (17:09 +0000)]
* exceptions.cc (open_stackdumpfile): Add comments.

16 years ago * exceptions.cc (open_stackdumpfile): Use NtCreateFile to create
Corinna Vinschen [Thu, 28 Feb 2008 15:50:51 +0000 (15:50 +0000)]
* exceptions.cc (open_stackdumpfile): Use NtCreateFile to create
stackdump file.

16 years ago * mkpasswd.c (main): Simplify generating SYSTEM entry. Add entries
Corinna Vinschen [Thu, 28 Feb 2008 11:11:12 +0000 (11:11 +0000)]
* mkpasswd.c (main): Simplify generating SYSTEM entry.  Add entries
for LocalService and NetworkService accounts.  Change comments.

16 years ago * exceptions.cc (stack_info::walk): Fix typo.
Corinna Vinschen [Wed, 27 Feb 2008 18:08:52 +0000 (18:08 +0000)]
* exceptions.cc (stack_info::walk): Fix typo.

16 years ago * cygtls.cc (_cygtls::init_exception_handler): Fix comment.
Corinna Vinschen [Wed, 27 Feb 2008 17:57:14 +0000 (17:57 +0000)]
* cygtls.cc (_cygtls::init_exception_handler): Fix comment.

16 years ago Fix date
Corinna Vinschen [Wed, 27 Feb 2008 17:53:39 +0000 (17:53 +0000)]
Fix date

16 years ago * (struct __DIR_cache): Switch order of members so that the buffer
Corinna Vinschen [Wed, 27 Feb 2008 17:52:33 +0000 (17:52 +0000)]
* (struct __DIR_cache): Switch order of members so that the buffer
given to NtQueryDirectoryFile is 8 byte aligned.

16 years ago* cygtls.cc (_cygtls::handle_threadlist_exception): Make it clear that the
Christopher Faylor [Wed, 27 Feb 2008 17:16:46 +0000 (17:16 +0000)]
* cygtls.cc (_cygtls::handle_threadlist_exception): Make it clear that the
function never actually returns.
* exceptions.cc (_cygtls::handle_exceptions): Jump out of function rather than
returning to avoid meddling by previously installed exception handlers.

16 years ago PR 3134
Nick Clifton [Wed, 27 Feb 2008 12:33:42 +0000 (12:33 +0000)]
   PR 3134
   * 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.

16 years ago * dcrt0.cc (initial_env): Only use local buffer "buf" if DEBUGGING is
Corinna Vinschen [Mon, 25 Feb 2008 18:32:23 +0000 (18:32 +0000)]
* dcrt0.cc (initial_env): Only use local buffer "buf" if DEBUGGING is
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.

16 years ago2008-02-24 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
Chris Sutcliffe [Sun, 24 Feb 2008 10:57:02 +0000 (10:57 +0000)]
2008-02-24  Chris Sutcliffe  <ir0nh34d@users.sourceforge.net>

        * include/winnt.h: Update guard around KEY_WOW64_64KEY and KEY_WOW64_32KEY
        definitions.
        * include/winreg.h (KEY_WOW64_64KEY, KEY_WOW64_32KEY): Remove.

16 years ago2008-02-23 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
Chris Sutcliffe [Sun, 24 Feb 2008 02:34:18 +0000 (02:34 +0000)]
2008-02-23  Chris Sutcliffe  <ir0nh34d@users.sourceforge.net>

        * include/winnt.h (KEY_WOW64_64KEY, KEY_WOW64_32KEY): Define.

16 years agoFix strtod("-0x", NULL).
Eric Blake [Thu, 21 Feb 2008 17:14:14 +0000 (17:14 +0000)]
Fix strtod("-0x", NULL).
* libc/stdlib/strtod.c (_strtod_r): Fall back to 0 if hex parse
fails.

16 years agoconfig:
Paolo Bonzini [Wed, 20 Feb 2008 16:28:09 +0000 (16:28 +0000)]
config:
2008-02-20  Uros Bizjak  <ubizjak@gmail.com>

* mh-ppc-darwin (BOOT_CFLAGS): Use +=, not =.

16 years ago * path.cc (cwdstuff::set): Revert error handling change in case
Corinna Vinschen [Wed, 20 Feb 2008 14:42:29 +0000 (14:42 +0000)]
* path.cc (cwdstuff::set): Revert error handling change in case
DuplicateHandle fails, because it breaks Vista/Longhorn workaround.

16 years ago2008-02-20 Paolo Bonzini <bonzini@gnu.org>
Paolo Bonzini [Wed, 20 Feb 2008 14:26:59 +0000 (14:26 +0000)]
2008-02-20  Paolo Bonzini  <bonzini@gnu.org>

        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.

16 years ago* sigproc.cc (sig_send): Use sigmask of target thread if it is specified
Christopher Faylor [Tue, 19 Feb 2008 21:42:48 +0000 (21:42 +0000)]
* sigproc.cc (sig_send): Use sigmask of target thread if it is specified
otherwise default to main sigmask.

16 years ago * cr16.h (cr16_num_optab): Declared.
Nick Clifton [Mon, 18 Feb 2008 13:46:45 +0000 (13:46 +0000)]
    * cr16.h (cr16_num_optab): Declared.
        * cr16-opc.c  (cr16_num_optab): Defined

16 years ago2008-02-16 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
Paolo Bonzini [Sat, 16 Feb 2008 15:26:46 +0000 (15:26 +0000)]
2008-02-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>

PR libgcj/33085
* libtool.m4 (_LT_COMPILER_PIC) [ mingw, cygwin ] <GCJ>:
Do not use -DDLL_EXPORT.  Backport from upstream.

16 years ago * fhandler.cc (fhandler_base::fpathconf): Fix _PC_NAME_MAX and
Corinna Vinschen [Sat, 16 Feb 2008 09:43:19 +0000 (09:43 +0000)]
* fhandler.cc (fhandler_base::fpathconf): Fix _PC_NAME_MAX and
_PC_PATH_MAX cases.

16 years ago * include/sys/cygwin.h (__INT_MAX_PATH): Remove.
Corinna Vinschen [Sat, 16 Feb 2008 09:37:58 +0000 (09:37 +0000)]
* include/sys/cygwin.h (__INT_MAX_PATH): Remove.
(external_pinfo): Convert program_long to pointer.
* external.cc (fillout_pinfo): Add buffer for program_long value.

16 years ago * include/sys/cygwin.h (__INT_MAX_PATH): Define to 32K.
Corinna Vinschen [Fri, 15 Feb 2008 20:11:06 +0000 (20:11 +0000)]
* include/sys/cygwin.h (__INT_MAX_PATH): Define to 32K.
(external_pinfo): Set size to __INT_MAX_PATH.

16 years ago* include/sys/cygwin.h (external_pinfo): Define program_long size using
Christopher Faylor [Fri, 15 Feb 2008 18:07:07 +0000 (18:07 +0000)]
* include/sys/cygwin.h (external_pinfo): Define program_long size using
external buffer size rather than cygwin-internal buffer size.

16 years agoPerform whitespace cleanup throughout.
Christopher Faylor [Fri, 15 Feb 2008 17:53:11 +0000 (17:53 +0000)]
Perform whitespace cleanup throughout.
* 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.

16 years agoinclude/
Alan Modra [Fri, 15 Feb 2008 03:35:51 +0000 (03:35 +0000)]
include/
* 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.

16 years ago * cygheap.cc (cwcsdup): New function.
Corinna Vinschen [Thu, 14 Feb 2008 16:47:11 +0000 (16:47 +0000)]
* cygheap.cc (cwcsdup): New function.
(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.

16 years ago PR gas/2626
Nick Clifton [Thu, 14 Feb 2008 13:04:29 +0000 (13:04 +0000)]
    PR gas/2626

        * 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.

16 years agoImport this patch from gcc:
Nick Clifton [Thu, 14 Feb 2008 12:44:38 +0000 (12:44 +0000)]
Import this patch from gcc:
2008-01-24  David Edelsohn  <edelsohn@gnu.org>

            * libtool.m4: Backport AIX 6 support from ToT Libtool.

16 years ago* configure.in: Remove non-working options.
Christopher Faylor [Thu, 14 Feb 2008 00:49:47 +0000 (00:49 +0000)]
* configure.in: Remove non-working options.
* configure: Regenerate.

16 years ago* syscalls.cc (_isatty): Define as an alias to isatty to override newlib
Christopher Faylor [Wed, 13 Feb 2008 17:21:05 +0000 (17:21 +0000)]
* syscalls.cc (_isatty): Define as an alias to isatty to override newlib
version.
* thread.cc (pthread_kill): Deal with signal 0 as per POSIX and also avoid
manipulating an invalid thread.

16 years ago * posix.sgml: Move llrint, llrintf, llrintl, lrintl, rintl, wcstol,
Corinna Vinschen [Wed, 13 Feb 2008 14:50:39 +0000 (14:50 +0000)]
* posix.sgml: Move llrint, llrintf, llrintl, lrintl, rintl, wcstol,
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.

16 years ago * cygtls.cc (_cygtls::init_exception_handler): Revert patch
Corinna Vinschen [Wed, 13 Feb 2008 09:42:22 +0000 (09:42 +0000)]
    * cygtls.cc (_cygtls::init_exception_handler): Revert patch
        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.

16 years ago2008-02-11 Patrick Mansfield <patmans@us.ibm.com>
Jeff Johnston [Tue, 12 Feb 2008 21:21:13 +0000 (21:21 +0000)]
2008-02-11  Patrick Mansfield  <patmans@us.ibm.com>

        * 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.

16 years ago2008-02-12 Jeff Johnston <jjohnstn@redhat.com>
Jeff Johnston [Tue, 12 Feb 2008 18:07:55 +0000 (18:07 +0000)]
2008-02-12  Jeff Johnston  <jjohnstn@redhat.com>

        * 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.

16 years ago2008-02-12 Peter Rosin <peda@lysator.liu.se>
Jeff Johnston [Tue, 12 Feb 2008 17:20:09 +0000 (17:20 +0000)]
2008-02-12  Peter Rosin  <peda@lysator.liu.se>

        * 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.

16 years ago2008-02-02 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
Chris Sutcliffe [Tue, 12 Feb 2008 01:31:52 +0000 (01:31 +0000)]
2008-02-02  Chris Sutcliffe  <ir0nh34d@users.sourceforge.net>

  * include/specstrings.h (IN, OUT, OPTIONAL): Remove.
  * include/windef.h (IN, OUT, OPTIONAL): Define.

16 years ago2008-02-11 Patrick Mansfield <patmans@us.ibm.com>
Jeff Johnston [Mon, 11 Feb 2008 22:19:59 +0000 (22:19 +0000)]
2008-02-11  Patrick Mansfield  <patmans@us.ibm.com>

        * 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.

16 years ago2008-02-11 Patrick Mansfield <patmans@us.ibm.com>
Jeff Johnston [Mon, 11 Feb 2008 22:14:46 +0000 (22:14 +0000)]
2008-02-11  Patrick Mansfield  <patmans@us.ibm.com>

        * libc/machine/spu/strlen.c: Remove the len variable and unneeded
        calculation of its value.

16 years ago * fhandler_disk_file.cc (fhandler_disk_file::fgetxattr): Remove unused
Corinna Vinschen [Mon, 11 Feb 2008 19:03:36 +0000 (19:03 +0000)]
* fhandler_disk_file.cc (fhandler_disk_file::fgetxattr): Remove unused
attr.
(fhandler_disk_file::fsetxattr): Ditto.
* include/attr/xattr.h: New file.

16 years ago * xtensa-config.h (XCHAL_HAVE_THREADPTR): Redefine to zero.
Bob Wilson [Mon, 11 Feb 2008 17:53:04 +0000 (17:53 +0000)]
* xtensa-config.h (XCHAL_HAVE_THREADPTR): Redefine to zero.
(XCHAL_NUM_AREGS, XCHAL_MAX_INSTRUCTION_SIZE): New.

16 years ago * dcrt0.cc (dll_crt0_1): Fix typo in call to sys_wcstombs.
Corinna Vinschen [Mon, 11 Feb 2008 16:39:06 +0000 (16:39 +0000)]
* dcrt0.cc (dll_crt0_1): Fix typo in call to sys_wcstombs.
* miscfuncs.cc (next_char): Initialize ret to keep gcc happy.

16 years ago Fix ChangeLog entry.
Corinna Vinschen [Sun, 10 Feb 2008 15:44:12 +0000 (15:44 +0000)]
Fix ChangeLog entry.

16 years ago * Makefile.in (DLL_OFILES): Add ntea.o.
Corinna Vinschen [Sun, 10 Feb 2008 15:43:04 +0000 (15:43 +0000)]
* Makefile.in (DLL_OFILES): Add ntea.o.
* 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.

16 years ago * libc/ftw.cc (ftw): Allow nfds < 0 for glibc compatibility.
Corinna Vinschen [Sun, 10 Feb 2008 15:19:08 +0000 (15:19 +0000)]
* libc/ftw.cc (ftw): Allow nfds < 0 for glibc compatibility.
* libc/nftw.c (nftw): Ditto.

16 years ago Fix typo in latest ChangeLog entry.
Corinna Vinschen [Thu, 7 Feb 2008 20:38:39 +0000 (20:38 +0000)]
Fix typo in latest ChangeLog entry.

16 years ago * dtable.cc (dtable::init_std_file_from_handle): Set access to
Corinna Vinschen [Thu, 7 Feb 2008 18:59:40 +0000 (18:59 +0000)]
* dtable.cc (dtable::init_std_file_from_handle): Set access to
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.

16 years ago * bsd_helper.cc: Replace %E __small_printf format specifier with %lu
Corinna Vinschen [Wed, 6 Feb 2008 22:30:38 +0000 (22:30 +0000)]
* bsd_helper.cc: Replace %E __small_printf format specifier with %lu
and call to GetLastError throughout.
* bsd_mutex.cc: Ditto.
* sysv_sem.cc (semget): Replace %X __small_printf format specifier
with %llx.

16 years ago * miscfuncs.cc (next_char): Fix typos in comment.
Corinna Vinschen [Wed, 6 Feb 2008 22:04:16 +0000 (22:04 +0000)]
* miscfuncs.cc (next_char): Fix typos in comment.
* strfuncs.cc: Remove cygserver guards.

16 years ago Remove dependency from Cygwin internal code.
Corinna Vinschen [Wed, 6 Feb 2008 22:01:30 +0000 (22:01 +0000)]
Remove dependency from Cygwin internal code.
* 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.

16 years ago * fhandler.h (fhandler_console::trunc_buf): Add to use as cache for
Corinna Vinschen [Wed, 6 Feb 2008 18:24:50 +0000 (18:24 +0000)]
* fhandler.h (fhandler_console::trunc_buf): Add to use as cache for
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.

16 years ago * autoload.cc (CharToOemA): Remove.
Corinna Vinschen [Tue, 5 Feb 2008 17:37:10 +0000 (17:37 +0000)]
* autoload.cc (CharToOemA): Remove.
(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.

16 years ago * mips.h: Update copyright.
Adam Nemet [Mon, 4 Feb 2008 19:25:05 +0000 (19:25 +0000)]
* mips.h: Update copyright.
(INSN_CHIP_MASK): New macro.
(INSN_OCTEON): New macro.
(CPU_OCTEON): New macro.
(OPCODE_IS_MEMBER): Handle Octeon instructions.

16 years ago * mips.h: Update copyright.
Adam Nemet [Mon, 4 Feb 2008 19:21:25 +0000 (19:21 +0000)]
* mips.h: Update copyright.
(E_MIPS_MACH_OCTEON): New macro.

16 years ago * Makefile.in: Don't link strfuncs.o from the Cygwin build dir.
Corinna Vinschen [Mon, 4 Feb 2008 12:02:26 +0000 (12:02 +0000)]
* Makefile.in: Don't link strfuncs.o from the Cygwin build dir.
Build it again with __OUTSIDE_CYGWIN__ defined.

16 years ago * smallprint.cc (__small_vsprintf): Use HEAP_NOTHEAP for type.
Corinna Vinschen [Mon, 4 Feb 2008 12:00:19 +0000 (12:00 +0000)]
* smallprint.cc (__small_vsprintf): Use HEAP_NOTHEAP for type.
* strfuncs.cc (sys_wcstombs_alloc): Guard use of ccalloc
to !__OUTSIDE_CYGWIN__ for use in cygserver.
(sys_mbstowcs_alloc): Ditto.

16 years ago * configure.ac: Enable fortran for cris-*-elf and crisv32-*-elf.
Hans-Peter Nilsson [Sat, 2 Feb 2008 22:19:04 +0000 (22:19 +0000)]
* configure.ac: Enable fortran for cris-*-elf and crisv32-*-elf.
* configure: Regenerate.

16 years ago2008-02-01 Brian Dessent <brian@dessent.net>
Chris Sutcliffe [Sat, 2 Feb 2008 14:14:49 +0000 (14:14 +0000)]
2008-02-01  Brian Dessent  <brian@dessent.net>

        * Makefile.in: Add rules to generate multiple versions of libmoldname.a for
        the different runtime versions.

16 years ago2008-02-02 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
Chris Sutcliffe [Sat, 2 Feb 2008 13:19:23 +0000 (13:19 +0000)]
2008-02-02  Chris Sutcliffe  <ir0nh34d@users.sourceforge.net>

        * 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.

16 years ago2008-01-31 Marc Gauthier <marc@tensilica.com>
Bob Wilson [Fri, 1 Feb 2008 18:32:06 +0000 (18:32 +0000)]
2008-01-31  Marc Gauthier  <marc@tensilica.com>
* configure.ac (xtensa*-*-*): Recognize processor variants.
* configure: Regenerate.

16 years ago * miscfuncs.cc (cygwin_wcsncasecmp): Never access more than n
Corinna Vinschen [Fri, 1 Feb 2008 13:11:57 +0000 (13:11 +0000)]
* miscfuncs.cc (cygwin_wcsncasecmp): Never access more than n
characters.
(cygwin_strncasecmp): Ditto.  Fix for strings longer than n.

16 years ago * string.h: Re-enable inline strcasematch and strncasematch
Corinna Vinschen [Fri, 1 Feb 2008 12:37:51 +0000 (12:37 +0000)]
* string.h: Re-enable inline strcasematch and strncasematch
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.

16 years ago * dcrt0.cc (dll_crt0_1): Use GetCommandLineW and convert to current
Corinna Vinschen [Thu, 31 Jan 2008 20:26:01 +0000 (20:26 +0000)]
* dcrt0.cc (dll_crt0_1): Use GetCommandLineW and convert to current
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.

16 years ago * cygheap.h (struct cwdstuff): Add dir member to store cwd handle.
Corinna Vinschen [Thu, 31 Jan 2008 14:18:49 +0000 (14:18 +0000)]
* cygheap.h (struct cwdstuff): Add dir member to store cwd handle.
(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.

16 years ago2008-01-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
Paolo Bonzini [Thu, 31 Jan 2008 10:39:43 +0000 (10:39 +0000)]
2008-01-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>

        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.

16 years agoRemove conflict marker as obvious.
Brian Ford [Wed, 30 Jan 2008 18:49:59 +0000 (18:49 +0000)]
Remove conflict marker as obvious.

16 years ago Add OpenVMS extensions.
Nick Clifton [Wed, 30 Jan 2008 10:37:43 +0000 (10:37 +0000)]
    Add OpenVMS extensions.
        * 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.

16 years ago2008-01-30 Brandon Sneed <nivenh@sourceware.org>
Brandon Sneed [Wed, 30 Jan 2008 09:39:16 +0000 (09:39 +0000)]
2008-01-30  Brandon Sneed  <nivenh@sourceware.org>

* lib/bthprops.def: new file, bluetooth imports.

16 years ago2008-01-30 Brandon Sneed <nivenh@sourceware.org>
Brandon Sneed [Wed, 30 Jan 2008 09:18:22 +0000 (09:18 +0000)]
2008-01-30  Brandon Sneed  <nivenh@sourceware.org>

* 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.

16 years ago2008-01-29 Brandon Sneed <nivenh@sourceware.org>
Brandon Sneed [Wed, 30 Jan 2008 00:47:35 +0000 (00:47 +0000)]
2008-01-29  Brandon Sneed  <nivenh@sourceware.org>
* include/ras.h (RAS_MaxDnsSuffix): corrected typo, was RAX_MaxDnsSuffix.
(RASENTRYA, RASENTRYW): Added members (dwfOptions2, dwfOptions3, szDnsSuffix,
dwTcpWindowSize, szPrerequisitePbk, szPrerequisiteEntry, dwRedialCount,
dwRedialPause.

16 years ago2008-01-29 Brandon Sneed <nivenh@sourceware.org>
Brandon Sneed [Tue, 29 Jan 2008 21:18:49 +0000 (21:18 +0000)]
2008-01-29  Brandon Sneed  <nivenh@sourceware.org>

* 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.

16 years ago* include/ras.h (RAS_MaxDnsSuffix): define.
Brandon Sneed [Tue, 29 Jan 2008 20:40:32 +0000 (20:40 +0000)]
* include/ras.h (RAS_MaxDnsSuffix): define.

16 years agoAdded new PSAPI defines and exports
Brandon Sneed [Tue, 29 Jan 2008 20:34:43 +0000 (20:34 +0000)]
Added new PSAPI defines and exports

16 years ago * path.cc: Fix Samba version in comment.
Corinna Vinschen [Mon, 28 Jan 2008 12:19:30 +0000 (12:19 +0000)]
* path.cc: Fix Samba version in comment.

16 years agoinclude/
David Daney [Sun, 27 Jan 2008 06:25:45 +0000 (06:25 +0000)]
include/
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.

16 years ago * libc/sys/mmixware/isatty.c (_isatty): Renamed from isatty.
Hans-Peter Nilsson [Fri, 25 Jan 2008 04:31:11 +0000 (04:31 +0000)]
* libc/sys/mmixware/isatty.c (_isatty): Renamed from isatty.
Make ISO C.

16 years ago * path.cc (fs_info::update): Fix old-style Samba test to support
Corinna Vinschen [Thu, 24 Jan 2008 17:29:29 +0000 (17:29 +0000)]
* path.cc (fs_info::update): Fix old-style Samba test to support
recent as well as upcoming Samba releases.

16 years ago/gas:
Eric Weddington [Wed, 23 Jan 2008 17:36:23 +0000 (17:36 +0000)]
/gas:
2008-01-23  Eric B. Weddington  <eric.weddington@atmel.com>

* config/tc-avr.c (mcu_types): Change opcode set for at86rf401.

/include:
2008-01-23  Eric B. Weddington  <eric.weddington@atmel.com>

* opcode/avr.h (AVR_ISA_RF401): Add new opcode set for at86rf401.

16 years ago * config.sub, config.guess: Update from upstream sources.
Ben Elliston [Wed, 23 Jan 2008 02:43:51 +0000 (02:43 +0000)]
* config.sub, config.guess: Update from upstream sources.

16 years ago * ntdll.h (struct _FILE_FS_OBJECTID_INFORMATION): Define.
Corinna Vinschen [Tue, 22 Jan 2008 17:43:22 +0000 (17:43 +0000)]
* ntdll.h (struct _FILE_FS_OBJECTID_INFORMATION): Define.
* path.cc (struct smb_extended_info): Define.
(fs_info::update): Request object id info to get Samba information.
Set flags according to new implementation.
* path.h (struct fs_info): Add samba_version to status_flags.
Implement flags() and samba_version() using IMPLEMENT_STATUS_FLAG.

16 years ago* libc/sys/sh/syscalls.c (_isatty): New.
DJ Delorie [Tue, 22 Jan 2008 00:24:45 +0000 (00:24 +0000)]
* libc/sys/sh/syscalls.c (_isatty): New.

16 years ago2008-01-21 Neal H. Walfield <neal@gnu.org>
Jeff Johnston [Mon, 21 Jan 2008 18:29:17 +0000 (18:29 +0000)]
2008-01-21  Neal H. Walfield  <neal@gnu.org>

        * Makefile.am (crt1.o): Use correct source.
        * Makefile.in: Regenerated.

16 years ago * fhandler_disk_file.cc (fhandler_disk_file::link): Open file with
Corinna Vinschen [Mon, 21 Jan 2008 14:51:55 +0000 (14:51 +0000)]
* fhandler_disk_file.cc (fhandler_disk_file::link): Open file with
READ_CONTROL for Vista/Longhorn's sake.

16 years ago* common.h (AT_SUN_AUXFLAGS): Define.
Mark Kettenis [Wed, 16 Jan 2008 22:01:42 +0000 (22:01 +0000)]
* common.h (AT_SUN_AUXFLAGS): Define.

16 years ago/gas:
Eric Weddington [Wed, 16 Jan 2008 17:59:07 +0000 (17:59 +0000)]
/gas:
2008-01-03  Eric B. Weddington  <eric.weddington@atmel.com>

* config/tc-avr.c (mcu_types): Change opcode set for avr3,
at90usb82, at90usb162.
* doc/c-avr.texi: Change architecture grouping for at90usb82,
at90usb162.
These changes support the new avr35 architecture group in gcc.

/include:
2008-01-03  Eric B. Weddington  <eric.weddington@atmel.com>

* opcode/avr.h (AVR_ISA_USB162): Add new opcode set.
(AVR_ISA_AVR3): Likewise.

16 years ago * Makefile.in (install-libs): Overwrite newlib's libg.a with symlink
Corinna Vinschen [Tue, 15 Jan 2008 17:42:10 +0000 (17:42 +0000)]
* Makefile.in (install-libs): Overwrite newlib's libg.a with symlink
to libcygwin.a.

16 years ago * Makefile.in (DLL_OFILES): Remove memmem.o.
Corinna Vinschen [Tue, 15 Jan 2008 13:45:42 +0000 (13:45 +0000)]
* Makefile.in (DLL_OFILES): Remove memmem.o.
* memmem.cc: Remove in favor of newlib implementation.

16 years ago* libc/string/Makefile.am (ELIX_2_SOURCES): Fix definition.
Eric Blake [Tue, 15 Jan 2008 13:35:33 +0000 (13:35 +0000)]
* libc/string/Makefile.am (ELIX_2_SOURCES): Fix definition.
* libc/string/Makefile: Regenerate.

16 years ago * libc/include/machine/setjmp.h (__SIGMASK_FUNC): Define as
Corinna Vinschen [Tue, 15 Jan 2008 09:41:06 +0000 (09:41 +0000)]
* libc/include/machine/setjmp.h (__SIGMASK_FUNC): Define as
pthread_sigmask or sigprocmask depending on _POSIX_THREADS.
(sigsetjmp): Use __SIGMASK_FUNC.
(siglongjmp): Ditto.
(_setjmp): Define as macro.
(_longjmp): Ditto.

16 years ago * cygcheck.cc (dump_sysinfo): Always try to get a OSVERSIONINFOEX
Corinna Vinschen [Sun, 13 Jan 2008 13:41:45 +0000 (13:41 +0000)]
* cygcheck.cc (dump_sysinfo): Always try to get a OSVERSIONINFOEX
first.  Load kernel32.dll earlier.  Make osname a buffer.  Simplify
Non-NT code.  Use GetProductInfo in Vista/2008 case.  Clean up
non-Vista version info.  Exit early if not on NT.

16 years agoMake strstr and strcasestr O(n), not O(n^2); add memmem.
Eric Blake [Sat, 12 Jan 2008 04:25:55 +0000 (04:25 +0000)]
Make strstr and strcasestr O(n), not O(n^2); add memmem.
* libc/string/str-two-way.h: New file.
* libc/string/memmem.c (memmem): New file.
* libc/include/string.h (memmem): Declare for all platforms.
* libc/string/strstr.c (strstr): Provide O(n) implementation when
not optimizing for space.
* libc/string/strcasestr.c (strcasestr): Likewise.
* libc/string/Makefile.am (ELIX_SOURCES): Rename to...
(ELIX_2_SOURCES): ...this.
(ELIX_4_SOURCES): New category, for memmem.
(lib_a_SOURCES, libstring_la_SOURCES): Build new file.
(CHEWOUT_FILES): Build documentation for memmem.
* libc/string/strings.tex: Include new docs.

16 years ago* m32c/exit.S (__exit): preserve both argument registers.
DJ Delorie [Fri, 11 Jan 2008 02:21:44 +0000 (02:21 +0000)]
* m32c/exit.S (__exit): preserve both argument registers.

This page took 0.07354 seconds and 5 git commands to generate.