]> sourceware.org Git - newlib-cygwin.git/log
newlib-cygwin.git
12 years ago* Makefile.in: Change mingw_lib (temporarily?) back to w32api_lib.
Christopher Faylor [Sun, 8 Jul 2012 00:51:45 +0000 (00:51 +0000)]
* Makefile.in: Change mingw_lib (temporarily?) back to w32api_lib.

12 years ago * cygpath.cc: Change including headers to allow building against
Corinna Vinschen [Fri, 6 Jul 2012 14:52:33 +0000 (14:52 +0000)]
* cygpath.cc: Change including headers to allow building against
Mingw64 headers. Include ntdef.h and ntdll.h rather than ddk headers.
Define _WIN32_WINNT and WINVER as 0x0602.
(RtlEqualUnicodePathPrefix): Drop definition.  Pulled in from ntdll.h
now.
(get_device_name): s/Zw/Nt.
* dumper.cc: Include sys/param.h
(dumper::dump_memory_region): Use MIN rather than min.
* locale.cc: Include stdlib.h.  Define _WIN32_WINNT and WINVER as
0x0602.
* ps.cc: Include ntdef.h and ntdll.h rather than ddk headers.
* regtool.cc (regDeleteKeyEx): Drop WINADVAPI qualifier.

12 years ago * winlean.h (__STRALIGN_H_): Drop definition.
Corinna Vinschen [Fri, 6 Jul 2012 14:44:13 +0000 (14:44 +0000)]
* winlean.h (__STRALIGN_H_): Drop definition.

12 years ago * mips.h: Fix a typo in description.
Maciej W. Rozycki [Fri, 6 Jul 2012 14:20:22 +0000 (14:20 +0000)]
* mips.h: Fix a typo in description.

12 years ago * fhandler_procnet.cc: Fix copyright.
Corinna Vinschen [Fri, 6 Jul 2012 13:56:37 +0000 (13:56 +0000)]
* fhandler_procnet.cc: Fix copyright.
* syslog.cc: Ditto.
* libc/minires-os-if.c: Ditto.
* libc/minires.h: Ditto.

12 years agoAdd files missing in previous checkin
Corinna Vinschen [Fri, 6 Jul 2012 13:53:23 +0000 (13:53 +0000)]
Add files missing in previous checkin

12 years ago In terms of network related functionality, rely on Winsock definitions
Corinna Vinschen [Fri, 6 Jul 2012 13:52:19 +0000 (13:52 +0000)]
In terms of network related functionality, rely on Winsock definitions
as much as possible:
* dtable.cc: Drop including sys/socket.h.
* fhandler_procnet.cc: Change includes accordingly.
* fhandler_socket.cc: Ditto.
(fhandler_socket::listen): Avoid gcc error message initializing sin6.
(LPFN_WSARECVMSG): Only define when building against w32api headers.
* net.cc: Change includes accordingly.  Define USE_SYS_TYPES_FD_SET
and __WSA_ERR_MACROS_DEFINED.  Define _INC_NETIOAPI temporarily and
explain why.
(struct _IP_ADAPTER_UNICAST_ADDRESS_LH): Only define when building
against w32api headers.
(struct _IP_ADAPTER_ADDRESSES_LH): Ditto.
(SIO_GET_INTERFACE_LIST): Ditto.
(ws_freeaddrinfo): Rename from freeaddrinfo so as not to collide with
Winsock declaration.  Change througout.
(ws_getaddrinfo): Ditto.
(ws_getnameinfo): Ditto.
* select.cc: Include netdb.h after defining USE_SYS_TYPES_FD_SET.
* syslog.cc: Drop including netinet/in.h.  Define USE_SYS_TYPES_FD_SET
and include ws2tcpip.h.
* include/netdb.h (struct addrinfo): Don't define when building Cygwin.
* include/cygwin/if.h: Don't declare if_xxx functions when building
Cygwin.
* include/cygwin/in.h: Disable most definitions when building Cygwin.
* include/cygwin/socket.h: Disable sockaddr and sockaddr_storage
definitions when building Cygwin.  Same for MCAST_INCLUDE/MCAST_EXCLUDE.
* libc/inet_addr.c: Don't define __INSIDE_CYGWIN__ nor
__INSIDE_CYGWIN_NET__.
* libc/inet_network.c: Ditto.
* libc/minires.h: Drop redundant inclusion of netdb.h.  Define
__INSIDE_CYGWIN_NET__ only before including netdb.h and resolver
headers.

12 years ago * include/winsock.h: Keep IP_OPTIONS and SO_xxx definitions when
Corinna Vinschen [Fri, 6 Jul 2012 13:52:10 +0000 (13:52 +0000)]
* include/winsock.h: Keep IP_OPTIONS and SO_xxx definitions when
building Cygwin.
* include/winsock2.h: Keep sockaddr and sockaddr_storage definitions
when building Cygwin.

12 years ago * winbase.h: Throughout use LONG rather than long type to prepare for
Corinna Vinschen [Fri, 6 Jul 2012 13:51:26 +0000 (13:51 +0000)]
* winbase.h: Throughout use LONG rather than long type to prepare for
64 bit.
(InterlockedCompareExchangePointer): Define.

12 years ago * fhandler_registry.cc (RegOpenUserClassesRoot): Only define when
Corinna Vinschen [Fri, 6 Jul 2012 13:49:53 +0000 (13:49 +0000)]
* fhandler_registry.cc (RegOpenUserClassesRoot): Only define when
building against w32api headers.
(RegOpenCurrentUser): Ditto.
* fhandler_tty.cc (GetNamedPipeClientProcessId): Ditto.
* ntdll.h (enum _PROCESSINFOCLASS): Add ProcessImageFileName.
(RtlInitAnsiString): Declare.
(RtlUnicodeStringToAnsiSize): Declare.
* sched.cc (GetForegroundWindow): Ditto.
* sec_helper.cc (SECURITY_NT_NON_UNIQUE): Define as
SECURITY_NT_NON_UNIQUE_RID when building against w32api headers.
(cygsid::get_sid): Use SECURITY_NT_NON_UNIQUE rather than
SECURITY_NT_NON_UNIQUE_RID.
(__sec_user): Use PISECURITY_DESCRIPTOR rather than PSECURITY_DESCRIPTOR
to allow valid pointer arithmetic.
(_recycler_sd): Ditto.
(_everyone_sd): Ditto.

