Corinna Vinschen
7cdcd90ca1
* cygerrno.h (seterrno_from_nt_status): Declare.
...
(__seterrno_from_nt_status): Call seterrno_from_nt_status.
* errno.cc (seterrno_from_win_error): Set errno without calling
set_errno to avoid packing strace output with errno messages.
(seterrno_from_nt_status): New function to print NT status as well as
resulting Windows error.
2010-04-16 15:42:29 +00:00
Corinna Vinschen
6b0f100a6d
* kernel32.cc (CreateEventW): Create event object with EVENT_ALL_ACCESS
...
access mask.
(CreateMutexW): Create mutex object with MUTEX_ALL_ACCESS access mask.
(CreateSemaphoreW): Create semaphore object with SEMAPHORE_ALL_ACCESS
access mask.
2010-04-15 17:20:59 +00:00
Corinna Vinschen
b873ce0686
* sec_helper.cc (set_cygwin_privileges): Enable SE_DEBUG_PRIVILEGE, if
...
available. Add comments.
2010-04-15 17:17:59 +00:00
Matthew Gretton-Dann
f77f01db65
* ld/testsuite/ld-arm/attr-merge-2.attr: Update for changes in attribute output.
...
* ld/testsuite/ld-arm/attr-merge-3.attr: Likewise.
* ld/testsuite/ld-arm/attr-merge-vfp-1.d: Likewise.
* ld/testsuite/ld-arm/attr-merge-vfp-1r.d: Likewise.
* ld/testsuite/ld-arm/attr-merge-vfp-2.d: Likewise.
* ld/testsuite/ld-arm/attr-merge-vfp-2r.d: Likewise.
* ld/testsuite/ld-arm/attr-merge-vfp-3.d: Likewise.
* ld/testsuite/ld-arm/attr-merge-vfp-3r.d: Likewise.
* ld/testsuite/ld-arm/attr-merge-vfp-4.d: Likeiwse.
* ld/testsuite/ld-arm/attr-merge-vfp-4r.d: Likewise.
* ld/testsuite/ld-arm/attr-merge-vfp-5.d: Likewise.
* ld/testsuite/ld-arm/attr-merge-vfp-5r.d: Likewise.
* ld/testsuite/ld-arm/attr-merge-wchar-00-nowarn.d: Likewise.
* ld/testsuite/ld-arm/attr-merge-wchar-00.d: Likewise.
* ld/testsuite/ld-arm/attr-merge-wchar-02-nowarn.d: Likewise.
* ld/testsuite/ld-arm/attr-merge-wchar-02.d: Likewise.
* ld/testsuite/ld-arm/attr-merge-wchar-04-nowarn.d: Likewise.
* ld/testsuite/ld-arm/attr-merge-wchar-04.d: Likewise.
* ld/testsuite/ld-arm/attr-merge-wchar-20-nowarn.d: Likewise.
* ld/testsuite/ld-arm/attr-merge-wchar-20.d: Likewise.
* ld/testsuite/ld-arm/attr-merge-wchar-22-nowarn.d: Likewise.
* ld/testsuite/ld-arm/attr-merge-wchar-22.d: Likewise.
* ld/testsuite/ld-arm/attr-merge-wchar-24-nowarn.d: Likewise.
* ld/testsuite/ld-arm/attr-merge-wchar-40-nowarn.d: Likewise.
* ld/testsuite/ld-arm/attr-merge-wchar-40.d: Likewise.
* ld/testsuite/ld-arm/attr-merge-wchar-42-nowarn.d: Likewise.
* ld/testsuite/ld-arm/attr-merge-wchar-44-nowarn.d: Likewise.
* ld/testsuite/ld-arm/attr-merge-wchar-44.d: Likewise.
* ld/testsuite/ld-arm/attr-merge.attr: Likewise.
* binutils/readelf.c (arm_attr_tag_FP_arch): Rename from arm_attr_tag_VFP_arch.
(arm_attr_tag_ABI_align8_needed): Remove.
(arm_attr_tag_ABI_align8_preserved): Remove.
(arm_attr_tag_ABI_HardFP_use): Update text strings.
(arm_attr_public_tags): Add strings for ABI v2.08 attribute tags.
(display_arm_attribute): Add decoding of ABI v2.08 attributes.
* include/elf/arm.h (Tag_FP_arch, Tag_ABI_align_needed, Tag_ABI_align_preserved,
Tag_FP_HP_extension): Add new ABI attribute tags.
* gas/config/tc-arm.c (arm_convert_symbolic_attribute): Add support for
new tag names in v2.08 of ARM ABI.
* gas/doc/c-arm.texi: Document new tag names in ABI.
* gas/testsuite/gas/arm/attr-mcpu.d: Update for new attribute tag names.
* gas/testsuite/gas/arm/attr-mfpu-arm1020e.d: Likewise.
* gas/testsuite/gas/arm/attr-mfpu-arm1020t.d: Likewise.
* gas/testsuite/gas/arm/attr-mfpu-arm1136jf-s.d: Likewise.
* gas/testsuite/gas/arm/attr-mfpu-arm1136jfs.d: Likewise.
* gas/testsuite/gas/arm/attr-mfpu-neon-fp16.d: Likewise.
* gas/testsuite/gas/arm/attr-mfpu-neon.d: Likewise.
* gas/testsuite/gas/arm/attr-mfpu-softvfp+vfp.d: Likewise.
* gas/testsuite/gas/arm/attr-mfpu-vfp.d: Likewise.
* gas/testsuite/gas/arm/attr-mfpu-vfp10-r0.d: Likewise.
* gas/testsuite/gas/arm/attr-mfpu-vfp10.d: Likewise.
* gas/testsuite/gas/arm/attr-mfpu-vfp3.d: Likewise.
* gas/testsuite/gas/arm/attr-mfpu-vfp9.d: Likewise.
* gas/testsuite/gas/arm/attr-mfpu-vfpv2.d: Likewise.
* gas/testsuite/gas/arm/attr-mfpu-vfpv3-d16.d: Likewise.
* gas/testsuite/gas/arm/attr-mfpu-vfpv3.d: Likewise.
* gas/testsuite/gas/arm/attr-mfpu-vfpv4-d16.d: Likewise.
* gas/testsuite/gas/arm/attr-mfpu-vfpv4.d: Likewise.
* gas/testsuite/gas/arm/attr-mfpu-vfpxd.d: Likewise.
* gas/testsuite/gas/arm/attr-names.d: Add test to make sure all attribute names
are recognised.
* gas/testsuite/gas/arm/attr-names.s: Likewise.
2010-04-15 10:56:36 +00:00
Nick Clifton
e63d7c5914
Upgrade header files to use GPLv3
2010-04-15 10:26:09 +00:00
Doug Evans
1d5e6918e5
* filenames.h (HAS_DRIVE_SPEC, STRIP_DRIVE_SPEC): New macros.
2010-04-14 21:18:27 +00:00
Tristan Gingold
9effb018f1
2010-04-14 Tristan Gingold <gingold@adacore.com>
...
* configure.ac (alpha*-*-*vms*): Remove ld from noconfigdirs.
* configure: Regenerate.
2010-04-14 09:28:48 +00:00
Michael Frysinger
8c613014ff
sim: drop PARAMS
...
The PARAMS macro is no longer useful, so drop it from the sim includes.
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
2010-04-13 20:39:44 +00:00
Michael Frysinger
110429f3f1
sim: constify sim_write source buffer
...
Most the sim write functions declare their source buffer const because
they only ever read from it. The global sim_write() function does not
follow this convention though which causes some warnings when trying to
pass it const strings or buffers.
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
2010-04-13 20:28:19 +00:00
Corinna Vinschen
0ef4bb7c50
* fhandler_socket.cc (get_inet_addr): Only test the file for being a
...
socket after opening it. Retry if opening failed with sharing
violation. Explain why we do this.
(fhandler_socket::bind): Create file with no sharing allowed.
2010-04-13 19:56:30 +00:00
Corinna Vinschen
2bba259eb7
* cygheap.cc (cwcsdup): Fix allocation size to accommodate sizeof WCHAR.
...
(cwcsdup1): Ditto.
2010-04-13 10:01:34 +00:00
Corinna Vinschen
098f9c6e48
* include/cygwin/version.h: Bump DLL minor version number to 5.
2010-04-12 17:01:01 +00:00
Corinna Vinschen
6b1c332f28
* posix.sgml (std-notes): Improve lseek description.
2010-04-12 15:36:48 +00:00
Corinna Vinschen
42e9cefd71
* fhandler_tty.cc (fhandler_tty_slave::open): Add code to duplicate
...
handles within a single process to simplify openpty case.
(fhandler_tty_slave::cygserver_attach_tty): Correctly send Windows PID
to cygserver, rather than the Cygwin PID.
2010-04-12 13:28:06 +00:00
Christopher Faylor
7092cadf76
* cygwin.dsl: Remove comments.
2010-04-11 22:15:59 +00:00
Corinna Vinschen
5e64c96949
* new-features.sgml (ov-new1.7.5): New section.
2010-04-11 19:38:35 +00:00
Corinna Vinschen
0250709234
* fhandler.h (class dev_console): Add backspace_keycode member.
...
* fhandler_console.cc (fhandler_console::get_tty_stuff): Initialize
backspace_keycode with CERASE.
(fhandler_console::read): Return dev_state->backspace_keycode if the
backspace key is pressed.
(fhandler_console::char_command): Implement DECBKM escape sequence.
2010-04-11 19:11:17 +00:00
Christopher Faylor
e4f6022e52
* cygwin-api.in.sgml: Update to DocBook SGML 4.5 DTD.
...
* cygwin-ug-net.in.sgml: Ditto.
* cygwin-ug.in.sgml: Ditto.
* faq-sections.xml: Ditto.
* faq.xml: Ditto.
2010-04-11 17:43:28 +00:00
Christopher Faylor
1d6adee8ed
* fhandler_console.cc (fhandler_console::read): Default to sending CERASE
...
character if termios VERASE field is zero.
(fhandler_console::fixup_after_fork_exec): Avoid a spurious debug message.
2010-04-10 18:05:52 +00:00
Christopher Faylor
3481527cc6
update copyright
2010-04-10 05:47:54 +00:00
Christopher Faylor
89a903b879
* mkvers.sh: Use modern date formats to construct the date.
2010-04-10 05:46:45 +00:00
Corinna Vinschen
1691abe75e
* nlsfuncs.cc (__set_lc_time_from_win): Actually set
...
_time_locale->md_order to the D_MD_ORDER value written to the buffer.
2010-04-09 21:20:21 +00:00
Christopher Faylor
412f3e61d4
* path.cc (path_conv::set_normalized_path): Use crealloc_abort to avoid a
...
memory leak.
* path.h (path_conv::operator =): Just use cstrdup to allocate normalized_path,
avoiding attempt to free a pointer which is allocated in another pc.
2010-04-09 16:51:08 +00:00
Ralf Wildenhues
5d239c6195
/:
...
Merge from gcc:
PR bootstrap/43615
PR bootstrap/43328
Revert:
2010-03-31 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
* configure.ac: Do not pass --enable-multilib nor
--disable-multilib in baseargs. Accept explicitly passed
--enable_multilib.
* configure: Regenerate.
2010-04-08 19:44:08 +00:00
Alan Modra
d96fead7bb
* internal.h (ELF_IS_SECTION_IN_SEGMENT): PT_PHDR program headers
...
cannot contain any sections.
2010-04-08 02:09:59 +00:00
Corinna Vinschen
f8fbd1ea58
* include/cygwin/version.h: Bump DLL minor version number to 4.
2010-04-07 08:55:38 +00:00
Jeff Johnston
5f46e4094f
2010-04-06 Dave Korn <dave.korn.cygwin@googlemail.com>
...
* libc/stdlib/__atexit.c (__atexit_lock): Initialise as recursive
rather than non-recursive lock type.
(__register_exitproc): Use recursive locking APIs on it.
* libc/stdlib/__call_atexit.c (__call_exitprocs): Likewise.
2010-04-06 20:20:36 +00:00
Corinna Vinschen
385b0add19
* thread.cc (valid_sched_parameters): Declare extern here.
...
(sched_set_thread_priority): Ditto.
2010-04-06 15:27:34 +00:00
Corinna Vinschen
249ccad30c
* include/sched.h: Remove, overruled by newlib file.
...
* include/sys/sched.h: Ditto.
2010-04-06 15:16:24 +00:00
Christopher Faylor
35297ebe0b
* fhandler_fifo.cc (fhandler_fifo::open): Accommodate previous return value
...
change to setup_overlapped.
2010-04-06 15:09:44 +00:00
Corinna Vinschen
65ee447a02
* libc/stdlib/btowc.c (btowc): Reorganize EOF check. Fix incorrect
...
return value if input byte is ASCII NUL.
2010-04-06 14:46:31 +00:00
Jakub Jelinek
44ac55bcb6
merge from gcc
2010-04-06 07:39:30 +00:00
DJ Delorie
26f5e38ec0
merge from gcc
2010-04-05 20:13:18 +00:00
Jakub Jelinek
89632f0136
include/
...
* dwarf2.h (DWARF2_Internal_LineInfo): Add li_max_ops_per_insn
field.
bfd/
* dwarf2.c (struct line_head): Add maximum_ops_per_insn field.
(struct line_info): Add op_index field, change end_sequence type to
unsigned char.
(new_line_sorts_after): For the same address compare op_index.
(add_line_info): Add op_index argument, store it into the structure.
(decode_line_info): Complain about unknown versions of .debug_line.
Initialize maximum_ops_per_insn. Add op_index state register and
track it.
binutils/
* dwarf.c (struct State_Machine_Registers): Add op_index field,
change end_sequence type to unsigned char.
(reset_state_machine): Clear op_index.
(process_extended_line_op): For DW_LNE_set_address clear op_index.
(display_debug_lines_raw): Initialize li_max_ops_per_insn.
Track op_index state machine register and print it if
li_max_ops_per_insn is != 1.
(display_debug_lines_decoded): Likewise.
2010-04-05 19:30:00 +00:00
Christopher Faylor
1908518227
* fhandler.h (fhandler_base::has_ongoing_io): Declare virtual method.
...
* select.cc (peek_pipe): Reorganize slightly. Don't attempt to check a handle
if it has ongoing I/O.
(select_pipe_info::select_pipe_info): Delete definition.
(select_pipe_info::~select_pipe_info): Delete definition.
(thread_pipe): Get rid of WFMO call. Reorganize loop.
(pipe_cleanup): Remove dependence on destructor.
(thread_serial): Reorganize loop.
* select.h (select_pipe_info): Empty this class since it no longer has any
special requirements (for now).
* syscalls.cc (readv): Remove an unneeded debug printf.
2010-04-02 22:36:44 +00:00
Christopher Faylor
5151c80c8a
* fhandler.h (fhandler_base::setup_overlapped): Delete virtual declaration.
...
(fhandler_base::destroy_overlapped): Ditto.
(fhandler_base_overlapped): Remove now-unneeded friend.
(fhandler_base_overlapped::setup_overlapped): Return int, remove parameter.
(fhandler_base_overlapped::get_overlapped): Return reference.
(fhandler_base_overlapped::fhandler_base_overlapped): Be more assertive about
zeroing everything.
(fhandler_base_overlapped::fixup_after_fork): Declare new function.
(fhandler_base_overlapped::fixup_after_exec): Ditto.
(fhandler_base_overlapped::dup): Ditto.
(fhandler_base_overlapped::close): Ditto.
* fhandler_fifo.cc (fhandler_fifo::dup): Call fhandler_base_overlapped::dup
rather than fhandler_base::dup.
* pipe.cc (fhandler_pipe::dup): Ditto.
(fhandler_pipe::init): Accommodate change in setup_overlapped arguments for
"opened_properly" case.
2010-04-02 18:55:02 +00:00
Christopher Faylor
60efdd0c4c
* fhandler_fifo.cc (fhandler_fifo::fhandler_fifo): Properly initialize
...
overlapped part of this class.
2010-04-02 16:43:27 +00:00
Corinna Vinschen
7c972c6354
* fhandler_tty.cc (fhandler_tty_slave::close): Revert previous change.
2010-04-02 16:16:53 +00:00
Christopher Faylor
baa671ea26
fix typo
2010-04-02 16:01:58 +00:00
Christopher Faylor
dffe690c84
* select.h (select_pipe_info::add_watch_handle): Delete declaration.
...
* select.cc (select_pipe_info::add_watch_handle): Delete deinition.
(fhandler_pipe::select_read): Delete call to add_watch_handle.
(fhandler_pipe::select_write): Ditto.
(fhandler_pipe::select_except): Ditto.
2010-04-02 15:50:54 +00:00
Christopher Faylor
1ae0a7c5a6
* dtable.cc (dtable::init_std_file_from_handle): Avoid adding fh to fdtab until
...
we know that it is good.
* fhandler_tty.cc (fhandler_tty_slave::fhandler_tty_slave): Handle error
conditions more consistently. Avoid handle leakage on error.
2010-04-02 15:41:27 +00:00
Corinna Vinschen
ed32dd8946
* fhandler_tty.cc (fhandler_tty_slave::close): Avoid potential crash
...
if former open call has been unsuccessful.
2010-04-02 14:11:45 +00:00
Corinna Vinschen
ce3124dc19
* nlsfuncs.cc: Fix indentation.
2010-04-01 20:30:07 +00:00
Corinna Vinschen
57f7ebe1f2
* nlsfuncs.cc (rebase_locale_buf): New helper function to rebase
...
function pointers in locale structures. Explain why this is necessary.
(__set_lc_time_from_win): Use rebase_locale_buf after realloc.
(__set_lc_numeric_from_win): Ditto.
(__set_lc_monetary_from_win): Ditto.
2010-04-01 20:13:22 +00:00
Jeff Johnston
c1bfa897da
2010-04-01 Joel Sherrill <joel.sherrill@oarcorp.com>
...
* libc/include/sched.h: Include prototypes for
sched_* methods.
* libc/include/sys/sched.h: Update to POSIX
1003.1b-2008. Rework constants to allow sharing
between RTEMS and Cygwin.
2010-04-01 18:33:37 +00:00
Charles Wilson
7e53fcbc29
* setup-net.sgml: Remove more mentions of rxvt.
2010-04-01 05:23:07 +00:00
Christopher Faylor
3d8a6b6236
* cygwinenv.sgml: Remove/deprecate mention of rxvt.
...
* effectively.sgml: Ditto.
* faq-using.xml: Ditto.
* setup-net.sgml: Ditto.
2010-03-31 21:06:43 +00:00
Christopher Faylor
bc3f0d64c9
* sigproc.cc (wait_sig): Make sure that strace is activated on __SIGSTRACE by
...
calling new strace::activate function.
* strace.cc (strace::activate): Rename from strace::strace.
* strace.h (strace::activate): Define new function.
(strace::strace): Call activate.
2010-03-31 18:06:02 +00:00
Christopher Faylor
e446d6d0f4
* fhandler.h (fhandler_base_overlapped): Temporarily (?) make select_pipe_info
...
a friend until the fhandler_tty intertangling can be worked out.
* select.cc (select_pipe_info::add_watch_handle): Don't inspect the overlapped
event if we're not waiting for I/O.
(fhandler_tty_common::select_*): Change to standard function. Don't do kludgy
fhandler_pipe coercion.
2010-03-31 15:00:48 +00:00
Tristan Gingold
2aec20905e
2010-03-31 Tristan Gingold <gingold@adacore.com>
...
* dcx.h: New file.
* dsc.h: New file.
* esdfm.h: New file.
* esdfv.h: New file.
* internal.h: New file.
* lbr.h: New file.
* prt.h: New file.
* shl.h (struct vms_shl): Add comments.
* esrf.h (ESRF__B_NAMLNG): New macro.
* esdf.h (ESDF__B_NAMLNG): New macro.
* emh.h: Add macros for fields maximum value.
* eisd.h (EISD__M_PROTECT): Fix typo in comment.
Add macros for offsets, version, section type and match control.
Merge vms_eisd_ext into vms_eisd.
* eihvn.h (EIHVN__MULTI_PROCESSING_BIT, EIHVN__GALAXY_BIT): Added.
* eihs.h: Remove blank line.
* eihd.h (struct vms_eihd): Add comments, add image subtype names.
* eiha.h (struct vms_eiha): Add inishr and inishr_h fields.
* eiaf.h (struct vms_eiaf): Fix base_va size.
* egsy.h: Add comments.
* egsd.h: Remove blank line.
* egps.h: Add flag names.
* eeom.h (EEOM__M_WKTFR): Added.
* dst.h (DST__K_CXX): Added, and reident languages.
(DST__K_SRC_INCRLNUM_B): Added.
Indent and order pcline commands.
Add record begin/end, enumerations, type specification, value
specification, label, discontinue range definitions.
2010-03-31 07:35:54 +00:00