]> sourceware.org Git - newlib-cygwin.git/log
newlib-cygwin.git
11 years agoFix attributation of PR 13135 patch.
Nick Clifton [Thu, 26 Jul 2012 14:05:37 +0000 (14:05 +0000)]
Fix attributation of PR 13135 patch.

12 years ago* signal.cc (clock_nanosleep): Force return on signal rather than letting
Christopher Faylor [Wed, 25 Jul 2012 22:21:17 +0000 (22:21 +0000)]
* signal.cc (clock_nanosleep): Force return on signal rather than letting
cancelable_wait loop on signal.

12 years ago * syscalls.cc (enum bin_status): Add dir_not_empty.
Corinna Vinschen [Wed, 25 Jul 2012 12:32:37 +0000 (12:32 +0000)]
* syscalls.cc (enum bin_status): Add dir_not_empty.
(try_to_bin): Call NtQueryInformationFile(FileInternalInformation)
with exact buffer size.  Explain why.
Ditto for NtSetInformationFile(FileRenameInformation).
Handle race-condition which might lead to renaming a non-empty
directory.
(unlink_nt): Rearrange and partially rephrase comments related to the
STATUS_SHARING_VIOLATION case.  Fix condition under which a dir is
tested for being non-empty.  Handle dir_not_empty return code from
try_to_bin.  Gracefully handle disappearing directory in rm -r
workaround.  Fix typo in comment.

12 years ago * wincap.cc (wincapc::init): Drop memset call since it can result in
Corinna Vinschen [Tue, 24 Jul 2012 13:56:14 +0000 (13:56 +0000)]
* wincap.cc (wincapc::init): Drop memset call since it can result in
a race condition.  Drop all considerations for pre-Windows 2000 systems
since Cygwin won't start on them anyway.

12 years ago PR binutils/13135
Nick Clifton [Tue, 24 Jul 2012 12:56:47 +0000 (12:56 +0000)]
PR binutils/13135
* arm-dis.c: Add necessary casts for printing integer values.
Use %s when printing string values.
* hppa-dis.c: Likewise.
* m68k-dis.c: Likewise.
* microblaze-dis.c: Likewise.
* mips-dis.c: Likewise.
* ppc-dis.c: Likewise.
* sparc-dis.c: Likewise.

* dis-asm.h (fprintf_ftype): Add ATTRIBUTE_FPTR_PRINTF_2.

12 years agoChange "set_thread_waiting" to "set_signal_arrived" throughout.
Christopher Faylor [Mon, 23 Jul 2012 04:36:48 +0000 (04:36 +0000)]
Change "set_thread_waiting" to "set_signal_arrived" throughout.

