Skip site navigation (1)Skip section navigation (2)
Date:      Sun,  4 Nov 2001 17:11:19 +1100 (EST)
From:      Andrew <andrew@ugh.net.au>
To:        FreeBSD-gnats-submit@freebsd.org
Subject:   docs/31745: describe handling of NULLs passed to pthread_setcancelstate
Message-ID:  <20011104061119.3E1E1A854@starbug.ugh.net.au>

next in thread | raw e-mail | index | archive | help

>Number:         31745
>Category:       docs
>Synopsis:       describe handling of NULLs passed to pthread_setcancelstate
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    freebsd-doc
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Sat Nov 03 22:20:00 PST 2001
>Closed-Date:
>Last-Modified:
>Originator:     Andrew
>Release:        FreeBSD 4.4-STABLE i386
>Organization:
UgH!
>Environment:
System: FreeBSD starbug.ugh.net.au 4.4-STABLE FreeBSD 4.4-STABLE #3: Sun Oct 7 21:30:09 EST 2001 andrew@starbug.ugh.net.au:/usr/obj/usr/src/sys/STARBUG i386


	
>Description:

pthread_setcancelstate(3) does not describe the functions behaviour if passed
NULL as the second argument. The same with pthread_setcanceltype. In both cases
the argument is ignored.

>How-To-Repeat:
	
>Fix:

Patch to lib/libc_r/man/pthread_testcancel.3


--- pthread_testcancel.3.orig	Sun Nov  4 15:18:08 2001
+++ pthread_testcancel.3	Sun Nov  4 15:22:45 2001
@@ -23,7 +23,11 @@
 function atomically both sets the calling thread's cancelability state
 to the indicated
 .Fa state
-and returns the previous cancelability state at the location referenced by
+and, if
+.Fa oldstate
+is not
+.Dv NULL ,
+returns the previous cancelability state at the location referenced by
 .Fa oldstate .
 Legal values for
 .Fa state
@@ -37,7 +41,11 @@
 function atomically both sets the calling thread's cancelability type
 to the indicated
 .Fa type
-and returns the previous cancelability type at the location referenced by
+and, if
+.Fa oldtype
+is not
+.Dv NULL ,
+returns the previous cancelability type at the location referenced by
 .Fa oldtype .
 Legal values for
 .Fa type
>Release-Note:
>Audit-Trail:
>Unformatted:

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-doc" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20011104061119.3E1E1A854>