Deleted Added
full compact
pthread_testcancel.3 (172880) pthread_testcancel.3 (251639)
1.\" $FreeBSD: head/share/man/man3/pthread_testcancel.3 172880 2007-10-22 10:08:01Z ru $
2.Dd January 17, 1999
1.\" $FreeBSD: head/share/man/man3/pthread_testcancel.3 251639 2013-06-11 21:40:20Z jilles $
2.Dd June 11, 2013
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:
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 accept ,
104.Fn accept4 ,
105.Fn aio_suspend ,
106.Fn connect ,
103.Fn close ,
104.Fn creat ,
107.Fn close ,
108.Fn creat ,
105.Fn fcntl ,
106.Fn fsync ,
109.Fn fsync ,
110.Fn mq_receive ,
111.Fn mq_send ,
112.Fn mq_timedreceive ,
113.Fn mq_timedsend ,
107.Fn msync ,
108.Fn nanosleep ,
109.Fn open ,
114.Fn msync ,
115.Fn nanosleep ,
116.Fn open ,
117.Fn openat ,
110.Fn pause ,
118.Fn pause ,
119.Fn poll ,
120.Fn pselect ,
111.Fn pthread_cond_timedwait ,
112.Fn pthread_cond_wait ,
113.Fn pthread_join ,
114.Fn pthread_testcancel ,
115.Fn read ,
121.Fn pthread_cond_timedwait ,
122.Fn pthread_cond_wait ,
123.Fn pthread_join ,
124.Fn pthread_testcancel ,
125.Fn read ,
116.Fn sigwaitinfo ,
126.Fn readv ,
127.Fn recv ,
128.Fn recvfrom ,
129.Fn recvmsg ,
130.Fn select ,
131.Fn sem_timedwait ,
132.Fn sem_wait ,
133.Fn send ,
134.Fn sendmsg ,
135.Fn sendto ,
117.Fn sigsuspend ,
136.Fn sigsuspend ,
137.Fn sigtimedwait ,
138.Fn sigwaitinfo ,
118.Fn sigwait ,
119.Fn sleep ,
120.Fn system ,
121.Fn tcdrain ,
139.Fn sigwait ,
140.Fn sleep ,
141.Fn system ,
142.Fn tcdrain ,
143.Fn usleep ,
122.Fn wait ,
144.Fn wait ,
145.Fn wait3 ,
146.Fn wait4 ,
123.Fn waitpid ,
147.Fn waitpid ,
124.Fn write .
148.Fn write ,
149.Fn writev .
150The
151.Fn fcntl
152function is a cancellation point if
153.Fa cmd
154is
155.Dv F_SETLKW .
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 .
156.Sh RETURN VALUES
157If successful, the
158.Fn pthread_setcancelstate
159and
160.Fn pthread_setcanceltype
161functions will return zero.
162Otherwise, an error number shall be returned to
163indicate the error.

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

227.El
228.Sh SEE ALSO
229.Xr pthread_cancel 3
230.Sh STANDARDS
231The
232.Fn pthread_testcancel
233function conforms to
234.St -p1003.1-96 .
235The standard allows implementations to make many more functions
236cancellation points.
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 .
237.Sh AUTHORS
238This manual page was written by
239.An David Leonard Aq d@openbsd.org
240for the
241.Ox
242implementation of
243.Xr pthread_cancel 3 .