]> sourceware.org Git - newlib-cygwin.git/log
newlib-cygwin.git
12 years ago * cygwin.din (scandirat): Export.
Yaakov Selkowitz [Wed, 22 Feb 2012 01:58:24 +0000 (01:58 +0000)]
* cygwin.din (scandirat): Export.
* posix.sgml (std-gnu): Add scandirat.
* syscalls.cc (scandirat): New function.
* include/cygwin/version.h (CYGWIN_VERSION_API_MINOR): Bump.
* include/sys/dirent.h (scandirat): Declare.

12 years ago2012-02-21 Joern Rennecke <joern.rennecke@embecosm.com>
Jeff Johnston [Tue, 21 Feb 2012 22:40:27 +0000 (22:40 +0000)]
2012-02-21  Joern Rennecke  <joern.rennecke@embecosm.com>

        * COPYING.NEWLIB: Add Adapteva notice.
        * COPYING.LIBGLOSS: Add Adapteva notice.

12 years ago2012-02-21 Jeremy Bennett <jeremy.bennett@embecosm.com>
Jeff Johnston [Tue, 21 Feb 2012 22:37:47 +0000 (22:37 +0000)]
2012-02-21  Jeremy Bennett  <jeremy.bennett@embecosm.com>
            Alan Lehotsky  <apl@alum.mit.edu>
            Joern Rennecke  <joern.rennecke@embecosm.com>

        * configure.in: Add Epiphany support.
        * configure: Regenerate.
        * epiphany: New directory.
        * libgloss/README: Add Epiphany entry.

12 years ago2012-02-21 Jeremy Bennett <jeremy.bennett@embecosm.com>
Jeff Johnston [Tue, 21 Feb 2012 22:34:31 +0000 (22:34 +0000)]
2012-02-21  Jeremy Bennett  <jeremy.bennett@embecosm.com>
            Alan Lehotsky  <apl@alum.mit.edu>
            Joern Rennecke  <joern.rennecke@embecosm.com>

        * configure.host: Add Epiphany support.
        * libc/include/machine/ieeefp.h: Likewise.
        * libc/include/machine/setjmp.h: Likewise.
        * libc/machine/configure.in, libc/sys/configure.in: Likewise.
        * libc/machine/configure, libc/sys/configure: Regenerate.
        * libc/machine/epiphany, libc/sys/epiphany: New directories.
        * NEWS: Mention addition of Epiphany.

12 years ago * shared.cc (shared_info::init_obcaseinsensitive): Check actual state
Corinna Vinschen [Tue, 21 Feb 2012 17:03:51 +0000 (17:03 +0000)]
* shared.cc (shared_info::init_obcaseinsensitive): Check actual state
of case sensitivity on post-Windows 2000 systems.
* wincap.h (wincaps::kernel_is_always_casesensitive): New element.
* wincap.cc: Implement above element throughout.

12 years ago * faq-using.xml (faq.using.bloda): Add AVAST and Citrix Metaframe
Corinna Vinschen [Tue, 21 Feb 2012 16:26:36 +0000 (16:26 +0000)]
* faq-using.xml (faq.using.bloda): Add AVAST and Citrix Metaframe
Presentation Server.

12 years ago * flock.cc (inode_t::del_my_locks): Drop useless counter lc. Close
Corinna Vinschen [Mon, 20 Feb 2012 14:08:37 +0000 (14:08 +0000)]
* flock.cc (inode_t::del_my_locks): Drop useless counter lc.  Close
lock object handle explicitely in case of called during fork.  Add
comment to explain why.
* fork.cc (frok::child): Drop declaration of fixup_lockf_after_fork.

12 years ago * timer.cc (getitimer): Don't create another local ret variable in
Corinna Vinschen [Fri, 17 Feb 2012 17:34:01 +0000 (17:34 +0000)]
* timer.cc (getitimer): Don't create another local ret variable in
timer_gettime calling branch.  Simplify conditional since timer_gettime
always returns 0 or -1 anyway.

