+2011-05-02 Yaakov Selkowitz <yselkowitz@users.sourceforge.net>
+
+ * cygwin.din (pthread_attr_getstack): Export.
+ (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.
+
+2011-05-02 Christopher Faylor <me.cygwin2011@cgf.cx>
+
+ * Makefile.in: Allow CFLAGS to be overridden from the environment.
+
+2011-05-02 Corinna Vinschen <corinna@vinschen.de>
+
+ * thread.cc (cancelable_wait): Remove test for main thread.
+ * fhandler_fifo.cc (fhandler_fifo::open_nonserver): Ditto.
+
+2011-05-02 Corinna Vinschen <corinna@vinschen.de>
+
+ * fhandler_tty.cc (andler_pty_master::process_slave_output): Make
+ interruptible and cancelable. Fix nonblocking case.
+
+2011-05-02 Corinna Vinschen <corinna@vinschen.de>
+
+ * fhandler_console.cc (fhandler_console::read): Make restartable and
+ cancelable.
+
+2011-05-02 Christopher Faylor <me.cygwin2011@cgf.cx>
+
+ * strace.cc (strace::vprntf): Avoid closing unopened handle.
+
+2011-05-02 Yaakov Selkowitz <yselkowitz@users.sourceforge.net>
+
+ * sysconf.cc (sca): Set _SC_SPIN_LOCKS to _POSIX_SPIN_LOCKS.
+
+2011-05-02 Christopher Faylor <me.cygwin2011@cgf.cx>
+
+ * 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.
+
+2011-05-02 Corinna Vinschen <corinna@vinschen.de>
+
+ * fhandler_serial.cc (fhandler_serial::raw_read): Add restartability
+ 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.
+
+2011-05-01 Corinna Vinschen <corinna@vinschen.de>
+
+ * fhandler_windows.cc (fhandler_windows::read): Use
+ 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.
+
+2011-05-01 Corinna Vinschen <corinna@vinschen.de>
+
+ * libc/minires-os-if.c (get_dns_info): Remove unnecessary test for
+ existence of DnsQuery_A.
+
+2011-05-01 Corinna Vinschen <corinna@vinschen.de>
+
+ Throughout, use user32 UNICODE functions rather than ANSI functions.
+ * autoload.cc: Convert all definitions for ANSI user32 functions to
+ definitions for the corresponding UNICODE function.
+ (SendMessageA): Remove.
+ (SendNotifyMessageW): Define.
+ * fhandler.h (fhandler_windows::is_slow): Remove.
+ * 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.
+
+2011-05-01 Corinna Vinschen <corinna@vinschen.de>
+
+ * net.cc (fdsock): Drop setting uninterruptible_io to true.
+
+2011-05-01 Corinna Vinschen <corinna@vinschen.de>
+
+ * fhandler.h (fhandler_socket::is_slow): Remove.
+
+2011-04-30 Corinna Vinschen <corinna@vinschen.de>
+
+ * fcntl.cc (fcntl64): Call pthread_testcancel.
+ * 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.
+
+2011-04-30 Corinna Vinschen <corinna@vinschen.de>
+
+ * thread.h (class pthread): Add bool member canceled.
+ * 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.
+
+2011-04-29 Corinna Vinschen <corinna@vinschen.de>
+
+ * errno.cc (errmap): Sort. Map ERROR_EXE_MACHINE_TYPE_MISMATCH to
+ ENOEXEC.
+
+2011-04-29 Corinna Vinschen <corinna@vinschen.de>
+
+ * thread.cc: Update comment listing cancellation points per POSIX.
+
+2011-04-29 Corinna Vinschen <corinna@vinschen.de>
+
+ * advapi32.cc: Add comment.
+ (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.
+
+2011-04-29 Corinna Vinschen <corinna@vinschen.de>
+
+ * advapi32.cc (AccessCheck): Remove.
+ (PrivilegeCheck): Remove.
+ (OpenThreadToken): Remove.
+ * fhandler_tty.cc: Replace above functions throughout with their
+ ntdll.dll equivalent.
+ * security.cc: Ditto.
+
+2011-04-29 Corinna Vinschen <corinna@vinschen.de>
+
+ * ntdll.h (IsEventSignalled): New inline function.
+ * 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.
+
+2011-04-29 Corinna Vinschen <corinna@vinschen.de>
+
+ * advapi32.cc (GetTokenInformation): Remove.
+ (SetTokenInformation): Remove.
+ * grp.cc: Replace above functions throughout with their ntdll.dll
+ equivalent.
+ * sec_auth.cc: Ditto.
+ * syscalls.cc: Ditto.
+ * uinfo.cc: Ditto.
+
+2011-04-29 Corinna Vinschen <corinna@vinschen.de>
+
+ * posix_ipc.cc (ipc_cond_timedwait): Only wait for pthread's
+ cancel_event if thread's cancelability isn't disabled.
+
+2011-04-28 Corinna Vinschen <corinna@vinschen.de>
+
+ * advapi32.cc (SetSecurityDescriptorDacl): Remove.
+ (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.
+
+2011-04-28 Corinna Vinschen <corinna@vinschen.de>
+
+ * posix_ipc.cc (ipc_cond_timedwait): Also wait for pthread's
+ cancel_event, if any. Call pthread_testcancel if cancel_event has been
+ signalled.
+
+2011-04-28 Corinna Vinschen <corinna@vinschen.de>
+
+ * posix_ipc.cc (ipc_cond_timedwait): Remove pthread_testcancel calls.
+ (_mq_send): Add pthread_testcancel call at start of function.
+ (_mq_receive): Ditto.
+
+2011-04-28 Corinna Vinschen <corinna@vinschen.de>
+
+ * cygerrno.h (geterrno_from_nt_status): Declare.
+ * 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.
+
+2011-04-28 Corinna Vinschen <corinna@vinschen.de>
+
+ * advapi32.cc (GetSecurityDescriptorDacl): Remove.
+ (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.
+
+2011-04-28 Corinna Vinschen <corinna@vinschen.de>
+
+ * advapi32.cc (InitializeAcl): Remove.
+ (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.
+
+2011-04-28 Corinna Vinschen <corinna@vinschen.de>
+
+ * advapi32.cc (InitializeSid): Remove.
+ (EqualPrefixSid): Remove.
+ (GetLengthSid): Remove.
+ (GetSidSubAuthority): Remove.
+ (GetSidSubAuthorityCount): Remove.
+ (GetSidIdentifierAuthority): Remove.
+ * fhandler_disk_file.cc: Replace above functions throughout with their
+ ntdll.dll equivalent.
+ * sec_auth.cc: Ditto.
+ * sec_helper.cc: Ditto.
+ * security.cc: Ditto.
+
+2011-04-28 Corinna Vinschen <corinna@vinschen.de>
+
+ * advapi32.cc (AllocateLocallyUniqueId): Remove.
+ * 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.
+
+2011-04-28 Corinna Vinschen <corinna@vinschen.de>
+
+ * autoload.cc (GetSecurityInfo): Remove.
+ * 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-24 Corinna Vinschen <corinna@vinschen.de>
+
+ * include/fenv.h: Add missing _FENV_H_ define.
+
+2011-04-23 Corinna Vinschen <corinna@vinschen.de>
+
+ * registry.cc (reg_key::get_dword): Rename from get_int, use DWORD
+ rather than int type. Avoid compiler warning.
+ (reg_key::set_dword): Rename from set_int, use DWORD rather than int
+ type. Change return type to NTSTATUS.
+ (reg_key::get_string): Change return type to NTSTATUS.
+ (reg_key::set_string): Ditto.
+ * registry.h: Accommodate above changes.
+ * environ.cc (regopt): Test return value of reg_key::get_string as
+ NTSTATUS.
+ * sched.cc (sched_rr_get_interval): Change local int vars to DWORD.
+ Call reg_key::get_dword instead of reg_key::get_int.
+ * shared.cc (init_installation_root): Test return value of
+ reg_key::get_string as NTSTATUS.
+ (shared_info::heap_slop_size): Call reg_key::get_dword rather than
+ reg_key::get_int.
+ (shared_info::heap_chunk_size): Ditto.
+ * shared_info.h (CURR_SHARED_MAGIC): Update.
+ (class shared_info): Change heap_chunk and heap_slop to DWORD values.
+
+2011-04-21 Corinna Vinschen <corinna@vinschen.de>
+
+ * cygtls.cc (_cygtls::init_thread): Drop setting locals.process_logmask.
+ * cygtls.cc (_cygtls::remove): Always free mallocated TLS storage on
+ thread exit. Drop freeing locals.process_ident.
+ * cygtls.h (struct _local_storage): Remove syslog-related members.
+ * syslog.cc (syslog_globals): New static storage for global syslog
+ settings. Use throughout instead of _my_tls.locals.
+ (openlog): Set new syslog_globals.process_ident value more carefully.
+ * tlsoffsets.h: Regenerate.
+
+2011-04-21 Thomas Stalder <cygwinml@gmail.com>
+
+ * include/sys/poll.h: Include signal.h to get definition of sigset_t.
+
+2011-04-20 Christopher Faylor <me.cygwin2011@cgf.cx>
+
+ * cygheap.cc (init_cygheap::close_ctty): Avoid closing console-cttys
+ since they don't use archetypes and this will just result in double
+ frees.
+ * dll_init.cc (dll_list::protect): Define.
+ (dll_list::alloc): Guard list access.
+ (dll_list::detach): Ditto.
+ * dll_init.h (dll_list::protect): Declare new muto.
+ (dll_list::guard): Define/declare function to guard list access.
+ * fhandler_termios.cc (fhandler_termios::sigflush): Avoid SEGV in
+ pathological condition of get_ttyp() == NULL.
+
+2011-04-20 Christopher Faylor <me.cygwin2011@cgf.cx>
+
+ * select.cc (serial_cleanup): Make sure that device_specific_pipe is
+ always deleted regardless of whether it has a unique thread associated
+ with it
+ (socket_cleanup): Ditto.
+ (mailslot_cleanup): Ditto.
+
+2011-04-20 Corinna Vinschen <corinna@vinschen.de>
+
+ * devices.h: Renumber internal devices so that FH_PROCESS is part of
+ the /proc family of virtual devices.
+ (FH_PROC_MAX_MINOR): Define.
+ * path.h (isproc_dev): Use FH_PROC_MAX_MINOR rather than FH_PROC.
+
+2011-04-19 Peter Rosin <peda@lysator.liu.se>
+
+ * select.cc (pipe_cleanup): Make sure that device_specific_pipe is
+ always deleted regardless of whether it has a unique thread associated
+ with it.
+
+2011-04-19 Jon TURNEY <jon.turney@dronecode.org.uk>
+
+ * thread.cc (semaphore::init): We cannot reliably infer anything from
+ the existing contents of sem, so merely warn rather than return EBUSY
+ if it looks like we are reinitialising a semaphore.
+
+2011-04-19 Corinna Vinschen <corinna@vinschen.de>
+
+ * autoload.cc (GetConsoleWindow): Drop.
+ (GetSystemWindowsDirectoryW): Drop.
+ * fhandler_console.cc (beep): Call GetSystemWindowsDirectoryW instead of
+ GetWindowsDirectoryW.
+ * uinfo.cc (cygheap_user::env_systemroot): Call
+ GetSystemWindowsDirectoryW and convert to multibyte on the fly.
+ * winlean.h (GetWindowsDirectoryW): Redefine to something invalid.
+ Explain why.
+
+2011-04-19 Corinna Vinschen <corinna@vinschen.de>
+
+ * Makefile.in (DLL_IMPORTS): Drop advapi32.dll.
+ * autoload.cc: Enable autoloading advapi32 functions.
+ * environ.cc (regopt): Use wide char arguments in reg_key functions.
+ * fhandler_console.cc (beep): Ditto. Use WCHAR throughout.
+ * registry.cc (reg_key): Rewrite reg_key class to use native NT registry
+ functions. Use WCHAR string parameters throughout. Use PCWSTR rather
+ than const WCHAR. Drop multibyte char functionality. Drop unused
+ methods.
+ (get_registry_hive_path): Use RtlQueryRegistryValues to fetch path from
+ registry.
+ (load_registry_hive): Drop useless check for user hive being available.
+ Load hive using NtLoadKey.
+ * registry.h: Accommodate above changes.
+ * sched.cc (sched_rr_get_interval): Use wide char arguments in reg_key
+ functions.
+ * shared.cc (init_installation_root): Ditto.
+ (shared_info::init_obcaseinsensitive): Use RtlQueryRegistryValues to
+ fetch obcaseinsensitive value.
+ (shared_info::heap_slop_size): Use wide char arguments in reg_key
+ functions.
+ (shared_info::heap_chunk_size): Ditto.
+ * syscalls.cc (gethostid): Ditto.
+ * winsup.h (__WIDE): Define.
+ (_WIDE): Define.
+ * libc/minires-os-if.c (get_registry_dns_items): Don't fetch values
+ from registry. Just extract them from given UNICODE_STRING parameter.
+ (get_registry_dns): Fetch all registry values at once using
+ RtlQueryRegistryValues.
+
+2011-04-19 Corinna Vinschen <corinna@vinschen.de>
+
+ * net.cc (get_ipv4fromreg_ipcnt): Rearrange to fetch all registry
+ values at once using RtlQueryRegistryValues.
+ (get_ipv4fromreg): Ditto.
+
+2011-04-19 Corinna Vinschen <corinna@vinschen.de>
+
+ * fhandler_registry.cc (fhandler_registry::fstat): Use RegQueryInfoKeyW.
+
+2011-04-19 Corinna Vinschen <corinna@vinschen.de>
+
+ * fhandler_proc.cc (read_value): Remove definition.
+ (print): Simplify.
+ (format_proc_cpuinfo): Drop useless call to GetSystemInfo. Rearrange
+ to use Rtl registry functions. Rename dwOldThreadAffinityMask to
+ orig_affinity_mask.
+
+2011-04-18 Corinna Vinschen <corinna@vinschen.de>
+
+ * localtime.cc (tzload): Don't change global timezone information
+ when called from gmtime or gmtime_r.
+ (tzparse): Ditto.
+
+2011-04-18 Corinna Vinschen <corinna@vinschen.de>
+
+ * cygtls.cc (_cygtls::remove): Always close sockevt handle.
+
+2011-04-18 Corinna Vinschen <corinna@vinschen.de>
+
+ * cygwin.din (ppoll): Export.
+ * poll.cc (ppoll): Implement.
+ * posix.sgml (std-gnu): Add ppoll.
+ * include/cygwin/version.h: Bump API minor number.
+ * include/sys/poll.h (ppoll): Declare.
+
+2011-04-18 Corinna Vinschen <corinna@vinschen.de>
+
+ * fhandler_socket.cc (fhandler_socket::evaluate_events): Handle the
+ FD_CLOSE event specially when called from accept. Explain why.
+ (fhandler_socket::shutdown): Fake success on not-connected socket and
+ trigger socket event if the read side of a socket is affected. Explain
+ why.
+ * poll.cc (poll): Check for saw_shutdown_read on sockets to generate
+ POLLHUP as well.
+
+2011-04-18 Corinna Vinschen <corinna@vinschen.de>
+
+ * Fix various copyrights.
+
+2011-04-17 Christopher Faylor <me.cygwin2011@cgf.cx>
+
+ * signal.cc (_pinfo::kill): Set this_process_state when process
+ exists.
+
+2011-04-17 Christopher Faylor <me.cygwin2011@cgf.cx>
+
+ * signal.cc (_pinfo::kill): Return 0 when attempting to test for
+ existence of an existed process which has not yet been reaped.
+
+2011-04-17 Christopher Faylor <me.cygwin2011@cgf.cx>
+
+ * cygheap.h (init_cygheap::ctty): Use base class so that console can
+ join in the fun.
+ * dtable.cc (dtable::stdio_init): Remove special-case call to
+ set_console_ctty ().
+ * exceptions.cc (sigpacket::process): Conditionally flush terminal
+ input on certain signals.
+ * fhandler.h (fhandler_console::get_tty_stuff): Make non-static.
+ (fhandler_termios::get_ttyp): Move here.
+ (fhandler_termios::sigflush): Declare.
+ (fhandler_tty_common::get_ttyp): Delete.
+ * fhandler_console.cc (fhandler_console::get_tty_stuff): Pass this as
+ "arch" argument.
+ (set_console_ctty): Delete.
+ (tty_list::get_tty): Just return pointer to shared console region,
+ delaying get_tty_stuff until open().
+ (fhandler_console::init): Treat NULL handle as signifying that console
+ should be opened with O_NOCTTY flag. Rename handle argument to the
+ more common 'h'.
+ * fhandler_termios.cc (fhandler_termios::sigflush): Define.
+ * fhandler_tty.cc (handler_tty_master::init_console): Pass NULL as
+ first argument to fhandler_console::init.
+ * pinfo.cc (_pinfo::set_ctty): Change third parameter to
+ fhandler_termios *. Add extra debugging.
+ * pinfo.h (_pinfo::set_ctty): Change third parameter to
+ fhandler_termios *.
+
+ * sigproc.cc (handle_sigsuspend): Don't special-case non-main threads.
+
+2011-04-15 Yaakov Selkowitz <yselkowitz@users.sourceforge.net>
+
+ * thread.cc (pthread_setschedprio): New function.
+ * include/pthread.h (pthread_setschedprio): Declare.
+ * include/cygwin/version.h (CYGWIN_VERSION_API_MINOR): Bump.
+ * cygwin.din (pthread_setschedprio): Export.
+ * posix.sgml (std-notimpl) Move pthread_setschedprio from here...
+ (std-susv4) ...to here.
+
2011-04-10 Yaakov Selkowitz <yselkowitz@users.sourceforge.net>
* fhandler_proc.cc (proc_tab): Add /proc/swaps virtual file.