summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* * flock.cc (lf_setlock): Add timeout variable and set before callingCorinna Vinschen2012-02-152-13/+23
| | | | | | | 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.
* .Christopher Faylor2012-02-141-1/+1
|
* * pinfo.cc (_pinfo::set_ctty): Revert 2012-02-07 change to skip function if ttyChristopher Faylor2012-02-145-18/+22
| | | | | | | | | 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.
* * fhandler_disk_file.cc (fhandler_cygdrive::fstat): Don't bother toCorinna Vinschen2012-02-142-9/+7
| | | | | set st_nlink correctly, just set it to 1 to avoid potential network timeouts.
* * transport_pipes.cc (transport_layer_pipes::transport_layer_pipes):Corinna Vinschen2012-02-142-7/+6
| | | | Always use cygwin_internal to fetch installation key.
* * flock.cc (lf_setlock): Don't close waited lock object handle beforeCorinna Vinschen2012-02-142-2/+7
| | | | we own the node lock. Fix comment.
* * cygheap.cc (init_cygheap::init_installation_root): Convert functionCorinna Vinschen2012-02-1413-115/+140
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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.
* * thread.cc: Drop including unused headers.Corinna Vinschen2012-02-142-4/+4
|
* * miscfuncs.cc (struct thread_wrapper_arg): Convert char * to PBYTE.Corinna Vinschen2012-02-132-161/+144
| | | | | | | | | | | 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.
* * Makefile.in (clean): Remove non-existant regexp dir.Corinna Vinschen2012-02-138-121/+167
| | | | | | | | | | | | | | | | | * 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.
* * include/pthread.h: Include time.h as required by POSIX.Yaakov Selkowitz2012-02-132-1/+6
|
* * exception.h (stackdump): Declare.Christopher Faylor2012-02-124-20/+27
| | | | | | | * 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.
* * miscfuncs.cc (DEFAULT_STACKSIZE): Remove.Corinna Vinschen2012-02-114-23/+35
| | | | | | | | | | | | (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.
* * miscfuncs.cc (DEFAULT_STACKSIZE): Set to 1 Megs. Drop comment aboutCorinna Vinschen2012-02-104-14/+51
| | | | | | | | | | | | 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.
* * syscalls.cc (setsid): On second thought, in the spirit of keeping thingsChristopher Faylor2012-02-102-2/+8
| | | | | kludgy, set ctty to -2 here as a special flag, and... (open): ...only eschew setting O_NOCTTY when that case is detected.
* * syscalls.cc (open): Semi-revert (?) to allowing open of a tty to becomeChristopher Faylor2012-02-102-1/+6
| | | | controlling tty if there is no controlling tty.
* * libc/include/_ansi.h (_ELIDABLE_INLINE): Fix C99 mode.Eric Blake2012-02-092-10/+17
|
* * exceptions.cc (setup_handler): Reduce system_printf to sigproc_printf sinceChristopher Faylor2012-02-092-1/+7
| | | | it is for a transient situation which will undoubtedly be handled.
* * fhandler_dsp.cc (fhandler_dev_dsp::Audio_out::write): SetCorinna Vinschen2012-02-092-1/+8
| | | | | bytes_to_write to 0 in case it fits into the buffer, otherwise suffer early EOF in caller.
* * dll_init.h (struct dll): Re-add modname.Corinna Vinschen2012-02-093-28/+36
| | | | | | | | * 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.
* * libc/sys/rtems/sys/utime.h: Include <sys/types.h> to provide aCorinna Vinschen2012-02-092-0/+7
| | | | definition of time_h.
* Add missing file from previous checkinCorinna Vinschen2012-02-091-0/+222
|
* * libc/machine/arm/strcmp.S: New File.Corinna Vinschen2012-02-095-453/+793
| | | | | | | * 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.
* * passwd.cc: Add -v option to print version information as well, sinceCorinna Vinschen2012-02-092-2/+9
| | | | it's used in older csih.
* *** empty log message ***Corinna Vinschen2012-02-092-2/+2
|
* * dtable.cc (dtable::init_std_file_from_handle): Reinstate opening tty handlesChristopher Faylor2012-02-093-2/+7
| | | | with O_RDWR permissions.
* * thread.cc (__pthread_cond_wait_init): New static function replacingCorinna Vinschen2012-02-082-5/+21
| | | | | | | | | __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).
* * include/sys/wait.h: Remove C++ inline functions for `union wait'. For C++Christopher Faylor2012-02-082-16/+16
| | | | | use `void *' as __wait_status_ptr_t instead. This is less type safe but fixes compile error on `wait(NULL)'. Remove extra `;'.
* * sigproc.cc (child_info_fork::abort): Call TerminateProcess ratherCorinna Vinschen2012-02-082-2/+7
| | | | than ExitProcess.
* Implement Intel Transactional Synchronization ExtensionsH.J. Lu2012-02-082-0/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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.
* * uinfo.cc (cygheap_user::env_userprofile): Simplify since networkCorinna Vinschen2012-02-082-9/+6
| | | | drives are not supported here.
* * uinfo.cc (cygheap_user::env_userprofile): Convert nativeCorinna Vinschen2012-02-082-1/+14
| | | | userprofile path returned from get_registry_hive_path to Win32 path.
* * dll_init.cc: Throughout, drop usage of modname in favor of name.Corinna Vinschen2012-02-083-50/+37
| | | | | | | (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.
* * dll_init.cc (dll_list::alloc): Add DLL name to fabort output. FixCorinna Vinschen2012-02-082-8/+13
| | | | fabort string in case of bss start.
* * include/sys/sysmacros.h: Include sys/types.h.Corinna Vinschen2012-02-082-1/+7
|
* * faq-using.xml (faq.using.sshd-in-domain): Document autoload errorCorinna Vinschen2012-02-082-2/+18
| | | | | 1114 when loading user32.dll as potential problem when not using a domain service account.
* * mount.cc (mount_info::create_root_entry): Fix format specifier inCorinna Vinschen2012-02-072-2/+7
| | | | api_fatal message.
* * include/process.h: Move here from include/cygwin subdir.Corinna Vinschen2012-02-075-3/+11
| | | | | | | * exec.cc: Change include of process.h to reflect the fact that it's now back in include. * spawn.cc: Ditto. * syscalls.cc: Ditto.
* * cygheap.cc (init_cygheap::manage_console_count): Delete.Christopher Faylor2012-02-079-35/+49
| | | | | | | | | | | | | | | | | | | * 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.
* * include/cygwin/version.h: Bump CYGWIN_VERSION_DLL_MINOR to 11.Christopher Faylor2012-02-072-1/+5
|
* * libc/include/inttypes.h: Redefine pointer type macros.Corinna Vinschen2012-02-072-8/+12
|
* * new-features.sgml (ov-new1.7.10): Fix typo.Corinna Vinschen2012-02-052-1/+5
|
* * legal.sgml: Fix copyright.Corinna Vinschen2012-02-052-1/+5
|
* *** empty log message ***Corinna Vinschen2012-02-051-17/+12
|
* * setup2.sgml: Fix more typos.Corinna Vinschen2012-02-043-2/+7
| | | | * setup-net.sgml: Ditto.
* * utils.sgml: Fix typos.Corinna Vinschen2012-02-042-7/+11
|
* * faq-using.xml: Fix typos.Corinna Vinschen2012-02-046-17/+20
| | | | | | | | * ntsec.sgml: Ditto. * pathnames.sgml: Ditto. * setup2.sgml: Ditto. * setup-net.sgml: Ditto. (setup-dir): Drop paragraph on Unix/DOS file mode.
* Add support to GDB for the Renesas rl78 architecture.Kevin Buettner2012-02-042-0/+80
|
* * grp.cc (pwdgrp::parse_group): Convert grp from macro to reference.Corinna Vinschen2012-02-033-6/+10
| | | | * passwd.cc (pwdgrp::parse_passwd): Ditto for res.
* * syscalls.cc (close_all_files): Use cygheap_fdget to manipulate fhandler. UseChristopher Faylor2012-02-022-14/+19
| | | | debug_only_printf.