12 years ago * ntdll.h (struct _PEB): Add EnvironmentUpdateCount member.
Corinna Vinschen [Fri, 17 Feb 2012 14:26:18 +0000 (14:26 +0000)]
* ntdll.h (struct _PEB): Add EnvironmentUpdateCount member.
* spawn.cc (child_info_spawn::worker): Speed up job recognition.  Expand
comment to explain every little detail and so we never forget.
* wincap.h (wincaps::has_program_compatibility_assitant): New element.
* wincap.cc: Implement above element throughout.

12 years ago * mount.cc (get_disk_type): Drop unneeded toupper call. Convert case
Corinna Vinschen [Fri, 17 Feb 2012 14:17:12 +0000 (14:17 +0000)]
* mount.cc (get_disk_type): Drop unneeded toupper call.  Convert case
constants to wide chars.

12 years ago*** empty log message ***
Corinna Vinschen [Thu, 16 Feb 2012 11:12:00 +0000 (11:12 +0000)]
*** empty log message ***

12 years ago * autoload.cc (NetUseGetInfo): Define.
Corinna Vinschen [Thu, 16 Feb 2012 11:02:05 +0000 (11:02 +0000)]
* autoload.cc (NetUseGetInfo): Define.
* fhandler_disk_file.cc (fhandler_cygdrive::opendir): Rename flptst
to drive.  Call new get_disk_type function rather than is_floppy and
check SMB drives with the NetUseGetInfo function.  Explain why.
* mount.cc (get_disk_type): New function to evaluate disk type from
native NT device name.
(is_floppy): Remove.
* mount.h (enum disk_type): Define.
(get_disk_type): Declare.
* path.h (is_floppy): Drop declaration.

12 years ago * miscfuncs.cc: Revert change from 2012-02-13 which used the
Corinna Vinschen [Wed, 15 Feb 2012 21:34:06 +0000 (21:34 +0000)]
* miscfuncs.cc: Revert change from 2012-02-13 which used the
Windows-provided stack rather than an own stack created in
CygwinCreateThread.
(struct thread_wrapper_arg): Rename commitsize to stacklimit.
(CygwinCreateThread): Rename commitsize to real_stacklimit.

12 years ago* configure.host: Fix typo: xdir_dir -> xdr_dir.
Christopher Faylor [Wed, 15 Feb 2012 18:32:05 +0000 (18:32 +0000)]
* configure.host: Fix typo: xdir_dir -> xdr_dir.

12 years ago * dtable.cc (dtable::init_std_file_from_handle): Use tmp_pathbuf for
Corinna Vinschen [Wed, 15 Feb 2012 16:11:36 +0000 (16:11 +0000)]
* dtable.cc (dtable::init_std_file_from_handle): Use tmp_pathbuf for
name.
(handle_to_fn): Ditto for device.  Fix size in QueryDosDeviceW call.

12 years ago* smallprint.cc (tmpbuf): Declare new class holding a static buffer, protected
Christopher Faylor [Wed, 15 Feb 2012 15:33:56 +0000 (15:33 +0000)]
* smallprint.cc (tmpbuf): Declare new class holding a static buffer, protected
by a lock.
(__small_vsprintf): Use tmpbuf to hold large buffer.
(__small_vswprintf): Ditto.

12 years ago * flock.cc (lf_setlock): Add timeout variable and set before calling
Corinna Vinschen [Wed, 15 Feb 2012 14:43:07 +0000 (14:43 +0000)]
* flock.cc (lf_setlock): Add timeout variable and set before calling
WFMO.  Drop debug output if process is not available.  Set timeout to
0 instead.  Document timeout 0 in WFMO comment.
(lf_getblock): Drop invalid F_POSIX lock type shortcut.  Only return
overlap if event is not signalled.  Fix comment.

12 years ago.
Christopher Faylor [Tue, 14 Feb 2012 20:04:59 +0000 (20:04 +0000)]
.

12 years ago* pinfo.cc (_pinfo::set_ctty): Revert 2012-02-07 change to skip function if tty
Christopher Faylor [Tue, 14 Feb 2012 19:08:20 +0000 (19:08 +0000)]
* pinfo.cc (_pinfo::set_ctty): Revert 2012-02-07 change to skip function if tty
in question == our ctty.
* syscalls.cc (setsid): Avoid two function calls.
* dtable.cc (dtable::dup_worker): Remove debugging.
* init.cc (search_for): Calculate for every new process rather than using
shared value.
(threadfunc_ix): Fill in for ever new process rather than sing shared value.

