]> sourceware.org Git - newlib-cygwin.git/log
newlib-cygwin.git
16 years agobfd/
Alan Modra [Sun, 17 Aug 2008 03:12:50 +0000 (03:12 +0000)]
bfd/
* bfd.c (struct _bfd): Correct outsymbols comment.
* bfd-in2.h: Regenerate.
* linker.c (bfd_generic_link_read_symbols): Renamed from..
(generic_link_read_symbols): ..this, and made global.

include/
* bfdlink.h (bfd_generic_link_read_symbols): Declare.
ld/
PR 6478
* ldcref.c (check_local_sym_xref): Use bfd_generic_link_read_symbols.
Don't free symbol pointer array.
(check_refs): Likewise.
* ldmain.c (warning_callback): Likewise.
* ldmisc.c (vfinfo): Likewise.
* pe-dll.c (process_def_file): Likewise.
(pe_walk_relocs_of_symbol, generate_reloc): Likewise.
* emultempl/pe.em (pe_find_data_imports): Likewise.
(gld_${EMULATION_NAME}_after_open): Likewise.
* emultempl/pep.em (pep_find_data_imports): Likewise.
(gld_${EMULATION_NAME}_after_open): Likewise.
* ldlang.h (lang_input_statement_type): Delete asymbols, symbol_count,
passive_position, closed.
* ldlang.c (new_afile): Don't set asymbols and symbol_count.
* ldmain.c (add_archive_element): xcalloc lang_input_statement_type.

16 years ago * configure.ac (mips*-*-*linux*, mips*-*-gnu*): Use mt-mips-gnu.
Richard Sandiford [Sat, 16 Aug 2008 06:47:17 +0000 (06:47 +0000)]
* configure.ac (mips*-*-*linux*, mips*-*-gnu*): Use mt-mips-gnu.
* configure: Regenerate.

config/
* mt-mips16-compat: New file, taken from mt-mips-elfoabi.
* mt-mips-elfoabi: Include mt-mips16-compat.
* mt-mips-gnu: New file.

16 years ago * mkgroup.c (fetch_current_pgrp_sid): New function to fetch primary
Corinna Vinschen [Fri, 15 Aug 2008 13:08:47 +0000 (13:08 +0000)]
* mkgroup.c (fetch_current_pgrp_sid): New function to fetch primary
group SID from user token.
(current_group): Move up in file.  Move fetching primary group SID to
fetch_current_pgrp_sid.
(enum_local_groups): Check if current SID is the same as current user's
primary group SID.
(enum_groups): Ditto.
(main): Call fetch_current_pgrp_sid before enumerating groups.  Call
current_group only if current group hasn't been enumerated already.
* mkpasswd.c (fetch_current_user_sid): New function to fetch current
user SID from user token.
(current_user): Move fetching current user SID to
fetch_current_user_sid.
(enum_users): Check if current SID is the same as current user's SID.
(main): Call fetch_current_user_sid before enumerating users.  Call
current_user only if current user hasn't been enumerated already.

16 years ago * mount.cc (mount_info::get_mounts_here): Don't subtract 2 from
Corinna Vinschen [Fri, 15 Aug 2008 12:33:26 +0000 (12:33 +0000)]
* mount.cc (mount_info::get_mounts_here): Don't subtract 2 from
Length if it's 0 anyway.

16 years ago * mount.cc (mount_info::create_root_entry): Create default cygdrive
Corinna Vinschen [Fri, 15 Aug 2008 12:06:38 +0000 (12:06 +0000)]
* mount.cc (mount_info::create_root_entry): Create default cygdrive
prefix with MOUNT_NOPOSIX flag.

16 years ago * path.cc (symlink_info::check): Don't use eabuf when trying to open
Corinna Vinschen [Fri, 15 Aug 2008 10:19:12 +0000 (10:19 +0000)]
* path.cc (symlink_info::check): Don't use eabuf when trying to open
file a second time.  Call NtOpenFile instead of NtCreateFile in this
case.

16 years ago2008-08-14 Jie Zhang <jie.zhang@analog.com>
Jeff Johnston [Thu, 14 Aug 2008 22:00:47 +0000 (22:00 +0000)]
2008-08-14  Jie Zhang  <jie.zhang@analog.com>

        * bfin/Makefile.in: (top_srcdir): Define.
        (mkinstalldirs): Define.
        (BOARD_SCRIPTS): Define.
        (BOARD_LDFLAGS): Define.
        (BOARD_BSP): Define.
        (BOARD_CRT0S): Define.
        (BOARD_OBJS): Define.
        (BOARD_TEST): Define.
        (BOARD_INSTALL): Define.
        (INCLUDES): Add -I$(srcdir)/include.
        (all): Add ${BOARD_CRT0S} and ${BOARD_BSP}.
        (.c.S): Remove target.
        (crt0.o): New target.
        (basiccrt.o): Likewise.
        (basiccrtb.o): Likewise.
        (basiccrts.o): Likewise.
        (basiccrt561.o, basiccrt561s.o, basiccrt561b.o): Likewise
        (clean mostlyclean): Remove ${BOARD_BSP}.
        (install): Depend on ${BOARD_INSTALL}.
        (install-sim): Reformat.
        (install-board): New target.
        * bfin/basiccrt.S: Remove useless __ADSPBF561_COREB__ in
        workaround code for 05000229.
        * bfin/syscalls.c (do_syscall): Use `EXCPT 0' instead of
        `RAISE 0' for syscall.
        * bfin/basiccrt.S: New file.
        * bfin/bf5*ld: New file.
        * bfin/bfin-common-mc.ld: New file.
        * bfin/bfin-common-sc.ld: New file.
        * bfin/include/blackfin.h: New file.
        * bfin/include/cdefBF5*.h: New file.
        * bfin/include/cdef_LPBlackfin.h: New file.
        * bfin/include/cdefblackfin.h: New file.
        * bfin/include/cplb.h: New file.
        * bfin/include/cplbtab.h: New file.
        * bfin/include/defBF5*.h: New files.
        * bfin/include/def_LPBlackfin.h: New files.
        * bfin/include/defblackfin.h: New file.
        * bfin/include/sys/_adi_platform.h: New file.
        * bfin/include/sys/anomaly_macros_rtl.h: New file.
        * bfin/include/sys/excause.h: New file.
        * bfin/include/sys/exception.h: New file.
        * bfin/include/sys/mc_typedef.h: New file.
        * bfin/include/sys/platform.h: New file.
        * bfin/include/sys/pll.h: New file.
        * bfin/include/sysreg.h: New file.
        * libnosys/configure.in (MISSING_SYSCALL_NAMES): Don't define
        for bfin.
        * libnosys/configure: Regenerate.

16 years agoAdd missing dependencies for building libmingwex.a.
Keith Marshall [Thu, 14 Aug 2008 15:13:18 +0000 (15:13 +0000)]
Add missing dependencies for building libmingwex.a.

16 years ago * fhandler_disk_file.cc (fhandler_disk_file::link): Fix linking
Corinna Vinschen [Thu, 14 Aug 2008 15:00:52 +0000 (15:00 +0000)]
* fhandler_disk_file.cc (fhandler_disk_file::link): Fix linking
against symlinks.

16 years ago * external.cc (cygwin_internal): Call set_security_attribute with
Corinna Vinschen [Thu, 14 Aug 2008 14:05:04 +0000 (14:05 +0000)]
* external.cc (cygwin_internal): Call set_security_attribute with
additional path_conv argument.
* fhandler.cc (fhandler_base::open): Ditto.
* fhandler_disk_file.cc (fhandler_disk_file::fchmod): Never set DOS
R/O attribute when using ACLs.
(fhandler_disk_file::mkdir): Ditto.  Set
security descriptor on remote dirs after creating the dir, same as in
fhandler_base::open.
* fhandler_socket.cc (fhandler_socket::bind): Ditto for remote AF_LOCAL
socket files.
* path.cc (symlink_worker): Ditto. for remote symlinks.
* security.cc (alloc_sd): Take additional path_conv argument.
Accommodate throughout.  Drop setting FILE_WRITE_EA/FILE_READ_EA
flags unconditionally (was only necessary for "ntea"). Don't set
FILE_READ_ATTRIBUTES and FILE_WRITE_ATTRIBUTES unconditionally on
Samba.  Add comment to explain.  Drop useless setting of
STANDARD_RIGHTS_WRITE, it's in FILE_GENERIC_WRITE anyway.
Remove FILE_READ_ATTRIBUTES bit from FILE_GENERIC_EXECUTE so as not
to enforce read permissions on Samba.
(set_security_attribute): Take additional path_conv argument.
* security.h (set_security_attribute): Change prototype accordingly.

16 years ago * mount.cc (NT_MAX_PATH): Define.
Corinna Vinschen [Wed, 13 Aug 2008 16:35:04 +0000 (16:35 +0000)]
* mount.cc (NT_MAX_PATH): Define.
(longopts): Rename mount-commands option to mount-entries.
(opts): Remove removed options.
(struct opt): Move up in file to allow using it in usage.
(usage): Change text for --mount-entries option.  Remove
-X option.  Add valid options output.
(main): Remove handling -b option.
(convert_spaces): New static function to convert spaces to "\040"
string.
(mount_entries): Renamed from mount_commands.  Rewrite to emit
/etc/fstab compatible output.
(show_cygdrive_info): Print "nouser" rather than "system".
* umount.cc (longopts): Remove remove-all-mounts,
remove-cygdrive-prefix, remove-system-mounts, system and user options.
(opts): Remove A, c, s, S, u options.
(usage): Remove text for all removed options.
(main): Remove handling for all removed options.
(remove_all_mounts): Remove.
(remove_all_system_mounts): Remove.
(remove_cygdrive_prefix): Remove.
* utils.sgml: Fix mount and umount documentation.  Move description
of (cyg,not)exec options to mount table section.

