33a6952b7f
* cygserver_ipc.h: Include sigproc.h for signal_arrived declaration.
2012-03-19 20:18:18 +00:00
971d94e260
* client.cc: Include sigproc.h if __INSIDE_CYGWIN__ is defined.
2012-03-19 19:25:01 +00:00
374d215cca
* cygprops.h: Use #pragma once.
...
* mkglobals_h: Ditto for generated globals.h file.
* globals.cc: Use specific NO_GLOBALS_H flag to control inclusion of globals.h.
* winsup.h: Honor NO_GLOBALS_H to control inclusion of globals.h. Make
clear_procimptoken extern inline so that it is only defined when needed.
2012-03-19 17:49:40 +00:00
548dc6a14d
* client.cc: Remove unneeded #include "sigproc.h".
2012-03-19 17:47:05 +00:00
d0d8b75350
* thread.cc (cancelable_wait): Don't malloc tbi, just make it a struct
...
on the stack to avoid memory leak.
2012-03-19 17:34:23 +00:00
d9492ab8d2
* pinfo.cc (pinfo::wait): Handle case where prefork was not called prior to
...
calling wait(). This is the case when we are reabsorbing processes after being
execed.
2012-03-19 16:51:30 +00:00
4aeaedf961
* fork.cc (lock_signals): Move to sigproc.h.
...
(lock_pthread): Ditto.
(hold_everything): Ditto.
(frok::parent): Call myself.prefork() just before calling CreateProcess. Call
myself.postfork () on function exit.
* pinfo.cc (pinfo::pending_rd_proc_pipe): Define.
(pinfo::pending_wr_proc_pipe): Ditto.
(_pinfo::dup_proc_pipe): Delete.
(pinfo::wait): Move pipe creation into pinfo::prefork. Set pipe variables from
pending_*.
(_pinfo::sync_proc_pipe): Delete.
(_pinfo::proc_pipe_owner): Ditto.
(pinfo::prefork): Define new function.
(pinfo::postfork): Ditto.
(pinfo::postexec): Ditto.
(_pinfo::alert_parent): Remove obsolete call to sync_proc_pipe.
(_pinfo::dup_proc_pipe): Delete declaration.
(_pinfo::sync_proc_pipe): Ditto.
(pinfo::pending_rd_proc_pipe): Declare.
(pinfo::pending_wr_proc_pipe): Ditto.
(pinfo::prefork): Declare new function.
(pinfo::postfork): Ditto.
(pinfo::postexec): Ditto.
(pinfo::wr_proc_pipe): Define new wrapper function.
* sigproc.h: Include "sync.h". Move locking functions from fork to here.
* spawn.cc (child_info_spawn::worker): Delete now-unneeded requirement to
record orig_wr_proc_pipe. Call hold_everything prior to doing anything. Call
myself.prefork() if spawning. Replace wr_proc_pipe synchronization with call
to myself.postexec(). Call myself.postfork() if not execing.
* sync.h: Replace #ifdef wrapper with "#pragma once".
2012-03-16 20:20:29 +00:00
d3f6480e44
* configure.ac (enable_libgomp): Remove *-*-irix6*.
...
(unsupported_languages): Remove mips-sgi-irix6.*.
(noconfigdirs): Don't add ${libgcj} for mips*-*-irix6*.
(with_stabs): Remove.
* configure: Regenerate.
2012-03-15 14:13:32 +00:00
ad10b0ab34
* configure.ac (enable_libgomp): Remove *-*-osf*.
...
(with_stabs): Remove alpha*-*-osf*.
* configure: Regenerate.
2012-03-15 14:11:38 +00:00
096d5bbf1d
include/
...
* dis-asm.h (disassemble_init_powerpc): Declare.
opcodes/
* disassemble.c (disassemble_init_for_target): Handle ppc init.
* ppc-dis.c (private): New var.
(powerpc_init_dialect): Don't return calloc failure, instead use
private.
(PPC_OPCD_SEGS, PPC_OP_TO_SEG): Define.
(powerpc_opcd_indices): New array.
(disassemble_init_powerpc): New function.
(print_insn_big_powerpc): Don't init dialect here.
(print_insn_little_powerpc): Likewise.
(print_insn_powerpc): Start search using powerpc_opcd_indices.
2012-03-15 12:58:48 +00:00
b732246b87
* hookapi.cc (hook_or_detect_cygwin): Change condition when to use
...
importRVAMaxSize or importRVASize for the mapping size. Make sure
to map never more than the section size. Change comments accordingly.
2012-03-13 17:15:28 +00:00
d098f404d4
* include/netdb.h (h_errno): Add self-referencing macro and comment.
2012-03-13 09:13:02 +00:00
5fd4464077
libgloss: libnosys: use @host_makefile_frag@
...
Rather than inlining the generated rules, use @host_makefile_frag@ instead.
Signed-off-by: Mike Frysinger <vapier@gentoo.org >
2012-03-13 01:52:31 +00:00
f408b153cc
libgloss: change 'q' flag to 'r' in ar call
...
The GNU ar has "q" aliased to "r", and we generally want this behavior anyways
(replacing rather than always appending), so change our AR_FLAGS definition.
Signed-off-by: Mike Frysinger <vapier@gentoo.org >
2012-03-13 01:47:40 +00:00
3617fc8859
Christopher Faylor <me.cygwin2012@cgf.cx>
...
* fhandler.h (wait_return): Add overlapped_nullread.
* fhandler.cc (fhandler_base_overlapped::wait_overlapped): Detect zero-byte
read as a special case.
(fhandler_base_overlapped::raw_read): Keep looping when zero-byte read detected
without EOF.
(fhandler_base_overlapped::raw_write): Quiet gcc warning by adding
overlapped_nullread to switch statement even though it will never actually be
hit.
2012-03-12 21:29:36 +00:00
6c95669d23
* dtable.cc (fh_alloc): Treat pc.dev as unsigned.
...
* fhandler_console.cc (fhandler_console::set_unit): Use lock always to avoid
races between competing cygwin processes running on the console.
2012-03-10 17:51:33 +00:00
ecd676f23c
include/opcode/
...
* ppc.h: Add PPC_OPCODE_ALTIVEC2, PPC_OPCODE_E6500, PPC_OPCODE_TMR.
opcodes/
* ppc-dis.c (ppc_opts): Add entries for "e5500" and "e6500".
* ppc-opc.c (insert_ls, TMR, ESYNC, XSYNCLE_MASK): New.
(PPCVEC2, PPCTMR, E6500): New short names.
(powerpc_opcodes): Add vabsdub, vabsduh, vabsduw, dni, mvidsplt,
mviwsplt, icblq., mftmr, mttmr, dcblq., miso, lvexbx, lvexhx,
lvexwx, stvexbx, stvexhx, stvexwx, lvepx, lvepxl, stvepx, stvepxl,
lvtrx, lvtrxl, lvtlx, lvtlxl, stvfrx, stvfrxl, stvflx, stvflxl,
lvswx, lvswxl, stvswx, stvswxl, lvsm mnemonics. Accept LS, ESYNC
optional operands on sync instruction for E6500 target.
bfd/
* archures.c: Add bfd_mach_ppc_e5500 and bfd_mach_ppc_e6500.
* bfd-in2.h: Regenerate.
* cpu-powerpc.c (bfd_powerpc_archs): Add entryies for
bfd_mach_ppc_e5500 and bfd_mach_ppc_e6500.
gas/
* config/tc-ppc.c (md_show_usage): Document -me5500 and -me6500.
(ppc_handle_align): Add termination nop opcode for e500mc family.
* doc/as.texinfo: Document options -me5500 and -me6500.
* doc/c-ppc.texi: Likewise.
gas/testsuite/
* gas/ppc/e500mc64_nop.s: New test case for e500mc family
termination nops.
* gas/ppc/e500mc64_nop.d: Likewise.
* gas/ppc/e5500_nop.s: Likewise.
* gas/ppc/e5500_nop.d: Likewise.
* gas/ppc/e6500_nop.s: Likewise.
* gas/ppc/e6500_nop.d: Likewise.
* gas/ppc/e6500.s: New.
* gas/ppc/e6500.d: Likewise.
* gas/ppc/ppc.exp: Run e6500, e500mc64_nop, e5500_nop, and e6500_nop.
2012-03-09 23:39:02 +00:00
0069c6ecfb
2012-03-09 Jeff Johnston <jjohnstn@redhat.com>
...
* COPYING.NEWLIB: Modify DJ Delorie license to include
modification rights in clause as permitted by DJ Delorie.
* COPYING.LIBGLOSS: Ditto.
2012-03-09 20:31:34 +00:00
543c24fcdf
2012-03-09 Jeff Johnston <jjohnstn@redhat.com>
...
* epiphany/access.c: Add modification rights to clause as
permitted by DJ Delorie.
* iq2000/access.c: Ditto.
* mn10200/access.c: Ditto.
* mn10300/access.c: Ditto.
* mt/access.c: Ditto.
* v850/access.c: Ditto.
2012-03-09 20:28:57 +00:00
eab1d3e125
2012-03-09 Jeff Johnston <jjohnstn@redhat.com>
...
* libc/include/machine/setjmp-dj.h: Modify license to include
modification in clause as permitted by DJ Delorie.
* libc/machine/arm/access.c: Ditto.
* libc/machine/i386/setjmp.S: Ditto.
* libc/sys/h8300hms/sys/file.h: Ditto.
* libc/sys/linux/machine/i386/setjmp.S: Ditto.
* libc/sys/sysmec/access.c: Ditto.
* libc/sys/sysnecv850/access.c: Ditto.
2012-03-09 20:26:39 +00:00
fa24a065c0
2012-03-09 Jeff Johnston <jjohnstn@redhat.com>
...
* COPYING.NEWLIB: Remove two unused licenses.
2012-03-09 19:38:10 +00:00
e928291c63
* hookapi.cc (find_first_notloaded_dll): Fix a compiler warning.
2012-03-09 12:42:14 +00:00
acb3c3e564
* hookapi.cc (rvadelta): Add parameter to return maximum available
...
size from start of import RVA table to end of section.
(find_first_notloaded_dll): Take big executables into account. Use
offset and size computation as in hook_or_detect_cygwin, just simpler.
(hook_or_detect_cygwin): Return NULL rather than false througout.
Change computation of required mapping size to take non-gcc compilers
into account. Explain the differences and what we do against them.
Don't alloca buf if fn is NULL. Never use buf if fn is NULL.
Fix name and address in previous ChangeLog entry.
2012-03-09 12:37:37 +00:00
3e25449aa5
* net.cc (call_gaa): New thread function to call GetAdaptersAddresses.
...
(get_adapters_addresses): Call call_gaa. If necessary, call it as
child thread. Explain why that's necessary.
2012-03-08 16:02:44 +00:00
efb1f061f1
* path.cc (readlink): Avoid calling strlen() twice.
2012-03-08 14:56:18 +00:00
34903c1c25
2012-03-08 Tristan Gingold <gingold@adacore.com>
...
* lbr.h (struct vms_lhd): Add comments.
2012-03-08 14:14:52 +00:00
75543537a1
* Throughout, replace usage of w32api's min with MIN from sys/param.h.
2012-03-08 09:36:11 +00:00
106833e9b3
merge from gcc
2012-03-08 00:01:18 +00:00
33a1f4b23b
* mn10300.h (elf_mn10300_reloc_type): Add R_MN10300_TLS_GD,
...
R_MN10300_TLS_LD, R_MN10300_TLS_LDO, R_MN10300_TLS_GOTIE,
R_MN10300_TLS_IE, R_MN10300_TLS_LE, R_MN10300_TLS_DPTMOD,
R_MN10300_TLS_DTPOFF and R_MN10300_TLS_TPOFF.
* elf-m10300.c (elf32_mn10300_link_hash_entry): Add tls_type
field.
(elf32_mn10300_link_hash_table): Add tls_ldm_got entry;
(elf_mn10300_tdata): Define.
(elf_mn10300_local_got_tls_type): Define.
(elf_mn10300_howto_table): Add entries for R_MN10300_TLS_GD,
R_MN10300_TLS_LD, R_MN10300_TLS_LDO, R_MN10300_TLS_GOTIE,
R_MN10300_TLS_IE, R_MN10300_TLS_LE, R_MN10300_TLS_DPTMOD,
R_MN10300_TLS_DTPOFF, R_MN10300_TLS_TPOFF relocs.
(mn10300_reloc_map): Likewise.
(elf_mn10300_tls_transition): New function.
(dtpoff, tpoff, mn10300_do_tls_transition): New functions.
(mn10300_elf_check_relocs): Add TLS support.
(mn10300_elf_final_link_relocate): Likewise.
(mn10300_elf_relocate_section): Likewise.
(mn10300_elf_relax_section): Likewise.
(elf32_mn10300_link_hash_newfunc): Initialise new field.
(_bfd_mn10300_copy_indirect_symbol): New function.
(elf32_mn10300_link_hash_table_create): Initialise new fields.
(_bfd_mn10300_elf_size_dynamic_sections): Add TLS support.
(_bfd_mn10300_elf_finish_dynamic_symbol): Likewise.
(_bfd_mn10300_elf_reloc_type_class): Allocate an
elf_mn10300_obj_tdata structure.
(elf_backend_copy_indirect_symbol): Define.
* reloc.c (BFD_MN10300_TLS_GD, BFD_MN10300_TLS_LD,
BFD_MN10300_TLS_LDO, BFD_MN10300_TLS_GOTIE, BFD_MN10300_TLS_IE,
BFD_MN10300_TLS_LE, BFD_MN10300_TLS_DPTMOD,
BFD_MN10300_TLS_DTPOFF, BFD_MN10300_TLS_TPOFF): New relocations.
(BFD_RELOC_MN10300_32_PCREL, BFD_RELOC_MN10300_16_PCREL): Move to
alongside other MN10300 relocations.
* bfd-in2.h: Regenerate.
* libbfd.h: Regenerate.
* config/tc-mn10300.c (other_registers): Add SSP and USP.
(md_assemble): Add support for TLS relocs.
(mn10300_parse_name): Likewise.
* readelf.c (is_16bit_abs_reloc): Add detection of R_MN10300_16.
2012-03-07 17:51:56 +00:00
ab79e06445
* pinfo.cc (_pinfo::dup_proc_pipe): Reorganize to provide more information for
...
failing condition.
(pinfo::wait): Pass name of function to dup_proc_pipe. Eliminate error check
for dup_proc_pipe since it never actually returned an error.
* pinfo.h (_pinfo::dup_proc_pipe): Add an argument.
* spawn.cc (child_info_spawn::worker): Pass name of function to dup_proc_pipe.
2012-03-07 17:09:37 +00:00
1d928241e1
* glob.cc (MAXPATHLEN): Reinstantiate with a value of 8192.
2012-03-07 10:12:28 +00:00
86b87ffa9b
* pinfo.cc (_pinfo::dup_proc_pipe): Fix order of arguments in debug
...
output.
2012-03-05 12:12:10 +00:00
292cd759a1
* init.cc (dll_entry): Move wincap.init call back from here...
...
* dcrt0.cc (dll_crt0_0): ...to here.
2012-03-05 12:09:22 +00:00
6cd8cb1dba
2012-03-05 Tristan Gingold <gingold@adacore.com>
...
* configure.ac: Enable gdb and readline for ia64*-*-*vms*.
* configure: Regenerate.
2012-03-05 11:57:17 +00:00
a3904c655e
* cygheap.h (enum fcwd_version_t): Move here from path.cc.
...
(class fcwd_access_t): Ditto. Only declare methods.
(class cwdstuff): Move fast_cwd_ptr and fast_cwd_version from shared
DLL section here.
* path.cc: Keep fcwd_access_t method definitions.
(fcwd_access_t::fast_cwd_version): New method.
(find_fast_cwd_pointer): Change comment. Mention test on W8CP.
(cwdstuff::init): Initialize fast_cwd_ptr and fast_cwd_version.
2012-03-05 11:50:25 +00:00
75effa37fc
* dll_init.cc (dll_list::operator[]): Extend comment a bit more to
...
explain previous patch.
2012-03-05 10:27:44 +00:00
f5b0d9d414
* dll_init.cc (dll_list::alloc): Compare linked DLLs by basename only.
...
Explain why. Add code to check if a DLL with the same basename but
different path is the same DLL. Bail out if not.
(in_load_after_fork): New static NO_COPY bool to allow to differ
between linked and loaded DLL at fork.
(dll_list::load_after_fork): Set in_load_after_fork accordingly.
(dll_dllcrt0_1): Don't treat DLL as linked if in_load_after_fork is set.
Drop test for in_forkee.
2012-03-04 16:47:45 +00:00
50124fc056
* dll_init.cc: Revert pathname changes from 2012-02-08.
...
(dll_list::operator[]): Add long comment to explain the misery.
(dll_list::alloc): Skip long pathname prefix potentially returned by
GetModuleFileNameW.
* dll_init.h (dll_list::find_by_modname): Add back declaration.
2012-03-04 13:50:12 +00:00
cd78c479f4
* winver.rc: Bump copyright date.
2012-03-04 13:19:21 +00:00
bd7c945953
* fhandler_console.cc (fhandler_console::dup): Only set ctty when we haven't
...
specifically called setsid.
* fhandler_tty.cc (fhandler_pty_slave::dup): Ditto. Also add comment
documenting research into rxvt problem.
* fhandler_termios.cc (fhandler_termios::tcsetpgrp): Don't check specifically
for myself->ctty == -1. Test for > 0 as that is the correct test.
(fhandler_termios::sigflush): Ditto.
2012-03-03 21:35:30 +00:00
56bed67046
* flock.cc (allow_others_to_sync): Reorder conditional expression to
...
check for DACL presence first, since otherwise dacl pointer value is
undefined. Add comment.
2012-03-02 17:20:11 +00:00
b4ad7197fb
* flock.cc (allow_others_to_sync): Use RtlGetDaclSecurityDescriptor
...
rather than accessing the SECURITY_DESCRIPTOR structure directly.
Take no DACL and NULL DACL into account.
2012-03-02 17:07:17 +00:00
52cbb05cfb
2012-03-02 Jeff Johnston <jjohnstn@redhat.com>
...
* libc/posix/readdir_r.c: Fix return code when end of
directory is reached.
2012-03-02 16:02:04 +00:00
2e398e8437
* configure.in: Accept "arm*" target spec instead of just "arm".
...
* configure: Regenerated.
* libnosys/configure.in: Likewise.
(libc_symbol_prefix): Renamed to libc_cv_symbol_prefix.
* libnosys/configure: Regenerated (using autoconf v2.68).
2012-03-02 13:20:08 +00:00
3118315f06
Fix typo in ChangeLog entry
2012-03-02 12:01:27 +00:00
109bc58303
* fhandler_console.cc (fhandler_console::input_tcsetattr): Revert
...
prevois patch.
(fhandler_console::open_setup): Install Ctrl-C handler here, if this
console is the controlling tty and the process hasn't been started by
a Cygwin process.
2012-03-02 11:56:06 +00:00
bfeed1643e
* fhandler_console.cc (fhandler_console::input_tcsetattr): Set the
...
state of the Ctrl-C handler depending on the setting of
ENABLE_PROCESSED_INPUT.
2012-03-02 10:17:16 +00:00
521b39b4c7
* faq-programming.xml (faq.programming.make-execvp): Remove obsolete
...
information about Tcl/Tk.
(faq.programming.dll-relocatable): Ditto.
* faq-using.xml (faq.using.tcl-tk): Rewrite to reflect switch to
X11 Tcl/Tk.
2012-03-01 07:35:02 +00:00
580df3b6ae
tcgetsid: fix return type
...
* include/sys/termios.h (tcgetsid): Fix return type.
* termios.cc (tcgetsid): Likewise.
* fhandler_termios.cc (fhandler_termios::tcgetsid): Likewise.
* fhandler.h (fhandler_base): Likewise.
* fhandler.cc (fhandler_base::tcgetsid): Likewise.
2012-02-28 14:03:03 +00:00
d783d46cca
* cygtls.cc (well_known_dlls): Add shlwapi.dll.
2012-02-28 09:44:14 +00:00