12 years ago* DevNotes: Add entry cgf-000013.
Christopher Faylor [Sat, 21 Jul 2012 22:58:20 +0000 (22:58 +0000)]
* DevNotes: Add entry cgf-000013.
* cygserver_ipc.h (ipc_set_proc_info): Use _cygtls::ipc_set_proc_info to set
per-thread signal arrived value.
* cygthread.cc (cygthread::detach): Use per-thread signal_arrived via
set_thread_waiting.
* fork.cc (_cygtls::fixup_after_fork): Clear signal_arrived.
(_cygtls::remove): Close any signal_arrived handle when thread exists.
(_cygtls::find_tls): Remove unneeded function.
* cygtls.h: Update copyright.
(class _cygtls): Reorganize to help avoid rebuilding newlib when structure
changes.
(_cygtls::event): Delete.
(_cygtls::threadkill): Ditto.
(_cygtls::signal_waiting): Declare new bool.
(_cygtls::find_tls): Delete declaration.
(_cygtls::set_threadkill): Ditto.
(_cygtls::reset_threadkill): Ditto.
(_cygtls::set_signal_arrived): Declare new function.
(class set_thread_waiting): Declare new class.
* cygwait.cc (cw_nowait_storage): Define.
(cygwait): Set per-thread signal_arrived via set_thread_waiting.  Don't
special-case _main_tls.
* cygwait.h (cw_nowait): Define.
(cw_infinite): Ditto.
(cygwait): Redefine pathological wait-only case.
* dcrt0.cc (dll_crt0_0): Remove call to now-defunct events_init().
(dll_crt0_1): Remove call to now-defunct create_signal_arrived().
* exceptions.cc: Reflect set_signal_mask() argument reordering throughout.
Remove signal mask synchronization throughout.
(events_init): Delete definition.
(mask_sync): Delete now-unneeded mask synchronization.
(set_signal_mask): Reverse order of arguments to "standard" to, from layout.
Rename "newmask" argument to "setmask".  Remove debugging.
(sig_handle_tty_stop): Use cancelable_wait rather than WFMO.
(_cygtls::interrupt_setup): Don't treat "threadkill" events specially.
Conditionally set signal_arrived depending on whether the thread has created it
or not.
(sigpacket::process): Reorganize to reflect thread-specific sending of signals
which is more in line with the way it was actually supposed to work.
* fhandler_socket.cc (get_inet_addr): Use cancelable_wait rather than
IsEventSignalled to avoid potential race.
(fhandler_socket::wait_for_events): Set signal_arrived event using
set_thread_waiting().
(fhandler_socket::close): Use cygwait for the case of just waiting 10 ms for a
signal.
* fhandler_tape.cc (fhandler_dev_tape::_lock): Use cancelable_wait rather than
WFMO.  Redo switch/case tests accordingly.
* fhandler_termios.cc (fhandler_termios::bg_check): Use cygwait for case of
just waiting 0 ms for a potential signal.
* fhandler_tty.cc (fhandler_pty_master::process_slave_output): Use
cancelable_wait rather than WFSO.
* fhandler_windows.cc (fhandler_windows::read): Set per-thread signal_arrived
via set_thread_waiting().
* flock.cc (lf_setlock): Ditto.
* select.cc (pselect): Ditto.  Set per-thread signal_arrived using
set_thread_waiting().
* gendef: Don't special case handling of _cygtls::sig for threads.
* gentls_offsets: Use #pragma once in tlsoffsets.h.
* ntdll.h: Use #pragma once.
* poll.cc: Reflect set_signal_mask() argument reordering.
* posix_ipc.cc (ipc_mutex_lock): Use cancelable_wait rather than WFMO.
(ipc_cond_timedwait): Set perl-thread signal arrived using
set_thread_waiting().
* security.h: Use #pragma once.
* signal.cc (abort): Reflect set_signal_mask() argument reordering.
(clock_nanosleep): Ditto.  Change call to cancelable_wait to properly specify
handling of cancel and interrupt.
(sigwaitinfo): Remove handling of per-thread event in favor of per-thread
signal_arrived.  Use cancelable_wait rather than WFSO.
* sigproc.cc (signal_arrived): Delete definition.
(create_signal_arrived): Ditto.
* sigproc.h (signal_arrived): Delete declaration.
(set_signal_mask): Avoid defining as a "C" function.  Don't conditionally
declare.
(create_signal_arrived): Delete declaration.
* syscalls.cc (rename): Use cygwait() rather than WFSO.
* thread.h (fast_mutex::lock): Use cw_infinite rather than LARGE_NULL.
* wait.cc (wait4): Ditto.
* thread.cc (pthread_mutex::lock): Ditto.
(pthread::join): Ditto.
(semaphore::_wait): Ditto.
(pthread_kill): Remove set_threadkill() accommodation.
* tlsoffsets.h: Regenerate.

12 years ago* include/cygwin/version.h (CYGWIN_VERSION_DLL_MINOR): Bump to 17.
Christopher Faylor [Sat, 21 Jul 2012 17:13:42 +0000 (17:13 +0000)]
* include/cygwin/version.h (CYGWIN_VERSION_DLL_MINOR): Bump to 17.

12 years agoreaddir: drop bogus code
Eric Blake [Fri, 20 Jul 2012 16:55:19 +0000 (16:55 +0000)]
readdir: drop bogus code

* libc/posix/readdir.c (readdir): Drop bogus attempt to catch
bogus pointers.

12 years agoForced checkin to fix date
Corinna Vinschen [Fri, 20 Jul 2012 09:45:34 +0000 (09:45 +0000)]
Forced checkin to fix date

12 years ago * pathnames.sgml (pathnames-intro): Remove paragraph on UNC paths.
Corinna Vinschen [Fri, 20 Jul 2012 09:23:44 +0000 (09:23 +0000)]
* pathnames.sgml (pathnames-intro): Remove paragraph on UNC paths.
Try to be clearer on POSIX vs. Win32 paths.
(unc-paths): New section.
(cygdrive): Fix a few SGML qualifiers.
* setup-net.sgml: Move ntsec section from here...
* using.sgml: ..to here.

12 years ago * woutsup.h: Just include winlean.h.
Corinna Vinschen [Thu, 19 Jul 2012 17:56:46 +0000 (17:56 +0000)]
* woutsup.h: Just include winlean.h.

12 years ago*** empty log message ***
Corinna Vinschen [Thu, 19 Jul 2012 09:43:56 +0000 (09:43 +0000)]
*** empty log message ***

