summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* * registry.cc (reg_key::get_dword): Rename from get_int, use DWORDCorinna Vinschen2011-04-237-33/+53
| | | | | | | | | | | | | | | | | | | | 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.
* 2011-04-21 Chris Sutcliffe <ir0nh34d@users.sf.net>Chris Sutcliffe2011-04-223-5/+8
| | | | | | | * include/windef.h (PACKED): Remove macro. * include/wincon.h: Replace PACKED macro with __attribute__((packed)). Thanks to Keith Marshall for the fix.
* 2011-04-21 Chris Sutcliffe <ir0nh34d@users.sf.net>Chris Sutcliffe2011-04-212-1/+7
| | | | | | * include/imagehlp.h (PREAD_PROCESS_MEMORY_ROUTINE): Correct definition. Thanks to Safety0ff for the report.
* * cygtls.cc (_cygtls::init_thread): Drop setting locals.process_logmask.Corinna Vinschen2011-04-215-90/+101
| | | | | | | | | | * 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.
* * include/sys/poll.h: Include signal.h to get definition of sigset_t.Corinna Vinschen2011-04-212-0/+5
|
* * cygheap.cc (init_cygheap::close_ctty): Avoid closing console-cttys since theyChristopher Faylor2011-04-216-21/+62
| | | | | | | | | | | 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.
* * select.cc (serial_cleanup): Make sure that device_specific_pipe is alwaysChristopher Faylor2011-04-202-9/+23
| | | | | | deleted regardless of whether it has a unique thread associated with it (socket_cleanup): Ditto. (mailslot_cleanup): Ditto.
* * bootstrap-lto.mk: Remove obsolete requirement.Eric Botcazou2011-04-202-3/+6
|
* * devices.h: Renumber internal devices so that FH_PROCESS is part ofCorinna Vinschen2011-04-203-12/+21
| | | | | | the /proc family of virtual devices. (FH_PROC_MAX_MINOR): Define. * path.h (isproc_dev): Use FH_PROC_MAX_MINOR rather than FH_PROC.
* Fix spacesCorinna Vinschen2011-04-201-3/+3
|
* * select.cc (pipe_cleanup): Make sure that device_specific_pipe is alwaysChristopher Faylor2011-04-202-3/+11
| | | | deleted regardless of whether it has a unique thread associated with it.
* PR ld/12365Alan Modra2011-04-202-19/+18
| | | | | | | | | | | | | | | | | | | | | | | 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.
* 2011-04-02 Jon TURNEY <jon.turney@dronecode.org.uk>Jon TURNEY2011-04-192-3/+12
| | | | | | * thread.cc (semaphore::init): We cannot reliably infer anything from the existing contents of sem, so merely warn rather than return EBUSY if it looks like we are reinitialising a semaphore.
* * COPYING: Replace with the GPLv3 definition.Corinna Vinschen2011-04-193-306/+649
| | | | * CYGWIN_LICENSE: Move Cygwin to GPLv3+. Align text to FSF speak.
* * autoload.cc (GetConsoleWindow): Drop.Corinna Vinschen2011-04-195-17/+24
| | | | | | | | | | (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.
* * Makefile.in (DLL_IMPORTS): Drop advapi32.dll.Corinna Vinschen2011-04-1912-300/+323
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 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.
* * net.cc (get_ipv4fromreg_ipcnt): Rearrange to fetch all registryCorinna Vinschen2011-04-192-66/+89
| | | | | values at once using RtlQueryRegistryValues. (get_ipv4fromreg): Ditto.
* * fhandler_registry.cc (fhandler_registry::fstat): Use RegQueryInfoKeyW.Corinna Vinschen2011-04-192-4/+7
|
* * fhandler_proc.cc (read_value): Remove definition.Corinna Vinschen2011-04-192-59/+58
| | | | | | | (print): Simplify. (format_proc_cpuinfo): Drop useless call to GetSystemInfo. Rearrange to use Rtl registry functions. Rename dwOldThreadAffinityMask to orig_affinity_mask.
* * libc/include/sys/signal.h (_sig_func_ptr): Define with int parameterCorinna Vinschen2011-04-192-1/+7
| | | | per POSIX. Explain in comment.
* * gas/arm/arch7.s: Fix typo basepri_max should be basepri_mask.Nick Clifton2011-04-192-2/+5
| | | | | | | | | | | | | | | | | | | | | | | | * 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. * config/tc-arm.c (parse_psr): Use selected_cpu not cpu_variant to detect M-profile targets. (do_t_swi): Exclude v7 and higher variants from arm_ext_os test. (v7m_psrs): Fix typo: basepri_max should be basepri_mask. * arm-dis.c (psr_name): Revert previous delta. * arm.h (ARM_AEXT_V7_ARM): Remove ARM_EXT_OS from bitmask.
* * localtime.cc (tzload): Don't change global timezone informationCorinna Vinschen2011-04-182-14/+32
| | | | | when called from gmtime or gmtime_r. (tzparse): Ditto.
* * cygtls.cc (_cygtls::remove): Always close sockevt handle.Corinna Vinschen2011-04-182-1/+6
|
* fix typoChristopher Faylor2011-04-181-1/+1
|
* * new-features.sgml (ov-new1.7.10): Document ppoll.Corinna Vinschen2011-04-182-0/+8
|
* * cygwin.din (ppoll): Export.Corinna Vinschen2011-04-186-2/+40
| | | | | | | * poll.cc (ppoll): Implement. * posix.sgml (std-gnu): Add ppoll. * include/cygwin/version.h: Bump API minor number. * include/sys/poll.h (ppoll): Declare.
* * fhandler_socket.cc (fhandler_socket::evaluate_events): Handle theCorinna Vinschen2011-04-183-19/+57
| | | | | | | | | 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.
* * Fix various copyrights.Corinna Vinschen2011-04-186-5/+9
|
* * setfacl.c (getaclentry): Allow extra colon in mask and other entries.Corinna Vinschen2011-04-182-1/+9
|
* * * signal.cc (_pinfo::kill): Set this_process_state when process exists.Christopher Faylor2011-04-182-0/+6
|
* * signal.cc (_pinfo::kill): Return 0 when attempting to test for existence ofChristopher Faylor2011-04-172-21/+34
| | | | an existed process which has not yet been reaped.
* * cygheap.h (init_cygheap::ctty): Use base class so that console can join inChristopher Faylor2011-04-1710-34/+67
| | | | | | | | | | | | | | | | | | | | | | | | | | 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.
* strchrnul: avoid segvEric Blake2011-04-152-3/+5
| | | | * libc/string/strchrnul.c (strchrnul): Fix strchrnul.
* gdb: sim: add style fixes lost between git->cvsMichael Frysinger2011-04-151-0/+1
|
* * elf-bfd.h (struct sdt_note): New struct.Nick Clifton2011-04-152-1/+7
| | | | | | | | | (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.
* * thread.cc (pthread_setschedprio): New function.Yaakov Selkowitz2011-04-156-2/+25
| | | | | | | | * include/pthread.h (pthread_setschedprio): Declare. * include/cygwin/version.h (CYGWIN_VERSION_API_MINOR): Bump. * cygwin.din (pthread_setschedprio): Export. * posix.sgml (std-notimpl) Move pthread_setschedprio from here... (std-susv4) ...to here.
* gdb: sim: add command line completionMichael Frysinger2011-04-152-0/+8
| | | | | | | | | For now, only the sub-command name is completed. No support yet for completing options to that command. But even this is a huge step as currently, nothing is completed, and the basic "help sim" is fairly obtuse as to what exactly the "sim" command accepts. Signed-off-by: Mike Frysinger <vapier@gentoo.org>
* 2011-04-12 Jon TURNEY <jon.turney@dronecode.org.uk>Jon TURNEY2011-04-132-1/+5
| | | | * utils.sgml (strace): Fix a pair of exchanged lines in usage text.
* PR gas/12296Nick Clifton2011-04-112-3/+9
| | | | | | | | * arm.h (ARM_AEXT_V7_ARM): Add ARM_EXT_OS. * gas/arm/arch7.s: Add SVC insn. * gas/arm/arch7.d: Add disassembly of SVC insn. * gas/arm/attr-march-armv7.d: Add arch profile tag.
* * new-features.sgml (ov-new1.7.10): Document /proc/swaps.Yaakov Selkowitz2011-04-112-0/+8
|
* * fhandler_proc.cc (proc_tab): Add /proc/swaps virtual file.Yaakov Selkowitz2011-04-112-0/+68
| | | | (format_proc_swaps): New function.
* * Makefile.in: Move srcdir definition before others which uses it.Christopher Faylor2011-04-072-4/+8
|
* * dll_init.cc (reserve_at, release_at): New functions.Christopher Faylor2011-04-062-11/+68
| | | | | | (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.
* * configure.ac (build_tools): Remove build-byacc.Joseph Myers2011-04-065-17677/+29
| | | | | | | | | | | | | | | | | | | (host_libs): Remove mmalloc. (host_tools): Remove byacc make patch prms send-pr ash bash bzip2 autoconf automake libtool diff rcs fileutils shellutils time textutils wdiff find uudecode hello tar gzip indent recode release sed perl gawk findutils gettext zip. (libgcj): Remove target-qthreads. (target_tools): Remove target-examples target-gperf. (YACC): Don't handle building byacc. * configure: Regenerate. * Makefile.def (ash, autoconf, automake, bash, byacc, bzip2, diff, dosutils, examples, fileutils, find, findutils, gawk, gettext, gnuserv, gperf, gzip, hello, indent, libtool, make, mmalloc, patch, perl, prms, qthreads, rcs, recode, release, sed, send-pr, shellutils, tar, textutils, time, uudecode, wdiff, zip): Don't handle building components. * Makefile.in: Regenerate.
* Sync config.sub from upstream.Ralf Wildenhues2011-04-052-0/+6
| | | | | /: * config.sub: Sync from upstream.
* * include/cygwin/types.h: Move #include <sys/sysmacros.h> toYaakov Selkowitz2011-04-053-5/+37
| | | | | | | 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_*.
* * include/cygwin/types.h: Move multiple inclusion guards toYaakov Selkowitz2011-04-052-4/+10
| | | | beginning and end of header.
* * Makefile.in: Move Makefile.common include earlier to fix problems withChristopher Faylor2011-04-042-9/+14
| | | | relative ${srcdir} path which confuses make.
* * new-features.sgml (ov-new1.7.10): Document dropped NT4 support.Corinna Vinschen2011-04-042-0/+8
|
* Drop NT4 support.Corinna Vinschen2011-04-0418-288/+98
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 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.