16 years ago * pathnames.sgml: Move description for (cyg,not)exec mount options
Corinna Vinschen [Wed, 13 Aug 2008 16:34:49 +0000 (16:34 +0000)]
* pathnames.sgml: Move description for (cyg,not)exec mount options
from utils.sgml here.  Clarify nouser mount points.

16 years ago * mount.cc (fillout_mntent): Always print noumount option last.
Corinna Vinschen [Wed, 13 Aug 2008 15:30:52 +0000 (15:30 +0000)]
* mount.cc (fillout_mntent): Always print noumount option last.

16 years ago * mount.cc (fillout_mntent): Print options as taken in fstab and mount.
Corinna Vinschen [Wed, 13 Aug 2008 15:11:25 +0000 (15:11 +0000)]
* mount.cc (fillout_mntent): Print options as taken in fstab and mount.

16 years ago * cyglsa-config: Copy the DLL instead of moving.
Corinna Vinschen [Wed, 13 Aug 2008 11:05:25 +0000 (11:05 +0000)]
* cyglsa-config: Copy the DLL instead of moving.

16 years ago * dll_init.cc: Throughout convert to use long pathnames.
Corinna Vinschen [Wed, 13 Aug 2008 08:25:44 +0000 (08:25 +0000)]
* dll_init.cc: Throughout convert to use long pathnames.
* dll_init.h (struct dll): Change name to WCHAR, change operator [] to
take PWCHAR argument.

16 years agoAdd replacements for remaining members of printf() family.
Keith Marshall [Mon, 11 Aug 2008 22:41:55 +0000 (22:41 +0000)]
Add replacements for remaining members of printf() family.

16 years ago * syscalls.cc (rename): If newpath doesn't exist, check if .exe suffix
Corinna Vinschen [Mon, 11 Aug 2008 15:05:25 +0000 (15:05 +0000)]
* syscalls.cc (rename): If newpath doesn't exist, check if .exe suffix
in oldpath has been omitted before appending .exe to newpath.

16 years ago * fhandler_floppy.cc (fhandler_dev_floppy::raw_read): Don't set
Corinna Vinschen [Sat, 9 Aug 2008 11:09:02 +0000 (11:09 +0000)]
* fhandler_floppy.cc (fhandler_dev_floppy::raw_read): Don't set
eom_detected when EOF is detected, thus returning 0 instead of
setting errno to ENOSPC.

16 years agoAdd AVR architectures avr25, avr31, avr35, and avr51 to match GCC.
Eric Weddington [Sat, 9 Aug 2008 05:35:13 +0000 (05:35 +0000)]
Add AVR architectures avr25, avr31, avr35, and avr51 to match GCC.
bfd/
* archures.c (bfd_mach_avr25, bfd_mach_avr31, bfd_mach_avr35,
bfd_mach_avr51): New.
* bfd-in2.h: Regenerate.
* cpu-avr.c (arch_info_struct): Add avr25, avr31, avr35, and avr51
architectures. Change comments to match architecture comments in GCC.
(compatible): Add test for new AVR architectures.
* elf32-avr.c (bfd_elf_avr_final_write_processing): Recognize
bfd_mach_avr25, bfd_mach_avr31, bfd_mach_avr35 and bfd_mach_avr51.
(elf32_avr_object_p): Recognize E_AVR_MACH_AVR25, E_AVR_MACH_AVR31,
E_AVR_MACH_AVR35 and E_AVR_MACH_AVR51.

gas/
* config/tc-avr.c (mcu_types): Add avr25, avr31, avr35, and avr51
architectures. Reorganize list to put mcu types in correct architectures
and to order list same as in GCC. Use new ISA definitions in
include/opcode/avr.h.
* doc/c-avr.texi: Add avr25, avr31, avr35, and avr51 architecture
descriptions. Reorganize descriptions to put mcu types in correct
architectures and to order lists same as in GCC.

include/
* elf/avr.h (E_AVR_MACH_AVR25, E_AVR_MACH_AVR31,
E_AVR_MACH_AVR35, E_AVR_MACH_AVR51): Define.
(EF_AVR_MACH): Redefine to 0x7F.
* opcode/avr.h (AVR_ISA_TINY3, AVR_ISA_ALL, AVR_ISA_USB162): Remove.
(AVR_ISA_AVR3): Redefine.
(AVR_ISA_AVR1, AVR_ISA_AVR2, AVR_ISA_AVR31, AVR_ISA_AVR35,
AVR_ISA_AVR3_ALL, AVR_ISA_AVR4, AVR_ISA_AVR5, AVR_ISA_AVR51,
AVR_ISA_AVR6): Define.

ld/
* Makefile.am (ALL_EMULATIONS): Add eavr25.o, eavr31.o, eavr35.o,
and eavr51.o.
Add rules for eavr25.c, eavr31.c, eavr35.c, eavr51.c.
* Makefile.in: Regenerate.
* configure.tgt (avr-*-*, targ_extra_emuls): Add avr25, avr31, avr35
and avr51.
* emulparams/avr25.sh: New file.
* emulparams/avr31.sh: New file.
* emulparams/avr35.sh: New file.
* emulparams/avr51.sh: New file.

16 years ago2008-08-08 Richard Sandiford <rdsandiford@googlemail.com>
Daniel Jacobowitz [Fri, 8 Aug 2008 19:24:49 +0000 (19:24 +0000)]
2008-08-08  Richard Sandiford  <rdsandiford@googlemail.com>
    Daniel Jacobowitz  <dan@codesourcery.com>
    Catherine Moore  <clm@codesourcery.com>
    Mark Shinwell  <shinwell@codesourcery.com>
    Maxim Kuvyrkov  <maxim@codesourcery.com>