12 years ago * advapi32.cc (_ADVAPI32_): Drop definition.
Corinna Vinschen [Fri, 6 Jul 2012 13:43:05 +0000 (13:43 +0000)]
* advapi32.cc (_ADVAPI32_): Drop definition.
* kernel32.cc (_KERNEL32_): Ditto.
* winlean.h: Add definitions required to use Mingw64 headers.
(FILE_SHARE_VALID_FLAGS): Drop definition.

12 years ago * winsup.h (_WIN32_WINNT): Define. Explain why.
Corinna Vinschen [Fri, 6 Jul 2012 12:13:50 +0000 (12:13 +0000)]
* winsup.h (_WIN32_WINNT): Define.  Explain why.

12 years ago * libc/rcmd.cc: Don't undef __INSIDE_CYGWIN_NET__.
Corinna Vinschen [Fri, 6 Jul 2012 12:05:19 +0000 (12:05 +0000)]
* libc/rcmd.cc: Don't undef __INSIDE_CYGWIN_NET__.

12 years ago * cygwin.sc (.rdata): Include all sections starting with .rdata.
Corinna Vinschen [Fri, 6 Jul 2012 10:44:38 +0000 (10:44 +0000)]
* cygwin.sc (.rdata):  Include all sections starting with .rdata.
(.debug_pubtypes): Make sure section is loaded at the end like all other
debug sections.

12 years ago Allow building of Cygwin using Mingw64 SDK headers:
Corinna Vinschen [Fri, 6 Jul 2012 10:41:21 +0000 (10:41 +0000)]
Allow building of Cygwin using Mingw64 SDK headers:
* libc/include/sys/time.h: Drop _WINSOCK_H guard.  Just use
_TIMEVAL_DEFINED instead.
* libc/include/sys/types.h: Check for _WINSOCKAPI_ along with
_WINSOCK_H.
* libc/include/sys/unistd.h: Ditto.

12 years ago * Makefile.common (ALL_CFLAGS): Change := to = to allow overriding in
Corinna Vinschen [Fri, 6 Jul 2012 10:32:11 +0000 (10:32 +0000)]
* Makefile.common (ALL_CFLAGS): Change := to = to allow overriding in
dependent Makefiles.

12 years agogas/config/
Sean Keys [Thu, 5 Jul 2012 19:37:52 +0000 (19:37 +0000)]
gas/config/
        * tc-xgate.c: Revised assembler so that operands
are collected before the addressing mode is
determined.

include/opcode/
* xgate.h: Changed the format string for mode
XGATE_OP_DYA_MON.

opcodes/
* xgate-dis.c: Removed an IF statement that will
always be false due to overlapping operand masks.
* xgate-opc.c: Corrected 'com' opcode entry and
fixed spacing.

12 years ago* dcrt0.cc (build_argv): Guard against NULL pointer dereference found by Clang.
Christopher Faylor [Wed, 4 Jul 2012 17:30:55 +0000 (17:30 +0000)]
* dcrt0.cc (build_argv): Guard against NULL pointer dereference found by Clang.

12 years ago* exceptions.cc (setup_handler): Remove unneeded assignment found by Clang.
Christopher Faylor [Wed, 4 Jul 2012 06:06:54 +0000 (06:06 +0000)]
* exceptions.cc (setup_handler): Remove unneeded assignment found by Clang.

12 years ago* hookapi.cc (find_first_notloaded_dll): Remove unused assignment of
Christopher Faylor [Wed, 4 Jul 2012 06:04:16 +0000 (06:04 +0000)]
* hookapi.cc (find_first_notloaded_dll): Remove unused assignment of
importRVASize found by Clang.

12 years ago* fhandler_tty.cc (fhandler_pty_slave::read): Remove duplicate assignment to
Christopher Faylor [Wed, 4 Jul 2012 06:01:16 +0000 (06:01 +0000)]
* fhandler_tty.cc (fhandler_pty_slave::read): Remove duplicate assignment to
bytes_in_pipe found by Clang.

12 years agofix typo
Christopher Faylor [Wed, 4 Jul 2012 02:26:52 +0000 (02:26 +0000)]
fix typo

12 years ago* exceptions.cc (exception::handle): Use error_code in klog, as intended.
Christopher Faylor [Tue, 3 Jul 2012 05:31:11 +0000 (05:31 +0000)]
* exceptions.cc (exception::handle): Use error_code in klog, as intended.
Found by Clang.

12 years ago * fhandler.h (class fhandler_dev_clipboard): Remove member eof.
Corinna Vinschen [Mon, 2 Jul 2012 20:17:27 +0000 (20:17 +0000)]
* fhandler.h (class fhandler_dev_clipboard): Remove member eof.
* fhandler_clipboard.cc: Throughout remove handling of eof member.
(fhandler_dev_clipboard::write): Handle EOF condition immediately,
rather than pushing it erroneously to the next read call.  Rearrange
code.  Fix bug in CF_UNICODETEXT case which potentially dropped single
bytes at the end of the buffer.  Add comment.
* strfuncs.cc (sys_cp_wcstombs): Allow returning non-NUL-terminated
buffer if dst != NULL and len == (size_t) -1.  Extend leading comment
to explain what's returned in more detail.

12 years ago* fhandler_virtual.cc (fhandler_virtual::opendir): Eliminate duplicate
Christopher Faylor [Mon, 2 Jul 2012 20:01:19 +0000 (20:01 +0000)]
* fhandler_virtual.cc (fhandler_virtual::opendir): Eliminate duplicate
assignment found by Clang.

12 years ago* fhandler_registry.cc (fhandler_registry::open): Handle missing EROFS error
Christopher Faylor [Mon, 2 Jul 2012 20:00:22 +0000 (20:00 +0000)]
* fhandler_registry.cc (fhandler_registry::open): Handle missing EROFS error
condition pointed to by Clang.

