Deleted Added
sdiff udiff text old ( 172880 ) new ( 251639 )
full compact
1.\" $FreeBSD: head/share/man/man3/pthread_testcancel.3 172880 2007-10-22 10:08:01Z ru $
2.Dd January 17, 1999
3.Dt PTHREAD_TESTCANCEL 3
4.Os
5.Sh NAME
6.Nm pthread_setcancelstate ,
7.Nm pthread_setcanceltype ,
8.Nm pthread_testcancel
9.Nd set cancelability state
10.Sh LIBRARY

--- 84 unchanged lines hidden (view full) ---

95If cancelability is disabled, the setting of the
96cancelability type has no immediate effect as all cancellation requests
97are held pending; however, once cancelability is enabled again the new
98type will be in effect.
99.El
100.Ss Cancellation Points
101Cancellation points will occur when a thread is executing the following
102functions:
103.Fn close ,
104.Fn creat ,
105.Fn fcntl ,
106.Fn fsync ,
107.Fn msync ,
108.Fn nanosleep ,
109.Fn open ,
110.Fn pause ,
111.Fn pthread_cond_timedwait ,
112.Fn pthread_cond_wait ,
113.Fn pthread_join ,
114.Fn pthread_testcancel ,
115.Fn read ,
116.Fn sigwaitinfo ,
117.Fn sigsuspend ,
118.Fn sigwait ,
119.Fn sleep ,
120.Fn system ,
121.Fn tcdrain ,
122.Fn wait ,
123.Fn waitpid ,
124.Fn write .
125.Sh RETURN VALUES
126If successful, the
127.Fn pthread_setcancelstate
128and
129.Fn pthread_setcanceltype
130functions will return zero.
131Otherwise, an error number shall be returned to
132indicate the error.

--- 63 unchanged lines hidden (view full) ---

196.El
197.Sh SEE ALSO
198.Xr pthread_cancel 3
199.Sh STANDARDS
200The
201.Fn pthread_testcancel
202function conforms to
203.St -p1003.1-96 .
204.Sh AUTHORS
205This manual page was written by
206.An David Leonard Aq d@openbsd.org
207for the
208.Ox
209implementation of
210.Xr pthread_cancel 3 .