summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* * dtable.cc (fh_alloc): Don't parse /dev/tty if ctty is < 0. Reset major/minorChristopher Faylor2011-10-112-4/+13
| | | | from the specific tty to those for /dev/tty.
* * libc/time/mktm_r.c: (__tzcalc_limits) Fix Julian day calculation.Corinna Vinschen2011-10-113-13/+40
| | | | | * libc/time/mktime.c: (mktime) Fix tm_yday, tm_mday updating when timezone causes roll over.
* oops - fix typo in previous delta.Nick Clifton2011-10-111-11/+390
|
* oops - omitted from previous delta.Nick Clifton2011-10-111-248/+31
|
* * syscalls.cc (open): Add temporary kludge to avoid assigning the controllingChristopher Faylor2011-10-103-0/+13
| | | | | tty on open unless the open is for stdin/stdout/stderr. * tty.cc (tty_list::connect): Set ENXIO when can't find a tty.
* * fhandler.h (fhandler_process::closedir): Declare.Corinna Vinschen2011-10-103-0/+13
| | | | | * fhandler_process.cc (fhandler_process::closedir): New function to avoid a SEGV in fhandler_proc::closedir.
* * cygserver.sgml: Change -v to -V, same as in sources.Corinna Vinschen2011-10-102-1/+5
|
* * cygserver.cc (print_usage): Align output to utilities in utilsCorinna Vinschen2011-10-102-26/+29
| | | | | directory. (print_version): Ditto.
* * ldd.cc (VERSION): Remove.Corinna Vinschen2011-10-102-2/+4
|
* * ldd.cc: Update copyright.Christopher Faylor2011-10-102-1/+5
|
* * Align usage output, version output, as well as usage and versionCorinna Vinschen2011-10-1021-611/+687
| | | | | | | | | option handling to use the same style throughout all Cygwin utils. Throughout use program_invocation_short_name to refer to current process name in Cygwin executables. * utils.sgml: Align documentation to above change. Add missing sections for getconf, ldd, and setmetamode. * strace.cc (proc_child): Avoid compiler warning.
* include/elf/Alan Modra2011-10-102-1/+6
| | | | | | | | | | | | | | | | * ppc64.h (R_PPC64_TOCSAVE): Add. bfd/ * elf64-ppc.c (ppc64_elf_howto_table): Add R_PPC64_TOCSAVE entry. (struct ppc_link_hash_table): Add tocsave_htab. (struct tocsave_entry): New. (tocsave_htab_hash, tocsave_htab_eq, tocsave_find): New functions. (ppc64_elf_link_hash_table_create): Create tocsave_htab.. (ppc64_elf_link_hash_table_free): ..and delete it. (build_plt_stub): Always put STD_R2_40R1 first. (ppc64_elf_size_stubs): Check for R_PPC64_TOCSAVE following reloc on plt call. If present add prologue nop location to tocsave_htab. (ppc64_elf_relocate_section): Convert prologue nop to std. Skip first insn of plt call stub when R_PPC64_TOCSAVE present.
* * libc/sys/arm/crt0.S: Synchronise with libgloss version.Nick Clifton2011-10-102-0/+67
| | | | * libc/sys/arm/arm.h: Imported from libgloss.
* * locale.cc (usage): Restructure, rephrase, add new options. DropCorinna Vinschen2011-10-103-40/+123
| | | | | | | | | | | | | | arguments, don't exit. (print_version): New function. (longopts): Add -f, -n, and -V options. Reorder. (opts): Add -f, -n, and -V options. (main): Call GetSystemDefaultUILanguage for -s option. Call GetUserDefaultUILanguage for -u option. Add -f and -n options and call GetUserDefaultLCID and GetSystemDefaultLCID respectively. Return 0 after calling usage in -h case. Add -V option and call print_version. Don't print full usage in default case, rather just a short help message similar to GNU tools. * utils.sgml (locale): Align to above changes. Rephrase description.
* * cygcheck.cc (check_keys): Use UNICODE Win32 functions.Corinna Vinschen2011-10-102-6/+10
|
* * fhandler_tty.cc (fhandler_pty_slave::open): Clarify debugging output.Christopher Faylor2011-10-102-2/+11
| | | | (fhandler_pty_slave::open): Change ENOENT to ENXIO when can't open a tty.
* * fhandler.h (fhandler_console::tc_getpgid): New function.Christopher Faylor2011-10-073-1/+19
| | | | | * spawn.cc (spawn_guts): Add logic to put pure-windows processes "in the background" when they are started that way.
* * include/sys/cygwin.h (cygwin_getinfo_types): Define valuesCorinna Vinschen2011-10-072-3/+54
| | | | additionally as preprocessor symbols.
* * rx/crt0.S: Initialise the PID address register.Nick Clifton2011-10-072-5/+25
| | | | (__pid_base): Define weakly.
* Fix copyright.Corinna Vinschen2011-10-071-1/+2
|
* * fhandler_termios.cc (fhandler_termios::tcsetpgrp): Send __SIGSETPGRPCorinna Vinschen2011-10-064-2/+16
| | | | | | | | pseudo signal to process group instead of just calling init_console_handler. * sigproc.cc (wait_sig): Call init_console_handler here on __SIGSETPGRP signal. * sigproc.h (__SIGSETPGRP): Define.
* 2011-10-06 Christian Franke <franke@computer.org>Christian Franke2011-10-063-17/+73
| | | | | | | | | | * include/cygwin/wait.h: Use new __wait_status_to_int() macro to access status value in W*() status checks. Fix status description. * include/sys/wait.h: Allow `int' and `union wait' as wait status parameter. Change __wait_status_to_int() macro and wait () prototypes accordingly. Add inline functions for C++. Remove extra `;'.
* * readelf.c (get_machine_dlags): Add support for RX's PID mode.Nick Clifton2011-10-052-1/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * ld-scripts/phdrs.exp: Expect to fail for the RX. * elf32-rx.c: Add support for PID mode. (rx_elf_relocate_section): Add checks for unsafe PID relocations. Include addend in R_RX_SYM relocations. * config/rx-defs.h (rx_pid_register): New. (rx_gp_register): New. * config/rx-parse.y (rx_lex): Add support for %gpreg and %pidreg. (displacement): Add PID support. * config/tc-rx.c (rx_pid_mode): New. (rx_num_int_regs): New. (rx_pid_register): New. (rx_gp_register): New. (options): Add -mpid and -mint-register= options. (md_longopts): Likewise. (md_parse_option): Likewise. (md_show_usage): Likewise. (rx_pid_symbol): New. (rx_pidreg_symbol): New. (rx_gpreg_symbol): New. (md_begin): Support PID. (rx_validate_fix_sub): Support PID. (tc_gen_reloc): Support PID. * doc/c-rx.texi: Document PID support. * rx.h (E_FLAG_RX_PID): New.
* * external.cc (create_winenv): Rename from sync_winenv. TakeCorinna Vinschen2011-10-054-7/+30
| | | | | | | | environment pointer as parameter and return pointer to corresponding win32 environment block if != NULL. Otherwise just sync as before. (cygwin_internal): Add CW_CVT_ENV_TO_WINENV case. * include/cygwin/version.h: Bump API minor number. * include/sys/cygwin.h (cygwin_getinfo_types): Add CW_CVT_ENV_TO_WINENV.
* * net.cc (socketpair): Bind first socket to loopback only as well.Corinna Vinschen2011-10-052-1/+5
|
* 2011-10-04 Greta Yorsh <Greta.Yorsh@arm.com>Jeff Johnston2011-10-042-0/+164
| | | | * testsuite/newlib.string/memcpy-1.c: New test.
* * libc/machine/arm/memcpy.S: Fix unaligned access copying.Nick Clifton2011-10-042-4/+14
|
* Rationalise structure layout; add dirent.d_type field.Keith Marshall2011-10-013-60/+215
|
* * libc/machine/arm/memcpy.S: New file. Contains a hand codedNick Clifton2011-09-295-3/+481
| | | | | | | | memcpy function optimized for the cortex-a15. * libc/machine/arm/memcpy-stub.c: New file. * libc/machine/arm/Makefile.am (lib_a_SOURCES): Add memcpy-stub.c, memcpy.S. * libc/machine/arm/Makefile.in: Regenerate.
* * arm/crt0.s: Support 0 heap base response from HeapInfo syscall.Nick Clifton2011-09-292-0/+17
|
* * arm/arm.h (HAVE_CALL_INDIRECT): Define.Nick Clifton2011-09-293-12/+27
| | | | | * arm/crt0.S (indirect_call): New macro. Encodes indirect function calls. Does not use blx for pre-armv5 targets.
* merge from gccDJ Delorie2011-09-283-0/+50
|
* merge from gccDJ Delorie2011-09-271-2/+9
|
* merge from gccDJ Delorie2011-09-261-9/+2
|
* include/ChangeLogCary Coutant2011-09-262-2/+16
| | | | | | | | | | | | | | | | | | | | | | | | | gcc PR lto/47247 * plugin-api.h (enum ld_plugin_symbol_resolution): Add LDPR_PREVAILING_DEF_IRONLY_EXP. (enum ld_plugin_tag): Add LDPT_GET_SYMBOLS_V2. gold/ChangeLog gcc PR lto/47247 * plugin.cc (get_symbols_v2): New function. (Plugin::load): Add LDPT_GET_SYMBOLS_V2. (is_referenced_from_outside): New function. (Pluginobj::get_symbol_resolution_info): Add version parameter, return LDPR_PREVAILING_DEF_IRONLY_EXP when using new version. (get_symbols): Pass version parameter. (get_symbols_v2): New function. * plugin.h (Pluginobj::get_symbol_resolution_info): Add version parameter. * testsuite/plugin_test.c (get_symbols_v2): New static variable. (onload): Add LDPT_GET_SYMBOLS_V2. (all_symbols_read_hook): Use get_symbols_v2; check for LDPR_PREVAILING_DEF_IRONLY_EXP. * testsuite/plugin_test_3.sh: Update expected results.
* merge from gccDJ Delorie2011-09-232-1/+9
|
* Annotate sparc objects with cpu hardware capabilities used.David S. Miller2011-09-214-10/+69
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | bfd/ * elfxx-sparc.c (_bfd_sparc_elf_merge_private_bfd_data): New. * elfxx-sparc.h: Declare it. * elf32-sparc.c (elf32_sparc_merge_private_bfd_data): Call it. * elf64-sparc.c (elf64_sparc_merge_private_bfd_data): Likewise. binutils/ * readelf.c (display_sparc_hwcaps): New. (display_sparc_gnu_attribute): New. (process_sparc_specific): New. (process_arch_specific): When EM_SPARC, EM_SPARC32PLUS, or EM_SPARCV9 invoke process_sparc_specific. gas/ * config/tc-sparc.c (hwcap_seen): New bitmask, defined when not TE_SOLARIS. (sparc_ip): When not TE_SOLARIS, accumulate hwcap bits from sparc_opcode->flags of instruction into hwcap_seen. (sparc_md_end): Create Tag_GNU_Sparc_HWCAPS attribute if hwcap_seen is non-zero and not TE_SOLARIS. gas/testsuite/ * gas/sparc/hpcvis3.s: Update for fixed fchksum16 mnemonic. * gas/sparc/hpcvis3.d: Likewise. include/elf/ * sparc.h (Tag_GNU_Sparc_HWCAPS): New object attribute. (ELF_SPARC_HWCAP_*): New HWCAPS bitmask values. include/opcode/ * sparc.h (struct sparc_opcode): Expand 'flags' to unsigned int. (F_MUL32, F_DIV32, F_FSMULD, F_V8PLUS, F_POPC, F_VIS, F_VIS2, F_ASI_BLK_INIT, F_FMAF, F_VIS3, F_HPC, F_RANDOM, F_TRANS, F_FJFMAU, F_IMA, F_ASI_CACHE_SPARING): New flag bits. opcodes/ * sparc-opc.c (sparc_opcodes): Annotate table with HWCAP flag bits. Fix "fchksm16" mnemonic.
* * tty.cc (grantpt): Check for valid fd.Christopher Faylor2011-09-213-3/+10
| | | | (unlockpt): Ditto.
* Check if a symbol is hidden by linker script.H.J. Lu2011-09-162-0/+9
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | bfd/ 2011-09-15 H.J. Lu <hongjiu.lu@intel.com> PR ld/12975 * bfd-in.h (bfd_elf_size_dynamic_sections): Remove pointer to struct bfd_elf_version_tree. * elflink.c (elf_info_failed): Remove verdefs. (_bfd_elf_export_symbol): Updated. _bfd_elf_link_assign_sym_version): Likewise. (bfd_elf_size_dynamic_sections): Remove pointer to struct bfd_elf_version_tree. Updated. (bfd_elf_gc_mark_dynamic_ref_symbol): Check if a symbol is hidden by linker script. * linker.c (bfd_hide_sym_by_version): New. * bfd-in2.h: Regenerated. include/ 2011-09-15 H.J. Lu <hongjiu.lu@intel.com> PR ld/12975 * bfdlink.h (bfd_link_info): Add version_info. ld/ 2011-09-15 H.J. Lu <hongjiu.lu@intel.com> PR ld/12975 * ldlang.c (lang_elf_version_info): Removed. (lang_register_vers_node): Replace lang_elf_version_info with link_info.version_info. (lang_add_vers_depend): Likewise. * pe-dll.c (process_def_file_and_drectve): Likewise. * emultempl/solaris2.em (elf_solaris2_before_allocation): Likewise. * ldlang.h (lang_elf_version_info): Removed. * plugin.c (is_visible_from_outside): Check if symbol is hidden by version script. * emultempl/elf32.em (gld${EMULATION_NAME}_before_allocation): Remove lang_elf_version_info. ld/testsuite/ 2011-09-15 H.J. Lu <hongjiu.lu@intel.com> PR ld/12975 * ld-elf/pr12975.d: New. * ld-elf/pr12975.s: Likewise. * ld-elf/pr12975.t: Likewise.
* * strace.cc (attach_process): Try to turn off DEBUG_ONLY_THIS_PROCESSJon TURNEY2011-09-153-3/+30
| | | | | | | 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
* 2011-09-08 Jeff Johnston <jjohnstn@redhat.com>Jeff Johnston2011-09-082-2/+11
| | | | | * testsuite/lib/flags.exp: Add logic to add the srcdir include directory to compile flags.
* * net.cc (cygwin_getsockopt): Drop erroneous double conversion of errorCorinna Vinschen2011-09-022-12/+8
| | | | code returned by SOL_SOCKET/SO_ERROR. Fix error handling.
* * lc_msg.h: Regenerate.Corinna Vinschen2011-09-012-3/+18
|
* * dlfcn.cc (gfpod_helper): Helper function to search DLL usingCorinna Vinschen2011-09-012-6/+53
| | | | | | 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.
* * flock.cc (inode_t::unlock_and_remove_if_unused): Rename fromCorinna Vinschen2011-08-312-6/+11
| | | | unlock_and_remove.
* * flock.cc (LOCK_OBJ_NAME_LEN): Change to accommodate extra lf_verCorinna Vinschen2011-08-292-136/+152
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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.
* Don't expose implementation detail for opaque DIRENT structures.Keith Marshall2011-08-273-53/+69
|
* * fhandler.cc (fhandler_base::open): Fix typo in comment.Corinna Vinschen2011-08-275-98/+165
| | | | | | | | | | | | | | | | | | | | | | | | | | | | (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.
* * libc/time/mktm_r.c (_mktm_r): Fix previous fix.Corinna Vinschen2011-08-262-2/+5
|
* * cygthread.cc (cygthread::simplestub): Notify that the thread has detachedChristopher Faylor2011-08-252-0/+9
| | | | also in freerange thread case.