12 years ago* pinfo.cc (_pinfo::commune_request): Eliminate unneeded assignment found by
Christopher Faylor [Mon, 2 Jul 2012 19:55:51 +0000 (19:55 +0000)]
* pinfo.cc (_pinfo::commune_request): Eliminate unneeded assignment found by
Clang.

12 years ago* external.cc (fillout_pinfo): Return NULL rather than 0.
Christopher Faylor [Mon, 2 Jul 2012 19:48:33 +0000 (19:48 +0000)]
* external.cc (fillout_pinfo): Return NULL rather than 0.
(exit_process): Guard against NULL pointer dereference found by Clang.

12 years ago* mount.cc (mount_info::conv_to_win32_path): Eliminate unneeded assignment
Christopher Faylor [Mon, 2 Jul 2012 19:42:34 +0000 (19:42 +0000)]
* mount.cc (mount_info::conv_to_win32_path): Eliminate unneeded assignment
found by CLANG.
* path.cc (symlink_info::check): Remove unneeded/unused variable found by
CLANG.

12 years ago* path.cc (symlink_info::check): Remove unneeded/unused variable.
Christopher Faylor [Mon, 2 Jul 2012 19:38:41 +0000 (19:38 +0000)]
* path.cc (symlink_info::check): Remove unneeded/unused variable.

12 years ago * dll_init.cc (dll_list::alloc): Take long UNC paths into account.
Corinna Vinschen [Mon, 2 Jul 2012 14:14:01 +0000 (14:14 +0000)]
* dll_init.cc (dll_list::alloc): Take long UNC paths into account.

12 years ago* Makefile.in: Add some more optimization flags for cygwait, malloc and path. Explain
Christopher Faylor [Mon, 2 Jul 2012 02:24:25 +0000 (02:24 +0000)]
* Makefile.in: Add some more optimization flags for cygwait, malloc and path.  Explain
why -fomit-frame-pointer doesn't work right for passwd.o and path.o.  Add
-static to link command line for cygwin0.dll.
* fhandler_disk_file.cc (fhandler_disk_file::facl): Reorganize slightly to
silence compiler warning when compiling with -fstack-check.
* net.cc (inet_ntop6): Initialize structure members to silence compiler warning
when compiling with -fstack-check.
* pseudo-reloc.cc (_pei386_runtime_relocator): Make this a C function.  Detect
NULL u.
* winsup.h (_pei386_runtime_relocator): Declare this as extern "C".
* lib/_cygwin_crt0_common.cc (_pei386_runtime_relocator): Call with NULL
argument.
* signal.cc (sigaction_worker): Eliminate last argument.  Let callers report
their own strace info.  Regparmize.
(sigaction): Reflect sigaction_worker changes.
(siginterrupt): Ditto.
* exceptions.cc: Update copyright.

12 years ago* path.cc: Perform some whitespace fixups throughout.
Christopher Faylor [Mon, 2 Jul 2012 00:40:06 +0000 (00:40 +0000)]
* path.cc: Perform some whitespace fixups throughout.

12 years ago * kernel32.cc (_KERNEL32_): Define. Explain why.
Corinna Vinschen [Thu, 28 Jun 2012 20:06:23 +0000 (20:06 +0000)]
* kernel32.cc (_KERNEL32_): Define.  Explain why.
(CreateFileMappingW): Drop undocumented flProtect flags.

12 years ago * fhandler_serial.cc: Fix includes for IOCTL codes to support Mingw64.
Corinna Vinschen [Thu, 28 Jun 2012 19:25:22 +0000 (19:25 +0000)]
* fhandler_serial.cc: Fix includes for IOCTL codes to support Mingw64.
* fhandler_tape.cc: Ditto.
* flock.cc (allow_others_to_sync): Use PISECURITY_DESCRIPTOR since
PSECURITY_DESCRIPTOR is supposed to be the opaque type.
* ntdll.h: Remove CreateDisposition flags again, now that they are
defined in Mingw64's ntdef.h.  Ditto for Create/Open flags.

12 years ago * exceptions.cc (RtlUnwind): Align declaration with MSDN.
Corinna Vinschen [Thu, 28 Jun 2012 14:06:06 +0000 (14:06 +0000)]
* exceptions.cc (RtlUnwind): Align declaration with MSDN.
* ntdll.h: Define CreateDisposition Flags.  Add comments.
* winlean.h: Define FILE_SHARE_VALID_FLAGS if using Mingw64 headers.

12 years ago* configure.ac (CFLAGS_FOR_TARGET, CXXFLAGS_FOR_TARGET): Make sure
Alexandre Oliva [Thu, 28 Jun 2012 11:50:52 +0000 (11:50 +0000)]
* configure.ac (CFLAGS_FOR_TARGET, CXXFLAGS_FOR_TARGET): Make sure
they contain -O2.
* configure: Regenerate.

