07a6b9dd22* cygtls.cc (dll_cmp): New comparison function for bsearch. (well_known_dlls): New array containing well-known DLLs. (_cygtls::call2): Add code for BLODA detection. * net.cc (fdsock): Ditto.
Corinna Vinschen
2012-02-27 11:55:27 +0000
d723fb604dgas/ * config/tc-crx.c: Include bfd_stdint.h. (getconstant): Remove irrelevant comment. Don't fail due to sign-extension of int mask. (check_range): Rewrite using unsigned arithmetic throughout. opcodes/ * crx-dis.c (print_arg): Mask constant to 32 bits. * crx-opc.c (cst4_map): Use int array. include/opcode/ * crx.h (cst4_map): Update declaration.
Alan Modra
2012-02-27 06:37:38 +0000
97ad248f0c* environ.cc (enum settings): Add setbool. Rename justset to setdword to avoid future problems. (struct parse_thing): Change all justset to setbool for bool variables. (parse_options): Add a case for setbool setting for bool variables since justset (now setdword) always writes a DWORD value, thus potentially overwriting adjacent memory locations. * external.cc (cygwin_internal): Drop extern declaration.
Corinna Vinschen
2012-02-26 15:47:43 +0000
b0af77452c* environ.cc (dos_file_warning): Drop declaration. (ignore_case_with_glob): Ditto. (allow_winsymlinks): Ditto. (reset_com): Move definition to globals.cc. (struct parse_thing): Add "detect_bloda" option. * fhandler_serial.cc (fhandler_serial::open): Drop (incorrect) declaration of reset_com. * globals.cc (ignore_case_with_glob): Move definition into C++-only block. (dos_file_warning): Define. (allow_winsymlinks): Define. (reset_com): Define. (detect_bloda): Define. * path.cc (dos_file_warning): Drop definition here. (allow_winsymlinks): Drop definition here.
Corinna Vinschen
2012-02-26 14:01:32 +0000
dbf576fd86* flock.cc (LOCK_DIR_NAME_FMT): Define. (LOCK_DIR_NAME_LEN): Define. (LOCK_DIR_NAME_DEV_OFF): Define. (LOCK_DIR_NAME_INO_OFF): Define. (LOCK_OBJ_NAME_FMT): Define. Add comment. (class lockf_t): Use bitsize-explicit types. Declare from_obj_name, (class inode_t): Make use, unuse and inuse methods public. Add a lock argument to get method declaration. (inode_t::get): Add lock argument. Only lock node if lock arg is true. (inode_t::inode_t): Use LOCK_DIR_NAME_FMT as format string. (lockf_t::from_obj_name): New method to generate lockf_t content from lock event object basename. (inode_t::get_all_locks_list): Just call from_obj_name here and copy result into final lockf_t. (create_lock_obj_attr): Use LOCK_OBJ_NAME_FMT as format string. (create_lock_in_parent): New thread function to create lockf_t structure in parent process. (delete_lock_in_parent): New thread function to reap stale BSD locks in parent process. (lockf_t::create_lock_obj): Try to duplicate lock object handle into parent process and call create_lock_in_parent as parent remote thread. (lockf_t::del_lock_obj): Call delete_lock_in_parent as parent remote thread. (fhandler_disk_file::lock): Add lock arg to inode_t::get call.
Corinna Vinschen
2012-02-26 12:34:17 +0000
3a90360cf0Improve TLS support on TILE-Gx/TILEPro: - Add support for TLS LE references. - Support linker optimization of TLS references. - Delete relocations of GOT/tp relative offsets beyond 32-bits.
Walter Lee
2012-02-25 22:24:21 +0000
704bb69dcb* include/cygwin/version.h (CYGWIN_VERSION_DLL_MINOR): Bump to 12.
Christopher Faylor
2012-02-25 17:32:38 +0000
a1e89eba9b* new-features.sgml (ov-new1.7.11): Add two more changes to the list.
Corinna Vinschen
2012-02-25 10:51:32 +0000
de6ebe0e8b2012-02-21 Joern Rennecke <joern.rennecke@embecosm.com>
Jeff Johnston
2012-02-21 22:40:27 +0000
b07cfbff062012-02-21 Jeremy Bennett <jeremy.bennett@embecosm.com> Alan Lehotsky <apl@alum.mit.edu> Joern Rennecke <joern.rennecke@embecosm.com>
Jeff Johnston
2012-02-21 22:37:47 +0000
9edde1d2c42012-02-21 Jeremy Bennett <jeremy.bennett@embecosm.com> Alan Lehotsky <apl@alum.mit.edu> Joern Rennecke <joern.rennecke@embecosm.com>
Jeff Johnston
2012-02-21 22:34:31 +0000
801bf9f272* 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.
Corinna Vinschen
2012-02-21 17:03:51 +0000
3c53eaeb5b* 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.
Corinna Vinschen
2012-02-20 14:08:37 +0000
2196614e3d* 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.
Corinna Vinschen
2012-02-17 17:34:01 +0000
1cb1472404* 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.
Corinna Vinschen
2012-02-17 14:26:18 +0000
e86c278998* mount.cc (get_disk_type): Drop unneeded toupper call. Convert case constants to wide chars.
Corinna Vinschen
2012-02-17 14:17:12 +0000
9de0461985* 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.
Corinna Vinschen
2012-02-16 11:02:05 +0000
fb97e87479* 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.
Corinna Vinschen
2012-02-15 21:34:06 +0000
5e7c84e554* dtable.cc (dtable::init_std_file_from_handle): Use tmp_pathbuf for name. (handle_to_fn): Ditto for device. Fix size in QueryDosDeviceW call.
Corinna Vinschen
2012-02-15 16:11:36 +0000
a0f4e7d3f1* 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.
Christopher Faylor
2012-02-15 15:33:56 +0000
5eb802f8ed* 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.
Corinna Vinschen
2012-02-15 14:43:07 +0000
1423a93374.
Christopher Faylor
2012-02-14 20:04:59 +0000
4eb5175d90* 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.
Christopher Faylor
2012-02-14 19:08:20 +0000
5401796acf* 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.
Corinna Vinschen
2012-02-14 15:22:13 +0000
ab9108200f* transport_pipes.cc (transport_layer_pipes::transport_layer_pipes): Always use cygwin_internal to fetch installation key.
Corinna Vinschen
2012-02-14 14:12:11 +0000
a8c8f19a43* flock.cc (lf_setlock): Don't close waited lock object handle before we own the node lock. Fix comment.
Corinna Vinschen
2012-02-14 13:55:45 +0000
8895d962d5* 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.
Corinna Vinschen
2012-02-14 11:27:43 +0000
78b5f9545d* thread.cc: Drop including unused headers.
Corinna Vinschen
2012-02-14 09:45:21 +0000
722c69734d* 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.
Corinna Vinschen
2012-02-13 15:23:03 +0000
e633eaec08* include/pthread.h: Include time.h as required by POSIX.
Yaakov Selkowitz
2012-02-13 01:46:46 +0000
e52a43f101* 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.
Christopher Faylor
2012-02-12 22:43:33 +0000
ce48510394* 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.
Corinna Vinschen
2012-02-11 17:37:02 +0000
793371f584* miscfuncs.cc (DEFAULT_STACKSIZE): Set to 1 Megs. Drop comment about RLIMIT_STACK.
Corinna Vinschen
2012-02-10 20:56:22 +0000
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.
Christopher Faylor
2012-02-10 16:43:36 +0000
93b18fd232* syscalls.cc (open): Semi-revert (?) to allowing open of a tty to become controlling tty if there is no controlling tty.
Christopher Faylor
2012-02-10 16:33:53 +0000
3b20fd9324* exceptions.cc (setup_handler): Reduce system_printf to sigproc_printf since it is for a transient situation which will undoubtedly be handled.
Christopher Faylor
2012-02-09 16:05:23 +0000
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.
Corinna Vinschen
2012-02-09 15:23:17 +0000
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.
Corinna Vinschen
2012-02-09 14:41:21 +0000
e59d6a1469* libc/sys/rtems/sys/utime.h: Include <sys/types.h> to provide a definition of time_h.
Corinna Vinschen
2012-02-09 13:05:15 +0000
06f46dc379* dtable.cc (dtable::init_std_file_from_handle): Reinstate opening tty handles with O_RDWR permissions.
Christopher Faylor
2012-02-09 01:20:55 +0000
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).
Corinna Vinschen
2012-02-08 19:58:37 +0000
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 `;'.
Christopher Faylor
2012-02-08 19:51:13 +0000
bb2b641c13* sigproc.cc (child_info_fork::abort): Call TerminateProcess rather than ExitProcess.
Corinna Vinschen
2012-02-08 19:43:14 +0000
ea96df1d4cImplement Intel Transactional Synchronization Extensions
H.J. Lu
2012-02-08 18:20:39 +0000
7dc730e8ee* uinfo.cc (cygheap_user::env_userprofile): Simplify since network drives are not supported here.
Corinna Vinschen
2012-02-08 17:51:34 +0000
a7a03a3920* uinfo.cc (cygheap_user::env_userprofile): Convert native userprofile path returned from get_registry_hive_path to Win32 path.
Corinna Vinschen
2012-02-08 17:45:43 +0000
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.
Corinna Vinschen
2012-02-08 17:35:02 +0000
25e67cd634* dll_init.cc (dll_list::alloc): Add DLL name to fabort output. Fix fabort string in case of bss start.
Corinna Vinschen
2012-02-08 14:41:51 +0000
9553860f41* include/sys/sysmacros.h: Include sys/types.h.
Corinna Vinschen
2012-02-08 14:08:58 +0000
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.
Corinna Vinschen
2012-02-08 10:04:16 +0000
b23ef0bc0a* mount.cc (mount_info::create_root_entry): Fix format specifier in api_fatal message.
Corinna Vinschen
2012-02-07 17:34:29 +0000
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.
Corinna Vinschen
2012-02-07 17:15:07 +0000
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.
Christopher Faylor
2012-02-07 16:54:14 +0000
a72ada654e* include/cygwin/version.h: Bump CYGWIN_VERSION_DLL_MINOR to 11.
Christopher Faylor
2012-02-07 16:50:19 +0000
4423a7671dAdd support to GDB for the Renesas rl78 architecture.
Kevin Buettner
2012-02-04 06:05:50 +0000
02f63d4720* grp.cc (pwdgrp::parse_group): Convert grp from macro to reference. * passwd.cc (pwdgrp::parse_passwd): Ditto for res.
Corinna Vinschen
2012-02-03 12:26:08 +0000
ab1fb53505* syscalls.cc (close_all_files): Use cygheap_fdget to manipulate fhandler. Use debug_only_printf.
Christopher Faylor
2012-02-02 16:58:13 +0000
b2ec6677edFix 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.
Corinna Vinschen
2012-02-02 13:58:20 +0000
002a1b18e6More performance enhancements and POSIX compliance corrections.
Keith Marshall
2012-02-01 21:26:39 +0000
89c1003e78Grr. Fix another typo.
Christopher Faylor
2012-02-01 18:28:34 +0000
29b7448d58* fcntl.cc (fcntl64): Add introductory debug statement. Call dup3 directory via dtable method to avoid over-incrementing refcnt.
Christopher Faylor
2012-02-01 17:38:07 +0000
4c68bf65c8fix typo
Christopher Faylor
2012-02-01 05:43:30 +0000
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.
Christopher Faylor
2012-02-01 05:27:42 +0000
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.
Christopher Faylor
2012-01-31 23:52:52 +0000
37fbb8a741Move ELF header entries to elf/ChangeLog
H.J. Lu
2012-01-31 20:00:16 +0000
44e1d662cb* strace.cc (proc_child): Don't right-shift exit value. (main): Call ExitProcess() to exit exactly the same way as any straced child.
Christopher Faylor
2012-01-31 18:06:51 +0000
fa5f82b286Support arch-dependent fill
H.J. Lu
2012-01-31 17:54:39 +0000
54c743c8f8* tzset.c: Throughout use wide characters to be locale agnostic. (main): Call setlocale.
Corinna Vinschen
2012-01-29 12:06:23 +0000