* elf32-mips.c (mips_vxworks_copy_howto_rela): Replace with...
(elf_mips_copy_howto): ...this howto.  Clear the size fields.
(mips_vxworks_jump_slot_howto_rela): Replace with...
(elf_mips_jump_slot_howto): ...this howto.
(bfd_elf32_bfd_reloc_type_lookup): Handle BFD_RELOC_MIPS_COPY
and BFD_RELOC_MIPS_JUMP_SLOT.
(bfd_elf32_bfd_reloc_name_lookup): Handle "R_MIPS_COPY" and
"R_MIPS_JUMP_SLOT".
(mips_elf32_rtype_to_howto): Handle R_MIPS_COPY and R_MIPS_JUMP_SLOT.
(elf_backend_plt_readonly): Define.
(elf_backend_plt_sym_val): Define for non-VxWorks targets.
(mips_vxworks_bfd_reloc_type_lookup): Delete.
(mips_vxworks_bfd_reloc_name_lookup): Likewise.
(mips_vxworks_rtype_to_howto): Likewise.
(elf_backend_want_dynbss): Don't define for VxWorks.
(elf_backend_plt_readonly): Likewise.
(bfd_elf32_bfd_reloc_type_lookup): Likewise.
(bfd_elf32_bfd_reloc_name_lookup): Likewise.
(elf_backend_mips_rtype_to_howto): Likewise.
(elf_backend_adjust_dynamic_symbol): Likewise.
(elf_backend_got_symbol_offset): Don't define.
* elfn32-mips.c (elf_mips_copy_howto, elf_mips_jump_slot_howto): New.
(bfd_elf32_bfd_reloc_type_lookup): Handle BFD_RELOC_MIPS_COPY
and BFD_RELOC_MIPS_JUMP_SLOT.
(bfd_elf32_bfd_reloc_name_lookup): Handle "R_MIPS_COPY" and
"R_MIPS_JUMP_SLOT".
(mips_elf32_n32_rtype_to_howto): Handle R_MIPS_COPY and
R_MIPS_JUMP_SLOT.
(elf_backend_rela_plts_and_copies_p, elf_backend_plt_readonly)
(elf_backend_plt_sym_val): Define.
* elf64-mips.c (elf_mips_copy_howto, elf_mips_jump_slot_howto): New.
(bfd_elf64_bfd_reloc_type_lookup): Handle BFD_RELOC_MIPS_COPY
and BFD_RELOC_MIPS_JUMP_SLOT.
(bfd_elf64_bfd_reloc_name_lookup): Handle "R_MIPS_COPY" and
"R_MIPS_JUMP_SLOT".
(mips_elf64_rtype_to_howto): Handle R_MIPS_COPY and R_MIPS_JUMP_SLOT.
(elf_backend_rela_plts_and_copies_p, elf_backend_plt_readonly)
(elf_backend_plt_sym_val): Define.
* elfxx-mips.h (_bfd_mips_vxworks_adjust_dynamic_symbol): Delete.
(_bfd_mips_elf_use_plts_and_copy_relocs, _bfd_mips_elf_init_stubs)
(_bfd_mips_elf_plt_sym_val, _bfd_mips_post_process_headers): Declare.
* elfxx-mips.c (mips_elf_la25_stub): New structure.
(LA25_LUI, LA25_J, LA25_ADDIU): New macros.
(mips_elf_link_hash_entry): Add "la25_stubs", "has_static_relocs"
and "has_nonpic_branches" fields.  Remove "is_relocation_target" and
"is_branch_target".
(mips_elf_link_hash_table): Add blank lines.  Add
"use_plts_and_copy_relocs", "reserved_gotno", "strampoline",
"la25_stubs" and "add_stub_section" fields.
(mips_htab_traverse_info): New structure.
(PIC_OBJECT_P, MIPS_ELF_LOAD_WORD): New macros.
(MIPS_RESERVED_GOTNO): Delete.
(mips_o32_exec_plt0_entry, mips_n32_exec_plt0_entry)
(mips_n64_exec_plt0_entry, mips_exec_plt_entry): New tables.
(mips_elf_link_hash_newfunc): Update after the changes to
mips_elf_link_hash_entry.
(mips_elf_check_mips16_stubs): Replace the DATA parameter with
an INFO parameter.  Don't look through warnings symbols here;
do it in mips_elf_check_symbols instead.
(mips_elf_create_stub_symbol): New function.
(mips_elf_la25_stub_hash, mips_elf_la25_stub_eq): New functions.
(_bfd_mips_elf_init_stubs, mips_elf_local_pic_function_p): Likewise.
(mips_elf_add_la25_intro, mips_elf_add_la25_trampoline): Likewise.
(mips_elf_add_la25_stub, mips_elf_check_symbols): New functions.
(mips_elf_gotplt_index): Check for VxWorks.
(mips_elf_output_dynamic_relocation): Take the relocation index
as an extra parameter.  Do not increment reloc_count here.
(mips_elf_initialize_tls_slots): Update the calls to
mips_elf_output_dynamic_relocation accordingly.
(mips_elf_multi_got): Use htab->reserved_gotno instead of
MIPS_RESERVED_GOTNO.
(mips_elf_create_got_section): Don't allocate reserved GOT
entries here.  Unconditionally create .got.plt, but don't
set its alignment here.
(mips_elf_relocation_needs_la25_stub): New function.
(mips_elf_calculate_relocation): Redirect branches and jumps to
a non-PIC stub if one exists.  Check !h->has_static_relocs instead
of !htab->is_vxworks when deciding whether to create dynamic
relocations for R_MIPS_32, R_MIPS_REL32 and R_MIPS_64.
(_bfd_mips_elf_create_dynamic_sections): Unconditionally call
_bfd_elf_create_dynamic_sections.  Unconditionally set up
htab->splt and htab->sdynbss.  Set htab->srelplt to ".rel.plt"
if !htab->is_vxworks.  Add non-VxWorks values of
htab->plt_header_size and htab->plt_entry_size.
(_bfd_mips_elf_check_relocs): Set pointer_equality_needed for
non-branch static relocations.  Set has_nonpic_branches when an la25
stub might be required.  Set can_make_dynamic_p to TRUE if R_MIPS_32,
R_MIPS_REL32 and R_MIPS_64 relocations can be made dynamic,
rather than duplicating the condition.  Do not make them dynamic
for read-only sections in non-PIC executable objects.
Do not protect this code with dynobj == NULL || htab->sgot == NULL;
handle each group of cases separately.  Add a default case that
sets has_static_relocs for non-GOT relocations that cannot be
made dynamic.  Don't set is_relocation_target and is_branch_target.
Reject non-PIC static relocations in shared objects.
(_bfd_mips_vxworks_adjust_dynamic_symbol): Fold into...
(_bfd_mips_elf_adjust_dynamic_symbol): ...here, using
htab->use_plts_and_copy_relocs instead of htab->is_vxworks
to select PLT and copy-reloc handling.  Set the alignment of
.plt and .got.plt when allocating the first entry.  Generalize
code to handle REL as well as RELA sections and 64-bit as well as
32-bit GOT entries.  Complain if we find a static-only reloc
against an externally-defined symbol and if we cannot create
dynamic relocations for it.  Allocate copy relocs using
mips_elf_allocate_dynamic_relocations on non-VxWorks targets.
Set possibly_dynamic_relocs to 0 when using PLTs or copy relocs.
Skip reserved .got.plt entries.
(_bfd_mips_elf_always_size_sections): Use mips_elf_check_symbols
instead of mips_elf_check_mips16_stubs to process each symbol.
Do the traversal for relocatable objects too.
(mips_elf_lay_out_got): Use htab->reserved_gotno instead of
MIPS_RESERVED_GOTNO.
(_bfd_mips_elf_size_dynamic_sections): Exclude sdynbss if it
is empty.  Extend the DT_PLTREL, DT_JMPREL and DT_PLTRELSZ handling
to non-VxWorks targets.  Only add DT_REL{,A}, DT_REL{,A}SZ and
DT_REL{,A}ENT if .rel.dyn is nonempty.  Create a symbol for the
PLT.  Allocate a nop at the end of the PLT.  Allocate DT_MIPS_PLTGOT.
(mips_elf_create_la25_stub_info): New function.
(_bfd_mips_elf_finish_dynamic_symbol): Write out PLT entries
and copy relocs where necessary.  Check pointer_equality_needed.
(mips_finish_exec_plt): New function.
(_bfd_mips_elf_finish_dynamic_sections): Always set DT_PLTGOT
to the beginning of htab->sgot.  Use htab->reserved_gotno instead
of MIPS_RESERVED_GOTNO.  Assert htab->use_plts_and_copy_relocs
instead of htab->is_vxworks for DT_PLTREL, DT_PLTRELSZ and DT_JMPREL.
Set DT_PLTREL to DT_REL instead of DT_RELA on non-VxWorks targets.
Use mips_finish_exec_plt to create non-VxWorks PLT headers.  Set
DT_MIPS_PLTGOT.
(_bfd_mips_elf_copy_indirect_symbol): Copy has_static_relocs
from the indirect symbol to the direct symbol.  Also copy
has_nonpic_branches for indirect symbols.
(_bfd_mips_elf_get_target_dtag): Handle DT_MIPS_PLTGOT and
DT_MIPS_RWPLT.
(_bfd_mips_elf_link_hash_table_create): Initialize the new
mips_elf_link_hash_table fields.
(_bfd_mips_vxworks_link_hash_table_create): Set
use_plts_and_copy_relocs to TRUE.  Use TRUE rather than 1
when setting is_vxworks.
(_bfd_mips_elf_use_plts_and_copy_relocs): New function.
(_bfd_mips_elf_final_link): Call mips_elf_create_la25_stub for
each la25_stub.
(_bfd_mips_elf_merge_private_bfd_data): Treat dynamic objects
as PIC.  Generalize message about linking PIC and non-PIC.
(_bfd_mips_elf_plt_sym_val, _bfd_mips_post_process_headers): New
functions.
* reloc.c: Update comment near BFD_RELOC_MIPS_JUMP_SLOT.
* bfd-in2.h: Regenerated.

2008-08-08  Richard Sandiford  <rdsandiford@googlemail.com>
    Daniel Jacobowitz  <dan@codesourcery.com>
    Catherine Moore  <clm@codesourcery.com>
    Mark Shinwell  <shinwell@codesourcery.com>

* readelf.c (get_mips_symbol_other): Handle STO_MIPS_PLT and
STO_MIPS_PIC.
(slurp_rela_relocs, slurp_rel_relocs): Handle MIPS ELF64 here.
(dump_relocations, debug_apply_relocations): Don't handle it here.
(get_mips_dynamic_type): Handle DT_MIPS_PLTGOT and DT_MIPS_RWPLT.
(print_mips_pltgot_entry): New function.
(process_mips_specific): Dump the PLT GOT.

2008-08-08  Richard Sandiford  <rdsandiford@googlemail.com>
    Daniel Jacobowitz  <dan@codesourcery.com>

* config/tc-mips.c (OPTION_CALL_NONPIC): New macro.
(OPTION_NON_SHARED, OPTION_XGOT, OPTION_MABI, OPTION_32)
(OPTION_N32, OPTION_64, OPTION_MDEBUG, OPTION_NO_MDEBUG)
(OPTION_PDR, OPTION_NO_PDR, OPTION_MVXWORKS_PIC): Bump by 1.
(md_longopts): Add -call_nonpic.
(md_parse_option): Handle OPTION_CALL_NONPIC.
(md_show_usage): Add -call_nonpic.

2008-08-08  Richard Sandiford  <rdsandiford@googlemail.com>

* gas/mips/call-nonpic-1.s, gas/mips/call-nonpic-1.d: New test.
* gas/mips/mips.exp: Run it.

2008-08-08  Richard Sandiford  <rdsandiford@googlemail.com>
    Daniel Jacobowitz  <dan@codesourcery.com>
    Catherine Moore  <clm@codesourcery.com>
    Mark Shinwell  <shinwell@codesourcery.com>

* mips.h (STO_MIPS_PLT, ELF_ST_IS_MIPS_PLT, ELF_ST_SET_MIPS_PLT)
(STO_MIPS_PIC, DT_MIPS_PLTGOT, DT_MIPS_RWPLT): New macros.

2008-08-08  Richard Sandiford  <rdsandiford@googlemail.com>
    Daniel Jacobowitz  <dan@codesourcery.com>

* emulparams/elf32bmip.sh (GOT): Define, moving .got.plt to...
(OTHER_RELRO_SECTIONS, OTHER_READWRITE_SECTIONS): ...one of these
two variables.
* emulparams/elf32bmipn32-defs.sh: Likewise.
* emultempl/mipself.em: Include ldctor.h, elf/mips.h and elfxx-mips.h.
(is_mips_elf): New macro.
(stub_file, stub_bfd): New variables.
(hook_stub_info): New structure.
(hook_in_stub): New function.
(mips_add_stub_section): Likewise.
(mips_create_output_section_statements): Likewise.
(mips_before_allocation): Likewise.
(real_func): New variable.
(mips_for_each_input_file_wrapper): New function.
(mips_lang_for_each_input_file): Likewise.
(lang_for_each_input_file): Define.
(LDEMUL_BEFORE_ALLOCATION): Likewise.
(LDEMUL_CREATE_OUTPUT_SECTION_STATEMENTS): Likewise.

