-.\" $FreeBSD: src/lib/libc_r/man/pthread_cancel.3,v 1.3.2.3 2001/03/06 16:46:08 ru Exp $
+.\" $FreeBSD$
.Dd January 17, 1999
.Dt PTHREAD_CANCEL 3
.Os
.Nm pthread_cancel
.Nd cancel execution of a thread
.Sh SYNOPSIS
-.Fd #include <pthread.h>
+.In pthread.h
.Ft int
.Fn pthread_cancel "pthread_t thread"
.Sh DESCRIPTION
whose value matches no pointer to an object in memory nor the value
.Dv NULL .
.Sh RETURN VALUES
-If successful, the
+If successful, the
.Fn pthread_cancel
functions will return zero.
Otherwise an error number will be returned to
indicate the error.
.Sh ERRORS
+The
.Fn pthread_cancel
-will fail if:
+function will fail if:
.Bl -tag -width Er
.It Bq Er ESRCH
No thread could be found corresponding to that specified by the given
.Xr pthread_setcanceltype 3 ,
.Xr pthread_testcancel 3
.Sh STANDARDS
+The
.Fn pthread_cancel
-conforms to
+function conforms to
.St -p1003.1-96 .
.Sh AUTHORS
-This man page was written by
-.An David Leonard Aq d@openbsd.org
+This manual page was written by
+.An David Leonard Aq Mt d@openbsd.org
for the
.Ox
implementation of