5b495afe51* arm/crt0.s: Support 0 heap base response from HeapInfo syscall.
Nick Clifton
2011-09-29 11:23:29 +0000
29deef8805* arm/arm.h (HAVE_CALL_INDIRECT): Define. * arm/crt0.S (indirect_call): New macro. Encodes indirect function calls. Does not use blx for pre-armv5 targets.
Nick Clifton
2011-09-29 11:06:49 +0000
8a91ddb367merge from gcc
DJ Delorie
2011-09-28 20:01:37 +0000
6a534371famerge from gcc
DJ Delorie
2011-09-27 00:01:35 +0000
71c56d78b5merge from gcc
DJ Delorie
2011-09-26 23:04:59 +0000
9a2873437emerge from gcc
DJ Delorie
2011-09-23 22:21:28 +0000
7661a752caAnnotate sparc objects with cpu hardware capabilities used.
David S. Miller
2011-09-21 20:49:15 +0000
36b6320736* tty.cc (grantpt): Check for valid fd. (unlockpt): Ditto.
Christopher Faylor
2011-09-21 04:33:57 +0000
7c14eb0589Check if a symbol is hidden by linker script.
H.J. Lu
2011-09-16 01:15:19 +0000
02a7f96ef7* strace.cc (attach_process): Try to turn off DEBUG_ONLY_THIS_PROCESS if Attaching to a process with the trace-children flag set. (handle_output_debug_string): Apparently we don't need to explicitly attach for debugging when a child process starts * Makefile.in (strace.exe): Link with ntdll
Jon TURNEY
2011-09-15 16:49:51 +0000
c9925bf4972011-09-08 Jeff Johnston <jjohnstn@redhat.com>
Jeff Johnston
2011-09-08 16:18:23 +0000
35e8bb2b7e* net.cc (cygwin_getsockopt): Drop erroneous double conversion of error code returned by SOL_SOCKET/SO_ERROR. Fix error handling.
Corinna Vinschen
2011-09-02 09:52:08 +0000
e2d88014ac* dlfcn.cc (gfpod_helper): Helper function to search DLL using a given DLL name. Change default search path to allow /usr/bin. (get_full_path_of_dll): Find DLLs even if the caller used a ".so" suffix or a "lib" prefix for the DLL.
Corinna Vinschen
2011-09-01 08:17:07 +0000
2e560a092c* flock.cc (LOCK_OBJ_NAME_LEN): Change to accommodate extra lf_ver field. (class lockf_t): Add lf_ver field. (lockf_t::lockf_t): Initialize lf_ver to 0. (class inode_t): Change i_wait to i_cnt. Change comment to explain change in usage. (inode_t:use): Rename from wait. Make private. (inode_t::unuse): Rename from unwait. Make private. (inode_t::inuse): Rename from waiting. Make private. (inode_t::notused): New public method to set use count to 0. (inode_t::unlock_and_remove): New method to unlock node and to delete it if it's unused in current process. (fhandler_base::del_my_locks): Drop global list lock. Drop variable no_locks_left. Simpify unlocking and removing node by just calling unlock_and_remove. (fixup_lockf_after_exec): Call notused method for each node. (inode_t::get): Call use method. Lock node only if outside of list lock. (inode_t::get_all_locks_list): Accommodate additional lf_ver field when creating lockf_t structure from object name. (lockf_t::create_lock_obj_attr): Accommodate additional lf_ver field when creating object name from lockf_t structure. Handle STATUS_OBJECT_NAME_COLLISION gracefully in F_POSIX case as well. Change comment accordingly. Increment lf_ver field rather than high byte of lf_wid field. Simplify comment. (fhandler_disk_file::lock): Always call unlock_and_remove rather than just UNLOCK on node. (lf_setlock): Move ret definition where it's used. Drop unneeded tests for obj being not NULL. Only check for deadlock condition if the lock we're trying to establish is a POSIX lock. Revamp object collecting and wait code to cover all cases. Don't return with EDEADLK if blocking process can't be opened for synchronization in F_POSIX case, rather just wait like in F_FLOCK case. Change system_printf to debug_printf in that case. Only run WaitForMultipleObjects with high priority. Close obj and process handles prior to locking node.
Corinna Vinschen
2011-08-29 13:50:25 +0000
36ccb620ecDon't expose implementation detail for opaque DIRENT structures.
Keith Marshall
2011-08-27 20:16:47 +0000
f4ec874328* fhandler.cc (fhandler_base::open): Fix typo in comment. (fhandler_base::close): Move call to del_my_locks from here... * fhandler_disk_file.cc (fhandler_disk_file::open): ...to here. * flock.cc (struct lockfattr_t): New type. (lockf_t::close_lock_obj): New method, use throughout. (lockf_t::create_lock_obj_attr): New method. (lockf_t::create_lock_obj): Use create_lock_obj_attr method. Handle STATUS_OBJECT_NAME_COLLISION in F_FLOCK case gracefully. Add lengthy comments to explain why and how. (lockf_t::open_lock_obj): Use create_lock_obj_attr method. (lockf_t::del_lock_obj): Call NtSetEvent rather than SetEvent for symmetry. (fhandler_disk_file::lock): Define n only where it's used. Call need_fork_fixup only if call was successful. Handle EINTR and ECANCELED return values from lf_setlock. (lf_setlock): Drop WAIT_UNLOCKED and WAIT_PROC_EXITED. Don't wait for event object handle count to become <= 1 in F_LOCK case. Simplify WFMO return value handling. Don't handle signal and cancel events here; just return with appropriate error code instead. (lf_getblock): Ignore locks for which the handle can't be opened. Use IsEventSignalled. * ntdll.h (STATUS_INVALID_INFO_CLASS): Undef if defined elsewhere to make sure the definition is casted to NTSTATUS. (STATUS_INVALID_HANDLE): Define and ditto. (STATUS_OBJECT_NAME_COLLISION): Define. (NtSetEvent): Declare.
Corinna Vinschen
2011-08-27 20:01:29 +0000
2691168e98* cygthread.cc (cygthread::simplestub): Notify that the thread has detached also in freerange thread case.
Christopher Faylor
2011-08-25 19:37:39 +0000
603ef545bd* fhandler.cc (fhandler_base::open): Never open files with FILE_OVERWITE/FILE_OVERWRITE_IF. Set file size to 0 explicitely if regular, existing file has been opened for writing with O_TRUNC flag set. Explain why.
Corinna Vinschen
2011-08-25 13:35:43 +0000
929a140824* thread.cc (pthread::pthread): Drop setting parent_tls. Call sigprocmask to copy parent thread signal mask into new parent_sigmask member. (pthread::thread_init_wrapper): Copy _my_tls.sigmask from new parent_sigmask member. * thread.h (class pthread): Drop parent_tls. Add parent_sigmask.
Corinna Vinschen
2011-08-24 15:18:17 +0000
8323a37d5d* thread.cc (pthread::exit): Create dummy tls structure to hold _main_tls contents if we've asked _main_tls to exit.
Christopher Faylor
2011-08-24 14:23:38 +0000
b84aabf6952011-08-23 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
Chris Sutcliffe
2011-08-23 22:59:35 +0000
99724a32582011-08-23 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
Chris Sutcliffe
2011-08-23 22:27:35 +0000
58ef30a4e7* poll.cc (poll): Don't return prematurely if invalid fds have been encountered. Enforce timeout set to 0 in case of invalid fds. Take number of invalid fds into account when returning.
Corinna Vinschen
2011-08-23 14:05:04 +0000
247caa48ea* fhandler_socket.cc (fhandler_socket::send_internal): Fix setting nosignal flag. Convert ECONNABORTED on connection-oriented socket to EPIPE, too.
Corinna Vinschen
2011-08-23 13:07:24 +0000
f71c1cdb55* fhandler_process.cc (format_process_maps): Define page protection shortcuts RO, X, and WC. Use in creating access flag string. Don't set type flag to 's' for copy-on-write pages, as on Linux.
Corinna Vinschen
2011-08-20 18:55:45 +0000
07797cc0d8* devices.h (fh_devices): Define DEV_MISC_MAJOR, DEV_MEM_MAJOR, DEV_SOUND_MAJOR. Use throughout. * fhandler_proc.cc (proc_tab): Add /proc/devices and /proc/misc virtual files. (format_proc_devices): New function. (format_proc_misc): New function.
Yaakov Selkowitz
2011-08-19 20:05:15 +0000
c8a66289e4* dtable.cc: Mark some const variables as static. * environ.cc (conv_start_chars): Move to shared cygwin region and initialize at compile time. (match_first_char): New generic function for querying conv_start_chars. (posify_maybe): Rename from posify. (environ_init): Remove conv_envvars initialization. Don't check conv_start_chars, just allow posify_maybe to make the decision. * fhandler_console.cc (__vt100_conv): Fix formatting. Mark as const.
Christopher Faylor
2011-08-19 18:19:22 +0000
c0fabb9f3dInclude the <root>/cpu/ dir in GDB releases
Joel Brobecker
2011-08-19 15:48:36 +0000
4fb059e5bb* iq2000/sim.ld (.gcc_except_table): Include .gcc_except_table.foo sections as well.
Nick Clifton
2011-08-19 14:57:50 +0000
e8fdf15a75* libc/include/process.h: Remove exec family function declarations. Add comment. * libc/include/sys/unistd.h (execlpe): Declare for Cygwin.
Corinna Vinschen
2011-08-19 14:29:34 +0000
6648762916* libc/time/mktime.c (validate_structure): Account for tm_mon possibly being given as negative. (mktime): Set tm_isdst=0 when !daylight.
Corinna Vinschen
2011-08-19 14:14:18 +0000
aeeaae457b* fhandler_console.cc (fhandler_console::read): Recognize backspace key using the device independent key code, rather than the device dependent scan code.
Corinna Vinschen
2011-08-19 13:10:01 +0000
28c2fbeed8* sysv_shm.cc (ACCESSPERMS): Remove to fix redefined warning, as this is now defined in <sys/stat.h>.
Yaakov Selkowitz
2011-08-19 01:41:49 +0000
6072b95eeb* dcrt0.cc (dll_crt0_0): Remove unneeded __stdcall decoration. * init.cc: Reflect change to dll_crt0_0 in declaration.
Christopher Faylor
2011-08-18 15:59:16 +0000
6bc64eac26* autoload.cc (GetModuleHandleExW): Define. * dlfcn.cc: Throughout mark exported symbols as extern "C". (dlopen): Unignore flags argument. Define ret to NULL. Fix typo in comment. Support Glibc flags RTLD_NOLOAD and RTLD_NODELETE. * include/dlfcn.h: Clean up comments. (RTLD_NODELETE): Define. (RTLD_NOLOAD): Define. (RTLD_DEEPBIND): Define.
Corinna Vinschen
2011-08-16 14:44:26 +0000
56c387b1b3* pipe.cc (pipe): Just call _pipe with O_BINARY mode. Move code to generate normalized pathnames from here... (_pipe): ...to here.
Corinna Vinschen
2011-08-15 16:05:13 +0000
a2ffbf1e80Merge from gcc:
Yao Qi
2011-08-14 12:28:16 +0000
f8b8b1be3c* miscfuncs.cc (CreatePipeOverlapped): New function. (ReadPipeOverlapped): Ditto. (WritePipeOverlapped): Ditto. * miscfuncs.h: Declare new functions. * pinfo.cc (commune_process): Call WritePipeOverlapped instead of WriteFile. Set timeout to 1 sec. (_pinfo::commune_request): Call ReadPipeOverlapped instead of ReadFile. Set timeout to 0.5 secs. * sigproc.cc (sig_send): Create pipe using CreatePipeOverlapped.
Corinna Vinschen
2011-08-13 10:28:15 +0000
41178da533Add R_X86_64_RELATIVE64.
H.J. Lu
2011-08-12 20:33:34 +0000
3de2809073* new-features.sgml (ov-new1.7.10): Document large address awareness of heap and new way to set the default heap size per executable. * setup2.sgml (setup-maxmem): Revamp to explain new method of allocating more heap on a per-executable basis. Drop outdated stuff. Keep shortened description of heap_chunk_in_mb as note.
Corinna Vinschen
2011-08-12 13:51:21 +0000
1f08558f14* fhandler.h (fhandler_proc::opendir): Declare. (fhandler_proc::closedir): Declare. * fhandler_proc.cc (fhandler_proc::opendir): New method. Fetch list of active processes here once to avoid potential duplicates. (fhandler_proc::closedir): New method.
Corinna Vinschen
2011-08-12 12:31:08 +0000
6e2c582323* fhandler_proc.cc (fhandler_proc::get_proc_fhandler): Don't allow to access process info by using the Windows PID. * fhandler_process.cc (fhandler_process::fstat): Ditto. (fhandler_process::fill_filebuf): Ditto.
Corinna Vinschen
2011-08-11 16:43:26 +0000
3b7cd74bfd* (winpids::add): Make sure to store always a Windows PID in pidlist, even if pid is a Cygwin PID. (winpids::enum_processes): Fetch Cygwin processes from listing of shared cygwin object dir in the native NT namespace. Only if winpid is true, fetch Windows processes using an additional call to NtQuerySystemInformation.
Corinna Vinschen
2011-08-11 07:28:42 +0000
56a85b9cea* ps.cc (main): Don't overwrite process name, just attach <defunct> to it for zombie processes.
Corinna Vinschen
2011-08-10 19:52:41 +0000
d10f0e106e* fhandler_process.cc (format_process_status): Always print process name even for zombies. (get_mem_values): Fix loop fetching working set list to avoid out of memory conditions. Return all mem values set to 0 for zombies. * ntdll.h (STATUS_PROCESS_IS_TERMINATING): Define.
Corinna Vinschen
2011-08-10 13:13:09 +0000
69f8cb36d3gas/ * config/tc-mips.c (mips_set_options): Add ase_mcu. (mips_opts): Initialise ase_mcu to -1. (ISA_SUPPORTS_MCU_ASE): New macro. (MIPS_CPU_ASE_MCU): Likewise. (is_opcode_valid): Handle MCU. (macro_build, macro): Likewise. (validate_mips_insn, validate_micromips_insn): Likewise. (mips_ip): Likewise. (options): Add OPTION_MCU and OPTION_NO_MCU. (md_longopts): Add mmcu and mno-mcu. (md_parse_option): Handle OPTION_MCU and OPTION_NO_MCU. (mips_after_parse_args): Handle MCU. (s_mipsset): Likewise. (md_show_usage): Handle MCU options.
Maciej W. Rozycki
2011-08-09 15:20:03 +0000
afe817741c* heap.cc (eval_initial_heap_size): New function fetching the heap size from the LoaderFlags field in the PE/COFF header. (heap_init): Call eval_initial_heap_size rather than cygwin_shared->heap_chunk_size to fetch the initial heap size. * shared.cc (shared_info::heap_chunk_size): Remove. * shared_info.h (class shared_info): Drop heap_chunk member. (CURR_SHARED_MAGIC): Update.
Corinna Vinschen
2011-08-09 12:00:27 +0000
c29da54058* ntdll.h (STATUS_NOT_FOUND): Define. * ntea.cc (read_ea): Return correct ENOTSUP rather than EOPNOTSUPP. Handle STATUS_INVALID_DEVICE_REQUEST and STATUS_NOT_FOUND. Explain why. Convert conditional to switch statement. (write_ea): Return correct ENOTSUP rather than EOPNOTSUPP. Handle STATUS_INVALID_DEVICE_REQUEST. Convert conditional to switch statement.
Corinna Vinschen
2011-08-09 09:14:28 +0000
4ae8b410a3Fix name in last entry.
Jeff Johnston
2011-08-08 18:36:01 +0000
f0b7368c68* resource.cc (getrlimit): Just return RLIM_INFINITY in a request for RLIMIT_AS.
Corinna Vinschen
2011-08-07 19:49:08 +0000
60b55c4c18* fhandler_process.cc (format_process_maps): Actually print info about the application heap of the printed process, not of the current process.
Corinna Vinschen
2011-08-07 11:04:32 +0000
1ae8302539include/opcode/ * sparc.h: Document new format codes '4', '5', and '('. (OPF_LOW4, RS3): New macros. opcodes/ * sparc-dis.c (v9a_ast_reg_names): Add "cps". (X_RS3): New macro. (print_insn_sparc): Handle '4', '5', and '(' format codes. Accept %asr numbers below 28. * sparc-opc.c (sparc_opcodes): Add entries for HPC and VIS3 instructions. gas/ * config/tc-sparc.c (v9a_asr_table): Add "cps". (sparc_ip): Handle '4', '5' and '(' format codes. gas/testsuite * gas/sparc/hpcvis3.d: New test. * gas/sparc/hpcvis3.s: New test source. * gas/sparc/sparc.exp: Run new test.
David S. Miller
2011-08-05 16:52:48 +0000
bfc071dbce* cygwin.din (clock_nanosleep): Export. * posix.sgml (std-notimpl): Move clock_nanosleep from here... (std-susv4): ... to here. (std-notes): Note limitations of clock_nanosleep. * signal.cc (clock_nanosleep): Renamed from nanosleep, adding clock_id and flags arguments and changing return values throughout. Improve checks for illegal rqtp values. Add support for CLOCK_MONOTONIC and TIMER_ABSTIME. (nanosleep): Rewrite in terms of clock_nanosleep. (sleep): Ditto. (usleep): Ditto. * thread.cc: Mark clock_nanosleep in list of cancellation points. * include/cygwin/version.h (CYGWIN_VERSION_API_MINOR): Bump.
Yaakov Selkowitz
2011-08-03 19:17:02 +0000
2964913236* dll_init.cc: Use fabort in favor of api_fatal and fork_info->abort where appropriate throughout. (fabort): Define. (dll_list::topsort): Don't print sorting information. Fix formatting. (dll_list::topsort_visit): Fix formatting. (dll_list::load_after_fork_impl): Perform comment fixups. * sigproc.cc (child_info_fork::abort): (for now?) Always print cause of fork failure. * include/sys/strace.h (strace_vprintf): Remove _STRACE_NOTALL when printing. We really do want to see this.
Christopher Faylor
2011-08-03 17:58:59 +0000
f0968c1e7e* cygtls.h (struct _local_storage): Add cw_timer member. * cygtls.cc (_cygtls::init_thread): Initialize locals.cw_timer. (_cygtls::fixup_after_fork): Ditto. * tlsoffsets.h: Regenerate. * ntdll.h (enum _TIMER_INFORMATION_CLASS): Define. (struct _TIMER_BASIC_INFORMATION): Define. (NtQueryTimer): Declare function. * thread.h (cancelable_wait): Change timeout argument to PLARGE_INTEGER and provide NULL default. (fast_mutex::lock): Adjust accordingly. (pthread_cond::wait): Change timeout argument to PLARGE_INTEGER and default to NULL. * thread.cc (cancelable_wait): Change timeout argument to PLARGE_INTEGER. Initialize _cygtls.locals.cw_timer if needed. Use NT waitable timers for handling timeout. Return remaining time to timeout argument if timeout was relative. (pthread_cond::wait): Change timeout argument to PLARGE_INTEGER. Adjust to change in cancelable_wait. (pthread_mutex::lock): Adjust to change in cancelable_wait. (pthread_spinlock::lock): Ditto. (pthread::join): Ditto. (__pthread_cond_dowait): Change waitlength argument to PLARGE_INTEGER. Adjust to changes in cancelable_wait and pthread_cond::wait. (pthread_cond_timedwait): Adjust to change in __pthread_cond_dowait. (pthread_cond_wait): Ditto. (semaphore::_timedwait): Adjust to change in cancelable_wait. (semaphore::_wait): Ditto. * exceptions.cc (handle_sigsuspend): Ditto. * signal.cc (nanosleep): Ditto. * wait.cc (wait4): Ditto. Fix copyright dates. * times.cc (FACTOR, NSPERSEC): Move from here... * hires.h (FACTOR, NSPERSEC): ...to here.
Yaakov Selkowitz
2011-08-03 16:40:48 +0000
529aa781b62011-08-01 Sebastian Huber <sebastian.huber@embedded-brains.de>
Joel Sherrill
2011-08-01 17:22:18 +0000
d32e0bfc08* syscalls.cc (faccessat): Fix parens in flag expression when calling build_fh_name.
Corinna Vinschen
2011-08-01 17:01:38 +0000
ab0887572f* dll_init.cc (dll_list::load_after_fork_impl): Add a hint to an error message.
Christopher Faylor
2011-08-01 13:11:37 +0000
dc3dc49831* sigproc.cc (pending_signals::pending): Define new function. (sig_dispatch_pending): Avoid calling sig_send if there are no pending signals.
Christopher Faylor
2011-08-01 00:02:04 +0000
c114604529* fhandler.h (class fhandler_dev_mem): Remove dup method declaration. * fhandler_clipboard.cc (fhandler_dev_clipboard::dup): Accommodate the fact that the entire fhandler gets copied over to the child in operator =. * fhandler_floppy.cc (fhandler_dev_floppy::dup): Ditto. * fhandler_raw.cc (fhandler_dev_raw::dup): Ditto. * fhandler_serial.cc (fhandler_serial::dup): Ditto. * fhandler_socket.cc (fhandler_socket::dup): Ditto. * fhandler_virtual.cc (fhandler_virtual::dup): Ditto. * fhandler_mem.cc (fhandler_dev_mem::dup): Ditto. Remove entirely.
Corinna Vinschen
2011-07-31 12:37:52 +0000
6c6fe41781add missing entry
Christopher Faylor
2011-07-30 21:09:20 +0000
53ad6f1394* cygthread.cc (cygthread::async_create): Define new function. * cygthread.h (cygthread::create): Use correct regparm. (cygthread::standalone): Delete from class and from all constructors. (cygthread::cygthread): Use three only arguments for detached threads, and start the thread via QueueUserAPC/async_create. * dcrt0.cc (dll_crt0_0): Remove handling for wincap.has_buggy_thread_startup. (dll_crt0_1): Ditto. * wincap.cc: Ditto throughout. * wincap.h: Ditto.
Christopher Faylor
2011-07-30 20:50:23 +0000