2008-08-08  Richard Sandiford  <rdsandiford@googlemail.com>
    Daniel Jacobowitz  <dan@codesourcery.com>

* ld-mips-elf/mips16-pic-3a.s,
ld-mips-elf/mips16-pic-3b.s,
ld-mips-elf/mips16-pic-3.dd,
ld-mips-elf/mips16-pic-3.gd,
ld-mips-elf/mips16-pic-3.rd,
ld-mips-elf/mips16-pic-3.inc,
ld-mips-elf/pic-and-nonpic-1a.s,
ld-mips-elf/pic-and-nonpic-1b.s,
ld-mips-elf/pic-and-nonpic-1.ld,
ld-mips-elf/pic-and-nonpic-1.dd,
ld-mips-elf/pic-and-nonpic-1.nd,
ld-mips-elf/pic-and-nonpic-1-rel.dd,
ld-mips-elf/pic-and-nonpic-1-rel.nd,
ld-mips-elf/pic-and-nonpic-2a.s,
ld-mips-elf/pic-and-nonpic-2b.s,
ld-mips-elf/pic-and-nonpic-2.d,
ld-mips-elf/pic-and-nonpic-3a.s,
ld-mips-elf/pic-and-nonpic-3a.ld,
ld-mips-elf/pic-and-nonpic-3a.dd,
ld-mips-elf/pic-and-nonpic-3a.gd,
ld-mips-elf/pic-and-nonpic-3a.sd,
ld-mips-elf/pic-and-nonpic-3b.s,
ld-mips-elf/pic-and-nonpic-3b.ld,
ld-mips-elf/pic-and-nonpic-3b.ad,
ld-mips-elf/pic-and-nonpic-3b.dd,
ld-mips-elf/pic-and-nonpic-3b.gd,
ld-mips-elf/pic-and-nonpic-3b.nd,
ld-mips-elf/pic-and-nonpic-3b.pd,
ld-mips-elf/pic-and-nonpic-3b.rd,
ld-mips-elf/pic-and-nonpic-3b.sd,
ld-mips-elf/pic-and-nonpic-3-error.d,
ld-mips-elf/pic-and-nonpic-4a.s,
ld-mips-elf/pic-and-nonpic-4b.s,
ld-mips-elf/pic-and-nonpic-4b.ld,
ld-mips-elf/pic-and-nonpic-4b.ad,
ld-mips-elf/pic-and-nonpic-4b.dd,
ld-mips-elf/pic-and-nonpic-4b.gd,
ld-mips-elf/pic-and-nonpic-4b.nd,
ld-mips-elf/pic-and-nonpic-4b.rd,
ld-mips-elf/pic-and-nonpic-4b.sd,
ld-mips-elf/pic-and-nonpic-4-error.d,
ld-mips-elf/pic-and-nonpic-5a.s,
ld-mips-elf/pic-and-nonpic-5b.s,
ld-mips-elf/pic-and-nonpic-5b.ld,
ld-mips-elf/pic-and-nonpic-5b.ad,
ld-mips-elf/pic-and-nonpic-5b.dd,
ld-mips-elf/pic-and-nonpic-5b.gd,
ld-mips-elf/pic-and-nonpic-5b.nd,
ld-mips-elf/pic-and-nonpic-5b.rd,
ld-mips-elf/pic-and-nonpic-5b.sd,
ld-mips-elf/pic-and-nonpic-5b.pd,
ld-mips-elf/pic-and-nonpic-6.ld,
ld-mips-elf/pic-and-nonpic-6-o32a.s,
ld-mips-elf/pic-and-nonpic-6-o32b.s,
ld-mips-elf/pic-and-nonpic-6-o32c.s,
ld-mips-elf/pic-and-nonpic-6-o32.ad,
ld-mips-elf/pic-and-nonpic-6-o32.dd,
ld-mips-elf/pic-and-nonpic-6-o32.gd,
ld-mips-elf/pic-and-nonpic-6-o32.nd,
ld-mips-elf/pic-and-nonpic-6-o32.pd,
ld-mips-elf/pic-and-nonpic-6-o32.rd,
ld-mips-elf/pic-and-nonpic-6-o32.sd,
ld-mips-elf/pic-and-nonpic-6-n32a.s,
ld-mips-elf/pic-and-nonpic-6-n32b.s,
ld-mips-elf/pic-and-nonpic-6-n32c.s,
ld-mips-elf/pic-and-nonpic-6-n32.ad,
ld-mips-elf/pic-and-nonpic-6-n32.dd,
ld-mips-elf/pic-and-nonpic-6-n32.gd,
ld-mips-elf/pic-and-nonpic-6-n32.nd,
ld-mips-elf/pic-and-nonpic-6-n32.pd,
ld-mips-elf/pic-and-nonpic-6-n32.rd,
ld-mips-elf/pic-and-nonpic-6-n32.sd,
ld-mips-elf/pic-and-nonpic-6-n64a.s,
ld-mips-elf/pic-and-nonpic-6-n64b.s,
ld-mips-elf/pic-and-nonpic-6-n64c.s,
ld-mips-elf/pic-and-nonpic-6-n64.ad,
ld-mips-elf/pic-and-nonpic-6-n64.dd,
ld-mips-elf/pic-and-nonpic-6-n64.gd,
ld-mips-elf/pic-and-nonpic-6-n64.nd,
ld-mips-elf/pic-and-nonpic-6-n64.pd,
ld-mips-elf/pic-and-nonpic-6-n64.rd,
ld-mips-elf/pic-and-nonpic-6-n64.sd: New tests.
* ld-mips-elf/mips-elf.exp: Run them.

16 years ago * fhandler.cc (fhandler_base::open): Use Samba workaround generally
Corinna Vinschen [Thu, 7 Aug 2008 16:20:03 +0000 (16:20 +0000)]
* fhandler.cc (fhandler_base::open): Use Samba workaround generally
for all remote filesystems supporting ACLs.  Change comment and
explain why.  Refer to the discussion which led to this.

16 years ago * config/i386/profile.h (mcount): Mark asms volatile.
Brian Dessent [Tue, 5 Aug 2008 19:20:58 +0000 (19:20 +0000)]
* config/i386/profile.h (mcount): Mark asms volatile.

16 years ago* dll_init.cc (dll_global_dtors): Add an additional test to avoid walking the
Christopher Faylor [Tue, 5 Aug 2008 14:26:47 +0000 (14:26 +0000)]
* dll_init.cc (dll_global_dtors): Add an additional test to avoid walking the
linked list if it is empty.
(dll_list::detach): Don't set dll_global_dtors_recorded if we aren't actually
going to record any dlls.

16 years agoChanges suggested by Dave Korn.
Christopher Faylor [Mon, 4 Aug 2008 15:55:32 +0000 (15:55 +0000)]
Changes suggested by Dave Korn.
* dcrt0.cc (cygwin_exit): Remove (hopefully) extraneous call to
dll_global_dtors.
* dll_init.cc (dll_global_dtors): Run destructors in reverse dependency/load
order.
* dll_init.h (dll_list): Add dll_global_dtors as a friend.

16 years ago* cygcheck.cc (load_cygwin): Duplicate argv list since it disappears when
Christopher Faylor [Mon, 4 Aug 2008 15:30:06 +0000 (15:30 +0000)]
* cygcheck.cc (load_cygwin): Duplicate argv list since it disappears when
cygwin1.dll is unloaded.

16 years ago * common.h (ELFOSABI_AROS): Update comment.
Alan Modra [Sun, 3 Aug 2008 23:20:42 +0000 (23:20 +0000)]
* common.h (ELFOSABI_AROS): Update comment.

16 years ago * mt-spu (all-ld): Update for ld Makefile changes.
Alan Modra [Sun, 3 Aug 2008 03:38:07 +0000 (03:38 +0000)]
* mt-spu (all-ld): Update for ld Makefile changes.

16 years ago * tcl.m4 (SC_PATH_TCLCONFIG): Add some simple logic to deal
Keith Seitz [Sat, 2 Aug 2008 21:20:13 +0000 (21:20 +0000)]
    * tcl.m4 (SC_PATH_TCLCONFIG): Add some simple logic to deal
        with cygwin.
        (SC_PATH_TKCONFIG): Likewise.

16 years agogas/
Peter Bergner [Sat, 2 Aug 2008 04:38:51 +0000 (04:38 +0000)]
gas/
* config/tc-ppc.c (parse_cpu): Rename altivec_or_spe to retain_flags.
Handle -mvsx and -mpower7.
(md_show_usage): Document -mpower7 and -mvsx.
* doc/as.texinfo (Target PowerPC): Document -mvsx.
* doc/c-ppc.texi (PowerPC-Opts): Document -mvsx and -mpower7.

gas/testsuite/
* gas/ppc/power7.d: New.
* gas/ppc/power7.s: Likewise.
* gas/ppc/ppc.exp: Run power7 test.

include/opcode/
* ppc.h (PPC_OPCODE_VSX, PPC_OPERAND_VSR): New.

