summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* * select.cc (cygwin_select): Make degenerate case cancelable.Corinna Vinschen2011-05-034-10/+51
| | | | | | | | | (select_stuff::destroy): New inline method to delete memory taken by select_stuff. (select_stuff::~select_stuff): Call destroy. (select_stuff::wait): Add case to allow canceling select. * select.h (select_stuff::destroy): Declare. * thread.cc: Mark poll, pselect and poll as cancelable.
* * locale.cc (print_locale_with_codeset): Align printing of locale namesCorinna Vinschen2011-05-032-4/+10
| | | | to POSIX.
* * fhandler.cc (fhandler_base_overlapped::wait_overlapped): MakeCorinna Vinschen2011-05-032-5/+12
| | | | | cancelable. Remove test for main thread, always add signal_arrived to waited objects.
* 2011-05-03 Tristan Gingold <gingold@adacore.com>Tristan Gingold2011-05-032-1/+6
| | | | | * rs6000.h (struct external_ldsym): Use E_SYMNMLEN instead of SYMNMLEN.
* * fhandler_tty.cc (fhandler_tty_slave::read): Set WFMO timeout to 0 forCorinna Vinschen2011-05-032-37/+83
| | | | | | | | nonblocking case. Drop useless waiter variable. Rewrite wait for input_available_event to use a switch statement. Handle timeout and failure more gracefully. Make restartable and cancelable. Rewrite wait for input_mutex to use WFMO and a switch statement. Handle timeout and failure more gracefully. Make restartable and cancelable.
* * new-features.sgml (ov-new1.7.10): Document new pthread APIs.Yaakov Selkowitz2011-05-032-1/+6
|
* * signal.cc (_pinfo::kill): Avoid referencing 'pid' after ESRCH.Christopher Faylor2011-05-032-1/+9
|
* * cygwin.din (pthread_attr_getstack): Export.Yaakov Selkowitz2011-05-038-6/+122
| | | | | | | | | | | | | | | | | | | | | | | | | (pthread_attr_getstackaddr): Export. (pthread_getattr_np): Export. * ntdll.h (enum _THREAD_INFORMATION_CLASS): Add ThreadBasicInformation. (struct _THREAD_BASIC_INFORMATION): Define. (NtQueryInformationThread): Declare. * posix.sgml (std-susv4): Add pthread_attr_getstack. (std-gnu): Add pthread_getattr_np. (std-deprec): Add pthread_attr_getstackaddr. (std-notimpl): Remove pthread_attr_[gs]etstackaddr, as they were removed from SUSv4. * thread.cc (pthread_attr::pthread_attr): Initialize stackaddr. (pthread_attr_getstack): New function. (pthread_attr_getstackaddr): New function. (pthread_attr_setstacksize): Return EINVAL if passed size less than PTHREAD_STACK_MIN, as required by POSIX. (pthread_getattr_np): New function. * thread.h (class pthread_attr): Add stackaddr member. * include/pthread.h (pthread_attr_getstack): Declare. (pthread_attr_getstackaddr): Declare unconditionally. (pthread_attr_setstack): Declare inside false conditional for reference. (pthread_getattr_np): Declare. * include/cygwin/version.h (CYGWIN_VERSION_API_MINOR): Bump.
* fix typoChristopher Faylor2011-05-021-1/+1
|
* * Makefile.in: Allow CFLAGS to be overridden from the environment.Christopher Faylor2011-05-022-1/+5
|
* * thread.cc (cancelable_wait): Remove test for main thread.Corinna Vinschen2011-05-023-4/+7
| | | | * fhandler_fifo.cc (fhandler_fifo::open_nonserver): Ditto.
* * fhndler_tty.cc (andler_pty_master::process_slave_output): MakeCorinna Vinschen2011-05-022-5/+17
| | | | interruptible and cancelable. Fix nonblocking case.
* * fhandler_console.cc (fhandler_console::read): Make restartable andCorinna Vinschen2011-05-022-12/+19
| | | | cancelable.
* * strace.cc (strace::vprntf): Avoid closing unopened handle.Christopher Faylor2011-05-022-2/+8
|
* * sysconf.cc (sca): Set _SC_SPIN_LOCKS to _POSIX_SPIN_LOCKS.Yaakov Selkowitz2011-05-022-1/+5
|
* * libc/include/sys/features.h [__CYGWIN__] (_POSIX_SPIN_LOCKS): Define.Yaakov Selkowitz2011-05-023-2/+8
| | | | | * libc/include/sys/types.h: Cygwin provides its own pthread_spinlock_t typedef.
* Eliminate trailing whitespace in some files.Christopher Faylor2011-05-028-13/+28
| | | | | | * dll_init.cc (dll_list::alloc): Reset 'p' in forked process. * select.cc (select_stuff::wait): Move cleanup() closer to WFMO to minimize unavoidable (?) race.
* Throughout remove NT4 from documentation.Corinna Vinschen2011-05-028-31/+34
| | | | * new-features.sgml (ov-new1.7.10): Document change in passwd command.
* * fhandler_serial.cc (fhandler_serial::raw_read): Add restartabilityCorinna Vinschen2011-05-022-7/+47
| | | | | | after a signal. Add cancelability. (fhandler_serial::raw_write): Wait for write to succeed if O_NONBLOCK is not set. Add signal handling and cancelability.
* * fhandler_windows.cc (fhandler_windows::read): UseCorinna Vinschen2011-05-016-13/+28
| | | | | | | | pthread::get_cancel_event to fetch thread's cancel event. * flock.cc (lf_setlock): Ditto. * posix_ipc.cc (ipc_cond_timedwait): Ditto. * thread.cc (pthread::get_cancel_event): New static method. * thread.h (pthread::get_cancel_event): Declare.
* * libc/minires-os-if.c (get_dns_info): Remove unnecessary test forCorinna Vinschen2011-05-012-2/+6
| | | | existence of DnsQuery_A.
* Add missing ChangeLog entry:Corinna Vinschen2011-05-011-0/+16
| | | | * fhandler.h (fhandler_windows::is_slow): Remove.
* Throughout, use user32 UNICODE functions rather than ANSI functions.Corinna Vinschen2011-05-017-63/+93
| | | | | | | | | | | | | | * autoload.cc: Convert all definitions for ANSI user32 functions to definitions for the corresponding UNICODE function. (SendMessageA): Remove. (SendNotifyMessageW): Define. * fhandler_windows.cc (fhandler_windows::write): Use SendNotifyMessageW call rather than SendMessage to make function always return immediately. (fhandler_windows::read): Make function interruptible and a cancellation point. Handle O_NONBLOCK. * select.cc (peek_serial): Don't wait for signal_arrived here. * window.cc (wininfo::winthread): Call CreateWindowExW directly rather than CreateWindow wrapper.
* * net.cc (fdsock): Drop setting uninterruptible_io to true.Corinna Vinschen2011-05-012-1/+4
|
* * fhandler.h (fhandler_socket::is_slow): Remove.Corinna Vinschen2011-05-012-1/+4
|
* * fcntl.cc (fcntl64): Call pthread_testcancel.Corinna Vinschen2011-04-3010-99/+197
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | * fhandler_socket.cc (fhandler_socket::connect): Ditto. (fhandler_socket::accept4): Ditto. (fhandler_socket::recvfrom): Ditto. (fhandler_socket::recvmsg): Ditto. (fhandler_socket::sendto): Ditto. (fhandler_socket::sendmsg): Ditto. * flock.cc (lf_setlock): Allow to cancel thread running blocking file lock. Try to make code more readable. (lockf): Call pthread_testcancel. * mmap.cc (msync): Ditto. * posix_ipc.cc (ipc_cond_timedwait): Call pthread::static_cancel_self rather than pthread_testcancel. * select.cc (cygwin_select): Call pthread_testcancel. * syscalls.cc (pread): Ditto. (pwrite): Ditto. (readv): Ditto. (writev): Ditto. (open): Ditto. (close): Ditto. (fsync): Ditto. * termios.cc (tcdrain): Ditto. * thread.cc: Align list of cancellation points with above changes. Mark not-implemented functions, too. (cancelable_wait): Don't set unused object indices to WAIT_FAILED since that could result in wrong behaviour. Set them to the invalid value WAIT_TIMEOUT + 1 instead.
* * dwarf2.h (DW_OP_GNU_const_type, DW_OP_GNU_regval_type,Jakub Jelinek2011-04-302-0/+12
| | | | DW_OP_GNU_deref_type, DW_OP_GNU_convert, DW_OP_GNU_reinterpret): New.
* * thread.h (class pthread): Add bool member canceled.Corinna Vinschen2011-04-303-3/+23
| | | | | | | | * thread.cc (pthread::pthread): Initialize canceled to false. (pthread::cancel): Set canceled before setting cancel_event. (pthread::testcancel): Check for canceled. Only wait for cancel_event if canceled is true. Explain why. (pthread::_fixup_after_fork): Set canceled to false.
* * errno.cc (errmap): Sort. Map ERROR_EXE_MACHINE_TYPE_MISMATCH toCorinna Vinschen2011-04-292-4/+10
| | | | ENOEXEC.
* * thread.cc: Update comment listing cancellation points per POSIX.Corinna Vinschen2011-04-292-173/+305
|
* * advapi32.cc: Add comment.Corinna Vinschen2011-04-298-80/+97
| | | | | | | | | | | | | | | | | (EqualSid): Remove. (CopySid): Remove. (AddAccessAllowedAce): Remove. (AddAccessDeniedAce): Remove. (MakeSelfRelativeSD): Remove. * flock.cc: Replace above functions throughout with their ntdll.dll equivalent. * sec_acl.cc: Ditto. * sec_auth.cc: Ditto. * sec_helper.cc: Ditto. * security.cc: Ditto. * security.h: Ditto. (RtlEqualSid): Declare. Explain why. (RtlCopySid): Ditto.
* * advapi32.cc (AccessCheck): Remove.Corinna Vinschen2011-04-294-48/+41
| | | | | | | | (PrivilegeCheck): Remove. (OpenThreadToken): Remove. * fhandler_tty.cc: Replace above functions throughout with their ntdll.dll equivalent. * security.cc: Ditto.
* * ntdll.h (IsEventSignalled): New inline function.Corinna Vinschen2011-04-298-8/+36
| | | | | | | | | | | * cygthread.cc (cygthread::terminate_thread): Use IsEventSignalled in place of WaitForSingleObject on event with 0 timeout. * fhandler.cc (fhandler_base_overlapped::has_ongoing_io): Ditto. * fhandler_fifo.cc (fhandler_fifo::open_nonserver): Ditto. (fhandler_fifo::wait): Ditto. * fhandler_termios.cc (fhandler_termios::bg_check): Ditto. * select.cc (verify_tty_slave): Ditto. * thread.cc (pthread::testcancel): Ditto.
* * advapi32.cc (GetTokenInformation): Remove.Corinna Vinschen2011-04-296-139/+180
| | | | | | | | | (SetTokenInformation): Remove. * grp.cc: Replace above functions throughout with their ntdll.dll equivalent. * sec_auth.cc: Ditto. * syscalls.cc: Ditto. * uinfo.cc: Ditto.
* * posix_ipc.cc (ipc_cond_timedwait): Only wait for pthread'sCorinna Vinschen2011-04-292-1/+7
| | | | cancel_event if thread's cancelability isn't disabled.
* * configure.ac (*-*-dragonfly*, *-*-freebsd*, *-*-netbsd*,Joseph Myers2011-04-283-190/+29
| | | | | | | | | | | | | | | | | | | | | | alpha*-dec-osf*, alpha*-*-linux*, alpha*-*-*, sh-*-linux*, arm-*-elf* | arm*-*-eabi*, arm*-*-linux-gnueabi, frv-*-*): Remove cases in libgcj-disabling case statement. (hppa*64*-*-linux*): Set unsupported_languages instead of disabling target-zlib. (hppa*64*-*-*): Restrict case in libgcj-disabling case statement to hppa*64*-*-hpux*. (hppa*-*-*): Restrict case in libgcj-disabling case statement to hppa*-*-hpux*. (ia64*-*-elf*, ia64*-**-hpux*, i[[3456789]]86-*-elf, i[[3456789]]86-*-linux*, *-*-cygwin*, i[[3456789]]86-*-interix*, i[[3456789]]86-*-solaris2*, m32r-*-*, m68k-*-elf*, m68*-*-* | fido-*-*, powerpc-*-eabi, powerpc-*-eabi* | powerpcle-*-eabi* | powerpc-*-rtems*, mips*-*-linux*, mips*-*-*, sh-*-* | sh64-*-*, sparc-*-elf*, sparc64-*-elf*, sparc-*-solaris* | sparc64-*-solaris* | sparcv9-*-solaris*, *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu, *-*-*): Remove cases in libgcj-disabling case statement. * configure: Regenerate.
* * advapi32.cc (SetSecurityDescriptorDacl): Remove.Corinna Vinschen2011-04-286-53/+41
| | | | | | | | | | | | (SetSecurityDescriptorGroup): Remove. (SetSecurityDescriptorOwner): Remove. * pinfo.cc: Replace above functions throughout with their ntdll.dll equivalent. * sec_acl.cc: Ditto. * sec_helper.cc: Ditto. * security.cc: Ditto. * sec_helper.cc (__sec_user): Remove old comment.
* * posix_ipc.cc (ipc_cond_timedwait): Also wait for pthread'sCorinna Vinschen2011-04-282-8/+27
| | | | | cancel_event, if any. Call pthread_testcancel if cancel_event has been signalled.
* * configure.ac: Disable Java for targets not supporting libffi.Joseph Myers2011-04-283-216/+137
| | | | | | | | | | | | | | | | | | | | | | | | | | (*-*-chorusos, *-*-kaos*, am33_2.0-*-linux*, sh*-*-pe|mips*-*-pe): Remove cases in Java-disabling statement. (*arm-wince-pe): Change to arm-wince-pe. (arc-*-*, arm-*-coff, arm-*-pe*, arm-*-riscix*, avr-*-*): Remove cases in Java-disabling statement. (bfin-*-*): Don't disable Java again. (c4x-*-* | tic4x-*-*, tic54x-*-*, cr16-*-*, d10v-*-*, d30v-*-*, fr30-*-elf*, moxie-*-*, h8300*-*-*, h8500-*-*, hppa1.1-*-osf* | hppa1.1-*-bsd*, hppa*-*-*elf* | hppa*-*-lites* | hppa*-*-openbsd*, hppa*-*-pro*, i960-*-*, i[[3456789]]86-*-coff, i[[3456789]]86-*-pe, i[[3456789]]86-*-sco3.2v5*, i[[3456789]]86-*-sco*, i[[3456789]]86-*-sysv4*, i[[3456789]]86-*-beos*, i[[3456789]]86-*-rdos*, m68hc11-*-*|m6811-*-*|m68hc12-*-*|m6812-*-*): Remove cases in Java-disabling statement. (mmix-*-*): Don't disable Java again. (mt-*-*, powerpc*-*-winnt* | powerpc*-*-pe*, powerpcle-*-solaris*, powerpc-*-beos*, rs6000-*-lynxos*, rs6000-*-*, m68k-apollo-*, microblaze*, mips*-sde-elf*, mips*-*-irix5*, mips*-*-bsd*, sparclet-*-aout* | sparc86x-*-*, sparclite-*-*, sparc-*-sunos4*, tic6x-*-*, v810-*-*, vax-*-*): Remove cases in Java-disabling statement. * configure: Regenerate.
* Merge from GCC:Joseph Myers2011-04-283-2/+12
| | | | | | | | 2011-04-18 Jack Howarth <howarth@bromo.med.uc.edu> PR lto/48086 * configure.ac: Re-enable LTO on *-apple-darwin9*. * configure: Regenerate.
* * configure.ac: Separate cases disabling Java and Java librariesJoseph Myers2011-04-283-166/+660
| | | | | from general case over targets. * configure: Regenerate.
* * posix_ipc.cc (ipc_cond_timedwait): Remove pthread_testcancel calls.Corinna Vinschen2011-04-282-2/+10
| | | | | (_mq_send): Add pthread_testcancel call at start of function. (_mq_receive): Ditto.
* * cygerrno.h (geterrno_from_nt_status): Declare.Corinna Vinschen2011-04-286-37/+128
| | | | | | | | | | | | | | | | | | | | | * errno.cc (geterrno_from_nt_status): Define. * flock.cc: Fix copyright dates. * ntdll.h (enum _TIMER_TYPE): Define. (PTIMER_APC_ROUTINE): Define. (NtCancelTimer): Declare. (NtCreateTimer): Declare. (NtSetTimer): Declare. * posix_ipc.cc (ipc_cond_timedwait): Rewrite to make interruptible and restartable. Call pthread_testcancel in case of timeout to enable pthread_cancel on waiting thread. Replace WFMO timeout with waiting for a waitable timer. Explain why. Replace single call to WFMO with two calls, one for the event, one for the mutex. Don't lock mutex in case of error. (ipc_cond_signal): Make void function. (ipc_cond_close): Ditto. (_mq_send): Immediately return -1 in case of error from ipc_cond_timedwait. (_mq_receive): Ditto.
* * advapi32.cc (GetSecurityDescriptorDacl): Remove.Corinna Vinschen2011-04-286-64/+68
| | | | | | | | | | (GetSecurityDescriptorGroup): Remove. (GetSecurityDescriptorOwner): Remove. * sec_acl.cc: Replace above functions throughout with their ntdll.dll equivalent. Remove redundant debug output. * sec_auth.cc: Ditto. * security.cc: Ditto. * uinfo.cc: Ditto.
* * advapi32.cc (InitializeAcl): Remove.Corinna Vinschen2011-04-2810-98/+65
| | | | | | | | | | | | | | | | | (AddAce): Remove. (FindFirstFreeAce): Remove. (GetAce): Remove. (InitializeSecurityDescriptor): Remove. (OpenProcessToken): Remove. * dcrt0.cc: Replace above functions throughout with their ntdll.dll equivalent. * fhandler_tty.cc: Ditto. * flock.cc: Ditto. * pinfo.cc: Ditto. Drop unnecessary error handling. * sec_acl.cc: Ditto. * sec_auth.cc: Ditto. * sec_helper.cc: Ditto. * security.cc: Ditto.
* * advapi32.cc (InitializeSid): Remove.Corinna Vinschen2011-04-287-57/+35
| | | | | | | | | | | | | (EqualPrefixSid): Remove. (GetLengthSid): Remove. (GetSidSubAuthority): Remove. (GetSidSubAuthorityCount): Remove. (GetSidIdentifierAuthority): Remove. * fhandler_disk_file.cc: Remove above functions throughout with their ntdll.dll equivalent. * sec_auth.cc: Ditto. * sec_helper.cc: Ditto. * security.cc: Ditto.
* * advapi32.cc (AllocateLocallyUniqueId): Remove.Corinna Vinschen2011-04-284-18/+11
| | | | | | | * fhandler_disk_file.cc (fhandler_base::open_fs): Replace call to AllocateLocallyUniqueId with call to NtAllocateLocallyUniqueId; * posix_ipc.cc (mq_open): Ditto. Drop error handling for that call. (sem_open): Ditto.
* * autoload.cc (GetSecurityInfo): Remove.Corinna Vinschen2011-04-286-101/+183
| | | | | | | | | | | | | | | | * ntdll.h (RtlConvertToAutoInheritSecurityObject): Declare. (RtlDeleteSecurityObject): Declare. (RtlGetControlSecurityDescriptor): Declare. (RtlLengthSecurityDescriptor): Declare. * security.cc (file_mapping): New global variable. (get_file_sd): Rewrite. Clean up code. Get rid of GetSecurityInfo call. (alloc_sd): Call RtlSetControlSecurityDescriptor to set SE_DACL_PROTECTED flag. (check_file_access): Remove mapping. Use file_mapping instead. (check_registry_access): Rename mapping to reg_mapping. * wincap.cc: Througout, drop use_get_sec_info_on_dirs, * wincap.h (struct wincaps): Drop use_get_sec_info_on_dirs.
* 2011-04-27 Tristan Gingold <gingold@adacore.com>Tristan Gingold2011-04-272-7/+64
| | | | | | | | | | * xcoff.h (F_FDPR_PROF, F_FDPR_OPTI, F_DSA, F_VARPG) (STYP_DWARF, SSUBTYP_DWINFO) (SSUBTYP_DWLINE, SSUBTYP_DWPBNMS, SSUBTYP_DWPBTYP) (SSUBTYP_DWARNGE, SSUBTYP_DWABREV, SSUBTYP_DWSTR) (SSUBTYP_DWRNGES, STYP_TDATA, STYP_TBSS, R_TLS, R_TLS_IE) (R_TLS_LD, R_TLS_LE, R_TLSM, R_TLSML, R_TOCU, R_TOCL, C_DWARF): New macros.
* gdb/Jan Kratochvil2011-04-253-6/+17
| | | | | | | | | | | * defs.h (ENUM_BITFIELD): Remove. include/ * bfdlink.h (ENUM_BITFIELD): Remove. merge from gcc: include/ * ansidecl.h (ENUM_BITFIELD): New, from gcc/system.h.