]> sourceware.org Git - newlib-cygwin.git/commit
* fcntl.cc (fcntl64): Call pthread_testcancel.
authorCorinna Vinschen <corinna@vinschen.de>
Sat, 30 Apr 2011 16:34:48 +0000 (16:34 +0000)
committerCorinna Vinschen <corinna@vinschen.de>
Sat, 30 Apr 2011 16:34:48 +0000 (16:34 +0000)
commit1804be048ac341df4162dc954e7319adb4ce915c
treedb6bff3c9af11a7371b343064e6d3f9a03b5acb1
parentcbec4110a232424225633a593512969aa8e10ac8
* 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.
winsup/cygwin/ChangeLog
winsup/cygwin/fcntl.cc
winsup/cygwin/fhandler_socket.cc
winsup/cygwin/flock.cc
winsup/cygwin/mmap.cc
winsup/cygwin/posix_ipc.cc
winsup/cygwin/select.cc
winsup/cygwin/syscalls.cc
winsup/cygwin/termios.cc
winsup/cygwin/thread.cc
This page took 0.032515 seconds and 5 git commands to generate.