12 years ago * common.h (AT_L1I_CACHESHAPE, AT_L1D_CACHESHAPE,
Iain D Sandoe [Thu, 28 Jun 2012 09:12:27 +0000 (09:12 +0000)]
* common.h (AT_L1I_CACHESHAPE, AT_L1D_CACHESHAPE,
AT_L2_CACHESHAPE, AT_L3_CACHESHAPE): New defines.

12 years ago * doc/Makefile.am (makedoc): Use LDFLAGS_FOR_BUILD not LDFLAGS.
Corinna Vinschen [Thu, 28 Jun 2012 08:26:00 +0000 (08:26 +0000)]
* doc/Makefile.am (makedoc): Use LDFLAGS_FOR_BUILD not LDFLAGS.
* doc/Makefile.in: Regenerate.

12 years ago* cygwait.h (cancelable_wait): Make extern to avoid always including.
Christopher Faylor [Wed, 27 Jun 2012 21:42:11 +0000 (21:42 +0000)]
* cygwait.h (cancelable_wait): Make extern to avoid always including.
* select.cc (allocfd_set): Try to make a little more efficient.
(cygwin_select): Break into two functions to avoid what seems to be a strange
compiler problem with alloca and sel constructor.
(select): New function.  Always honor return from call_signal_handler.
(select_stuff::wait): Always honor return from call_signal_handler.
* select.h (select_stuff::select_stuff): Use NULL to initialize pointers rather
than 0.

12 years ago * exceptions.cc (exception::handle): Cast exception code to NTSTATUS
Corinna Vinschen [Wed, 27 Jun 2012 16:24:54 +0000 (16:24 +0000)]
* exceptions.cc (exception::handle): Cast exception code to NTSTATUS
for comparison.
* ntdll.h: Drop defining NT status codes in favor of including
ntstatus.h.

12 years ago * miscfuncs.cc (WritePipeOverlapped): Define second parameter LPCVOID,
Corinna Vinschen [Wed, 27 Jun 2012 13:35:48 +0000 (13:35 +0000)]
* miscfuncs.cc (WritePipeOverlapped): Define second parameter LPCVOID,
rather than PCVOID.
* miscfuncs.h (WritePipeOverlapped): Ditto.

12 years ago * advapi32.cc (_ADVAPI32_): Define. Explain why.
Corinna Vinschen [Wed, 27 Jun 2012 13:19:11 +0000 (13:19 +0000)]
* advapi32.cc (_ADVAPI32_): Define.  Explain why.
(ImpersonateNamedPipeClient): Add missing WINAPI.
* ntdll.h (STATUS_INVALID_PARAMETER): Only define if it isn't already.
(STATUS_DLL_NOT_FOUND): Ditto.
(STATUS_ENTRYPOINT_NOT_FOUND): Ditto.
(enum _EVENT_TYPE): Guard against redefinition since it's already
defined in Mingw64's ntdef.h.
(enum _TIMER_TYPE): Ditto.
(enum _SECTION_INHERIT): Define if using Mingw64 headers since it's
missing in Mingw64's ntdef.h.
* winlean.h (__STRALIGN_H_): Define before including windows.h.

12 years ago * winsup.h (GetLastError): Drop redundant definition.
Corinna Vinschen [Tue, 26 Jun 2012 16:36:00 +0000 (16:36 +0000)]
* winsup.h (GetLastError): Drop redundant definition.

12 years ago* libc/include/sys/types.h: Don't use the same preprocessor guard for time_t,
Christopher Faylor [Tue, 26 Jun 2012 16:03:12 +0000 (16:03 +0000)]
* libc/include/sys/types.h: Don't use the same preprocessor guard for time_t,
timespec, and itimerspec.  Add a separate guard specifically for timespec and
always unconditionally define itimerspec.

12 years agofix typo
Christopher Faylor [Tue, 26 Jun 2012 05:23:10 +0000 (05:23 +0000)]
fix typo

12 years ago* cygwait.cc (cancelable_wait): Make sure that timer is cancelled before
Christopher Faylor [Mon, 25 Jun 2012 16:28:50 +0000 (16:28 +0000)]
* cygwait.cc (cancelable_wait): Make sure that timer is cancelled before
cancelling thread.

12 years ago* cygwait.h (cancelable_wait): Need to force time to negative to indicate
Christopher Faylor [Mon, 25 Jun 2012 05:00:39 +0000 (05:00 +0000)]
* cygwait.h (cancelable_wait): Need to force time to negative to indicate
relative time.

12 years ago PR 14125
Doug Evans [Sat, 23 Jun 2012 22:23:43 +0000 (22:23 +0000)]
PR 14125
* NEWS: Document additions to .gdb_index.
* dwarf2read.c: #include "gdb/gdb-index.h".
(DW2_GDB_INDEX_SYMBOL_STATIC_SET_VALUE): New macro.
(DW2_GDB_INDEX_SYMBOL_KIND_SET_VALUE): New macro.
(DW2_GDB_INDEX_CU_SET_VALUE): New macro.
(dwarf2_read_index): Recognize version 7.
(dw2_do_expand_symtabs_matching): New args want_specific_block,
block_kind, domain): All callers updated.
(dw2_find_symbol_file): Handle new index CU values.
(dw2_expand_symtabs_matching): Match symbol kind if requested.
(add_index_entry): New args is_static, kind.  All callers updated.
(offset_type_compare, uniquify_cu_indices): New functions
(symbol_kind): New function.
(write_psymtabs_to_index): Remove duplicate CU values.
(write_psymtabs_to_index): Write .gdb_index version 7.

doc/
* gdb.texinfo (Index Section Format): Document version 7 format.

include/gdb/
* gdb-index.h: New file.

12 years ago * path.cc (realpath): Fix comment.
Corinna Vinschen [Fri, 22 Jun 2012 09:51:29 +0000 (09:51 +0000)]
* path.cc (realpath): Fix comment.

12 years ago * path.cc (realpath): Call mount_info::conv_to_posix_path rather than
Corinna Vinschen [Thu, 21 Jun 2012 09:33:19 +0000 (09:33 +0000)]
* path.cc (realpath): Call mount_info::conv_to_posix_path rather than
mount_info::cygdrive_posix_path to convert DOS paths to POSIX paths.
Add comment to explain why that's necessary at all.

12 years ago* cygwait.h (LARGE_NULL): Define.
Christopher Faylor [Tue, 19 Jun 2012 00:52:59 +0000 (00:52 +0000)]
* cygwait.h (LARGE_NULL): Define.
(cancelable_wait): Define variant which accepts DWORD time argument.
(cygwait): Use cancelable_wait with DWORD argument.
(cygwait): Use cancelable_wait with DWORD argument and cw_sig_eintr for
timeout-only case.
* exceptions.cc (handle_sigsuspend): Use LARGE_NULL as second argument to
distinguish between cancelable_wait variants.
* thread.cc (pthread_mutex::lock): Ditto.
(pthread::join): Ditto.
(semaphore::_timedwait): Ditto.
* thread.h (fast_mutex::lock): Ditto.
* wait.cc (wait4): Ditto.