12 years ago * mount.cc (getmntent_r): Remove unused but set variable.
Yaakov Selkowitz [Thu, 19 Jul 2012 09:04:02 +0000 (09:04 +0000)]
* mount.cc (getmntent_r): Remove unused but set variable.

12 years ago2012-07-18 Ralf Corsépius <ralf.corsepius@rtems.org>
Ralf Corsepius [Wed, 18 Jul 2012 15:22:45 +0000 (15:22 +0000)]
2012-07-18  Ralf Corsépius  <ralf.corsepius@rtems.org>

* libc/sys/rtems/machine/_types.h (_ssize_t): Use signed int for
__v850__, __851__.

12 years ago * new-features.sgml (ov-new1.7.16): Document getmntent_r.
Yaakov Selkowitz [Wed, 18 Jul 2012 11:23:11 +0000 (11:23 +0000)]
* new-features.sgml (ov-new1.7.16): Document getmntent_r.

12 years ago * cygwin.din (getmntent_r): Export.
Corinna Vinschen [Wed, 18 Jul 2012 11:17:25 +0000 (11:17 +0000)]
* cygwin.din (getmntent_r): Export.
* mount.cc (getmntent_r): New function.
* posix.sgml (std-gnu): Add getmntent_r.
* include/mntent.h (getmntent_r): Declare.
* include/cygwin/version.h (CYGWIN_VERSION_API_MINOR): Bump.

12 years ago * faq-programming.xml (faq.programming.unix-gui): Update to
Yaakov Selkowitz [Wed, 18 Jul 2012 02:11:04 +0000 (02:11 +0000)]
* faq-programming.xml (faq.programming.unix-gui): Update to
reflect the availability of X11 toolkits on Cygwin.

12 years ago2012-07-17 Ralf Corsépius <ralf.corsepius@rtems.org>
Ralf Corsepius [Tue, 17 Jul 2012 16:56:45 +0000 (16:56 +0000)]
2012-07-17  Ralf Corsépius  <ralf.corsepius@rtems.org>

* libc/search/hcreate_r.c (hdestroy_r): #ifdef 0 unused vars ie, idx.

12 years ago2012-07-16 Ralf Corsépius <ralf.corsepius@rtems.org>
Ralf Corsepius [Mon, 16 Jul 2012 17:03:50 +0000 (17:03 +0000)]
2012-07-16  Ralf Corsépius  <ralf.corsepius@rtems.org>

* libc/posix/telldir.c: Conditionally build dd_hash_lock.

12 years ago include/
Doug Evans [Fri, 13 Jul 2012 23:39:46 +0000 (23:39 +0000)]
include/
* filenames.h: #include "hashtab.h".
(filename_hash, filename_eq): Declare.
libiberty/
* filename_cmp.c (filename_hash, filename_eq): New functions.

12 years ago2012-07-13 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
Andreas Krebbel [Fri, 13 Jul 2012 15:47:25 +0000 (15:47 +0000)]
2012-07-13  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>

* elf64-s390.c: Include elf-s390-common.c.
(R_390_IRELATIVE): New reloc.
(elf_s390_reloc_type_lookup): Support R_390_IRELATIVE.
(RELA_ENTRY_SIZE): New macro.
(elf_s390_link_hash_entry): New fields ifunc_resolver_address and
*ifunc_resolver_section.
(struct plt_entry): New struct.
(struct elf_s390_obj_tdata): New field local_plt.
(elf_s390_local_plt): New macro.
(struct elf_s390_link_hash_table): New field irelifunc.
(ELF64): New macro.
(link_hash_newfunc): Initialize new fields.
(elf_s390_check_relocs): Handle IFUNC symbols.
(elf_s390_adjust_dynamic_symbol): Don't do anything for IFUNC
symbols.
(allocate_dynrelocs): Call s390_elf_allocate_ifunc_dyn_relocs for
IFUNC symbols.
(elf_s390_size_dynamic_sections): Handle IFUNC symbols.
(elf_s390_relocate_section): Likewise.
(elf_s390_finish_dynamic_symbol): Likewise.
(elf_s390_finish_dynamic_sections): Handle local IFUNC symbols.
(elf_s390_finish_ifunc_symbol): New function.
(elf_s390_gc_sweep_hook): Handle local plt entries.
(elf_backend_add_symbol_hook): Define.
* elf32-s390.c: See elf64-s390.c changes.
* elf-s390-common.c: New file.
* bfd-in2.h (BFD_RELOC_390_IRELATIVE): New enum field.
* libbfd.h (BFD_RELOC_390_IRELATIVE): New entry for
BFD_RELOC_390_IRELATIVE.
* reloc.c (BFD_RELOC_390_IRELATIVE): Document new relocation.

2012-07-13  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>

* elf/s390.h (START_RELOC_NUMBERS): Define R_390_IRELATIVE reloc.

2012-07-13  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>

* emulparams/elf_s390.sh (IREL_IN_PLT): Define.
* emulparams/elf64_s390.sh (IREL_IN_PLT): Define.

12 years ago2012-07-13 Ralf Corsépius <ralf.corsepius@rtems.org>
Ralf Corsepius [Fri, 13 Jul 2012 09:21:45 +0000 (09:21 +0000)]
2012-07-13  Ralf Corsépius  <ralf.corsepius@rtems.org>

* libc/sys/rtems/machine/_types.h (_ssize_t): Add __ARM_EABI__,
__v850__, __851__.

12 years ago Fix copy-paste error
Corinna Vinschen [Fri, 13 Jul 2012 07:57:14 +0000 (07:57 +0000)]
Fix copy-paste error

12 years ago * winlean.h: Make sure certain Windows macros are undefined again.
Corinna Vinschen [Thu, 12 Jul 2012 11:27:28 +0000 (11:27 +0000)]
* winlean.h: Make sure certain Windows macros are undefined again.
Add comment to explain why.
* winsup.h: Include winlean.h from C sources as well.
* libc/minires-os-if.c: Drop including ntdef.h.

Fix previous ChangeLog entry.

12 years ago * pseudo-reloc.cc: Drop including wchar.h.
Corinna Vinschen [Thu, 12 Jul 2012 10:33:54 +0000 (10:33 +0000)]
* pseudo-reloc.cc: Drop including wchar.h.
(__report_error): Define module as WCHAR.
* advapi.cc: Drop including wchar.h.
* kernel32.cc: Ditto.

12 years ago * Makefile.in (cygcheck.exe): Link against psapi.dll.
Corinna Vinschen [Wed, 11 Jul 2012 16:41:51 +0000 (16:41 +0000)]
* Makefile.in (cygcheck.exe): Link against psapi.dll.
* bloda.cc: Change include section to work with Mingw64 headers.
Include psapi.h.  Use SystemProcessInformation instead of
SystemProcessesAndThreadsInformation throughout and add define for
w32api headers.  Ditto for PSYSTEM_PROCESS_INFORMATION vs.
PSYSTEM_PROCESSES.
(system_module_list): New type to replace SYSTEM_MODULE_INFORMATION.
Change usage throughout accordingly.
(get_module_list): Fetch module list using PSAPI functions
EnumDeviceDrivers and GetDeviceDriverBaseNameA.
* cygcheck.cc (max): Define as __max if not defined already.
(alloca): Only define if not defined already.
(handle_unique_object_name): Use explicit sharing flags rather than
FILE_SHARE_VALID_FLAGS which officially is only available in DDK
headers.
(PRODUCT_ULTIMATE_E): Only define if not defined already.
* dump_setup.cc: Change include section to work with Mingw64 headers.
(NtQueryAttributesFile): Drop NTOSAPI aka DECLSPEC_IMPORT.
* strace.cc: Change include section to work with Mingw64 headers.
(alloca): Only define if not defined already.

12 years ago * cygtls.cc (well_known_dlls): Add ole32.dll and wbemprox.dll.
Corinna Vinschen [Wed, 11 Jul 2012 09:21:36 +0000 (09:21 +0000)]
* cygtls.cc (well_known_dlls): Add ole32.dll and wbemprox.dll.

12 years ago * cygwin.sc (.rdata): Revert patch from 2012-07-06.
Corinna Vinschen [Mon, 9 Jul 2012 14:55:02 +0000 (14:55 +0000)]
* cygwin.sc (.rdata): Revert patch from 2012-07-06.

12 years ago * passwd.cc (getpass): Make check for closed stream more reliable.
Corinna Vinschen [Mon, 9 Jul 2012 12:57:03 +0000 (12:57 +0000)]
* passwd.cc (getpass): Make check for closed stream more reliable.
Check if setting tty attributes worked and only revert to old state
if so.

12 years ago * libc/stdio/fileno.c (fileno): Check if f is a valid stream. If not,
Corinna Vinschen [Mon, 9 Jul 2012 12:13:16 +0000 (12:13 +0000)]
* libc/stdio/fileno.c (fileno): Check if f is a valid stream.  If not,
return -1 and set errno to EBADF per POSIX.

12 years ago * Makefile.in, configure.in, mkvers.sh: Revert accidental checkin from
Corinna Vinschen [Mon, 9 Jul 2012 09:00:56 +0000 (09:00 +0000)]
* Makefile.in, configure.in, mkvers.sh: Revert accidental checkin from
2012-07-06.

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.

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