12 years ago * fhandler_disk_file.cc (fhandler_cygdrive::fstat): Don't bother to
Corinna Vinschen [Tue, 14 Feb 2012 15:22:13 +0000 (15:22 +0000)]
* fhandler_disk_file.cc (fhandler_cygdrive::fstat): Don't bother to
set st_nlink correctly, just set it to 1 to avoid potential network
timeouts.

12 years ago * transport_pipes.cc (transport_layer_pipes::transport_layer_pipes):
Corinna Vinschen [Tue, 14 Feb 2012 14:12:11 +0000 (14:12 +0000)]
* transport_pipes.cc (transport_layer_pipes::transport_layer_pipes):
Always use cygwin_internal to fetch installation key.

12 years ago * flock.cc (lf_setlock): Don't close waited lock object handle before
Corinna Vinschen [Tue, 14 Feb 2012 13:55:45 +0000 (13:55 +0000)]
* flock.cc (lf_setlock): Don't close waited lock object handle before
we own the node lock.  Fix comment.

12 years ago * cygheap.cc (init_cygheap::init_installation_root): Convert function
Corinna Vinschen [Tue, 14 Feb 2012 11:27:43 +0000 (11:27 +0000)]
* cygheap.cc (init_cygheap::init_installation_root): Convert function
init_installation_root into a cygheap method.
* cygheap.h (struct init_cygheap): Move installation_root,
installation_key, and installation_key_buf from shared
.cygwin_dll_common DLL section to cygheap.  Declare new method
init_installation_root.
* dtable.cc (handle_to_fn): Accommodate the move of installation strings
to the cygheap.
* external.cc (cygwin_internal): Ditto.
* fhandler_console.cc (fhandler_console::open_shared_console): Ditto.
* fhandler_mailslot.cc (fhandler_mailslot::get_object_attr): Ditto.
* fhandler_tty.cc: Ditto, throughout.
* mount.cc (mount_info::init): Ditto.
* pipe.cc (fhandler_pipe::create): Ditto.
* shared.cc: Ditto, throughout.
(installation_root): Remove.
(installation_key): Move to cygheap.
(installation_key_buf): Ditto.
(installation_root_inited): Remove.
(SPIN_WAIT): Remove.
(init_installation_root): Move to cygheap.
(memory_init): Call cygheap->init_installation_root right after
cygheap->user.init.  Drop call of init_installation_root function.
* shared_info.h (init_installation_root): Drop declaration.
(installation_root): Ditto.
(installation_key): Ditto.
* uinfo.cc (pwdgrp::load): Accommodate the move of installation strings
to the cygheap.

12 years ago * thread.cc: Drop including unused headers.
Corinna Vinschen [Tue, 14 Feb 2012 09:45:21 +0000 (09:45 +0000)]
* thread.cc: Drop including unused headers.

12 years ago * miscfuncs.cc (struct thread_wrapper_arg): Convert char * to PBYTE.
Corinna Vinschen [Mon, 13 Feb 2012 15:23:03 +0000 (15:23 +0000)]
* miscfuncs.cc (struct thread_wrapper_arg): Convert char * to PBYTE.
Change related casts throughout.
(thread_wrapper): Only do the thread change if the application provided
the stack.  Otherwise, just use the Windows-provided stack.  Set up
POSIX guardpage here, if necessary.  Move related comment from
CygwinCreateThread here.
(CygwinCreateThread): Never allocate and set up own stack here.  Just
compute stack size to reserve and use value in CreateThread call if
stack hasn't been provided by the application.

12 years ago * Makefile.in (clean): Remove non-existant regexp dir.
Corinna Vinschen [Mon, 13 Feb 2012 13:12:37 +0000 (13:12 +0000)]
* Makefile.in (clean): Remove non-existant regexp dir.

* collate.h: New header.
(__collate_range_cmp): Declare.
(__collate_load_error): Define.
* glob.cc: Pull in latest version from FreeBSD.  Simplify and reduce
Cygwin-specific changes.
* regex/regcomp.c: Include collate.h on Cygwin as well.
(__collate_range_cmp): Move from here...
* nlsfuncs.cc (__collate_range_cmp): ...to here.

