From nobody@FreeBSD.org  Thu May 17 11:31:56 2001
Return-Path: <nobody@FreeBSD.org>
Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21])
	by hub.freebsd.org (Postfix) with ESMTP id DE2C937B424
	for <freebsd-gnats-submit@FreeBSD.org>; Thu, 17 May 2001 11:31:55 -0700 (PDT)
	(envelope-from nobody@FreeBSD.org)
Received: (from nobody@localhost)
	by freefall.freebsd.org (8.11.1/8.11.1) id f4HIVtf03959;
	Thu, 17 May 2001 11:31:55 -0700 (PDT)
	(envelope-from nobody)
Message-Id: <200105171831.f4HIVtf03959@freefall.freebsd.org>
Date: Thu, 17 May 2001 11:31:55 -0700 (PDT)
From: dwimsey@rtci.com
To: freebsd-gnats-submit@FreeBSD.org
Subject: Description of function in man page for pthread_cleanup_push is incorrect
X-Send-Pr-Version: www-1.0

>Number:         27411
>Category:       docs
>Synopsis:       Description of function in man page for pthread_cleanup_push is incorrect
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-doc
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          doc-bug
>Submitter-Id:   current-users
>Arrival-Date:   Thu May 17 11:40:01 PDT 2001
>Closed-Date:    Thu May 17 23:57:44 PDT 2001
>Last-Modified:  Thu May 17 23:58:04 PDT 2001
>Originator:     David Wimsey
>Release:        5.0-CURRENT
>Organization:
Research Triangle Commerce, Inc
>Environment:
FreeBSD chaos.schizo.com 5.0-20010320-CURRENT FreeBSD 5.0-20010320-CURRENT #0: Tue Mar 20 16:16:37 GMT 2001     root@usw2.freebsd.org:/usr/src/sys/compile/GENERIC  i386

>Description:
The second paragraph of the description reads:
  When pthread_cleanup_push() is called, it is passed arg as its only argu-
     ment.

I assume it means:
  When cleanup_routine() is called, it is passed arg as its only argu-
     ment.


>How-To-Repeat:
man pthread_cleanup_push
>Fix:
--- pthread_cleanup_push.3.orig Thu May 17 14:27:07 2001
+++ pthread_cleanup_push.3      Thu May 17 14:28:09 2001
@@ -48,7 +48,7 @@
 get called when the current thread exits.
 .Pp
 When
-.Fn pthread_cleanup_push
+.Fn cleanup_routine
 is called, it is passed
 .Fa arg
 as its only argument.

>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->closed 
State-Changed-By: ru 
State-Changed-When: Thu May 17 23:57:44 PDT 2001 
State-Changed-Why:  
Fixed, thanks! 

http://www.FreeBSD.org/cgi/query-pr.cgi?pr=27411 
>Unformatted:
