42faed4128* thread.h (class pthread): Add bool member canceled. * thread.cc (pthread::pthread): Initialize canceled to false. (pthread::cancel): Set canceled before setting cancel_event. (pthread::testcancel): Check for canceled. Only wait for cancel_event if canceled is true. Explain why. (pthread::_fixup_after_fork): Set canceled to false.
Corinna Vinschen
2011-04-30 10:20:25 +0000
206a6ee9c8* posix_ipc.cc (ipc_cond_timedwait): Also wait for pthread's cancel_event, if any. Call pthread_testcancel if cancel_event has been signalled.
Corinna Vinschen
2011-04-28 14:44:24 +0000
72a19a697eMerge from GCC:
Joseph Myers
2011-04-28 13:26:23 +0000
4819e64bb8* configure.ac: Separate cases disabling Java and Java libraries from general case over targets. * configure: Regenerate.
Joseph Myers
2011-04-28 13:24:52 +0000
86bf572ef0* cygerrno.h (geterrno_from_nt_status): Declare. * errno.cc (geterrno_from_nt_status): Define. * flock.cc: Fix copyright dates. * ntdll.h (enum _TIMER_TYPE): Define. (PTIMER_APC_ROUTINE): Define. (NtCancelTimer): Declare. (NtCreateTimer): Declare. (NtSetTimer): Declare. * posix_ipc.cc (ipc_cond_timedwait): Rewrite to make interruptible and restartable. Call pthread_testcancel in case of timeout to enable pthread_cancel on waiting thread. Replace WFMO timeout with waiting for a waitable timer. Explain why. Replace single call to WFMO with two calls, one for the event, one for the mutex. Don't lock mutex in case of error. (ipc_cond_signal): Make void function. (ipc_cond_close): Ditto. (_mq_send): Immediately return -1 in case of error from ipc_cond_timedwait. (_mq_receive): Ditto.
Corinna Vinschen
2011-04-28 12:13:41 +0000
6d49e852e1PR ld/12365 PR ld/12696 include/ * bfdlink.h (ENUM_BITFIELD): Define. (struct bfd_link_hash_entry): Make "type" a bitfield. Add "non_ir_ref". (struct bfd_link_callbacks <notice>): Pass bfd_link_hash_entry pointer rather than "name". bfd/ * coff-aux.c (coff_m68k_aux_link_add_one_symbol): Update "notice" call. * linker.c (_bfd_link_hash_newfunc): Clear bitfields. (_bfd_generic_link_add_one_symbol): Update "notice" call. * elflink.c (_bfd_elf_merge_symbol): Don't skip weak redefs when it is a redef of an IR symbol in a real BFD. ld/ * ldmain.c (notice): Delete "name" param, add "h". * plugin.c (plugin_notice): Likewise. Set non_ir_ref. Handle redefinitions of IR symbols in real BFDs. (plugin_multiple_definition, plugin_multiple_common): Delete. (non_ironly_hash, init_non_ironly_hash): Delete. (is_visible_from_outside): Traverse entry_symbol chain. (get_symbols): Use non_ir_ref flag rather than hash lookup.
Alan Modra
2011-04-24 10:02:11 +0000
cca89be9ad* registry.cc (reg_key::get_dword): Rename from get_int, use DWORD rather than int type. Avoid compiler warning. (reg_key::set_dword): Rename from set_int, use DWORD rather than int type. Change return type to NTSTATUS. (reg_key::get_string): Change return type to NTSTATUS. (reg_key::set_string): Ditto. * registry.h: Accommodate above changes. * environ.cc (regopt): Test return value of reg_key::get_string as NTSTATUS. * sched.cc (sched_rr_get_interval): Change local int vars to DWORD. Call reg_key::get_dword instead of reg_key::get_int. * shared.cc (init_installation_root): Test return value of reg_key::get_string as NTSTATUS. (shared_info::heap_slop_size): Call reg_key::get_dword rather than reg_key::get_int. (shared_info::heap_chunk_size): Ditto. * shared_info.h (CURR_SHARED_MAGIC): Update. (class shared_info): Change heap_chunk and heap_slop to DWORD values.
Corinna Vinschen
2011-04-23 13:15:46 +0000
8ba4144d502011-04-21 Chris Sutcliffe <ir0nh34d@users.sf.net>
Chris Sutcliffe
2011-04-22 00:10:07 +0000
a491557a552011-04-21 Chris Sutcliffe <ir0nh34d@users.sf.net>
Chris Sutcliffe
2011-04-21 23:57:10 +0000
a0307f9914* cygtls.cc (_cygtls::init_thread): Drop setting locals.process_logmask. * cygtls.cc (_cygtls::remove): Always free mallocated TLS storage on thread exit. Drop freeing locals.process_ident. * cygtls.h (struct _local_storage): Remove syslog-related members. * syslog.cc (syslog_globals): New static storage for global syslog settings. Use throughout instead of _my_tls.locals. (openlog): Set new syslog_globals.process_ident value more carefully. * tlsoffsets.h: Regenerate.
Corinna Vinschen
2011-04-21 08:10:28 +0000
2656876fb3* include/sys/poll.h: Include signal.h to get definition of sigset_t.
Corinna Vinschen
2011-04-21 07:18:42 +0000
71c17c5402* cygheap.cc (init_cygheap::close_ctty): Avoid closing console-cttys since they don't use archetypes and this will just result in double frees. * dll_init.cc (dll_list::protect): Define. (dll_list::alloc): Guard list access. (dll_list::detach): Ditto. * dll_init.h (dll_list::protect): Declare new muto. (dll_list::guard): Define/declare function to guard list access. * fhandler_termios.cc (fhandler_termios::sigflush): Avoid SEGV in pathological condition of get_ttyp() == NULL.
Christopher Faylor
2011-04-21 00:53:55 +0000
2f9c27131f* select.cc (serial_cleanup): Make sure that device_specific_pipe is always deleted regardless of whether it has a unique thread associated with it (socket_cleanup): Ditto. (mailslot_cleanup): Ditto.
Christopher Faylor
2011-04-20 15:32:31 +0000
ee10415f27* bootstrap-lto.mk: Remove obsolete requirement.
Eric Botcazou
2011-04-20 09:27:06 +0000
12c0f2d909* devices.h: Renumber internal devices so that FH_PROCESS is part of the /proc family of virtual devices. (FH_PROC_MAX_MINOR): Define. * path.h (isproc_dev): Use FH_PROC_MAX_MINOR rather than FH_PROC.
Corinna Vinschen
2011-04-20 07:29:10 +0000
693581e4a4* select.cc (pipe_cleanup): Make sure that device_specific_pipe is always deleted regardless of whether it has a unique thread associated with it.
Christopher Faylor
2011-04-20 01:10:54 +0000
46ac7c5a4fPR ld/12365 include/ * bfdlink.h (struct bfd_link_callbacks): Modify multiple_definition and multiple_common parameters to pass in a bfd_link_hash_entry pointer rather than name,bfd etc. found in the hash entry. bfd/ * elflink.c (_bfd_elf_merge_symbol): Update multiple_common calls. * linker.c (_bfd_generic_link_add_one_symbol): Likewise. Call multiple_definition regardless of allow_multiple_definition. * simple.c (simple_dummy_multiple_definition): Update. * xcofflink.c (xcoff_link_add_symbols): Update multiple_definition calls. ld/ * ldmain.c (multiple_definition): Take a bfd_link_hash_entry pointer arg rather than "name", "obfd", "osec", "oval". Add code removed from linker.c. Hack around xcofflink.c oddity in passing NULL nbfd. (multiple_common): Similarly. * plugin.c (orig_allow_multiple_defs): Delete. (plugin_call_all_symbols_read): Don't twiddle allow_multiple_definition. (plugin_multiple_definition): Update.
Alan Modra
2011-04-20 00:11:29 +0000
11629685f12011-04-02 Jon TURNEY <jon.turney@dronecode.org.uk>
Jon TURNEY
2011-04-19 18:51:20 +0000
ed240047f2* COPYING: Replace with the GPLv3 definition. * CYGWIN_LICENSE: Move Cygwin to GPLv3+. Align text to FSF speak.
Corinna Vinschen
2011-04-19 16:52:51 +0000
ba6aad1d73* autoload.cc (GetConsoleWindow): Drop. (GetSystemWindowsDirectoryW): Drop. * fhandler_console.cc (beep): Call GetSystemWindowsDirectoryW instead of GetWindowsDirectoryW. * uinfo.cc (cygheap_user::env_systemroot): Call GetSystemWindowsDirectoryW and convert to multibyte on the fly. * winlean.h (GetWindowsDirectoryW): Redefine to something invalid. Explain why.
Corinna Vinschen
2011-04-19 10:15:09 +0000
b18cb86be7* Makefile.in (DLL_IMPORTS): Drop advapi32.dll. * autoload.cc: Enable autoloading advapi32 functions. * environ.cc (regopt): Use wide char arguments in reg_key functions. * fhandler_console.cc (beep): Ditto. Use WCHAR throughout. * registry.cc (reg_key): Rewrite reg_key class to use native NT registry functions. Use WCHAR string parameters throughout. Use PCWSTR rather than const WCHAR. Drop multibyte char functionality. Drop unused methods. (get_registry_hive_path): Use RtlQueryRegistryValues to fetch path from registry. (load_registry_hive): Drop useless check for user hive being available. Load hive using NtLoadKey. * registry.h: Accommodate above changes. * sched.cc (sched_rr_get_interval): Use wide char arguments in reg_key functions. * shared.cc (init_installation_root): Ditto. (shared_info::init_obcaseinsensitive): Use RtlQueryRegistryValues to fetch obcaseinsensitive value. (shared_info::heap_slop_size): Use wide char arguments in reg_key functions. (shared_info::heap_chunk_size): Ditto. * syscalls.cc (gethostid): Ditto. * winsup.h (__WIDE): Define. (_WIDE): Define. * libc/minires-os-if.c (get_registry_dns_items): Don't fetch values from registry. Just extract them from given UNICODE_STRING parameter. (get_registry_dns): Fetch all registry values at once using RtlQueryRegistryValues.
Corinna Vinschen
2011-04-19 10:02:06 +0000
cbc26145e8* net.cc (get_ipv4fromreg_ipcnt): Rearrange to fetch all registry values at once using RtlQueryRegistryValues. (get_ipv4fromreg): Ditto.
Corinna Vinschen
2011-04-19 08:59:30 +0000
e5c91e1627* fhandler_registry.cc (fhandler_registry::fstat): Use RegQueryInfoKeyW.
Corinna Vinschen
2011-04-19 08:45:36 +0000
f5ab5b84de* fhandler_proc.cc (read_value): Remove definition. (print): Simplify. (format_proc_cpuinfo): Drop useless call to GetSystemInfo. Rearrange to use Rtl registry functions. Rename dwOldThreadAffinityMask to orig_affinity_mask.
Corinna Vinschen
2011-04-19 08:39:38 +0000
060e5c9785* libc/include/sys/signal.h (_sig_func_ptr): Define with int parameter per POSIX. Explain in comment.
Corinna Vinschen
2011-04-19 08:02:59 +0000
6d9b9e6b0c* gas/arm/arch7.s: Fix typo basepri_max should be basepri_mask. * gas/arm/mrs-msr-thumb-v7e-m.s: Likewise. * gas/arm/arch7.d: Update expected disassembly. * gas/arm/attr-march-armv7.d: Remove Microcontroller tag. * gas/arm/blx-bad.d: Only run for ELF based targets. * gas/arm/mrs-msr-thumb-v6t2.d: Likewise. * gas/arm/vldm-arm.d: Likewise. * gas/arm/mrs-msr-thumb-v7-m.d: Likewise. Remove qualifiers from PSR and IAPSR regsiter names. * gas/arm/mrs-msr-thumb-v7e-m.d: Likewise. * gas/arm/thumb2_bcond.d: Update expected disassembly to allow for relaxing of branch insns. * gas/arm/thumb32.d: Fix whitespace problems in disassembly.
Nick Clifton
2011-04-19 07:27:31 +0000
593d0dc50f* localtime.cc (tzload): Don't change global timezone information when called from gmtime or gmtime_r. (tzparse): Ditto.
Corinna Vinschen
2011-04-18 19:07:18 +0000
0077cd1016* fhandler_socket.cc (fhandler_socket::evaluate_events): Handle the FD_CLOSE event specially when called from accept. Explain why. (fhandler_socket::shutdown): Fake success on not-connected socket and trigger socket event if the read side of a socket is affected. Explain why. * poll.cc (poll): Check for saw_shutdown_read on sockets to generate POLLHUP as well.
Corinna Vinschen
2011-04-18 11:44:17 +0000
7c8126eb3e* Fix various copyrights.
Corinna Vinschen
2011-04-18 11:26:37 +0000
1122b3e64e* setfacl.c (getaclentry): Allow extra colon in mask and other entries.
Corinna Vinschen
2011-04-18 10:23:21 +0000
2d077d7c6d* * signal.cc (_pinfo::kill): Set this_process_state when process exists.
Christopher Faylor
2011-04-18 01:46:57 +0000
fdcae03c0f* signal.cc (_pinfo::kill): Return 0 when attempting to test for existence of an existed process which has not yet been reaped.
Christopher Faylor
2011-04-17 21:45:28 +0000
f4c1f003e3* cygheap.h (init_cygheap::ctty): Use base class so that console can join in the fun. * dtable.cc (dtable::stdio_init): Remove special-case call to set_console_ctty (). * exceptions.cc (sigpacket::process): Conditionally flush terminal input on certain signals. * fhandler.h (fhandler_console::get_tty_stuff): Make non-static. (fhandler_termios::get_ttyp): Move here. (fhandler_termios::sigflush): Declare. (fhandler_tty_common::get_ttyp): Delete. * fhandler_console.cc (fhandler_console::get_tty_stuff): Pass this as "arch" argument. (set_console_ctty): Delete. (tty_list::get_tty): Just return pointer to shared console region, delaying get_tty_stuff until open(). (fhandler_console::init): Treat NULL handle as signifying that console should be opened with O_NOCTTY flag. Rename handle argument to the more common 'h'. * fhandler_termios.cc (fhandler_termios::sigflush): Define. * fhandler_tty.cc (handler_tty_master::init_console): Pass NULL as first argument to fhandler_console::init. * pinfo.cc (_pinfo::set_ctty): Change third parameter to fhandler_termios *. Add extra debugging. * pinfo.h (_pinfo::set_ctty): Change third parameter to fhandler_termios *. * sigproc.cc (handle_sigsuspend): Don't special-case non-main threads.
Christopher Faylor
2011-04-17 19:56:25 +0000
0fbf39cc9fstrchrnul: avoid segv
Eric Blake
2011-04-15 20:26:05 +0000
6f714140b5gdb: sim: add style fixes lost between git->cvs
Michael Frysinger
2011-04-15 16:23:19 +0000
48175be8e7* elf-bfd.h (struct sdt_note): New struct. (struct elf_obj_tdata) <sdt_note_head>: New field. * elf.c (elfobj_grok_stapsdt_note_1): New function. (elfobj_grok_stapsdt_note): Likewise. (elf_parse_notes): Added code to treat SystemTap note sections. * common.h (NT_STAPSDT): New define.
Nick Clifton
2011-04-15 11:14:01 +0000
30a4f5b696* Makefile.in: Move srcdir definition before others which uses it.
Christopher Faylor
2011-04-07 06:07:21 +0000
8d777a13fc* dll_init.cc (reserve_at, release_at): New functions. (load_after_fork): If the DLL was loaded higher than the required address, assume that it loaded at it's base address and also reserve memory there to force it to be relocated.
Christopher Faylor
2011-04-06 13:58:00 +0000
6e4fd2ef38Sync config.sub from upstream.
Ralf Wildenhues
2011-04-05 06:03:02 +0000
ddebf19a2a* include/cygwin/types.h: Move #include <sys/sysmacros.h> to end of header so that it gets the dev_t typedef. * include/sys/sysmacros.h (gnu_dev_major, gnu_dev_minor, gnu_dev_makedev): Prototype and define as inline functions. (major, minor, makedev): Redefine in terms of gnu_dev_*.
Yaakov Selkowitz
2011-04-05 00:53:17 +0000
8b09538c94* include/cygwin/types.h: Move multiple inclusion guards to beginning and end of header.
Yaakov Selkowitz
2011-04-05 00:50:19 +0000
3649c742cb* Makefile.in: Move Makefile.common include earlier to fix problems with relative ${srcdir} path which confuses make.
Christopher Faylor
2011-04-04 15:01:43 +0000
6ce541281eDrop NT4 support. * autoload.cc (DnsQuery_A): Fatal if not available. (DnsRecordListFree): Ditto. (DsGetDcNameW): Ditto. (NetGetAnyDCName): Remove. (NetGetDCName): Remove. (EnumProcessModules): Fatal if not available. (GetModuleFileNameExW): Ditto. (GetModuleInformation): Ditto. (GetProcessMemoryInfo): Ditto. (QueryWorkingSet): Ditto. (LsaRegisterLogonProcess): Ditto. * fenv.cc (_feinitialise): Drop supports_sse condition. * fhandler_disk_file.cc (path_conv::isgood_inode): Fix comment. (fhandler_base::fstat_by_name): Drop has_fileid_dirinfo condition. (fhandler_disk_file::opendir): Ditto. * fhandler_netdrive.cc (fhandler_netdrive::readdir): Fix comment. * fhandler_proc.cc (format_proc_partitions): Drop NT4-only code. * fhandler_process.cc (get_process_state): Ditto. * kernel32.cc (GetWindowsDirectoryW): Remove. (GetWindowsDirectoryA): Remove. * miscfuncs.cc (nice_to_winprio): Drop NT4-only code. * mount.cc (fs_info::update): Fix comments. * net.cc (get_2k_ifs): Drop NT4-only code. * sec_auth.cc (get_logon_server): Ditto. (lsaauth): Drop NT4-specific error handling. * security.cc (alloc_sd): Set SE_DACL_PROTECTED unconditionally. * select.cc (select_stuff::wait): Always use MWMO_INPUTAVAILABLE. (peek_windows): Drop NT4-only condition in call to PeekMessage. * syscalls.cc (gethostid): Remove NT4-only workaround. * wincap.cc: Througout, drop has_dacl_protect, has_broken_if_oper_status, has_process_io_counters, has_terminal_services, has_extended_priority_class, has_guid_volumes, has_fileid_dirinfo, has_mwmo_inputavailable and supports_sse from wincaps. (wincap_nt4sp4): Remove. (wincap_minimal): Set to wincap_2000. (wincapc::init): Rely on availability of OSVERSIONINFOEX structure. Treat error from GetVersionEx as fatal. Treat NT4 as fatal. * wincap.h (struct wincaps): Drop has_dacl_protect, has_broken_if_oper_status, has_process_io_counters, has_terminal_services, has_extended_priority_class, has_guid_volumes, has_fileid_dirinfo, has_mwmo_inputavailable and supports_sse flags and methods. * winlean.h (GetWindowsDirectoryW) Define as GetSystemWindowsDirectoryW. (GetWindowsDirectoryA): Define as GetSystemWindowsDirectoryA.
Corinna Vinschen
2011-04-04 12:23:36 +0000
02dbd9ae87* dtable.cc (dtable::init_std_file_from_handle): Fix a comment to reflect the current state.
Corinna Vinschen
2011-04-04 11:24:20 +0000
43a6063156* new-features.sgml (ov-new1.7.10): Document additional information in /proc/version.
Yaakov Selkowitz
2011-04-04 11:14:20 +0000
a2ef34bfd8* Makefile.in (fhandler_proc_CFLAGS): Define USERNAME, HOSTNAME, and GCC_VERSION. * fhandler_proc.cc (format_proc_version): Add build machine and GCC version information as on Linux.
Yaakov Selkowitz
2011-04-04 11:12:48 +0000
26968b5c05* devices.h (fh_devices): Define FH_PROC_MIN_MINOR. Reorder major-0 devices so that all /proc directories fall between FH_PROC and FH_PROC_MIN_MINOR. * path.h (isproc_dev): Redefine accordingly.
Yaakov Selkowitz
2011-04-04 10:14:27 +0000
ff73fd1ec1* passwd.c (main): Add the ability to specify a username for the -R command. * utils.sgml: Document the aforementioned change.
Corinna Vinschen
2011-04-04 09:09:43 +0000
1db2e3fbfb* cygserver_setpwd.h (setlsapwd): Add username parameter to declaration. * external.cc (cygwin_internal): In the CW_SET_PRIV_KEY case, fetch additional username parameter. * setlsapwd.cc (setlsapwd): Add username parameter. Allow admin to set the hidden password for other users.
Corinna Vinschen
2011-04-04 09:04:00 +0000
06e21b9cb1* Makefile.in (DLL_OFILES): Add avapi32.o. * advapi32.cc: New file. * autoload.cc: Add block of remaining advapi32 functions used by Cygwin. Keep commented out. Explain why.
Corinna Vinschen
2011-04-01 12:46:09 +0000
d36ed46d3e* configure.ac: Separate cases disabling target-libssp, target-libiberty, target-libstdc++-v3 and Fortran from general case over targets. * configure: Regenerate.
Joseph Myers
2011-04-01 12:00:58 +0000
8e68bbe724* new-features.sgml (ov-new1.7.10): /proc/loadavg now shows current running/total processes count.
Yaakov Selkowitz
2011-04-01 09:01:47 +0000
9ca65531e0* fhandler_proc.cc (format_proc_loadavg): Add running/total processes as fourth component of output. * fhandler_process.cc (get_process_state): Make non-static. Add FIXME about generating an 'O' flag.
Yaakov Selkowitz
2011-04-01 09:00:21 +0000
40afcae356* fhandler_random.cc (fhandler_dev_random::crypt_gen_random): Use CryptAcquireContextW. * ntdll.h (STATUS_PROCEDURE_NOT_FOUND): Define. * sec_auth.cc (open_local_policy): Rename NTSTATUS variable ret to status. Drop usage of LsaNtStatusToWinError. (verify_token): Call NtQuerySecurityObject instead of GetKernelObjectSecurity. (create_token): Rename NTSTATUS variable ret to status. Rename ret2 to sub_status. Drop usage of LsaNtStatusToWinError. In case LsaLogonUser fails, report the sub_status as well.
Corinna Vinschen
2011-04-01 08:41:26 +0000