From petefrench@ticketswitch.com  Fri Jun 27 12:39:41 2008
Return-Path: <petefrench@ticketswitch.com>
Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34])
	by hub.freebsd.org (Postfix) with ESMTP id 2107B106564A
	for <FreeBSD-gnats-submit@freebsd.org>; Fri, 27 Jun 2008 12:39:41 +0000 (UTC)
	(envelope-from petefrench@ticketswitch.com)
Received: from angel.ticketswitch.com (angel.ticketswitch.com [IPv6:2002:57e0:1d4e::1])
	by mx1.freebsd.org (Postfix) with ESMTP id CC9B28FC14
	for <FreeBSD-gnats-submit@freebsd.org>; Fri, 27 Jun 2008 12:39:40 +0000 (UTC)
	(envelope-from petefrench@ticketswitch.com)
Received: from [10.50.50.6] (helo=dilbert.ticketswitch.com)
	by angel.ticketswitch.com with esmtps (TLSv1:AES256-SHA:256)
	(Exim 4.69 (FreeBSD))
	(envelope-from <petefrench@ticketswitch.com>)
	id 1KCDEo-000DwB-Dt
	for FreeBSD-gnats-submit@freebsd.org; Fri, 27 Jun 2008 13:39:38 +0100
Received: from petefrench by dilbert.ticketswitch.com with local (Exim 4.69 (FreeBSD))
	(envelope-from <petefrench@ticketswitch.com>)
	id 1KCDEo-000LNi-Ca
	for FreeBSD-gnats-submit@freebsd.org; Fri, 27 Jun 2008 13:39:38 +0100
Message-Id: <E1KCDEo-000LNi-Ca@dilbert.ticketswitch.com>
Date: Fri, 27 Jun 2008 13:39:38 +0100
From: Pete French <petefrench@ticketswitch.com>
Reply-To: Pete French <petefrench@ticketswitch.com>
To: FreeBSD-gnats-submit@freebsd.org
Cc:
Subject: man page for strerror references wrong header file
X-Send-Pr-Version: 3.113
X-GNATS-Notify:

>Number:         125043
>Category:       docs
>Synopsis:       man page for strerror references wrong header file
>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:   Fri Jun 27 12:40:03 UTC 2008
>Closed-Date:    Fri Jun 27 13:25:48 UTC 2008
>Last-Modified:  Fri Jun 27 13:25:48 UTC 2008
>Originator:     Pete French
>Release:        FreeBSD 7.0-STABLE amd64
>Organization:
Ticket Switch Ltd
>Environment:
System: FreeBSD dilbert.rattatosk 7.0-STABLE FreeBSD 7.0-STABLE #0: Fri May 23 14:38:38 BST 2008 petefrench@dilbert.rattatosk:/usr/obj/usr/src/sys/GENERIC amd64

>Description:

	'man strerror' says to include 'stdio.h' but the function is
	actually in 'string.h'
>How-To-Repeat:
>Fix:
>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->closed 
State-Changed-By: roam 
State-Changed-When: Fri Jun 27 13:21:37 UTC 2008 
State-Changed-Why:  
Actually, the manual page is correct - it simply documents more than one 
C library function :)  The <stdio.h> include is before the documentation 
for the perror() function, which is indeed declared there.  Further down, 
just before the prototype of strerror(), there *is* a "#include <string.h>" 
line in the manual page, isn't there? :) 

Even so, thanks for your efforts to make FreeBSD better by reporting 
what appeared to be a problem with the documentation! 

http://www.freebsd.org/cgi/query-pr.cgi?pr=125043 
>Unformatted:
