]> sourceware.org Git - newlib-cygwin.git/log
newlib-cygwin.git
16 years ago * cygpath.cc (do_sysfolders): Use cygwin_conv_path.
Corinna Vinschen [Wed, 12 Mar 2008 12:47:09 +0000 (12:47 +0000)]
* cygpath.cc (do_sysfolders): Use cygwin_conv_path.
(do_pathconv): Use cygwin_conv_path and cygwin_conv_path_list.
* dumper.cc (main): Use cygwin_conv_path.  Allocate target path
dynamically.
* mkpasswd.c (current_user): Use cygwin_conv_path.
(enum_users): Ditto.
* ps.cc (NT_MAX_PATH): Define.
(main): Use cygwin_conv_path.
* regtool.cc (find_key): Ditto. Allocate target path dynamically.
(cmd_save): Ditto.

16 years ago * winsup.h (NT_MAX_PATH): Revert ill-advised change to 32767.
Corinna Vinschen [Wed, 12 Mar 2008 12:41:50 +0000 (12:41 +0000)]
* winsup.h (NT_MAX_PATH): Revert ill-advised change to 32767.
Accommodate change throughout.

* cygwin.din (cygwin_conv_path): Export.
(cygwin_conv_path_list): Export.
(cygwin_create_path): Export.
* dcrt0.cc (dll_crt0_1): Use cygwin_conv_path.
* dtable.cc (handle_to_fn): Ditto.  Don't expect UNICODE_STRING being
0-terminated.
* environ.cc (env_plist_to_posix): New helper function.
(env_plist_to_win32): Ditto.
(env_path_to_posix): Ditto.
(env_path_to_win32): Ditto.
(return_MAX_PATH): Remove.
(conv_envvars): Use new helper functions.  Drop removed members.
(win_env::operator =): Accommodate removal of path length functions.
(win_env::add_cache): Accommodate new env helper function API.
(posify): Ditto.
* environ.h (struct win_env): Ditto. Remove path length function
pointers since they are unused.
* path.cc (warn_msdos): Use cygwin_conv_path.
(getfileattr): Use new tmp_pathbuf::u_get method.
(fillout_mntent): Ditto.
(symlink_info::check): Ditto.
(path_conv::check): Use sizeof (WCHAR) instead of constant 2.
(symlink_info::check_reparse_point): Ditto.
(conv_path_list): Get max size of target string as argument.  Call
cygwin_conv_path as helper function.
(cygwin_conv_path): New function.
(cygwin_create_path): New function.
(cygwin_conv_to_win32_path): Just call cygwin_conv_path with size set
to MAX_PATH.
(cygwin_conv_to_full_win32_path): Ditto.
(cygwin_conv_to_posix_path): Ditto.
(cygwin_conv_to_full_posix_path): Ditto.
(conv_path_list_buf_size): Add FIXME comment.
(env_PATH_to_posix): Rename from env_win32_to_posix_path_list.
Add size argument as required for env helper functions.
(cygwin_win32_to_posix_path_list): Call conv_path_list with size set to
MAX_PATH.
(cygwin_posix_to_win32_path_list): Ditto.
(cygwin_conv_path_list): New function.
(cwdstuff::get): Fix length argument in call to sys_wcstombs.
* spawn.cc (find_exec): Use cygwin_conv_path_list.
* tls_pbuf.h (tmp_pathbuf::u_get: New method.
* uinfo.cc (cygheap_user::ontherange): Allocate temporary path buffers
using tmp_pathbuf.  Use cygwin_conv_path.
* winf.cc (av::unshift): Use cygwin_conv_path.
* include/cygwin/version.h: Bump API minor number.
* include/sys/cygwin.h: Comment out old cygwin32_XXX API.
Mark old path handling API as deprecated.
(cygwin_conv_path_t): Typedef.  Define values.
(cygwin_conv_path): Declare.
(cygwin_create_path): Declare.
(cygwin_conv_path_list): Declare.

16 years agoinclude/elf/
Alan Modra [Wed, 12 Mar 2008 08:36:58 +0000 (08:36 +0000)]
include/elf/
PR 5900
* common.h (SHN_BAD): Delete.
(SHN_LORESERVE .. SHN_HIRESERVE): Move to..
* external.h: ..here.
* internal.h (SHN_LORESERVE, SHN_HIRESERVE): Define.
(SHN_LOPROC, SHN_HIPROC, SHN_LOOS, SHN_HIOS): Define.
(SHN_ABS, SHN_COMMON, SHN_XINDEX, SHN_BAD): Define.
bfd/
PR 5900
* elf-bfd.h: Include elf/internal.h after elf/external.h.
* elfcode.h (elf_swap_symbol_in): Map reserved shndx range.
(elf_swap_symbol_out): Adjust SHN_XINDEX test.
(elf_swap_ehdr_out): Mask SHN_LORESERVE and SHN_XINDEX to values
seen in external structs.
(valid_section_index_p): Delete.
(elf_object_p): Don't increment section numbers over reserved range.
Simplify test for valid sh_link, sh_info and e_shstrndx fields.
(elf_write_shdrs_and_ehdr): Mask SHN_LORESERVE and SHN_XINDEX to values
seen in external structs.  Don't increment section numbers over
reserved range.
* elf.c (bfd_elf_sym_name): Remove redundant tests on st_shndx.
(bfd_section_from_shdr): Likewise.
(group_signature): Range check before accessing elf_elfsections.
(_bfd_elf_setup_sections): Likewise.
(bfd_section_from_shdr): Likewise.
(bfd_section_from_shdr): Don't increment section number over
reserved sections.
(assign_file_positions_for_non_load_sections): Likewise.
(assign_file_positions_except_relocs): Likewise.
(_bfd_elf_write_object_contents): Likewise.
(assign_section_numbers): Likewise.  Adjust for changed SHN_*.
(prep_headers): Delete unused variable.
* elflink.c (bfd_elf_link_record_local_dynamic_symbol): Adjust
for changed SHN_* values.
(check_dynsym, elf_link_input_bfd): Likewise.
(bfd_elf_final_link): Likewise.  Don't skip over reserved section
range.
(elf_fixup_link_order): Check that sh_link field is valid.
* elf-hppa.h (elf_hppa_add_symbol_hook): Make "index" unsigned.
* elf32-arm.c (elf32_arm_gc_mark_extra_sections): Range check before
accesssing elf_elfsections.
* elf32-avr.c (elf32_avr_size_stubs): Likewise.
* elf32-hppa.c (elf32_hppa_size_stubs): Likewise.
* elf32-m68hc1x.c (elf32_m68hc11_size_stubs): Likewise.
* elf64-hppa.c (elf64_hppa_check_relocs): Adjust for changed
SHN_* defines.  Test for SHN_BAD return from
_bfd_elf_section_from_bfd_section
binutils/
PR 5900
* readelf.c (SECTION_HEADER_INDEX, SECTION_HEADER_NUM): Delete.
Remove use throughout file.
(SECTION_HEADER): Likewise.
(dump_relocations): Don't adjust st_shndx for reserved range.
(process_file_header): Mask SHN_XINDEX to values seen in external
elf structs.  Simplify valid section index tests.
(get_32bit_elf_symbols, get_64bit_elf_symbols): Mask SHN_XINDEX.
Map reserved st_shndx to internal form.
(process_section_groups): Test that group symbol st_shndx is in
range, not just non-zero.  Delete reserved range check.
(get_symbol_index_type): Mask "type" to 16 bits when printing PRC,
OS or RSV.
gdb/
PR 5900
* elfread.c (elf_symtab_read): Make shndx an unsigned int.
* mipsread.c: Include elf/internal.h.
(read_alphacoff_dynamic_symtab): Map external reserved sym_shndx
to internal range.
ld/testsuite/
PR 5900
* ld-elf/sec64k.exp: Update.

16 years ago * elf/cr16c.h (SHN_CR16C_FCOMMON): Define using SHN_LORESERVE.
Alan Modra [Tue, 11 Mar 2008 23:21:08 +0000 (23:21 +0000)]
* elf/cr16c.h (SHN_CR16C_FCOMMON): Define using SHN_LORESERVE.
(SHN_CR16C_NCOMMON): Likewise.
* elf/hppa.h (SHN_PARISC_ANSI_COMMON): Likewise.
(SHN_PARISC_HUGE_COMMON): Likewise.
* elf/ia64.h (SHN_IA_64_ANSI_COMMON): Likewise.
(SHN_IA_64_VMS_SYMVEC): Define using SHN_LOOS.
* elf/m32r.h (SHN_M32R_SCOMMON): Define using SHN_LORESERVE.
* elf/mips.h (SHN_MIPS_ACOMMON, SHN_MIPS_TEXT): Likewise.
(SHN_MIPS_DATA, SHN_MIPS_SCOMMON, SHN_MIPS_SUNDEFINED): Likewise.
* elf/score.h (SHN_SCORE_TEXT, SHN_SCORE_DATA): Likewise.
(SHN_SCORE_SCOMMON): Likewise.
* elf/sparc.h (SHN_BEFORE, SHN_AFTER): Likewise.
* elf/v850.h (SHN_V850_SCOMMON, SHN_V850_TCOMMON): Likewise.
(SHN_V850_ZCOMMON): Likewise.
* elf/x86-64.h (SHN_X86_64_LCOMMON): Likewise.

16 years ago2008-03-11 Jeff Johnston <jjohnstn@redhat.com>
Jeff Johnston [Tue, 11 Mar 2008 19:13:30 +0000 (19:13 +0000)]
2008-03-11  Jeff Johnston  <jjohnstn@redhat.com>

        * libc/stdio/rgetc.c (__srget_r): Invoke CHECK_INIT to ensure
        stdin gets resolved properly before refilling.

16 years ago2008-03-11 Jeff Johnston <jjohnstn@redhat.com>
Jeff Johnston [Tue, 11 Mar 2008 19:08:39 +0000 (19:08 +0000)]
2008-03-11  Jeff Johnston  <jjohnstn@redhat.com>

        * libc/stdio/rgetc.c (__srget): Invoke CHECK_INIT to ensure
        stdin gets resolved properly before refilling.

16 years ago * cygcheck.cc (find_app_on_path): Make buffer SYMLINK_MAX + 1
Brian Dessent [Tue, 11 Mar 2008 18:43:11 +0000 (18:43 +0000)]
* cygcheck.cc (find_app_on_path): Make buffer SYMLINK_MAX + 1
chars.

16 years ago * cygcheck.cc (dirname): New static function.
Brian Dessent [Tue, 11 Mar 2008 17:20:02 +0000 (17:20 +0000)]
* cygcheck.cc (dirname): New static function.
(find_app_on_path): Use SYMLINK_MAX.  Resolve symlink relative
to link's location.  Adjust to the fact that cygpath already
normalizes its return value.
* path.cc (rel_vconcat): Add cwd parameter, and use it instead
of calling GetCurrentDirectory() if possible.  Rename throughout.
(vcygpath): Rename from cygpath and accept cwd and va_list.  Pass
cwd on to rel_vconcat().
(cygpath_rel): New front end for vcygpath.
(cygpath): Ditto.
* path.h (cygpath_rel): Declare.
(SYMLINK_MAX): Define to 4095.

16 years ago * dlfcn.cc (get_full_path_of_dll): Allow paths up to PATH_MAX.
Corinna Vinschen [Tue, 11 Mar 2008 13:35:55 +0000 (13:35 +0000)]
* dlfcn.cc (get_full_path_of_dll): Allow paths up to PATH_MAX.
(dlopen): Call get_full_path_of_dll with path buffer allocate by
tmp_pathbuf.

16 years ago * spawn.cc (find_exec): Use tmp_pathbuf to allocate path buffer.
Corinna Vinschen [Tue, 11 Mar 2008 13:26:40 +0000 (13:26 +0000)]
* spawn.cc (find_exec): Use tmp_pathbuf to allocate path buffer.

16 years ago * dtable.cc (dtable::init_std_file_from_handle): Use tmp_pathbuf to
Corinna Vinschen [Tue, 11 Mar 2008 13:17:52 +0000 (13:17 +0000)]
* dtable.cc (dtable::init_std_file_from_handle): Use tmp_pathbuf to
allocate path buffer.
(handle_to_fn): Ditto.  Allocate fnbuf big enough to get long path
names.

16 years ago * path.cc (cwdstuff::set): Make sure drive_length is 0 for virtual
Corinna Vinschen [Tue, 11 Mar 2008 12:34:08 +0000 (12:34 +0000)]
* path.cc (cwdstuff::set): Make sure drive_length is 0 for virtual
paths.  Add comments.
* spawn.cc (spawn_guts): Don't allow to start a native Win32 application
from a long path or a virtual path.  Print an error message to stderr.

16 years ago * environ.cc (parse_options): Use tmp_pathbuf to allocate buffer.
Corinna Vinschen [Tue, 11 Mar 2008 11:42:00 +0000 (11:42 +0000)]
* environ.cc (parse_options): Use tmp_pathbuf to allocate buffer.
(regopt): Take tmp buffer as additional argument.
(environ_init): Alllcate tmpbuf earlier.  Use as temporary buffer in
call to regopt.
* tls_pbuf.cc (tmp_pathbuf::c_get): Allocate one additional char.
(tmp_pathbuf::w_get): Allocate one additional WCHAR.
* winf.cc (av::unshift): Use tmp_pathbuf to allocate buffer.

16 years ago * syscalls.cc (sync): Use MAX_PATH rather than CYG_MAX_PATH.
Corinna Vinschen [Tue, 11 Mar 2008 11:12:09 +0000 (11:12 +0000)]
* syscalls.cc (sync): Use MAX_PATH rather than CYG_MAX_PATH.

16 years ago * fhandler.h (class fhandler_console): Add write_buf as pointer to
Corinna Vinschen [Mon, 10 Mar 2008 17:23:50 +0000 (17:23 +0000)]
* fhandler.h (class fhandler_console): Add write_buf as pointer to
temporary buffer space.
* fhandler_console.cc (CONVERT_LIMIT): Define as NT_MAX_PATH.  Add
comment.
(fhandler_console::write_normal): Use write_buf throughout.
(fhandler_console::write): Use tmp_pathbuf to allocate write_buf.

16 years ago * fhandler_console.cc (fhandler_console::write_normal): Don't print
Corinna Vinschen [Mon, 10 Mar 2008 16:48:56 +0000 (16:48 +0000)]
* fhandler_console.cc (fhandler_console::write_normal): Don't print
chars marked as ERR chars.

16 years ago * fhandler.h (dev_console::con_to_str): Declare returning DWORD.
Corinna Vinschen [Mon, 10 Mar 2008 16:22:38 +0000 (16:22 +0000)]
* fhandler.h (dev_console::con_to_str): Declare returning DWORD.
* fhandler_console.cc (dev_console::con_to_str): Return number of
multibyte char bytes.
(fhandler_console::read): Set nread to number of multibyte char bytes
returned from con_to_str.
(fhandler_console::write_normal): Reorder trunc buffer preocessing.
Return after writing valid multibyte sequence out of trunc buffer.
Change comments slightly.

16 years ago2008-03-09 Paul Brook <paul@codesourcery.com>
Paul Brook [Sun, 9 Mar 2008 13:23:29 +0000 (13:23 +0000)]
2008-03-09  Paul Brook  <paul@codesourcery.com>

bfd/
* elf32-arm.c (elf32_arm_merge_eabi_attributes): Handle new
Tag_VFP_arch values.

binutils/
* readelf.c (arm_attr_tag_VFP_arch): Add "VFPv3-D16".

gas/
* config/tc-arm.c (fpu_vfp_ext_d32): New vairable.
(parse_vfp_reg_list, encode_arm_vfp_reg): Use it.
(arm_option_cpu_value): Add vfpv3-d16, vfpv2 and vfpv3.
(aeabi_set_public_attributes): Handle Tag_VFP_arch=VFPV3-D16.
* doc/c-arm.texi: Document new ARM FPU variants.

gas/testsuite/
* gas/arm/vfpv3-d16-bad.d: New test.
* gas/arm/vfpv3-d16-bad.l: New test.

include/opcode/
* arm.h (FPU_VFP_EXT_D32, FPU_VFP_V3D16, FPU_ARCH_VFP_V3D16): Define.

16 years ago * Makefile.in (install): Don't install the testsuite.
Brian Dessent [Sun, 9 Mar 2008 09:41:42 +0000 (09:41 +0000)]
* Makefile.in (install): Don't install the testsuite.

16 years ago * Makefile.in: Add a 'check' target that builds and runs
Brian Dessent [Sun, 9 Mar 2008 04:10:10 +0000 (04:10 +0000)]
* Makefile.in: Add a 'check' target that builds and runs
testsuite.exe from path-testsuite.o and testsuite.o.
* path.cc: Include testsuite.h.
(struct mnt): Change to a mnt_t typedef and don't define
mount_table when TESTSUITE is defined.
(find2): Don't include when TESTSUITE is defined to avoid warning.
(get_cygdrive0): Ditto.
(get_cygdrive): Ditto.
(read_mounts): Provide empty implementation when TESTSUITE is
defined.
(vconcat): Use the isslash macro.
(unconvert_slashes): New helper to convert to backslashses.
(rel_vconcat): Handle relative paths more gracefully.
(cygpath): Skip a leading "./" sequence.  Avoid double-slashes.
Normalize final output to backslashes and remove redundant path
sequences.
* testsuite.cc: New file implementing testsuite driver.
* testsuite.h: New header implementing harness mount table and
series of tests.

16 years ago * Makefile.in: Reorganize considerably, using GNU make's
Brian Dessent [Sat, 8 Mar 2008 17:52:49 +0000 (17:52 +0000)]
* Makefile.in: Reorganize considerably, using GNU make's
static pattern rules and target-specific variables.

16 years ago * fhandler_disk_file.cc (DIR_BUF_SIZE): Define required space for file
Corinna Vinschen [Sat, 8 Mar 2008 17:28:40 +0000 (17:28 +0000)]
* fhandler_disk_file.cc (DIR_BUF_SIZE): Define required space for file
name in terms of sizeof(WCHAR).
(fhandler_disk_file::readdir_helper): Convert *all* of fname.
* path.cc (fillout_mntent): Use tmp_pathbuf for path buffer.
(symlink_worker): Ditto.
(SCAN_JUSTCHECKTHIS): New state for suffix_scan to define
that only the actual name gets cheked and a suffix is never attached.
(suffix_scan::has): If filename + suffix would be > NAME_MAX, start
in SCAN_JUSTCHECKTHIS state.
(suffix_scan::next): Add case for SCAN_JUSTCHECKTHIS.
(symlink_info::check): Use tmp_pathbuf for path buffer.  Goto
file_not_symlink in case of invalid file name.
(realpath): Use tmp_pathbuf for path buffer.

16 years ago * dtable.cc (handle_to_fn): Null-terminate posix_fn in the case
Brian Dessent [Sat, 8 Mar 2008 03:28:34 +0000 (03:28 +0000)]
* dtable.cc (handle_to_fn): Null-terminate posix_fn in the case
of justslash = true.

16 years ago * fhandler.cc (fhandler_base::open): Use %S for PUNICODE_STRING.
Brian Dessent [Sat, 8 Mar 2008 01:33:22 +0000 (01:33 +0000)]
* fhandler.cc (fhandler_base::open): Use %S for PUNICODE_STRING.
* syscalls.cc (setmode): Ditto.

16 years ago2008-03-07 Jeff Johnston <jjohnstn@redhat.com>
Jeff Johnston [Fri, 7 Mar 2008 18:16:35 +0000 (18:16 +0000)]
2008-03-07  Jeff Johnston  <jjohnstn@redhat.com>

        * libc/include/getopt.h: Hide newlib extensions under
        the __need_getopt_newlib flag.
        * libc/stdlib/getopt.c: #define __need_getopt_newlib before including
        getopt.h.  Put entire code under !HAVE_GETOPT to support platforms
        with their own getopt implementation.
        * configure.host: Specify HAVE_GETOPT for x86-linux.

16 years ago2008-03-07 Jeff Johnston <jjohnstn@redhat.com>
Jeff Johnston [Fri, 7 Mar 2008 16:45:04 +0000 (16:45 +0000)]
2008-03-07  Jeff Johnston  <jjohnstn@redhat.com>

        * libc/include/sys/reent.h(_REENT_SMALL_CHECK_INIT): Specify
        this macro completely instead of referring to CHECK_STD_INIT which
        is only found in libc/stdio/local.h.
        * libc/stdio/dprintf.c: Add include of local.h.
        * libc/stdio/vdprintf.c: Ditto.
        * libc/stdio/vdiprintf.c: Ditto.

16 years ago * fhandler_socket.cc (fhandler_socket::sendto): Never send more than
Corinna Vinschen [Fri, 7 Mar 2008 14:47:48 +0000 (14:47 +0000)]
* fhandler_socket.cc (fhandler_socket::sendto): Never send more than
64K.  Add comment to explain why.
(fhandler_socket::sendmsg): Ditto.

16 years ago * Makefile.in (DLL_OFILES): Add tls_pbuf.o.
Corinna Vinschen [Fri, 7 Mar 2008 11:24:51 +0000 (11:24 +0000)]
* Makefile.in (DLL_OFILES): Add tls_pbuf.o.
* autoload.cc (CreateDesktopW): Replace CreateDesktopA.
(CreateWindowStationW): Replace CreateWindowStationA.
(GetUserObjectInformationW): Replace GetUserObjectInformationA.
* cygheap.h (cwdstuff::get): Assume default buffer size NT_MAX_PATH.
* cygtls.cc (_cygtls::remove): Free temporary TLS path buffers.
* cygtls.h (TP_NUM_C_BUFS): Define.
(TP_NUM_W_BUFS): Define.
(class tls_pathbuf): New class to store pointers to thread local
temporary path buffers.
(_local_storage::pathbufs): New member.
* environ.cc (win_env::add_cache): Use temporary TLS path buffer instead
of stack based buffer.
(posify): Get temporary outenv buffer from calling function.
(environ_init): Create temporary TLS path buffer for posify.
(build_env): Create Windows environment block as WCHAR buffer.
* environ.h (build_env): Change declaration accordingly.
* external.cc (sync_winenv): Accommodate build_env change.
* fhandler_console.cc (fhandler_console::need_invisible): Use
GetUserObjectInformationW and CreateWindowStationW.
* fhandler_process.cc (format_process_maps): Use temporary TLS path
buffer instead of stack based buffer.
* fork.cc (frok::parent): Convert to use CreateProcessW.
* path.cc: Throughout use temporary TLS path buffers instead of stack
based buffer.  Replace checks for CYG_MAX_PATH by checks for
NT_MAX_PATH.
(getfileattr): New function to replace GetFileAttributesA.
(normalize_win32_path): Remove Win32 and NT long path prefixes.
(getwd): Assume PATH_MAX + 1 buffer per SUSv3.
* path.h (class path_conv): Set path buffer to size NT_MAX_PATH.
(iswdrive): Define.
* pinfo.cc (commune_process): Use temporary TLS path buffer instead of
stack based buffer.
* registry.cc (get_registry_hive_path): Ditto.
(load_registry_hive): Ditto.
* spawn.cc (spawn_guts): Convert to use CreateProcessW and
CreateProcessAsUserW.
(av::fixup): Open/close file using NtOpenFile/NtClose.
* syscalls.cc (mknod_worker): Allow PATH_MAX file name.
(mknod32): Ditto.
(getusershell): Ditto.
* tls_pbuf.cc: New file implementing tls_pathbuf and tmp_pathbuf
methods.
* tls_pbuf.h: New header for files using tmp_pathbuf.
* tlsoffsets.h: Regenerate.
* winsup.h (NT_MAX_PATH): Define as 32767 to avoid USHORT overflow.

16 years ago2008-03-06 Florian Krohm <fkrohm@us.ibm.com>
Andreas Krebbel [Thu, 6 Mar 2008 12:01:11 +0000 (12:01 +0000)]
2008-03-06  Florian Krohm  <fkrohm@us.ibm.com>

* s390-opc.c (INSTR_RSL_R0RD): Fix operands.
* s390-opc.txt (cmpsc): Duplicate entry removed.
(dxr, sqdr, sqer, cxfbr, cdfbr, cefbr, lzer, lzdr, lzxr,
cegbr, cdgbr, cxgbr, cegr, cdgr, cxgr, cxfr, cdfr, cefr, fixr, fidr,
fier, cu42, cu41): Fix operand format.

2008-03-06  Andreas Krebbel  <krebbel1@de.ibm.com>

* gas/s390/esa-g5.d (cdfbr, cdfr, cefbr, cefr, cxfbr, cxfr,
dxr, fidr, fier, fixr, lzdr, lzer, lzxr, sqdr, sqer, tp): Fix
operand format.
* gas/s390/esa-g5.s: Likewise.
* gas/s390/zarch-z900.d (cdgbr, cdgr, cegbr, cegr, cxgbr,
cxgr): Likewise.
* gas/s390/zarch-z900.s: Likewise.
* gas/s390/zarch-z9-109.d (cu41, cu42): Remove mask operand.
* gas/s390/zarch-z9-109.s: Likewise.

16 years ago * child_info.h (CURR_CHILD_INFO_MAGIC): Reset.
Corinna Vinschen [Thu, 6 Mar 2008 10:30:50 +0000 (10:30 +0000)]
* child_info.h (CURR_CHILD_INFO_MAGIC): Reset.

16 years ago * fhandler.cc (fhandler_base::open_): Add missing test for O_CREAT.
Corinna Vinschen [Thu, 6 Mar 2008 10:16:07 +0000 (10:16 +0000)]
* fhandler.cc (fhandler_base::open_): Add missing test for O_CREAT.
Fix comment.

16 years agos/open/create/
Corinna Vinschen [Thu, 6 Mar 2008 10:01:33 +0000 (10:01 +0000)]
s/open/create/

16 years ago * child_info.h (~child_info_spawn): Check moreinfo->myself_pinfo for
Corinna Vinschen [Wed, 5 Mar 2008 18:31:09 +0000 (18:31 +0000)]
* child_info.h (~child_info_spawn): Check moreinfo->myself_pinfo for
NULL before closing.
* spawn.cc (spawn_guts): Don't close moreinfo->myself_pinfo explicitely
in case of failing CloseProcess.

* fhandler.cc (fhandler_base::open_): Return EISDIR when trying to
create a directory.
* path.cc (path_conv::check): If input path had a trailing dir
separator, tack it on to the native path if directory doesn't exist.

16 years ago2008-03-04 Paul Brook <paul@codesourcery.com>
Paul Brook [Wed, 5 Mar 2008 01:31:26 +0000 (01:31 +0000)]
2008-03-04  Paul Brook  <paul@codesourcery.com>

gas/
* config/tc-arm.c (arm_ext_barrier, arm_ext_msr): New.
(arm_ext_v7m): Rename...
(arm_ext_m): ... to this.  Include v6-M.
(do_t_add_sub): Allow narrow low-reg non flag setting adds.
(do_t_mrs, do_t_msr, aeabi_set_public_attributes): Use arm_ext_m.
(md_assemble): Allow wide msr instructions.
(insns): Add classifications for v6-m instructions.
(arm_cpu_option_table): Add cortex-m1.
(arm_arch_option_table): Add armv6-m.
(cpu_arch): Add ARM_ARCH_V6M.  Fix numbering of other v6 variants.

gas/testsuite/
* gas/arm/archv6m.d: New test.
* gas/arm/archv6m.s: New test.
* gas/arm/t16-bad.s: Test low register non flag setting add.
* gas/arm/t16-bad.l: Update expected output.

include/opcode/
* arm.h (ARM_EXT_V6M, ARM_EXT_BARRIER, ARM_EXT_THUMB_MSR): Define.
(ARM_AEXT_V6T2, ARM_AEXT_V7_ARM, ARM_AEXT_V7M): Use new flags.
(ARM_AEXT_V6M, ARM_ARCH_V6M): Define.

16 years agoFix strtod("nan()", ptr).
Eric Blake [Tue, 4 Mar 2008 18:27:01 +0000 (18:27 +0000)]
Fix strtod("nan()", ptr).
* libc/stdlib/gdtoa-hexnan.c (hexnan): When the optional
n-char-sequence is omitted, still parse the ().
-------------------------------------------------------------------

16 years ago2008-02-28 Joseph Myers <joseph@codesourcery.com>
Chris Sutcliffe [Tue, 4 Mar 2008 02:42:44 +0000 (02:42 +0000)]
2008-02-28  Joseph Myers  <joseph@codesourcery.com>

        * include/complex.h: Don't condition contents on C99 or not
        __STRICT_ANSI__.

16 years agoFix ftell bug after ungetc.
Eric Blake [Tue, 4 Mar 2008 02:22:36 +0000 (02:22 +0000)]
Fix ftell bug after ungetc.
* libc/stdio/ftell.c (_ftell_r): Don't flush ungetc buffer on
ftell.
* libc/stdio64/ftello64.c (_ftello64_r): Likewise.
* libc/stdio/fflush.c (_fflush_r): Clear unget buffer when
repositioning underlying fd offset.
-------------------------------------------------------------------

16 years ago2008-03-02 Jeff Johnston <jjohnstn@redhat.com>
Jeff Johnston [Mon, 3 Mar 2008 19:47:59 +0000 (19:47 +0000)]
2008-03-02  Jeff Johnston  <jjohnstn@redhat.com>

        * libc/include/getopt.h (no_argument): Added for glibc compatibility.
        (required_argument, optional_argument): Ditto.

16 years ago* dwarf2.h: (enum dwarf_location_atom): Add new DW_OP,
Nick Clifton [Mon, 3 Mar 2008 10:19:01 +0000 (10:19 +0000)]
* dwarf2.h: (enum dwarf_location_atom): Add new DW_OP,
  DW_OP_PGI_omp_thread_num.

* dwarf.c (decode_location_expression): Handle
  DW_OP_PGI_omp_thread_num.

16 years agofix typo
Christopher Faylor [Sun, 2 Mar 2008 23:11:00 +0000 (23:11 +0000)]
fix typo

16 years ago* cygtls.cc (_cygtls::init_exception_handler): Semi-revert to making only
Christopher Faylor [Sun, 2 Mar 2008 22:51:19 +0000 (22:51 +0000)]
* cygtls.cc (_cygtls::init_exception_handler): Semi-revert to making only
ourselves the exception handler and nothing else.
* exceptions.cc (open_stackdumpfile): Use correct format specifiers for unicode
when printing nameof stackdump file.
(stack_info::walk): Stop walking if ebp points into cygwin itself.
(_cygtls::handle_exceptions): Detect when signal is masked and treat as if it
was not caught.  Reinitialize exception handler to known state to avoid
subsequent attempts to call Windows exception handlers if an exception occurs
in a signal handler.  Revert to a 'return 0' rather than using a goto.
* strfuncs.cc (sys_wcstombs_alloc): Minor formatting tweak.
* winsup.h: Fix comment typo.

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.

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