12 years agoRevert errneous checkin.
Christopher Faylor [Tue, 19 Jun 2012 00:38:02 +0000 (00:38 +0000)]
Revert errneous checkin.
Check in actual change associated with ChangeLog.

12 years ago* cygwait.cc (cancelable_wait): Mimic old cygwait behavior more closely wrt
Christopher Faylor [Tue, 19 Jun 2012 00:31:15 +0000 (00:31 +0000)]
* cygwait.cc (cancelable_wait): Mimic old cygwait behavior more closely wrt
handling of call_signal_handler.
* cygwait.h (WAIT_CANCELED): Move here and redefine.
(WAIT_SIGNALED): Ditto.
* thread.h (WAIT_CANCELED): Delete.
(WAIT_SIGNALED): Ditto.

12 years agomerge from gcc
DJ Delorie [Tue, 19 Jun 2012 00:03:49 +0000 (00:03 +0000)]
merge from gcc

12 years ago * cygheap.cc (init_cygheap::init_installation_root): Rearrange code
Corinna Vinschen [Mon, 18 Jun 2012 20:17:15 +0000 (20:17 +0000)]
* cygheap.cc (init_cygheap::init_installation_root): Rearrange code
creating valid native NT installation_root path.  Only strip last
backslash from path if the result is a valid NT path.  Explain why.

12 years agoAdd '#include "cygwait.h"' throughout, where appropriate.
Christopher Faylor [Sun, 17 Jun 2012 20:50:24 +0000 (20:50 +0000)]
Add '#include "cygwait.h"' throughout, where appropriate.
* DevNotes: Add entry cgf-000012.
* Makefile.in (DLL_OFILES): Add cygwait.o.
* sigproc.h: Remove cygwait definitions.
* cygwait.h: New file.  Define/declare Cygwin waitfor functions.
* cygwait.cc: Ditto.
* exceptions.cc: Include cygwait.h.
(handle_sigsuspend): Accommodate change in cancelable_wait arguments.
(sigpacket::process): Display thread tls in debugging output.
* fhandler.cc (fhandler_base_overlapped::wait_overlapped): Use symbolic names
for signal and cancel return.
* fhandler_console.cc (fhandler_console::read): Ditto.
(fhandler_dev_dsp::Audio_out::waitforspace): Ditto.
fhandler_dev_dsp::Audio_in::waitfordata): Ditto.
* fhandler_fifo.cc (fhandler_fifo::wait): Ditto.
* fhandler_serial.cc (fhandler_serial::raw_read): Ditto.
* fhandler_tty.cc (fhandler_pty_slave::read): Ditto.
* select.cc (cygwin_select): Ditto.
* wait.cc (wait4): Ditto.
* thread.cc (cancelable_wait): Move definition to cygwait.h.
(pthread_cond::wait): Accommodate change in cancelable_wait arguments.
(pthread_mutex::lock): Ditto.
(pthread_spinlock::lock): Ditto.
(pthread::join): Ditto.
(pthread::thread_init_wrapper): Display tls in debugging output.
(semaphore::_timedwait): Ditto.
* thread.h (cw_sig_wait): Move to cygwait.h.
(cw_cancel_action): Delete.
(cancelable_wait): Move declaration to cygwait.h.

12 years ago2012-06-12 Rafael Ávila de Espíndola <respindola@mozilla.com>
Rafael Ávila de Espíndola [Tue, 12 Jun 2012 22:50:44 +0000 (22:50 +0000)]
2012-06-12  Rafael Ávila de Espíndola <respindola@mozilla.com>

* plugin-api.h (ld_plugin_output_file_type): Add LDPO_PIE.

12 years agoFix last ChangeLog entry.
Yaakov Selkowitz [Tue, 12 Jun 2012 18:34:38 +0000 (18:34 +0000)]
Fix last ChangeLog entry.

12 years ago * regex/regcomp.c (p_ere): Allow vertical-line following
Yaakov Selkowitz [Mon, 11 Jun 2012 22:15:27 +0000 (22:15 +0000)]
* regex/regcomp.c (p_ere): Allow vertical-line following
left-parenthesis in ERE, as in glibc.

12 years ago * include/sys/elf_common.h (R_386_16): Define.
Yaakov Selkowitz [Sun, 10 Jun 2012 18:28:16 +0000 (18:28 +0000)]
* include/sys/elf_common.h (R_386_16): Define.
(R_386_PC16): Define.
(R_386_8): Define.
(R_386_PC8): Define.

12 years ago* select.cc (cygwin_select): Remove select_timeout test.
Christopher Faylor [Sun, 10 Jun 2012 01:57:53 +0000 (01:57 +0000)]
* select.cc (cygwin_select): Remove select_timeout test.
(select_stuff::wait): Return select_set_zero on timeout.
(thread_socket): Report timeout when debugging.

12 years agomerge from gcc
DJ Delorie [Fri, 8 Jun 2012 19:01:23 +0000 (19:01 +0000)]
merge from gcc

12 years ago * avr.h: (AVR_ISA_XCH): New define.
Nick Clifton [Thu, 7 Jun 2012 16:43:36 +0000 (16:43 +0000)]
* avr.h: (AVR_ISA_XCH): New define.
(AVR_ISA_XMEGA): Use it.
(XCH, LAS, LAT, LAC): New XMEGA opcodes.

12 years ago * include/elf.h: Update from FreeBSD.
Yaakov Selkowitz [Wed, 6 Jun 2012 04:45:48 +0000 (04:45 +0000)]
* include/elf.h: Update from FreeBSD.
* include/machine/elf.h: New header, from FreeBSD.
* include/sys/elf.h: Ditto.
* include/sys/elf32.h: Update from FreeBSD.
* include/sys/elf64.h: Ditto.
* include/sys/elf_common.h: Ditto.
(R_IA64_*): Define Linux-style names as aliases to R_IA_64_*.
(R_SH_*): Define, based on sh-4 psABI.
(R_390_*): Define, based on s390x psABI.
* include/sys/elf_generic.h: Ditto.