opcodes/
* ppc-dis.c (powerpc_init_dialect): Handle power7 and vsx options.
(print_insn_powerpc): Prepend 'vs' when printing VSX registers.
(print_ppc_disassembler_options): Document -Mpower7 and -Mvsx.
* ppc-opc.c (insert_xt6): New static function.
(extract_xt6): Likewise.
(insert_xa6): Likewise.
(extract_xa6: Likewise.
(insert_xb6): Likewise.
(extract_xb6): Likewise.
(insert_xb6s): Likewise.
(extract_xb6s): Likewise.
(XS6, XT6, XA6, XB6, XB6S, DM, XX3, XX3DM, XX1_MASK, XX3_MASK,
XX3DM_MASK, PPCVSX): New.
(powerpc_opcodes): Add opcodes "lxvd2x", "lxvd2ux", "stxvd2x",
"stxvd2ux", "xxmrghd", "xxmrgld", "xxpermdi", "xvmovdp", "xvcpsgndp".

16 years ago* dcrt0.cc (dll_crt0_1): Add a symbol denoting return from call to main().
Christopher Faylor [Fri, 1 Aug 2008 19:12:49 +0000 (19:12 +0000)]
* dcrt0.cc (dll_crt0_1): Add a symbol denoting return from call to main().
* exceptions.cc (stack_info::walk): Stop walking the stack when we hit
_cygwin_exit_return rather than just blindly stopping when PC becomes zero.

16 years ago * path.cc (symlink_info::check): Handle (and explain) a special case
Corinna Vinschen [Thu, 31 Jul 2008 14:48:28 +0000 (14:48 +0000)]
* path.cc (symlink_info::check): Handle (and explain) a special case
when accessing files matching DOS device names on SMB shares.

16 years ago * spawn.cc (spawn_guts): Check constructed short pathname for being
Corinna Vinschen [Thu, 31 Jul 2008 14:41:19 +0000 (14:41 +0000)]
* spawn.cc (spawn_guts): Check constructed short pathname for being
a DOS device name and fall back to long path name, if so.

16 years ago2008-07-30 Paolo Bonzini <bonzini@gnu.org>
Paolo Bonzini [Wed, 30 Jul 2008 15:03:57 +0000 (15:03 +0000)]
2008-07-30 Paolo Bonzini  <bonzini@gnu.org>

Sync with gcc:
2008-07-30 Paolo Bonzini  <bonzini@gnu.org>

        * configure.ac: Add makefile fragments for hpux.
        * Makefile.def (flags_to_pass): Add ADA_CFLAGS.
        * Makefile.tpl (HOST_EXPORTS): Pass ADA_CFLAGS.
        * configure: Regenerate.
        * Makefile.in: Regenerate.

2008-06-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>

        * Makefile.tpl ($(srcdir)/configure): Update dependencies.
        * Makefile.in: Regenerate.
        * configure: Regenerate.

config:
2008-07-30  Paolo Bonzini  <bonzini@gnu.org>

* mh-pa: New, from gcc/config/pa/x-ada.
* mh-pa-hpux10: New, from gcc/config/pa/x-ada-hpux10.

2008-06-11  Bernhard Fischer  <aldot@gcc.gnu.org>

        * tls.m4: Fix typos.

16 years ago * fhandler_disk_file.cc (fhandler_base::fstat_by_name): Check for
Corinna Vinschen [Wed, 30 Jul 2008 14:41:59 +0000 (14:41 +0000)]
* fhandler_disk_file.cc (fhandler_base::fstat_by_name): Check for
file systems incapable of handling FileIdBothDirectoryInformation
correctly.
(fhandler_disk_file::opendir): Ditto.
* path.cc (fs_info::update): Always clear at the start.
Rearrange to make certain tests only on non-Samba, non-NFS remote
drives.
Add test for file systems known to be incapable of handling
FileIdBothDirectoryInformation correctly.  Right now that's just
"UNIXFS".
* path.h (struct fs_info): Add has_buggy_fileid_dirinfo flag and
accessor methods.
(class path_conv): Add has_buggy_fileid_dirinfo method.

16 years ago * sec_auth.cc (extract_nt_dom_user): Return domain and user name as
Corinna Vinschen [Wed, 30 Jul 2008 12:10:20 +0000 (12:10 +0000)]
* sec_auth.cc (extract_nt_dom_user): Return domain and user name as
WCHAR.
(cygwin_logon_user): Accommodate above change.  Convert password to
WCHAR and call LogonUserW.
* external.cc (cygwin_internal): Accommodate above change.
* security.h (extract_nt_dom_user): Change prototype accordingly.

16 years agoinclude/opcode/
Alan Modra [Wed, 30 Jul 2008 06:29:21 +0000 (06:29 +0000)]
include/opcode/
* ppc.h (PPC_OPCODE_405): Define.
(PPC_OPERAND_FSL, PPC_OPERAND_FCR, PPC_OPERAND_UDI): Define.
gas/
* config/tc-ppc.c (parse_cpu): Separate handling of -m403/405.
(md_show_usage): Likewise.
opcodes/
* ppc-dis.c (print_insn_powerpc): Disassemble FSL/FCR/UDI fields.
* ppc-opc.c (powerpc_operands): Add Xilinx APU related operands.
(insert_sprg, PPC405): Use PPC_OPCODE_405.
(powerpc_opcodes): Add Xilinx APU related opcodes.

16 years ago* Makefile.in: Link cygcheck with -lntdll even without mingw-zlib.
Christopher Faylor [Wed, 30 Jul 2008 06:07:42 +0000 (06:07 +0000)]
* Makefile.in: Link cygcheck with -lntdll even without mingw-zlib.

16 years ago* cygwin.din (_getutline): Remove.
Christopher Faylor [Wed, 30 Jul 2008 04:58:24 +0000 (04:58 +0000)]
* cygwin.din (_getutline): Remove.
* lib/bsdlib.cc (login): Make argument const as per linux.
(logout): Ditto.
* syscalls.cc (getutid): Ditto.
(getutline): Ditto.
(pututline): Ditto.
(getutxent): Add comment mentioning non-thread-safety.
(getutxid): Ditto.
(getutxline): Ditto.
(pututxline): Ditto.
* sys/utmp.h: Declare arguments to various functions as const as per linux.
Remove bogus _getutline definition.

16 years ago(missing changelog entry)
Christopher Faylor [Wed, 30 Jul 2008 01:37:55 +0000 (01:37 +0000)]
(missing changelog entry)
* include/cygwin/version.h: Add comment indicating that current API number bump
also has another consequence.

16 years ago* include/cygwin/version.h: Add comment indicating that current API number bump
Christopher Faylor [Tue, 29 Jul 2008 14:07:21 +0000 (14:07 +0000)]
* include/cygwin/version.h: Add comment indicating that current API number bump
also has another consequence.

16 years ago * Makefile.in (DLL_OFILES): Remove v8 regexp files.
Corinna Vinschen [Tue, 29 Jul 2008 10:40:37 +0000 (10:40 +0000)]
* Makefile.in (DLL_OFILES): Remove v8 regexp files.
(OBSOLETE_FUNCTIONS): Remove v8 regexp functions.
(NEW_FUNCTIONS): Remove POSIX regex functions.
* cygwin.din: Export POSIX regex functions with their correct symbol
name.  Export with posix_ prefix for backward compatibility.
* syscalls.cc (regfree): Remove ancient fake function.
* regex/regex.h: Remove renaming regex functions within Cygwin.
* regexp/*: Remove.
* include /cygwin/version,.h: Bump API minor number.

16 years agoReplace __mingw_snprintf() with new generic family implementation; likewise, replace...
Keith Marshall [Mon, 28 Jul 2008 23:24:20 +0000 (23:24 +0000)]
Replace __mingw_snprintf() with new generic family implementation; likewise, replace __mingw_vsnprintf().

16 years ago Lay foundations for new printf() function family implementation.
Keith Marshall [Mon, 28 Jul 2008 22:57:43 +0000 (22:57 +0000)]
Lay foundations for new printf() function family implementation.

16 years ago* dcrt0.cc (dll_crt0_0): Remove calling malloc_init and
Christopher Faylor [Sun, 27 Jul 2008 22:31:48 +0000 (22:31 +0000)]
* dcrt0.cc (dll_crt0_0): Remove calling malloc_init and
user_shared_initialize_1 from here.
(dll_crt0_1): Remove dynamically_loaded check.  Just call malloc_init and
user_shared_initialize unconditionally.
* shared.cc (user_shared_create): Rename from user_shared_initialize.
(user_shared_initialize): Rename from user_shared_initialize_1.  Move complete
user_shared content initialization code here from user_shared_create.
* syscalls.cc (seteuid32): Remove call to user_shared_initialize_1.  That is
implied by the "true" argument to user_shared_create().

16 years ago* mount.cc (mount_info::init): Add location where we're looking for fstab to
Christopher Faylor [Sun, 27 Jul 2008 16:59:07 +0000 (16:59 +0000)]
* mount.cc (mount_info::init): Add location where we're looking for fstab to
temporary message.
* lib/cygwin_crt0.c (cygwin_crt0): Simplify by eliminating accommodations for
ancient cygwin DLLs.
* lib/crt0.h: Include <windows.h> directly since it is needed.

16 years ago* cygcheck.cc (load_cygwin): Free the cygwin dll after we're done with it.
Christopher Faylor [Sun, 27 Jul 2008 14:53:42 +0000 (14:53 +0000)]
* cygcheck.cc (load_cygwin): Free the cygwin dll after we're done with it.

16 years ago* shared_info.h (shared_destroy): Declare.
Christopher Faylor [Sun, 27 Jul 2008 14:52:46 +0000 (14:52 +0000)]
* shared_info.h (shared_destroy): Declare.
* shared.cc (shared_destroy): Define new function to destroy shared memory
regions.
* init.cc (dll_entry): Call shared_destroy when dll detaches from the process.

16 years ago * fhandler_socket.cc (fhandler_socket::send_internal): Send never more
Corinna Vinschen [Sun, 27 Jul 2008 10:20:49 +0000 (10:20 +0000)]
* fhandler_socket.cc (fhandler_socket::send_internal): Send never more
then 64K bytes at once.  For blocking sockets, loop until entire data
has been sent or an error occurs.
(fhandler_socket::sendto): Drop code which sends on 64K bytes.
(fhandler_socket::sendmsg): Ditto.

16 years ago* fhandler_tty.cc (fhandler_pty_master::setup): Reorganize so that all
Christopher Faylor [Sat, 26 Jul 2008 19:35:21 +0000 (19:35 +0000)]
* fhandler_tty.cc (fhandler_pty_master::setup): Reorganize so that all
operations for each end of the pipe are grouped together.

16 years agoSupport PowerPC single-precision float.
Alan Modra [Sat, 26 Jul 2008 13:10:47 +0000 (13:10 +0000)]
Support PowerPC single-precision float.

16 years ago * dcrt0.cc (dll_crt0_1): Call malloc_init and user_shared_initialize_1
Corinna Vinschen [Sat, 26 Jul 2008 08:32:28 +0000 (08:32 +0000)]
* dcrt0.cc (dll_crt0_1): Call malloc_init and user_shared_initialize_1
only in non-dynamically loaded case.

16 years ago2008-07-25 Bo Yang <techrazy@users.sourceforge.net>
Chris Sutcliffe [Fri, 25 Jul 2008 22:13:22 +0000 (22:13 +0000)]
2008-07-25 Bo Yang <techrazy@users.sourceforge.net>

        * lib/gdi32.def (SetLayout): Export.

16 years ago2008-07-25 Bo Yang <techrazy@users.sourceforge.net>
Chris Sutcliffe [Fri, 25 Jul 2008 22:09:36 +0000 (22:09 +0000)]
2008-07-25 Bo Yang <techrazy@users.sourceforge.net>

        * include/wincrypt.h  (struct _CRYPT_KEY_PROV_PARAM,
        struct _CRYPT_KEY_PROV_INFO, CertGetCertificateContextProperty,
        CryptEnumKeyIdentifierProperties, CryptAcquireCertificatePrivateKey,
        CertCreateCertificateContext, CryptGetKeyIdentifierProperty,
        CertSetCertificateContextProperty, CertCompareCertificateName,
        CryptSetKeyIdentifierProperty, CertOIDToAlgId, CryptGetDefaultProviderA,
        CryptGetDefaultProviderW and many corresponding macroes): Define.
        * lib/crypt32.def  (Export the above 11 functions): Export.
        * include/winerror.h  (CRYPT_E_NOT_FOUND and other crypt related
        macroes): Define.

16 years ago * acinclude.m4: Remove libide, libgui, and all the other Tcl
Keith Seitz [Fri, 25 Jul 2008 18:00:17 +0000 (18:00 +0000)]
    * acinclude.m4: Remove libide, libgui, and all the other Tcl
        functions.
        * tcl.m4: New file.

16 years ago * dcrt0.cc (dll_crt0_0): Call malloc_init and user_shared_initialize_1
Corinna Vinschen [Fri, 25 Jul 2008 15:23:56 +0000 (15:23 +0000)]
* dcrt0.cc (dll_crt0_0): Call malloc_init and user_shared_initialize_1
here in case we're dynamically loaded.  Explain why.
(dll_crt0_1): Call user_shared_initialize_1 from here.
* mount.cc (is_native_path): New inline function testing for native
and long Win32 path prefix.
(is_unc_share): Remove long WIn32 path prefix test.
(mount_info::create_root_entry): Use PATH_MAX buffer.
(mount_info::init): Ditto.
(mount_info::add_item): Test for is_native_path as well.
* path.cc (normalize_win32_path): Simplify native path prefix code.
* shared.cc (user_shared_initialize_1): New function taking user
shared initialization code relying on malloc and cygtls.
(user_shared_initialize): Move mountinfo initialization to
user_shared_initialize_1.
* shared_info.h (user_shared_initialize_1): Declare.
* syscalls.cc (seteuid32): Call user_shared_initialize_1 after user
changed.

16 years ago* mount.cc: Remove non-unix-like options (-x,-t,b) throughout.
Christopher Faylor [Fri, 25 Jul 2008 15:03:25 +0000 (15:03 +0000)]
* mount.cc: Remove non-unix-like options (-x,-t,b) throughout.
(oopts): Use boolean constants for slightly increased clarity.
* configure.in: Remove apparently unneeded program_transfer_name code.
* configure: Regenerate.

16 years ago * utils.sgml: Remove useless text.
Corinna Vinschen [Fri, 25 Jul 2008 07:08:56 +0000 (07:08 +0000)]
* utils.sgml: Remove useless text.

16 years ago2008-07-24 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
Chris Sutcliffe [Fri, 25 Jul 2008 01:50:35 +0000 (01:50 +0000)]
2008-07-24  Chris Sutcliffe  <ir0nh34d@users.sourceforge.net>

        * include/winuser.h (MENUGETOBJECTINFO, MNGO_NOINTERFACE, MNGO_NOERROR,
        MNGOF_TOPGAP, MNGOF_BOTTOMGAP): Define.

16 years ago2008-07-24 techrazy <techrazy@users.sourceforge.net>
Chris Sutcliffe [Fri, 25 Jul 2008 01:19:11 +0000 (01:19 +0000)]
2008-07-24  techrazy  <techrazy@users.sourceforge.net>

        * include/wingdi.h (OUT_PS_ONLY_PRECIS): Define.

16 years ago * mount.cc (mount_info::from_fstab): Change system_printf to
Corinna Vinschen [Thu, 24 Jul 2008 18:32:41 +0000 (18:32 +0000)]
* mount.cc (mount_info::from_fstab): Change system_printf to
debug_printf on NtOpenFile failure.

16 years ago * shared.cc (user_shared_initialize): Fetch potentially changed Cygwin
Corinna Vinschen [Thu, 24 Jul 2008 18:25:52 +0000 (18:25 +0000)]
* shared.cc (user_shared_initialize): Fetch potentially changed Cygwin
username from /etc/passwd before loading mount table.
(shared_info::init_installation_root): New function fetching Cygwin's
installation root dir and storing as native NT path in global shared
memory.
(shared_info::initialize): Call init_installation_root exactly once at
first startup.
* shared_info.h (SHARED_INFO_CB): Accommodate change to shared_info.
(CURR_SHARED_MAGIC): Ditto.
(class shared_info): Add installation_root member.
(shared_info::init_installation_root): Declare.

* grp.cc (pwdgrp::read_group): Call pwdgrp::load with native WCHAR path.
* passwd.cc (pwdgrp::read_passwd): Ditto.  Avoid recursion.
(etc::init): Take POBJECT_ATTRIBUTES instead of path_conv.
* path.h (etc::init): Change prototype accordingly.
* pwdgrp.h (class pwdgrp): Store path as UNICODE_STRING/PWCHAR instead
of as path_conv.
(pwdgrp::load): Accommodate prototype.
* uinfo.cc (pwdgrp::load): Change argument type from char to wchar_t.
Create native NT path here instead of calling path_conv.

* mount.cc (find_root_from_cygwin_dll): Drop in favor of global
initializaion in shared_info.
(mount_info::init): Fetch native NT root dir from cygwin_shared.
(mount_info::from_fstab): Expect native NT path and use native NT
functions to access file.  Convert username part in user fstab path
according to special char transformation rules.
* path.cc (tfx_chars): Convert slash to backslash.
(transform_chars): Implement for path given as PWCHAR.
(transform_chars): PUNICODE_STRING version calls PWCHAR version.
Remove useless commented code.

16 years ago2008-07-24 Jeff Johnston <jjohnstn@redhat.com>
Jeff Johnston [Thu, 24 Jul 2008 17:55:26 +0000 (17:55 +0000)]
2008-07-24  Jeff Johnston  <jjohnstn@redhat.com>

        * libc/include/ctype.h (_ctype_): Restore for C++ backward
        compatability only.

16 years ago * include/lmaccess.h (struct _USER_INFO_4): Define.
Corinna Vinschen [Thu, 24 Jul 2008 09:01:12 +0000 (09:01 +0000)]
* include/lmaccess.h (struct _USER_INFO_4): Define.
(struct _USER_INFO_23): Define.
(struct _GROUP_INFO_3): Define.

16 years ago * mkgroup.c (main): Fix test for duplicate domain/machine request.
Corinna Vinschen [Wed, 23 Jul 2008 20:12:12 +0000 (20:12 +0000)]
* mkgroup.c (main): Fix test for duplicate domain/machine request.
* mkpasswd.c (main): Ditto.

16 years ago * mkgroup.c: Rework to allow per-domain/per-machine id_offset.
Corinna Vinschen [Wed, 23 Jul 2008 18:09:50 +0000 (18:09 +0000)]
* mkgroup.c: Rework to allow per-domain/per-machine id_offset.
Add -b option to skip builtin groups.
(main): Simplify code.
* mkpasswd.c: Rework to allow per-domain/per-machine id_offset.
(main): Simplify code.
* utils.sgml: Explain changed mkgroup/mkpasswd -d/-D/-l/-L options.
Add mkgroup -b option.

16 years ago * mkgroup.c: Consolidate variable names.
Corinna Vinschen [Wed, 23 Jul 2008 11:41:10 +0000 (11:41 +0000)]
* mkgroup.c: Consolidate variable names.
(enum_unix_groups): New function.
(print_special): Use LookupAccountSidW instead of LookupAccountSidA.
(current_group): Ditto.
(usage): Add -U option.
(longopts): Add --unix option.
(opts): Add -U option.
(main): Handle -U option.  Call enum_unix_groups if set.
* mkpasswd.c: Consolidate variable names.
(current_user): Use LookupAccountSidW instead of LookupAccountSidA.
(enum_unix_users): New function.
(usage): Add -U option.
(longopts): Add --unix option.
(opts): Add -U option.
(main): Handle -U option.  Call enum_unix_groups if set.
* utils.sgml: Add -U option text to mkgroup and mkpasswd description.

16 years ago * spawn.cc (spawn_guts): Fix previous patch for UNC paths.
Corinna Vinschen [Wed, 23 Jul 2008 10:17:04 +0000 (10:17 +0000)]
* spawn.cc (spawn_guts): Fix previous patch for UNC paths.

16 years ago * mkgroup.c (enum_groups): Create full qualified groupname using
Corinna Vinschen [Tue, 22 Jul 2008 20:47:14 +0000 (20:47 +0000)]
* mkgroup.c (enum_groups): Create full qualified groupname using
domain or servername, depending on printing domain or machine accounts.
* mkpasswd.c (enum_users): Ditto for users.

16 years ago * mkgroup.c (main): Remove special root group code. Only print
Corinna Vinschen [Tue, 22 Jul 2008 20:12:02 +0000 (20:12 +0000)]
* mkgroup.c (main): Remove special root group code.  Only print
SYSTEM group in case of printing local machine or local domain groups.

16 years agoRemove erroneous ChangeLog entry.
Corinna Vinschen [Tue, 22 Jul 2008 17:31:35 +0000 (17:31 +0000)]
Remove erroneous ChangeLog entry.

16 years ago * spawn.cc (spawn_guts): Remove long path prefix from win32 path
Corinna Vinschen [Tue, 22 Jul 2008 16:59:59 +0000 (16:59 +0000)]
* spawn.cc (spawn_guts): Remove long path prefix from win32 path
before calling CreateProcess if path length is < MAX_PATH.

16 years ago * Makefile.in (cygcheck.exe): Link against ntdll.
Corinna Vinschen [Tue, 22 Jul 2008 14:40:05 +0000 (14:40 +0000)]
* Makefile.in (cygcheck.exe): Link against ntdll.
* bloda.cc: Use statically linked functions throughout.
* cygpath.cc: Drop 9x considerations.
* mkgroup.c: Revamp.  Redefine -l and -d options to take optional
machine and domain parameters.  Redefine -c to work always, using
token information.  Add -L, -D, -C to create unique groupnames in
domain\group syntax.  Add -S option to define domain\group separator
char.  Ignore -u and -s options.
* mkpasswd.c: Revamp.  Redefine -l and -d options to take optional
machine and domain parameters.  Redefine -c to work always, using
token information.  Add -L, -D, -C to create unique usernames in
domain\user syntax.  Add -S option to define domain\user separator
char.  Ignore -g and -s options.  Prefer to take homedir from $HOME
over $HOMEDRIVE/$HOMEPATH.
* path.cc (oopts): Add "acl", "noacl", "posix=0" and "posix=1" options.
(getmntent): Accomodate throughout.
* ps.cc: Fix copyright dates.
* utils.sgml: Fix text for mkgroup and mkpasswd.

16 years ago * include/ctype.h: Declare __ctype_ptr__ to keep newlib build happy.
Corinna Vinschen [Tue, 22 Jul 2008 10:38:18 +0000 (10:38 +0000)]
* include/ctype.h: Declare __ctype_ptr__ to keep newlib build happy.

16 years ago2008-07-21 Jeff Johnston <jjohnstn@redhat.com>
Jeff Johnston [Mon, 21 Jul 2008 21:28:34 +0000 (21:28 +0000)]
2008-07-21  Jeff Johnston  <jjohnstn@redhat.com>

        * libc/ctype/ctype_.c: Add new pointer __ctype_ptr__ which is one
        less than the old __ctype_ptr.
        * libc/ctype/isalnum.c: Use __ctype_ptr__.
        * libc/ctype/isalpha.c: Ditto.
        * libc/ctype/iscntrl.c: Ditto.
        * libc/ctype/isdigit.c: Ditto.
        * libc/ctype/islower.c: Ditto.
        * libc/ctype/isprint.c: Ditto.
        * libc/ctype/ispunct.c: Ditto.
        * libc/ctype/isspace.c: Ditto.
        * libc/ctype/isupper.c: Ditto.
        * libc/ctype/isxdigit.c: Ditto.
        * libc/include/ctype.h: Change ctype macros to use new __ctype_ptr__
        and add declaration of __ctype_ptr__.  Remove older ctype table pointers
        from here even though they can still work.

16 years ago * Makefile.in (cygcheck.exe): Link against ntdll.
Corinna Vinschen [Mon, 21 Jul 2008 13:44:42 +0000 (13:44 +0000)]
* Makefile.in (cygcheck.exe): Link against ntdll.
* bloda.cc: link against ntdll functions statically.
* cygpath.cc (get_user_folder): Drop 9x code.
(print_version): Fix copyright.
* mkgroup.c: Remove 9x code.
* mkpasswd.c: Ditto.
* path.cc (oopts): Add new mount options.
* ps.cc: Fix copyright.

16 years ago * bfd/elf-bfd.h: Declare elfcore_write_ppc_vsx.
Luis Machado [Mon, 21 Jul 2008 05:33:37 +0000 (05:33 +0000)]
* bfd/elf-bfd.h: Declare elfcore_write_ppc_vsx.
* bfd/elf.c (elfcore_grok_ppc_vsx): New function.
(elfcore_write_ppc_vsx): New function
(elfcore_grok_note): Handle VSX notes.
(elfcore_write_register_note): Handle VSX notes.
* include/elf/common.h: Define NT_PPC_VSX.
* binutils/readelf.c (get_note_type): Handle VSX notes.

16 years ago * autoload.cc (WNetGetProviderNameA): Define.
Corinna Vinschen [Sat, 19 Jul 2008 12:26:09 +0000 (12:26 +0000)]
* autoload.cc (WNetGetProviderNameA): Define.
(WNetGetResourceParentA): Remove.
* fhandler_netdrive.cc (struct net_hdls): New structure to keep
WNet handles.  Stored in dir->__handle throughout.
(thread_netdrive): Rewrite to enumerate all servers in all accessible
domains and workgroups.
(fhandler_netdrive::readdir): Simplify toplevel code.  Lowercase all
server names in toplevel.
(fhandler_netdrive::rewinddir): Close all WNet handles and free
net_hdls structure.

16 years ago2008-07-18 Ken Werner <ken.werner@de.ibm.com>
Jeff Johnston [Fri, 18 Jul 2008 16:36:22 +0000 (16:36 +0000)]
2008-07-18  Ken Werner  <ken.werner@de.ibm.com>

        * libc/machine/spu/strcpy.h: Fix error in previous patch.

16 years ago * fhandler.cc (fhandler_base::open): Rename x to fh. On Samba, always
Corinna Vinschen [Fri, 18 Jul 2008 12:21:22 +0000 (12:21 +0000)]
* fhandler.cc (fhandler_base::open): Rename x to fh.  On Samba, always
create file with NULL security descriptor and set the permissions
afterwards.  Explain why.

16 years ago * cygwinenv.sgml: Move binmode option to list of removed options.
Corinna Vinschen [Fri, 18 Jul 2008 08:17:28 +0000 (08:17 +0000)]
* cygwinenv.sgml: Move binmode option to list of removed options.

16 years ago * environ.cc (known): Remove "binmode" option.
Corinna Vinschen [Fri, 18 Jul 2008 08:16:40 +0000 (08:16 +0000)]
* environ.cc (known): Remove "binmode" option.
* fhandler.cc (binmode): Remove.
(fhandler_base::set_flags): Accommodate binmode removal.
* path.h (path_conv::set_binary): Remove.
* pipe.cc (pipe): Create pipes always as binary pipes.
* winsup.h (binmode): Remove declaration.

16 years ago2008-07-17 Jeff Johnston <jjohnstn@redhat.com>
Jeff Johnston [Thu, 17 Jul 2008 20:56:51 +0000 (20:56 +0000)]
2008-07-17  Jeff Johnston  <jjohnstn@redhat.com>

        * libc/include/assert.h (__ASSERT_FUNC): Define to __FUNCTION__ when
        __STDC_VERSION__ < 199901L and __GNUC__ >= 2.

16 years ago2008-07-17 Ken Werner <ken.werner@de.ibm.com>
Jeff Johnston [Thu, 17 Jul 2008 19:04:26 +0000 (19:04 +0000)]
2008-07-17  Ken Werner  <ken.werner@de.ibm.com>

        * spu/syscalls.c: Check and set the errno value.

16 years ago2008-07-17 Ken Werner <ken.werner@de.ibm.com>
Jeff Johnston [Thu, 17 Jul 2008 19:00:44 +0000 (19:00 +0000)]
2008-07-17  Ken Werner  <ken.werner@de.ibm.com>

        * libc/machine/spu/strcpy.h: Pad null bytes if necessary.

16 years ago * mount.cc (do_mount): Remove MOUNT_ENC code.
Corinna Vinschen [Thu, 17 Jul 2008 15:07:48 +0000 (15:07 +0000)]
* mount.cc (do_mount): Remove MOUNT_ENC code.
(oopts): Remove "managed" option.
(mount_commands): Drop "managed" handling.
* path.cc (oopts): Remove "managed" option.
(getmntent): Remove MOUNT_ENC code.

16 years ago * mount.cc (mount_info::from_fstab_line): Default to binary mount.
Corinna Vinschen [Thu, 17 Jul 2008 14:14:34 +0000 (14:14 +0000)]
* mount.cc (mount_info::from_fstab_line): Default to binary mount.

16 years ago * Revamp documentation for Cygwin 1.7, part 1.
Corinna Vinschen [Thu, 17 Jul 2008 11:49:45 +0000 (11:49 +0000)]
* Revamp documentation for Cygwin 1.7, part 1.

16 years ago * utils.sgml: Add id's to all examples.
Corinna Vinschen [Thu, 17 Jul 2008 10:32:03 +0000 (10:32 +0000)]
* utils.sgml: Add id's to all examples.

16 years ago * path.cc (allow_winsymlinks): Revert default to create system bit
Corinna Vinschen [Wed, 16 Jul 2008 21:08:22 +0000 (21:08 +0000)]
* path.cc (allow_winsymlinks): Revert default to create system bit
symlinks for speed.

16 years ago Add case-sensitivity.
Corinna Vinschen [Wed, 16 Jul 2008 20:20:45 +0000 (20:20 +0000)]
Add case-sensitivity.
Unconditionally handle mount points case-sensitive.
Unconditionally handle virtual paths case-sensitive.
Unconditionally handle registry paths case-insensitive.
Otherwise, accommodate case-sensitivity of given path throughout.
* cygheap.cc (cygheap_root::set): Get additional caseinsensitive
parameter and store it.
* cygheap.h (struct cygheap_root_mount_info): Add member
caseinsensitive.
* dlfcn.cc (get_full_path_of_dll): Drop PC_NOFULL parameter from call
to path_conv::check.
* environ.cc (pcheck_case): Remove.
(check_case_init): Remove.
(known): Drop "check_case" option.
* exceptions.cc (open_stackdumpfile): Add comment.
* fhandler.cc (fhandler_base::get_default_fmode): Call pathmatch
instead of strcasematch.
* fhandler_disk_file.cc: Accommodate case-sensitivity of given path
throughout.
(__DIR_mounts::check_mount): Unconditionally check virtual paths
case-sensitive.
(fhandler_disk_file::link): Drop case clash handling.
(fhandler_disk_file::open): Ditto.
(fhandler_disk_file::readdir_helper): Drop managed mount code.
* mount.cc: Remove managed mount code and datastructures.
(struct opt): Remove "managed" option.  Add "posix=0" and "posix=1"
options.
(fillout_mntent): Remove "managed" output.  Add "posix" output.
* path.cc (struct symlink_info): Remove case_clash member and
case_check method.
(pcheck_case): Remove.
(path_prefix_p): Take additional bool parameter "caseinsensitive".
(pathnmatch): Ditto.
(pathmatch): Ditto.
(mkrelpath): Ditto.
(fs_info::update): Set caseinsensitive flag according to file system
name and FILE_CASE_SENSITIVE_SEARCH flag.  Add comment.
(tfx_chars_managed): Remove.
(transform_chars): Drop "managed" parameter.  Always use tfx_chars.
(get_nt_native_path): Drop "managed" parameter.  Make sure drive letters
are always upper case.
(getfileattr): Change second parameter to denote caseinsensitivity.
(path_conv::check): Initialize caseinsensitive to OBJ_CASE_INSENSITIVE.
Set caseinsensitive according to global obcaseinsensitive flag, file
system case sensitivity and MOUNT_NOPOSIX mount flag.
Drop case_clash and all the related code.
(symlink_worker): Drop case clash handling.
(symlink_info::set): Drop setting case_clash.
(symlink_info::case_check): Remove.
(cwdstuff::set): Add comment.
(etc::init): Take path_conv instead of PUNICODE_STRING as parameter to
allow case sensitivity.
* path.h (enum pathconv_arg): Drop PC_SYM_IGNORE.
(enum case_checking): Remove.
(enum path_types): Drop PATH_ENC, add PATH_NOPOSIX flag.
(struct fs_info): Add caseinsensitive flag and accessor methods.
(class path_conv): Add caseinsensitive member and define
objcaseinsensitive method.  Drop case_clash member and isencoded method.
(pathmatch): Change prototype according to above change.
(pathnmatch): Ditto.
(path_prefix_p): Ditto.
(get_nt_native_path): Ditto.
(class etc): Ditto.
(fnunmunge): Remove prototype.
* shared.cc (shared_info::init_obcaseinsensitive): Initialize
obcaseinsensitive flag from obcaseinsensitive registry value.
(shared_info::initialize): Call init_obcaseinsensitive here by the
first process creating the shared memory.
* shared_info.h (mount_item::fnmunge): Remove.
(shared_info::obcaseinsensitive): Rename from obcaseinsensitivity.
(shared_info::init_obcaseinsensitive): Declare.
* syscalls.cc (try_to_bin): Add comment.
* include/sys/mount.h (MOUNT_ENC): Remove flag.
(MOUNT_NOPOSIX): Add flag.

16 years ago * cyglsa-config: Always create a /bin/cyglsa directory and copy the
Corinna Vinschen [Wed, 16 Jul 2008 19:33:54 +0000 (19:33 +0000)]
* cyglsa-config: Always create a /bin/cyglsa directory and copy the
LSA DLL there.  Register this copy in the registry.

16 years ago * fhandler_tape.cc (mtinfo::initialize): Remove synchronization stuff.
Corinna Vinschen [Tue, 15 Jul 2008 11:42:45 +0000 (11:42 +0000)]
* fhandler_tape.cc (mtinfo::initialize): Remove synchronization stuff.
Just initialize drive data.
* mtinfo.h (MTINFO_MAGIC): Remove.
(MTINFO_VERSION): Remove.
(class mtinfo): Remove magic and version members.
* shared.cc (shared_info::initialize): Move call to
get_session_parent_dir so that the dir creation is only called once.
Move call to mt.initialize so that it's called only by the first
process creating the shared memory.
* shared_info.h (SHARED_INFO_CB): Accommodate change to shared_info.
(CURR_SHARED_MAGIC): Ditto.
(class shared_info): Add obcaseinsensitivity member.

16 years ago * cyglsa.c: Include ntddk.h again, but only if __MINGW32__ is defined.
Corinna Vinschen [Tue, 15 Jul 2008 09:43:48 +0000 (09:43 +0000)]
* cyglsa.c: Include ntddk.h again, but only if __MINGW32__ is defined.
* cyglsa64.dll: Regenerate.
* make-64bit-version-with-visual-c.bat: Fix comment.

16 years ago * fhandler.cc (fhandler_base::fpathconf): On _PC_POSIX_PERMISSIONS
Corinna Vinschen [Mon, 14 Jul 2008 20:46:27 +0000 (20:46 +0000)]
* fhandler.cc (fhandler_base::fpathconf): On _PC_POSIX_PERMISSIONS
and _PC_POSIX_SECURITY, return true for NFS, too.

16 years ago Throughout drop allow_ntsec and allow_smbntsec handling.
Corinna Vinschen [Mon, 14 Jul 2008 20:22:03 +0000 (20:22 +0000)]
Throughout drop allow_ntsec and allow_smbntsec handling.
* environ.cc (set_ntsec): Remove.
(set_smbntsec): Remove.
(known): Remove ntsec and smbntsec options.
* external.cc (check_ntsec): Return true if no filename is given.
* mount.cc (oopts): Add "acl" and "noacl" options.  Set MOUNT_NOACL
flag accordingly.
(fillout_mntent): Handle MOUNT_NOACL flag.
* path.h (enum path_types): Add PATH_NOACL.
* security.cc (allow_ntsec): Remove.
(allow_smbntsec): Remove.
* security.h (allow_ntsec): Drop declaration.
(allow_smbntsec): Drop declaration.
* include/sys/mount.h (MOUNT_NOACL): Define.

16 years ago * miscfuncs.cc (cygwin_strncasecmp): Fix bug which results in
Corinna Vinschen [Mon, 14 Jul 2008 19:58:16 +0000 (19:58 +0000)]
* miscfuncs.cc (cygwin_strncasecmp): Fix bug which results in
prematurely truncated strings.  Simplify target length argument to
sys_mbstowcs.

16 years ago * autoload.cc (GetExtendedTcpTable): Define.
Corinna Vinschen [Mon, 14 Jul 2008 15:56:11 +0000 (15:56 +0000)]
* autoload.cc (GetExtendedTcpTable): Define.
* fhandler_socket.cc (address_in_use): Take const struct sockaddr
pointer as argument.  Implement additional AF_INET6 table check.
(fhandler_socket::bind): Drop AF_INET test before calling
address_in_use.
* net.cc (ipv4_getnameinfo): Return EAI_FAMILY instead of 1 if
called with unsupported af_family.

16 years ago * include/iphlpapi.h (GetExtendedTcpTable): Add prototype.
Corinna Vinschen [Mon, 14 Jul 2008 15:55:48 +0000 (15:55 +0000)]
* include/iphlpapi.h (GetExtendedTcpTable): Add prototype.
* include/iprtrmib.h (TCP_TABLE_CLASS, MIB_TCPROW_OWNER_PID,
MIB_TCPTABLE_OWNER_PID, MIB_TCP6ROW_OWNER_PID,
MIB_TCP6TABLE_OWNER_PID): Define.
* lib/iphlpapi.def (GetExtendedTcpTable): Export.

16 years ago * cyglsa.c: Don't include ntddk.h.
Corinna Vinschen [Sun, 13 Jul 2008 13:14:41 +0000 (13:14 +0000)]
* cyglsa.c: Don't include ntddk.h.
(RtlInitEmptyUnicodeString): Use Visual-C compatible "__inline" instead
of "inline".
(uni_alloc): Change second argument to USHORT.
(printf): Move definition of ap to make Visual-C++ happy.
(LsaApLogonUserEx): Compute size of datastructure returned to
LSA on 64 bit systems correctly to avoid heap corruption.
* cyglsa64.dll: Regenerate.
* make-64bit-version-with-visual-c.bat: Accommodate newer Microsoft
toolchains.  Add more comment.
* mslsa.def: Export LsaApLogonUserEx instead of LsaApLogonUser.

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