Corinna Vinschen
793371f584
* miscfuncs.cc (DEFAULT_STACKSIZE): Set to 1 Megs. Drop comment about
...
RLIMIT_STACK.
* registry.cc (get_registry_hive_path): Expect the user hive path to
be never longer than MAX_PATH. Don't prepend native NT path prefix
here. Add comment.
(load_registry_hive): Prepend native NT path prefix here. Additionally
try to load user's classes hive.
* uinfo.cc (cygheap_user::env_userprofile): Reduce size of
userprofile_env_buf to MAX_PATH. Add comment.
2012-02-10 20:56:22 +00:00
Christopher Faylor
c38a2d8373
* syscalls.cc (setsid): On second thought, in the spirit of keeping things
...
kludgy, set ctty to -2 here as a special flag, and...
(open): ...only eschew setting O_NOCTTY when that case is detected.
2012-02-10 16:43:36 +00:00
Christopher Faylor
93b18fd232
* syscalls.cc (open): Semi-revert (?) to allowing open of a tty to become
...
controlling tty if there is no controlling tty.
2012-02-10 16:33:53 +00:00
Eric Blake
833630b859
* libc/include/_ansi.h (_ELIDABLE_INLINE): Fix C99 mode.
2012-02-09 19:58:33 +00:00
Christopher Faylor
3b20fd9324
* exceptions.cc (setup_handler): Reduce system_printf to sigproc_printf since
...
it is for a transient situation which will undoubtedly be handled.
2012-02-09 16:05:23 +00:00
Corinna Vinschen
cd1a95f55a
* fhandler_dsp.cc (fhandler_dev_dsp::Audio_out::write): Set
...
bytes_to_write to 0 in case it fits into the buffer, otherwise suffer
early EOF in caller.
2012-02-09 15:23:17 +00:00
Corinna Vinschen
9eba4de269
* dll_init.h (struct dll): Re-add modname.
...
* dll_init.cc: Throughout, use modname where it was used before.
(dll_list::operator[]): Use modname. Move comment from dll_list::alloc
here and remove hint about GetModuleBaseNameW.
(dll_list::alloc): Store full path in name, pointer to basename in
modname. Search dll using modname.
2012-02-09 14:41:21 +00:00
Corinna Vinschen
e59d6a1469
* libc/sys/rtems/sys/utime.h: Include <sys/types.h> to provide a
...
definition of time_h.
2012-02-09 13:05:15 +00:00
Corinna Vinschen
21e4f66a72
Add missing file from previous checkin
2012-02-09 12:57:34 +00:00
Corinna Vinschen
3543a40d5c
* libc/machine/arm/strcmp.S: New File.
...
* libc/machine/arm/strcmp.c: Deleted.
* libc/machine/arm/Makefile.am: Replaces strcmp.c with strcmp.S
* libc/machine/arm/Makefile.in: Regenerated.
* testsuite/newlib.string/strcmp-1.c: New file.
2012-02-09 10:42:14 +00:00
Corinna Vinschen
a442c9cddc
* passwd.cc: Add -v option to print version information as well, since
...
it's used in older csih.
2012-02-09 10:11:26 +00:00
Corinna Vinschen
e7420de9a2
*** empty log message ***
2012-02-09 09:04:10 +00:00
Christopher Faylor
06f46dc379
* dtable.cc (dtable::init_std_file_from_handle): Reinstate opening tty handles
...
with O_RDWR permissions.
2012-02-09 01:20:55 +00:00
Corinna Vinschen
461c56569f
* thread.cc (__pthread_cond_wait_init): New static function replacing
...
__pthread_cond_dowait. Only check and potentially initialize cond and
mutex, drop call to (*cond)->wait.
(pthread_cond_timedwait): Replace call to __pthread_cond_dowait with
separate calls to __pthread_cond_wait_init and (*cond)->wait to be
able to initialize cond before accessing its clock_id member.
(pthread_cond_wait): Ditto (more or less).
2012-02-08 19:58:37 +00:00
Christopher Faylor
30c66cea49
* include/sys/wait.h: Remove C++ inline functions for `union wait'. For C++
...
use `void *' as __wait_status_ptr_t instead. This is less type safe but fixes
compile error on `wait(NULL)'. Remove extra `;'.
2012-02-08 19:51:13 +00:00
Corinna Vinschen
bb2b641c13
* sigproc.cc (child_info_fork::abort): Call TerminateProcess rather
...
than ExitProcess.
2012-02-08 19:43:14 +00:00
H.J. Lu
ea96df1d4c
Implement Intel Transactional Synchronization Extensions
...
gas/
2012-02-08 H.J. Lu <hongjiu.lu@intel.com>
* config/tc-i386.c (HLE_PREFIX): New.
(check_hle): Likewise.
(_i386_insn): Add have_hle.
(cpu_arch): Add .hle and .rtm.
(md_assemble): Call check_hle if i.have_hle isn't zero.
(parse_insn): Set i.have_hle to 1 for HLE prefix.
(output_jump): Support up to 2 byte opcode.
* doc/c-i386.texi: Document hle/.hle and rtm/.rtm.
gas/testsuite/
2012-02-08 H.J. Lu <hongjiu.lu@intel.com>
* gas/i386/hle-intel.d: New.
* gas/i386/hle.d: Likewise.
* gas/i386/hle.s: Likewise.
* gas/i386/hlebad.l: Likewise.
* gas/i386/hlebad.s: Likewise.
* gas/i386/rtm-intel.d: Likewise.
* gas/i386/rtm.d: Likewise.
* gas/i386/rtm.s: Likewise.
* gas/i386/x86-64-hle-intel.d: Likewise.
* gas/i386/x86-64-hle.d: Likewise.
* gas/i386/x86-64-hle.s: Likewise.
* gas/i386/x86-64-hlebad.l: Likewise.
* gas/i386/x86-64-hlebad.s: Likewise.
* gas/i386/x86-64-rtm-intel.d: Likewise.
* gas/i386/x86-64-rtm.d: Likewise.
* gas/i386/x86-64-rtm.s: Likewise.
* gas/i386/i386.exp: Run hle, hle-intel, hlebad x86-64-hle, rtm,
rtm-intel, x86-64-hle-intel, x86-64-hlebad, x86-64-rtm and
x86-64-rtm-intel.
include/opcode/
2012-02-08 H.J. Lu <hongjiu.lu@intel.com>
* i386.h (XACQUIRE_PREFIX_OPCODE): New.
(XRELEASE_PREFIX_OPCODE): Likewise.
opcodes/
2012-02-08 H.J. Lu <hongjiu.lu@intel.com>
* i386-dis.c (HLE_Fixup1): New.
(HLE_Fixup2): Likewise.
(HLE_Fixup3): Likewise.
(Ebh1): Likewise.
(Evh1): Likewise.
(Ebh2): Likewise.
(Evh2): Likewise.
(Ebh3): Likewise.
(Evh3): Likewise.
(MOD_C6_REG_7): Likewise.
(MOD_C7_REG_7): Likewise.
(RM_C6_REG_7): Likewise.
(RM_C7_REG_7): Likewise.
(XACQUIRE_PREFIX): Likewise.
(XRELEASE_PREFIX): Likewise.
(dis386): Use Ebh1/Evh1 on add, adc, and, btc, btr, bts,
cmpxchg, dec, inc, neg, not, or, sbb, sub, xor and xadd. Use
Ebh2/Evh2 on xchg. Use Ebh3/Evh3 on mov.
(reg_table): Use Ebh1/Evh1 on add, adc, and, dec, inc, neg,
not, or, sbb, sub and xor. Use Ebh3/Evh3 on mov. Use
MOD_C6_REG_7 and MOD_C7_REG_7.
(mod_table): Add MOD_C6_REG_7 and MOD_C7_REG_7.
(rm_table): Add RM_C6_REG_7 and RM_C7_REG_7. Add xend and
xtest.
(prefix_name): Handle XACQUIRE_PREFIX and XRELEASE_PREFIX.
(CMPXCHG8B_Fixup): Handle HLE prefix on cmpxchg8b.
* i386-gen.c (cpu_flag_init): Add CPU_HLE_FLAGS and
CPU_RTM_FLAGS.
(cpu_flags): Add CpuHLE and CpuRTM.
(opcode_modifiers): Add HLEPrefixOk.
* i386-opc.h (CpuHLE): New.
(CpuRTM): Likewise.
(HLEPrefixOk): Likewise.
(i386_cpu_flags): Add cpuhle and cpurtm.
(i386_opcode_modifier): Add hleprefixok.
* i386-opc.tbl: Add HLEPrefixOk=3 to mov. Add HLEPrefixOk to
add, adc, and, btc, btr, bts, cmpxchg, dec, inc, neg, not, or,
sbb, sub, xor and xadd. Add HLEPrefixOk=2 to xchg with memory
operand. Add xacquire, xrelease, xabort, xbegin, xend and
xtest.
* i386-init.h: Regenerated.
* i386-tbl.h: Likewise.
2012-02-08 18:20:39 +00:00
Corinna Vinschen
7dc730e8ee
* uinfo.cc (cygheap_user::env_userprofile): Simplify since network
...
drives are not supported here.
2012-02-08 17:51:34 +00:00
Corinna Vinschen
a7a03a3920
* uinfo.cc (cygheap_user::env_userprofile): Convert native
...
userprofile path returned from get_registry_hive_path to Win32 path.
2012-02-08 17:45:43 +00:00
Corinna Vinschen
8f4ea5f005
* dll_init.cc: Throughout, drop usage of modname in favor of name.
...
(dll_list::find_by_modname): Remove.
(dll_list::alloc): Only store module basename in name. Add comment to
explain why. Simplify address check. Fix formatting in comment.
* dll_init.h (struct dll): Drop modname and find_by_modname.
2012-02-08 17:35:02 +00:00
Corinna Vinschen
25e67cd634
* dll_init.cc (dll_list::alloc): Add DLL name to fabort output. Fix
...
fabort string in case of bss start.
2012-02-08 14:41:51 +00:00
Corinna Vinschen
9553860f41
* include/sys/sysmacros.h: Include sys/types.h.
2012-02-08 14:08:58 +00:00
Corinna Vinschen
dbf404f258
* faq-using.xml (faq.using.sshd-in-domain): Document autoload error
...
1114 when loading user32.dll as potential problem when not using
a domain service account.
2012-02-08 10:04:16 +00:00
Corinna Vinschen
b23ef0bc0a
* mount.cc (mount_info::create_root_entry): Fix format specifier in
...
api_fatal message.
2012-02-07 17:34:29 +00:00
Corinna Vinschen
3b8698d7be
* include/process.h: Move here from include/cygwin subdir.
...
* exec.cc: Change include of process.h to reflect the fact that it's
now back in include.
* spawn.cc: Ditto.
* syscalls.cc: Ditto.
2012-02-07 17:15:07 +00:00
Christopher Faylor
3e9c8f2e81
* cygheap.cc (init_cygheap::manage_console_count): Delete.
...
* cygheap.h (init_cygheap::manage_console_count): Ditto.
(init_cygheap::console_count): Ditto.
* fhandler.h (fhandler_console::has_a): Ditto.
(fhandler_console::free_console): Declare new function.
* fhandler_console.cc (fhandler_console::free_console): Define new function.
(fhandler_console::open_setup): Delete call to manage_console_count.
(fhandler_console::close): Ditto. Replace with call to free_console().
* fhandler_tty.cc (fhandler_pty_slave::open): Delete call to
manage_console_count.
(fhandler_pty_slave::cleanup): Ditto.
(fhandler_pty_slave::close): Call fhandler_console::free_console() if this is
our controlling tty.
* pinfo.cc (_pinfo::set_ctty): Skip function if tty in question == our ctty.
Delete call to manage_console_count.
* syscalls.cc (close_all_files): Avoid locking and avoid setting errno when
iterating over fds.
2012-02-07 16:54:14 +00:00
Christopher Faylor
a72ada654e
* include/cygwin/version.h: Bump CYGWIN_VERSION_DLL_MINOR to 11.
2012-02-07 16:50:19 +00:00
Corinna Vinschen
dd9ee39045
* libc/include/inttypes.h: Redefine pointer type macros.
2012-02-07 16:42:20 +00:00
Corinna Vinschen
9ccb2ee84a
* new-features.sgml (ov-new1.7.10): Fix typo.
2012-02-05 16:26:48 +00:00
Corinna Vinschen
91cf7ba960
* legal.sgml: Fix copyright.
2012-02-05 14:29:14 +00:00
Corinna Vinschen
f5f62dd281
*** empty log message ***
2012-02-05 14:27:25 +00:00
Corinna Vinschen
35d81b4cde
* setup2.sgml: Fix more typos.
...
* setup-net.sgml: Ditto.
2012-02-04 20:19:48 +00:00
Corinna Vinschen
56f115b527
* utils.sgml: Fix typos.
2012-02-04 11:42:04 +00:00
Corinna Vinschen
e618492ea8
* faq-using.xml: Fix typos.
...
* ntsec.sgml: Ditto.
* pathnames.sgml: Ditto.
* setup2.sgml: Ditto.
* setup-net.sgml: Ditto.
(setup-dir): Drop paragraph on Unix/DOS file mode.
2012-02-04 11:40:44 +00:00
Kevin Buettner
4423a7671d
Add support to GDB for the Renesas rl78 architecture.
2012-02-04 06:05:50 +00:00
Corinna Vinschen
02f63d4720
* grp.cc (pwdgrp::parse_group): Convert grp from macro to reference.
...
* passwd.cc (pwdgrp::parse_passwd): Ditto for res.
2012-02-03 12:26:08 +00:00
Christopher Faylor
ab1fb53505
* syscalls.cc (close_all_files): Use cygheap_fdget to manipulate fhandler. Use
...
debug_only_printf.
2012-02-02 16:58:13 +00:00
Corinna Vinschen
b2ec6677ed
Fix memory and handle leaks due to fdopendir:
...
* dir.cc (closedir): Call global close instead of just releasing the
fhandler.
* fhandler_disk_file.cc (fhandler_disk_file::closedir): Don't close
fhandler handle here, rely on global closedir doing the right thing.
* fhandler_registry.cc (fhandler_registry::readdir): Also delete
d_hash when closing registry key.
(fhandler_registry::rewinddir): Ditto.
Avoid infinite recursion in VirtualStore under UAC:
* fhandler_registry.cc (VIRT_CLASSES_KEY_PREFIX): Define.
(VIRT_CLASSES_KEY_SUFFIX): Ditto.
(VIRT_CLASSES_KEY): Ditto.
(VIRT_CLASSES_LINKTGT): Ditto.
(fhandler_registry::exists): Return virt_symlink as file type if
this is a Classes key under the VirtualStore.
(fhandler_registry::fstat): Handle virt_symlink.
(fhandler_registry::readdir): Return DT_LNK as d_type if this is a
Classes key under the VirtualStore.
(fhandler_registry::fill_filebuf): Handle Classes symlink.
Handle user impersonation in /proc/registry access:
* autoload.cc (RegOpenUserClassesRoot): Define.
(RegOpenCurrentUser): Define.
* fhandler_registry.cc (RegOpenUserClassesRoot): Declare function
missing in w32api.
(RegOpenCurrentUser): Ditto.
(fetch_hkey): New function.
(fhandler_registry::open): Call fetch_hkey to get root registry key.
(open_key): Ditto.
2012-02-02 13:58:20 +00:00
Keith Marshall
002a1b18e6
More performance enhancements and POSIX compliance corrections.
2012-02-01 21:26:39 +00:00
Christopher Faylor
89c1003e78
Grr. Fix another typo.
2012-02-01 18:28:34 +00:00
Christopher Faylor
29b7448d58
* fcntl.cc (fcntl64): Add introductory debug statement. Call dup3 directory
...
via dtable method to avoid over-incrementing refcnt.
2012-02-01 17:38:07 +00:00
Christopher Faylor
8fa8b3a389
* dtable.cc (dtable::dup_worker): Add comment explaining why refcnt isn't
...
incremented here.
(dtable::dup3): Simplify slightly. Add comment.
* syscalls.cc (dup3): Increment refcnt here, similarly to dup2.
2012-02-01 17:20:02 +00:00
Christopher Faylor
4c68bf65c8
fix typo
2012-02-01 05:43:30 +00:00
Christopher Faylor
ee766fda68
* fhandler.cc (fhandler_base_overlapped::has_ongoing_io): Don't block
...
GetOverlappedResult since previous IsEventSignalled will have reset the handle.
* select.cc (cygwin_select): Remove space before parentheses in syscall
debugging output.
(pipe_data_available): Streamline if block.
2012-02-01 05:27:42 +00:00
Christopher Faylor
d3cb1dffef
* syscalls.cc (dup3): Fix debug typo.
...
* fhandler.cc (flush_async_io): Assume only called for writer. Call
GetOverlappedResult directly rather than kluding call to has_ongoing_io.
(fhandler_base_overlapped::close): Only start flush thread when closing write
handle. Only cancel I/O when reading.
2012-01-31 23:52:52 +00:00
H.J. Lu
37fbb8a741
Move ELF header entries to elf/ChangeLog
2012-01-31 20:00:16 +00:00
Christopher Faylor
44e1d662cb
* strace.cc (proc_child): Don't right-shift exit value.
...
(main): Call ExitProcess() to exit exactly the same way as any straced child.
2012-01-31 18:06:51 +00:00
H.J. Lu
fa5f82b286
Support arch-dependent fill
...
bfd/
2012-01-31 H.J. Lu <hongjiu.lu@intel.com>
PR ld/13616
* archures.c (bfd_arch_info): Add fill.
(bfd_default_arch_struct): Add bfd_arch_default_fill.
(bfd_arch_default_fill): New.
* configure.in: Set bfd version to 2.22.52.
* configure: Regenerated.
* cpu-alpha.c: Add bfd_arch_default_fill to bfd_arch_info
initializer.
* cpu-arc.c: Likewise.
* cpu-arm.c: Likewise.
* cpu-avr.c: Likewise.
* cpu-bfin.c: Likewise.
* cpu-cr16.c: Likewise.
* cpu-cr16c.c: Likewise.
* cpu-cris.c: Likewise.
* cpu-crx.c: Likewise.
* cpu-d10v.c: Likewise.
* cpu-d30v.c: Likewise.
* cpu-dlx.c: Likewise.
* cpu-epiphany.c: Likewise.
* cpu-fr30.c: Likewise.
* cpu-frv.c: Likewise.
* cpu-h8300.c: Likewise.
* cpu-h8500.c: Likewise.
* cpu-hppa.c: Likewise.
* cpu-i370.c: Likewise.
* cpu-i860.c: Likewise.
* cpu-i960.c: Likewise.
* cpu-ia64.c: Likewise.
* cpu-ip2k.c: Likewise.
* cpu-iq2000.c: Likewise.
* cpu-lm32.c: Likewise.
* cpu-m10200.c: Likewise.
* cpu-m10300.c: Likewise.
* cpu-m32c.c: Likewise.
* cpu-m32r.c: Likewise.
* cpu-m68hc11.c: Likewise.
* cpu-m68hc12.c: Likewise.
* cpu-m68k.c: Likewise.
* cpu-m88k.c: Likewise.
* cpu-mcore.c: Likewise.
* cpu-mep.c: Likewise.
* cpu-microblaze.c: Likewise.
* cpu-mips.c: Likewise.
* cpu-mmix.c: Likewise.
* cpu-moxie.c: Likewise.
* cpu-msp430.c: Likewise.
* cpu-mt.c: Likewise.
* cpu-ns32k.c: Likewise.
* cpu-openrisc.c: Likewise.
* cpu-or32.c: Likewise.
* cpu-pdp11.c: Likewise.
* cpu-pj.c: Likewise.
* cpu-plugin.c: Likewise.
* cpu-powerpc.c: Likewise.
* cpu-rl78.c: Likewise.
* cpu-rs6000.c: Likewise.
* cpu-rx.c: Likewise.
* cpu-s390.c: Likewise.
* cpu-score.c: Likewise.
* cpu-sh.c: Likewise.
* cpu-sparc.c: Likewise.
* cpu-spu.c: Likewise.
* cpu-tic30.c: Likewise.
* cpu-tic4x.c: Likewise.
* cpu-tic54x.c: Likewise.
* cpu-tic6x.c: Likewise.
* cpu-tic80.c: Likewise.
* cpu-tilegx.c: Likewise.
* cpu-tilepro.c: Likewise.
* cpu-v850.c: Likewise.
* cpu-vax.c: Likewise.
* cpu-w65.c: Likewise.
* cpu-we32k.c: Likewise.
* cpu-xc16x.c: Likewise.
* cpu-xstormy16.c: Likewise.
* cpu-xtensa.c: Likewise.
* cpu-z80.c: Likewise.
* cpu-z8k.c: Likewise.
* cpu-i386.c: Include "libiberty.h".
(bfd_arch_i386_fill): New.
Add bfd_arch_i386_fill to bfd_arch_info initializer.
* cpu-k1om.c: Add bfd_arch_i386_fill to bfd_arch_info initializer.
* cpu-l1om.c: Likewise.
* linker.c (default_data_link_order): Call abfd->arch_info->fill
if fill size is 0.
* bfd-in2.h: Regenerated.
include/
2012-01-31 H.J. Lu <hongjiu.lu@intel.com>
PR ld/13616
* bfdlink.h (bfd_link_order): Update comments on data size.
ld/
2012-01-31 H.J. Lu <hongjiu.lu@intel.com>
PR ld/13616
* emulparams/elf32_x86_64.sh: Remove NOP.
* emulparams/elf_i386.sh: Likewise.
* emulparams/elf_i386_be.sh: Likewise.
* emulparams/elf_i386_ldso.sh: Likewise.
* emulparams/elf_i386_vxworks.sh: Likewise.
* emulparams/elf_k1om.sh: Likewise.
* emulparams/elf_l1om.sh: Likewise.
* emulparams/elf_x86_64.sh: Likewise.
* ldlang.c (zero_fill): Initialized to 0.
* ldwrite.c (build_link_order): Set data size to linker odrder
size when they are the same.
* scripttempl/elf.sc: Don't specify fill if NOP is undefined.
ld/testsuite/
2012-01-31 H.J. Lu <hongjiu.lu@intel.com>
PR ld/13616
* ld-i386/tlsbindesc.dd: Update no-op padding.
* ld-i386/tlsnopic.dd: Likewise.
* ld-i386/tlspic.dd: Likewise.
* ld-x86-64/tlsbin.dd: Likewise.
* ld-x86-64/tlsbindesc.dd: Likewise.
* ld-x86-64/tlspic.dd: Likewise.
2012-01-31 17:54:39 +00:00
Corinna Vinschen
54c743c8f8
* tzset.c: Throughout use wide characters to be locale agnostic.
...
(main): Call setlocale.
2012-01-29 12:06:23 +00:00
Corinna Vinschen
1b79b38101
* Makefile.in (CYGWIN_BINS): Add tzset.
...
* tzset.c: New tool, new file.
* utils.sgml (tzset): New section.
* new-features.sgml (ov-new1.7.10): Add tzset.
* release/1.7.10: Add tzset.
2012-01-29 09:41:06 +00:00