12 years ago * libc/stdio/findfp.c (__sinit): Avoid infinite recursion on
Corinna Vinschen [Tue, 5 Jun 2012 16:17:16 +0000 (16:17 +0000)]
* libc/stdio/findfp.c (__sinit): Avoid infinite recursion on
_REENT_SMALL targets.  Add comment to explain.

12 years ago * fhandler_disk_file.cc (fhandler_disk_file::link ): Translate
Corinna Vinschen [Mon, 4 Jun 2012 08:49:13 +0000 (08:49 +0000)]
* fhandler_disk_file.cc (fhandler_disk_file::link ): Translate
STATUS_NOT_SUPPORTED to EPERM as well.

12 years ago* dtable.cc (dtable::dup3): Only return with lock set when O_EXCL flag is
Christopher Faylor [Mon, 4 Jun 2012 01:26:05 +0000 (01:26 +0000)]
* dtable.cc (dtable::dup3): Only return with lock set when O_EXCL flag is
passed in.
* syscalls.cc (dup_finish): Pass O_EXCL in flags to dtable::dup3.

12 years ago* DevNotes: Add entry cgf-000011.
Christopher Faylor [Sun, 3 Jun 2012 18:02:45 +0000 (18:02 +0000)]
* DevNotes: Add entry cgf-000011.
* fhandler.h (fhandler_base::refcnt): Delete.
(fhandler_base::inc_refcnt): New function.
(fhandler_base::dec_refcnt): New function.
* cygheap.h (cygheap_fdnew::~cygheap_fdnew): Accommodate split of refcnt to
inc_refcnt/dec_refcnt.
(cygheap_fdget::cygheap_fdget): Ditto.
(cygheap_fdget::~cygheap_fdget::cygheap_fdget): Ditto.
* dtable.cc (dtable::release): Ditto.
(cygwin_attach_handle_to_fd): Ditto.
(dtable::init_std_file_from_handle): Ditto.
(dtable::dup3): On success, return with fdtab locked.
* dtable.h (dtable): Add dup_finish as a friend.
* syscalls.cc (dup_finish): Define new function.  Increment refcnt while fdtab
is locked.
(dup2): Use common dup_finish() to perform dup operation.
(dup3): Ditto.

12 years ago * new-features.sgml (ov-new1.7.16): Document ReFS support.
Corinna Vinschen [Sun, 3 Jun 2012 16:53:03 +0000 (16:53 +0000)]
* new-features.sgml (ov-new1.7.16): Document ReFS support.

12 years ago*** empty log message ***
Corinna Vinschen [Sun, 3 Jun 2012 16:47:57 +0000 (16:47 +0000)]
*** empty log message ***

12 years ago * globals.cc (ro_u_refs): New R/O unicode string.
Corinna Vinschen [Sun, 3 Jun 2012 16:46:53 +0000 (16:46 +0000)]
* globals.cc (ro_u_refs): New R/O unicode string.
* mount.cc (fs_info::update): Recognize ReFS.
* mount.h (enum fs_info_type): Add refs.
(class fs_info): Add refs flag and accessor methods.
* ntdll.h (RtlAddAccessAllowedAceEx): Declare.
(RtlAddAccessDeniedAceEx): Declare.
* path.h (path_conv::fs_is_refs): Define.
* sec_helper.cc (_recycler_sd): New function to create security
descriptors suitable for the recycler bin starting with Vista.
* security.cc (add_access_allowed_ace): Use RtlAddAccessAllowedAceEx
and drop code to set AceFlags explicitely.
(add_access_denied_ace): Use RtlAddAccessDeniedAceEx and drop code to
set AceFlags explicitely.
* security.h (_recycler_sd): Declare.
(recycler_sd): Define.
* syscalls.cc (desktop_ini): Change formatting.
(desktop_ini_ext): Define third line of recycler desktop.ini file
since Vista,
(try_to_bin): Handle ReFS just like NTFS.  Write Vista and later
Recycler in all uppercase, just like shell32 does when recreating it.
Fix comments to include ReFS.  Don't implicitely reuse object
attributes from earlier NtOpenFile call, rather recreate it for safety.
Use recycler_sd call when creating security descriptor for Recycler
dirs and files on Vista and later.  Write third line of desktop.ini
when on Vista and later.

12 years ago * cygcheck.cc (dump_sysinfo): Change "Server 8" to official
Corinna Vinschen [Sun, 3 Jun 2012 16:45:27 +0000 (16:45 +0000)]
* cygcheck.cc (dump_sysinfo): Change "Server 8" to official
"Server 2012".

12 years ago* winbase.h: Add missing copyright date.
Christopher Faylor [Sun, 3 Jun 2012 16:32:00 +0000 (16:32 +0000)]
* winbase.h: Add missing copyright date.

12 years ago* select.cc (cygwin_select): Make sure that we only return -1 as an error
Christopher Faylor [Sun, 3 Jun 2012 16:31:33 +0000 (16:31 +0000)]
* select.cc (cygwin_select): Make sure that we only return -1 as an error
return.
(select_stuff::wait): Semi-revert to previous method for filling out w4.

12 years ago* select.cc (cygwin_select): Add some comments.
Christopher Faylor [Sun, 3 Jun 2012 03:29:47 +0000 (03:29 +0000)]
* select.cc (cygwin_select): Add some comments.
(select_stuff::wait): Ditto.

12 years ago* DevNotes: Add entry cgf-000010.
Christopher Faylor [Sun, 3 Jun 2012 02:59:20 +0000 (02:59 +0000)]
* DevNotes: Add entry cgf-000010.
* select.cc (set_handle_or_return_if_not_open): Remove unneeded final backslash
from definition.
(cygwin_select): Reorganize to incorporate outer retry loop.  Move remaining
time recalculation here for retry case.  Use select_stuff::wait_states for loop
control.
(select_stuff::cleanup): Avoid unneeded initialization.
(select_stuff::wait): Modify definition to return select_stuff::wait_states.
Eliminate is_cancelable.  Don't element 1 of an array if it is a cancel handle.
Remove loop.  Rely on being called from enclosing loop in cygwin_select.
Remove time recalculation when restarting.  Try harder to always return from
the bottom.
* select.h (select_stuff::wait_state): New enum.
(select_stuff::wait): Modify declaration to return select_stuff::wait_states.