* miscfuncs.cc (thread_wrapper): Fix typo in comment.
(CygwinCreateThread): Take dead zone of Windows stack into account.
Change the way how the stack is commited and how to handle guardpages.
Explain how and why.
* thread.h (PTHREAD_DEFAULT_STACKSIZE): Change definition.  Explain why.

12 years ago* include/pthread.h: Include time.h as required by POSIX.
Yaakov Selkowitz [Mon, 13 Feb 2012 01:46:46 +0000 (01:46 +0000)]
* include/pthread.h: Include time.h as required by POSIX.

12 years ago* exception.h (stackdump): Declare.
Christopher Faylor [Sun, 12 Feb 2012 22:43:33 +0000 (22:43 +0000)]
* exception.h (stackdump): Declare.
* exceptions.cc (stackdump): Rework to perform all operations needed for a
stackdump and to avoid recursion.
(exception::handle): Use simplified stackdump interface.
* sigproc.cc (signal::exit): Ditto.  Delete now, uneeded declaration.

12 years ago * miscfuncs.cc (DEFAULT_STACKSIZE): Remove.
Corinna Vinschen [Sat, 11 Feb 2012 17:37:02 +0000 (17:37 +0000)]
* miscfuncs.cc (DEFAULT_STACKSIZE): Remove.
(CygwinCreateThread): Simplify code by assuming that now stack-related
input values are undefined.  Set stack protection to PAGE_READWRITE,
as is default on Windows.  Add lengthy comment to explain POSIX
guardpage.
* thread.cc (pthread_attr::pthread_attr): Initialize stacksize as
PTHREAD_DEFAULT_STACKSIZE.  Initialize guardsize as
PTHREAD_DEFAULT_GUARDSIZE.
* thread.h (PTHREAD_DEFAULT_STACKSIZE): Define.  Add comment to explain.
(PTHREAD_DEFAULT_GUARDSIZE): Define.

12 years ago * miscfuncs.cc (DEFAULT_STACKSIZE): Set to 1 Megs. Drop comment about
Corinna Vinschen [Fri, 10 Feb 2012 20:56:22 +0000 (20:56 +0000)]
* 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.

12 years ago* syscalls.cc (setsid): On second thought, in the spirit of keeping things
Christopher Faylor [Fri, 10 Feb 2012 16:43:36 +0000 (16:43 +0000)]
* 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.

12 years ago* syscalls.cc (open): Semi-revert (?) to allowing open of a tty to become
Christopher Faylor [Fri, 10 Feb 2012 16:33:53 +0000 (16:33 +0000)]
* syscalls.cc (open): Semi-revert (?) to allowing open of a tty to become
controlling tty if there is no controlling tty.

12 years ago* libc/include/_ansi.h (_ELIDABLE_INLINE): Fix C99 mode.
Eric Blake [Thu, 9 Feb 2012 19:58:33 +0000 (19:58 +0000)]
* libc/include/_ansi.h (_ELIDABLE_INLINE): Fix C99 mode.

12 years ago* exceptions.cc (setup_handler): Reduce system_printf to sigproc_printf since
Christopher Faylor [Thu, 9 Feb 2012 16:05:23 +0000 (16:05 +0000)]
* exceptions.cc (setup_handler): Reduce system_printf to sigproc_printf since
it is for a transient situation which will undoubtedly be handled.

12 years ago * fhandler_dsp.cc (fhandler_dev_dsp::Audio_out::write): Set
Corinna Vinschen [Thu, 9 Feb 2012 15:23:17 +0000 (15:23 +0000)]
* 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.

12 years ago * dll_init.h (struct dll): Re-add modname.
Corinna Vinschen [Thu, 9 Feb 2012 14:41:21 +0000 (14:41 +0000)]
* 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.

12 years ago * libc/sys/rtems/sys/utime.h: Include <sys/types.h> to provide a
Corinna Vinschen [Thu, 9 Feb 2012 13:05:15 +0000 (13:05 +0000)]
* libc/sys/rtems/sys/utime.h: Include <sys/types.h> to provide a
definition of time_h.

