From nobody@FreeBSD.org  Mon Jun 23 02:27:59 2008
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34])
	by hub.freebsd.org (Postfix) with ESMTP id 5E2C71065670
	for <freebsd-gnats-submit@FreeBSD.org>; Mon, 23 Jun 2008 02:27:59 +0000 (UTC)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (www.freebsd.org [IPv6:2001:4f8:fff6::21])
	by mx1.freebsd.org (Postfix) with ESMTP id 4BCA48FC1C
	for <freebsd-gnats-submit@FreeBSD.org>; Mon, 23 Jun 2008 02:27:59 +0000 (UTC)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (localhost [127.0.0.1])
	by www.freebsd.org (8.14.2/8.14.2) with ESMTP id m5N2RwHG004798
	for <freebsd-gnats-submit@FreeBSD.org>; Mon, 23 Jun 2008 02:27:58 GMT
	(envelope-from nobody@www.freebsd.org)
Received: (from nobody@localhost)
	by www.freebsd.org (8.14.2/8.14.1/Submit) id m5N2RwxH004797;
	Mon, 23 Jun 2008 02:27:58 GMT
	(envelope-from nobody)
Message-Id: <200806230227.m5N2RwxH004797@www.freebsd.org>
Date: Mon, 23 Jun 2008 02:27:58 GMT
From: Sam Banks <samb@catalyst.net.nz>
To: freebsd-gnats-submit@FreeBSD.org
Subject: Spelling mistake in strlen(3)
X-Send-Pr-Version: www-3.1
X-GNATS-Notify:

>Number:         124894
>Category:       docs
>Synopsis:       Spelling mistake in strlen(3)
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    danger
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          doc-bug
>Submitter-Id:   current-users
>Arrival-Date:   Mon Jun 23 02:30:04 UTC 2008
>Closed-Date:    Mon Jun 23 08:19:42 UTC 2008
>Last-Modified:  Mon Jun 23 08:19:56 UTC 2008
>Originator:     Sam Banks
>Release:        7.0-RELEASE
>Organization:
>Environment:
FreeBSD wolfie.evil 7.0-RELEASE FreeBSD 7.0-RELEASE #1: Sat Mar  1 09:59:25 NZDT 2008     root@wolfie.evil:/usr/obj/usr/src/sys/WOLFIE  i386
>Description:
NULL is spelled NUL inside strlen(3).
>How-To-Repeat:
man 3 strlen
>Fix:
Attached patch.

Patch attached with submission follows:

Index: strlen.3
===================================================================
--- strlen.3	(revision 179865)
+++ strlen.3	(working copy)
@@ -57,7 +57,7 @@
 returns
 the number of characters that precede the
 terminating
-.Dv NUL
+.Dv NULL
 character.
 .Sh SEE ALSO
 .Xr string 3


>Release-Note:
>Audit-Trail:

From: samb@catalyst.net.nz
To: bug-followup@FreeBSD.org,
 samb@catalyst.net.nz
Cc:  
Subject: Re: docs/124894: Spelling mistake in strlen(3)
Date: Mon, 23 Jun 2008 14:43:51 +1200 (NZST)

 I was a bit hasty in logging this PR. It appears that NUL is the ASCII
 abbreviation for the NULL character and the string functions have many
 references to it.
 
 Please cancel this PR :)
 

From: Diane Bruce <db@db.net>
To: Sam Banks <samb@catalyst.net.nz>
Cc: freebsd-gnats-submit@FreeBSD.org
Subject: Re: docs/124894: Spelling mistake in strlen(3)
Date: Sun, 22 Jun 2008 22:41:23 -0400

 On Mon, Jun 23, 2008 at 02:27:58AM +0000, Sam Banks wrote:
 >
 > >Number:         124894
 ...
 > >Description:
 > NULL is spelled NUL inside strlen(3).
 
 That is correct. NULL is syntactic sugar for 0 in c, a NULL pointer;
 i.e. a pointer pointing to NULL. However, NUL is the ASCII
 char nul, it is not NULL.
 
 >  terminating
 > -.Dv NUL
 > +.Dv NULL
 
 NULL is not a character, NUL is.
 
 --
 - db@FreeBSD.org db@db.net http://www.db.net/~db
State-Changed-From-To: open->closed 
State-Changed-By: danger 
State-Changed-When: Mon Jun 23 08:19:07 UTC 2008 
State-Changed-Why:  
Close this one as it's invalid. Thank you for reporting though. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=124894 
Responsible-Changed-From-To: freebsd-doc->danger 
Responsible-Changed-By: danger 
Responsible-Changed-When: Mon Jun 23 08:19:44 UTC 2008 
Responsible-Changed-Why:  
Track 

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