12 years ago* exceptions.cc (setup_handler): Make debugging output a little more verbose.
Christopher Faylor [Sun, 3 Jun 2012 02:26:58 +0000 (02:26 +0000)]
* exceptions.cc (setup_handler): Make debugging output a little more verbose.

12 years ago* cygtls.h (_cygtls::protect_linked_list): Delete unused field.
Christopher Faylor [Sat, 2 Jun 2012 20:28:57 +0000 (20:28 +0000)]
* cygtls.h (_cygtls::protect_linked_list): Delete unused field.

12 years agoFix typo.
Corinna Vinschen [Thu, 31 May 2012 09:18:58 +0000 (09:18 +0000)]
Fix typo.

12 years ago * libc/stdio/local.h (_newlib_sfp_lock_exit): Fix typo in non-pthread
Corinna Vinschen [Thu, 31 May 2012 07:33:59 +0000 (07:33 +0000)]
* libc/stdio/local.h (_newlib_sfp_lock_exit): Fix typo in non-pthread
version.

12 years ago * libc/stdio/fgetws.c (_fgetws_r): Call _mbsnrtowcs_r rather than
Corinna Vinschen [Wed, 30 May 2012 14:42:52 +0000 (14:42 +0000)]
* libc/stdio/fgetws.c (_fgetws_r): Call _mbsnrtowcs_r rather than
_mbsrtowcs_r and restrict number of wide chars to n - 1.

12 years ago * hookapi.cc (find_first_notloaded_dll): Extend comment. Fix usage of
Corinna Vinschen [Wed, 30 May 2012 14:37:53 +0000 (14:37 +0000)]
* hookapi.cc (find_first_notloaded_dll): Extend comment.  Fix usage of
mapped memory.  Shorten static library name buffer to MAX_PATH.  Use
strlcpy to copy library name to buffer.  Only Unmap "map" if it has been
Mapped before.
* pinfo.cc (status_exit): Drop unneeded declaration of
find_first_notloaded_dll in favor of the declaration in winsup.h.

12 years ago * thread.cc: Remove temporary newlib workaround, now that newlib
Corinna Vinschen [Wed, 30 May 2012 09:15:38 +0000 (09:15 +0000)]
* thread.cc: Remove temporary newlib workaround, now that newlib
handles thread cancellation by itself.
(class __cygwin_lock_handler): Remove.
(__cygwin_lock_cleanup): Remove.
(__cygwin_lock_lock): Revert newlib workaround,
(__cygwin_lock_trylock): Ditto.
(__cygwin_lock_unlock): Ditto.
(pthread::pop_cleanup_handler): Ditto.

12 years ago * libc/stdio/local.h (_newlib_flockfile_start): New macro to
Corinna Vinschen [Wed, 30 May 2012 08:58:42 +0000 (08:58 +0000)]
* libc/stdio/local.h (_newlib_flockfile_start): New macro to
secure stream related critical section against thread cancellation.
(_newlib_flockfile_exit): Ditto.
(_newlib_sfp_lock_end): Ditto.
(_newlib_sfp_lock_start): Ditto for the list of streams.
(_newlib_sfp_lock_exit): Ditto.
(_newlib_sfp_lock_end): Ditto.
Use aforementioned macros in place of _flockfile/_funlockfile
and __sfp_lock_acquire/__sfp_lock_release throughout the code.
* libc/stdio/fclose.c: Explicitely disable and re-enable thread
cancellation.  Explain why.
* libc/stdio/freopen.c: Ditto.
* libc/stdio64/freopen64.c: Ditto.

12 years agoResync config/ from GCC.
Joseph Myers [Tue, 29 May 2012 15:58:15 +0000 (15:58 +0000)]
Resync config/ from GCC.

12 years ago * select.cc (select_stuff::wait): Temporarily disable restarting
Corinna Vinschen [Tue, 29 May 2012 13:11:34 +0000 (13:11 +0000)]
* select.cc (select_stuff::wait): Temporarily disable restarting
entirely.

12 years ago * security.h (cygsidlist::+=): Correctly copy well_known_sid info from
Corinna Vinschen [Tue, 29 May 2012 13:01:50 +0000 (13:01 +0000)]
* security.h (cygsidlist::+=): Correctly copy well_known_sid info from
source cygsid.

12 years ago * Makefile.in (LIBS): Re-add advapi32.dll. Explain why.
Corinna Vinschen [Tue, 29 May 2012 12:46:01 +0000 (12:46 +0000)]
* Makefile.in (LIBS): Re-add advapi32.dll.  Explain why.
* make-64bit-version-with-mingw-w64.sh (LIBS): Ditto.
* cyglsa.c: Drop NTDLL function declarations.  Use equivalent advapi32
functions again, throughout.
* cyglsa64.dll: Regenerate.

12 years ago * registry.cc (reg_key::build_reg): Fix typo in debug output.
Corinna Vinschen [Fri, 25 May 2012 14:49:56 +0000 (14:49 +0000)]
* registry.cc (reg_key::build_reg): Fix typo in debug output.

12 years ago * select.cc (select_stuff::wait): When not returning after receiving
Corinna Vinschen [Fri, 25 May 2012 14:33:18 +0000 (14:33 +0000)]
* select.cc (select_stuff::wait): When not returning after receiving
a signal, recalculate timeout.  Apply temporary fix to avoid crashes
after calling the signal handler.  Explain.

12 years ago * fhandler_serial.cc (fhandler_serial::raw_read): Check for
Corinna Vinschen [Fri, 25 May 2012 11:08:10 +0000 (11:08 +0000)]
* fhandler_serial.cc (fhandler_serial::raw_read): Check for
ERROR_OPERATION_ABORTED rather than ERROR_IO_INCOMPLETE after CancelIo.

12 years ago * fhandler_serial.cc (fhandler_serial::raw_read): Just call ReadFile
Corinna Vinschen [Fri, 25 May 2012 09:29:17 +0000 (09:29 +0000)]
* fhandler_serial.cc (fhandler_serial::raw_read): Just call ReadFile
directly in case of non-blocking I/O and handle result gracefully.

12 years agogdb/
Pedro Alves [Thu, 24 May 2012 16:51:39 +0000 (16:51 +0000)]
gdb/
2012-05-24  Pedro Alves  <palves@redhat.com>

PR gdb/7205

        Replace TARGET_SIGNAL_ with GDB_SIGNAL_ throughout.

gdb/gdbserver/
2012-05-24  Pedro Alves  <palves@redhat.com>

PR gdb/7205

        Replace TARGET_SIGNAL_ with GDB_SIGNAL_ throughout.

include/gdb/
2012-05-24  Pedro Alves  <palves@redhat.com>

PR gdb/7205

        * gdb/signals.def: Replace TARGET_SIGNAL_ with GDB_SIGNAL_
throughout.

sim/arm/
2012-05-24  Pedro Alves  <palves@redhat.com>

PR gdb/7205

        Replace TARGET_SIGNAL_ with GDB_SIGNAL_ throughout.

sim/avr/
2012-05-24  Pedro Alves  <palves@redhat.com>

PR gdb/7205

        Replace TARGET_SIGNAL_ with GDB_SIGNAL_ throughout.

sim/common/
2012-05-24  Pedro Alves  <palves@redhat.com>

PR gdb/7205

        Replace TARGET_SIGNAL_ with GDB_SIGNAL_ throughout.

sim/cr16/
2012-05-24  Pedro Alves  <palves@redhat.com>

PR gdb/7205

        Replace TARGET_SIGNAL_ with GDB_SIGNAL_ throughout.

sim/d10v/
2012-05-24  Pedro Alves  <palves@redhat.com>

PR gdb/7205

        Replace TARGET_SIGNAL_ with GDB_SIGNAL_ throughout.

sim/erc32/
2012-05-24  Pedro Alves  <palves@redhat.com>

PR gdb/7205

        Replace TARGET_SIGNAL_ with GDB_SIGNAL_ throughout.

sim/m32c/
2012-05-24  Pedro Alves  <palves@redhat.com>

PR gdb/7205

        Replace TARGET_SIGNAL_ with GDB_SIGNAL_ throughout.

sim/ppc/
2012-05-24  Pedro Alves  <palves@redhat.com>

PR gdb/7205

        Replace TARGET_SIGNAL_ with GDB_SIGNAL_ throughout.

sim/rl78/
2012-05-24  Pedro Alves  <palves@redhat.com>

PR gdb/7205

        Replace TARGET_SIGNAL_ with GDB_SIGNAL_ throughout.

sim/rx/
2012-05-24  Pedro Alves  <palves@redhat.com>

PR gdb/7205

        Replace TARGET_SIGNAL_ with GDB_SIGNAL_ throughout.

12 years agogdb/
Pedro Alves [Thu, 24 May 2012 16:39:13 +0000 (16:39 +0000)]
gdb/
2012-05-24  Pedro Alves  <palves@redhat.com>

PR gdb/7205

Replace target_signal with gdb_signal throughout.

gdb/gdbserver/
2012-05-24  Pedro Alves  <palves@redhat.com>

PR gdb/7205

Replace target_signal with gdb_signal throughout.

include/gdb/
2012-05-24  Pedro Alves  <palves@redhat.com>

PR gdb/7205

Replace target_signal with gdb_signal throughout.

sim/common/
2012-05-24  Pedro Alves  <palves@redhat.com>

PR gdb/7205

Replace target_signal with gdb_signal throughout.

12 years ago * thread.cc (__cygwin_lock_lock): Replace null thread check with test
Corinna Vinschen [Thu, 24 May 2012 14:17:51 +0000 (14:17 +0000)]
* thread.cc (__cygwin_lock_lock): Replace null thread check with test
for cygwin_finished_initializing to handle process startup.
(__cygwin_lock_trylock): Ditto.
(__cygwin_lock_unlock): Ditto.

12 years ago * leb128.h: #include stdint.h, inttypes.h.
Doug Evans [Thu, 24 May 2012 01:18:15 +0000 (01:18 +0000)]
* leb128.h: #include stdint.h, inttypes.h.
(read_uleb128_to_uint64): Renamed from read_uleb128_to_ull.
Change to take a uint64_t * argument instead of unsigned long long.
(read_sleb128_to_uint64): Renamed from read_sleb128_to_ll.
Change to take an int64_t * argument instead of long long.

12 years ago * thread.cc (__cygwin_lock_lock): Take null thread at process startup
Corinna Vinschen [Wed, 23 May 2012 19:49:39 +0000 (19:49 +0000)]
* thread.cc (__cygwin_lock_lock): Take null thread at process startup
into account.
(__cygwin_lock_trylock): Ditto.
(__cygwin_lock_unlock): Ditto.

12 years ago * thread.cc (pthread::cancel): Re-allow asynchronous cancellation from
Corinna Vinschen [Wed, 23 May 2012 17:39:39 +0000 (17:39 +0000)]
* thread.cc (pthread::cancel): Re-allow asynchronous cancellation from
Cygwin code since it looks like the problem is Windows only.

12 years ago * thread.cc: Add a temporary workaround to help Cygwin along while
Corinna Vinschen [Wed, 23 May 2012 16:26:34 +0000 (16:26 +0000)]
* thread.cc: Add a temporary workaround to help Cygwin along while
newlib doesn't install cleanup handlers.  Explain the problem.
(class __cygwin_lock_handler): New class.
(__cygwin_lock_cleanup): New function.
(__cygwin_lock_lock): Push __cygwin_lock_cleanup thread cleanup
handler.
(__cygwin_lock_trylock): Ditto.
(__cygwin_lock_unlock): Pop thread cleanup handler.
(pthread::pop_cleanup_handler): Temporarily allow cleanup function to
destroy cleanup handler so we can pop in another function than we
pushed in.

This page took 0.067261 seconds and 5 git commands to generate.