12 years agoAdd missing file from previous checkin
Corinna Vinschen [Thu, 9 Feb 2012 12:57:34 +0000 (12:57 +0000)]
Add missing file from previous checkin

12 years ago * libc/machine/arm/strcmp.S: New File.
Corinna Vinschen [Thu, 9 Feb 2012 10:42:14 +0000 (10:42 +0000)]
* 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.

12 years ago * passwd.cc: Add -v option to print version information as well, since
Corinna Vinschen [Thu, 9 Feb 2012 10:11:26 +0000 (10:11 +0000)]
* passwd.cc: Add -v option to print version information as well, since
it's used in older csih.

12 years ago*** empty log message ***
Corinna Vinschen [Thu, 9 Feb 2012 09:04:10 +0000 (09:04 +0000)]
*** empty log message ***

12 years ago* dtable.cc (dtable::init_std_file_from_handle): Reinstate opening tty handles
Christopher Faylor [Thu, 9 Feb 2012 01:20:55 +0000 (01:20 +0000)]
* dtable.cc (dtable::init_std_file_from_handle): Reinstate opening tty handles
with O_RDWR permissions.

12 years ago * thread.cc (__pthread_cond_wait_init): New static function replacing
Corinna Vinschen [Wed, 8 Feb 2012 19:58:37 +0000 (19:58 +0000)]
* 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).

12 years ago* include/sys/wait.h: Remove C++ inline functions for `union wait'. For C++
Christopher Faylor [Wed, 8 Feb 2012 19:51:13 +0000 (19:51 +0000)]
* 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 `;'.

12 years ago * sigproc.cc (child_info_fork::abort): Call TerminateProcess rather
Corinna Vinschen [Wed, 8 Feb 2012 19:43:14 +0000 (19:43 +0000)]
* sigproc.cc (child_info_fork::abort): Call TerminateProcess rather
than ExitProcess.

12 years agoImplement Intel Transactional Synchronization Extensions
H.J. Lu [Wed, 8 Feb 2012 18:20:39 +0000 (18:20 +0000)]
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.

12 years ago * uinfo.cc (cygheap_user::env_userprofile): Simplify since network
Corinna Vinschen [Wed, 8 Feb 2012 17:51:34 +0000 (17:51 +0000)]
* uinfo.cc (cygheap_user::env_userprofile): Simplify since network
drives are not supported here.

12 years ago * uinfo.cc (cygheap_user::env_userprofile): Convert native
Corinna Vinschen [Wed, 8 Feb 2012 17:45:43 +0000 (17:45 +0000)]
* uinfo.cc (cygheap_user::env_userprofile): Convert native
userprofile path returned from get_registry_hive_path to Win32 path.

12 years ago * dll_init.cc: Throughout, drop usage of modname in favor of name.
Corinna Vinschen [Wed, 8 Feb 2012 17:35:02 +0000 (17:35 +0000)]
* 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.

12 years ago * dll_init.cc (dll_list::alloc): Add DLL name to fabort output. Fix
Corinna Vinschen [Wed, 8 Feb 2012 14:41:51 +0000 (14:41 +0000)]
* dll_init.cc (dll_list::alloc): Add DLL name to fabort output.  Fix
fabort string in case of bss start.

12 years ago * include/sys/sysmacros.h: Include sys/types.h.
Corinna Vinschen [Wed, 8 Feb 2012 14:08:58 +0000 (14:08 +0000)]
* include/sys/sysmacros.h: Include sys/types.h.

12 years ago * faq-using.xml (faq.using.sshd-in-domain): Document autoload error
Corinna Vinschen [Wed, 8 Feb 2012 10:04:16 +0000 (10:04 +0000)]
* 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.

12 years ago * mount.cc (mount_info::create_root_entry): Fix format specifier in
Corinna Vinschen [Tue, 7 Feb 2012 17:34:29 +0000 (17:34 +0000)]
* mount.cc (mount_info::create_root_entry): Fix format specifier in
api_fatal message.

12 years ago * include/process.h: Move here from include/cygwin subdir.
Corinna Vinschen [Tue, 7 Feb 2012 17:15:07 +0000 (17:15 +0000)]
* 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.

12 years ago* cygheap.cc (init_cygheap::manage_console_count): Delete.
Christopher Faylor [Tue, 7 Feb 2012 16:54:14 +0000 (16:54 +0000)]
* 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.

12 years ago* include/cygwin/version.h: Bump CYGWIN_VERSION_DLL_MINOR to 11.
Christopher Faylor [Tue, 7 Feb 2012 16:50:19 +0000 (16:50 +0000)]
* include/cygwin/version.h: Bump CYGWIN_VERSION_DLL_MINOR to 11.

12 years ago * libc/include/inttypes.h: Redefine pointer type macros.
Corinna Vinschen [Tue, 7 Feb 2012 16:42:20 +0000 (16:42 +0000)]
* libc/include/inttypes.h: Redefine pointer type macros.

12 years ago * new-features.sgml (ov-new1.7.10): Fix typo.
Corinna Vinschen [Sun, 5 Feb 2012 16:26:48 +0000 (16:26 +0000)]
* new-features.sgml (ov-new1.7.10): Fix typo.

12 years ago * legal.sgml: Fix copyright.
Corinna Vinschen [Sun, 5 Feb 2012 14:29:14 +0000 (14:29 +0000)]
* legal.sgml: Fix copyright.

12 years ago*** empty log message ***
Corinna Vinschen [Sun, 5 Feb 2012 14:27:25 +0000 (14:27 +0000)]
*** empty log message ***

12 years ago * setup2.sgml: Fix more typos.
Corinna Vinschen [Sat, 4 Feb 2012 20:19:48 +0000 (20:19 +0000)]
* setup2.sgml: Fix more typos.
* setup-net.sgml: Ditto.

12 years ago * utils.sgml: Fix typos.
Corinna Vinschen [Sat, 4 Feb 2012 11:42:04 +0000 (11:42 +0000)]
* utils.sgml: Fix typos.

12 years ago * faq-using.xml: Fix typos.
Corinna Vinschen [Sat, 4 Feb 2012 11:40:44 +0000 (11:40 +0000)]
* 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.

12 years agoAdd support to GDB for the Renesas rl78 architecture.
Kevin Buettner [Sat, 4 Feb 2012 06:05:50 +0000 (06:05 +0000)]
Add support to GDB for the Renesas rl78 architecture.

12 years ago * grp.cc (pwdgrp::parse_group): Convert grp from macro to reference.
Corinna Vinschen [Fri, 3 Feb 2012 12:26:08 +0000 (12:26 +0000)]
* grp.cc (pwdgrp::parse_group): Convert grp from macro to reference.
* passwd.cc (pwdgrp::parse_passwd): Ditto for res.

12 years ago* syscalls.cc (close_all_files): Use cygheap_fdget to manipulate fhandler. Use
Christopher Faylor [Thu, 2 Feb 2012 16:58:13 +0000 (16:58 +0000)]
* syscalls.cc (close_all_files): Use cygheap_fdget to manipulate fhandler.  Use
debug_only_printf.

12 years ago Fix memory and handle leaks due to fdopendir:
Corinna Vinschen [Thu, 2 Feb 2012 13:58:20 +0000 (13:58 +0000)]
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.

12 years agoMore performance enhancements and POSIX compliance corrections.
Keith Marshall [Wed, 1 Feb 2012 21:26:39 +0000 (21:26 +0000)]
More performance enhancements and POSIX compliance corrections.

12 years agoGrr. Fix another typo.
Christopher Faylor [Wed, 1 Feb 2012 18:28:34 +0000 (18:28 +0000)]
Grr.  Fix another typo.

12 years ago* fcntl.cc (fcntl64): Add introductory debug statement. Call dup3 directory
Christopher Faylor [Wed, 1 Feb 2012 17:38:07 +0000 (17:38 +0000)]
* fcntl.cc (fcntl64): Add introductory debug statement.  Call dup3 directory
via dtable method to avoid over-incrementing refcnt.

12 years ago* dtable.cc (dtable::dup_worker): Add comment explaining why refcnt isn't
Christopher Faylor [Wed, 1 Feb 2012 17:20:02 +0000 (17:20 +0000)]
* 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.

12 years agofix typo
Christopher Faylor [Wed, 1 Feb 2012 05:43:30 +0000 (05:43 +0000)]
fix typo

12 years ago* fhandler.cc (fhandler_base_overlapped::has_ongoing_io): Don't block
Christopher Faylor [Wed, 1 Feb 2012 05:27:42 +0000 (05:27 +0000)]
* 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.

12 years ago* syscalls.cc (dup3): Fix debug typo.
Christopher Faylor [Tue, 31 Jan 2012 23:52:52 +0000 (23:52 +0000)]
* 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.

12 years agoMove ELF header entries to elf/ChangeLog
H.J. Lu [Tue, 31 Jan 2012 20:00:16 +0000 (20:00 +0000)]
Move ELF header entries to elf/ChangeLog

12 years ago* strace.cc (proc_child): Don't right-shift exit value.
Christopher Faylor [Tue, 31 Jan 2012 18:06:51 +0000 (18:06 +0000)]
* strace.cc (proc_child): Don't right-shift exit value.
(main): Call ExitProcess() to exit exactly the same way as any straced child.

12 years agoSupport arch-dependent fill
H.J. Lu [Tue, 31 Jan 2012 17:54:39 +0000 (17:54 +0000)]
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.

12 years ago * tzset.c: Throughout use wide characters to be locale agnostic.
Corinna Vinschen [Sun, 29 Jan 2012 12:06:23 +0000 (12:06 +0000)]
* tzset.c: Throughout use wide characters to be locale agnostic.
(main): Call setlocale.

12 years ago * Makefile.in (CYGWIN_BINS): Add tzset.
Corinna Vinschen [Sun, 29 Jan 2012 09:41:06 +0000 (09:41 +0000)]
* 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.

12 years agoForced checkin for timestamp
Corinna Vinschen [Sat, 28 Jan 2012 14:44:23 +0000 (14:44 +0000)]
Forced checkin for timestamp

12 years ago * cygwin.din: Fix order (DATA first).
Corinna Vinschen [Sat, 28 Jan 2012 14:44:01 +0000 (14:44 +0000)]
* cygwin.din: Fix order (DATA first).

12 years ago * dcrt0.cc (is_dos_path): New macro to recognize drive letter and UNC
Corinna Vinschen [Fri, 27 Jan 2012 09:28:38 +0000 (09:28 +0000)]
* dcrt0.cc (is_dos_path): New macro to recognize drive letter and UNC
DOS paths.
(globify): Call is_dos_path instead of isdrive.

12 years ago * dwarf2.h (enum dwarf_form): Add Fission extensions.
Cary Coutant [Thu, 26 Jan 2012 22:57:17 +0000 (22:57 +0000)]
* dwarf2.h (enum dwarf_form): Add Fission extensions.
(enum dwarf_attribute): Likewise.

12 years ago* sigproc.cc (child_info::retry_count): Actually that should have been 0.
Christopher Faylor [Thu, 26 Jan 2012 18:14:11 +0000 (18:14 +0000)]
* sigproc.cc (child_info::retry_count): Actually that should have been 0.

12 years ago* sigproc.cc (child_info::retry_count): Default to 1.
Christopher Faylor [Thu, 26 Jan 2012 16:35:34 +0000 (16:35 +0000)]
* sigproc.cc (child_info::retry_count): Default to 1.

12 years ago * pathnames.sgml (mount-table): Rephrase a few expressions for
Corinna Vinschen [Tue, 24 Jan 2012 09:48:59 +0000 (09:48 +0000)]
* pathnames.sgml (mount-table): Rephrase a few expressions for
clearness.

12 years ago * ldd.cc (start_process): Handle .oct and .so as DLLs.
Yaakov Selkowitz [Tue, 24 Jan 2012 06:29:01 +0000 (06:29 +0000)]
* ldd.cc (start_process): Handle .oct and .so as DLLs.

12 years agolibgloss: bfin: add a better default _exit
Michael Frysinger [Tue, 24 Jan 2012 04:41:10 +0000 (04:41 +0000)]
libgloss: bfin: add a better default _exit

12 years ago * syscalls.cc (gethostid): Simplify. Just fetch MachineGuid and
Corinna Vinschen [Mon, 23 Jan 2012 12:59:44 +0000 (12:59 +0000)]
* syscalls.cc (gethostid): Simplify.  Just fetch MachineGuid and
create hash from there.

12 years ago* fhandler.h (fhandler_fifo::arm): Declare new function.
Christopher Faylor [Sun, 22 Jan 2012 21:43:25 +0000 (21:43 +0000)]
* fhandler.h (fhandler_fifo::arm): Declare new function.
* fhandler_fifo.cc (fhandler_fifo::arm): Define new function.
(fhandler_fifo::open): Fix handling of RDWR pipes to avoid opening a second
handle.  Use arm() function to set events.
(fhandler_fifo::raw_read): Correctly go into "connect again logic" when we
detect another writer is available.  Use arm() function to set event.
* pipe.cc (fhandler_pipe::create): Add more detail to debugging output.

12 years agoclarify wording
Christopher Faylor [Sun, 22 Jan 2012 17:57:52 +0000 (17:57 +0000)]
clarify wording

12 years ago* cygheap.h (cygheap_fdmanip::release): Simplify.
Christopher Faylor [Sun, 22 Jan 2012 07:27:57 +0000 (07:27 +0000)]
* cygheap.h (cygheap_fdmanip::release): Simplify.
* dtable.cc (dtable::release): Make void again.  Skip not_open check since it
is guaranteed to be open.  Don't bother deleting here since actual deletion
will be handled in cygheap_fdget::~cygheap_fdget.
* dtable.h (dtable::release): Make void again.
* syscalls.cc (dup2): Bump fhandler use count on successful dup.

12 years ago* cygheap.h (cygheap_fdget::~cygheap_fdget): Simplify now that refcnt reports
Christopher Faylor [Sun, 22 Jan 2012 06:45:08 +0000 (06:45 +0000)]
* cygheap.h (cygheap_fdget::~cygheap_fdget): Simplify now that refcnt reports
reference count changes itself.
* fhandler.cc (fhandler_base::reset): Set _refcnt to 0.
* fhandler.h (fhandler_base::refcnt): Report refcnt when debugging.
* select.cc (cygwin_select): Set return_on_signal to indicate when select
should be interrupted.
(select_stuff::wait): Keep looping unless return_on_signal is set.
* select.h (select_stuff::return_on_signal): New variable.
(select_stuff::select_stuff): Zero return_on_signal.

12 years ago * fhandler.h (fhandler_registry::opendir): Declare.
Corinna Vinschen [Fri, 20 Jan 2012 12:53:26 +0000 (12:53 +0000)]
* fhandler.h (fhandler_registry::opendir): Declare.
* fhandler_registry.cc (fhandler_registry::opendir): New function.

12 years ago * arm/linux-crt0.c: Use ldr instead of adr to get address of
Corinna Vinschen [Tue, 17 Jan 2012 10:03:40 +0000 (10:03 +0000)]
* arm/linux-crt0.c: Use ldr instead of adr to get address of
_start_thumb.

12 years agoCorrect misused 'rm -r' command in uninstall rules.
Keith Marshall [Mon, 16 Jan 2012 20:37:25 +0000 (20:37 +0000)]
Correct misused 'rm -r' command in uninstall rules.

12 years agoGeneralise makefile references to subdirectories of lib.
Keith Marshall [Mon, 16 Jan 2012 20:26:49 +0000 (20:26 +0000)]
Generalise makefile references to subdirectories of lib.

12 years ago * configure: Regenerate and re-add to repository.
Corinna Vinschen [Mon, 16 Jan 2012 08:44:37 +0000 (08:44 +0000)]
* configure: Regenerate and re-add to repository.
* .cvsignore: Fix accordingly.

12 years agoAdd 'check' as GCS conforming alias for make's 'test' goal.
Keith Marshall [Sun, 15 Jan 2012 21:30:48 +0000 (21:30 +0000)]
Add 'check' as GCS conforming alias for make's 'test' goal.

12 years agoMore makefile code refactoring; remove redundant INCLUDES references.
Keith Marshall [Sun, 15 Jan 2012 20:56:25 +0000 (20:56 +0000)]
More makefile code refactoring; remove redundant INCLUDES references.

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