From logix@foobar.franken.de Tue May 11 03:13:09 1999
Return-Path: <logix@foobar.franken.de>
Received: from foobar.franken.de (foobar.franken.de [194.94.249.81])
	by hub.freebsd.org (Postfix) with ESMTP id B2938159A9
	for <FreeBSD-gnats-submit@freebsd.org>; Tue, 11 May 1999 03:12:36 -0700 (PDT)
	(envelope-from logix@foobar.franken.de)
Received: (from logix@localhost)
	by foobar.franken.de (8.8.8/8.8.5) id MAA12150;
	Tue, 11 May 1999 12:12:27 +0200 (CEST)
Message-Id: <199905111012.MAA12150@foobar.franken.de>
Date: Tue, 11 May 1999 12:12:27 +0200 (CEST)
From: Harold Gutch <logix@foobar.franken.de>
Reply-To: logix@foobar.franken.de
To: FreeBSD-gnats-submit@freebsd.org
Subject: The dir(5) manpage does not mention the unportability of d_type (fix included)
X-Send-Pr-Version: 3.2

>Number:         11645
>Category:       docs
>Synopsis:       The dir(5) manpage does not mention the unportability of d_type (fix included)
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    nik
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          doc-bug
>Submitter-Id:   current-users
>Arrival-Date:   Tue May 11 03:20:01 PDT 1999
>Closed-Date:    Sat May 29 05:59:36 PDT 1999
>Last-Modified:  Sat May 29 06:00:00 PDT 1999
>Originator:     Harold Gutch
>Release:        FreeBSD 3.1-STABLE i386
>Organization:
>Environment:

	Not relevant.

>Description:

	The member d_type of struct dirent is FreeBSD-specific. The dir(5) manpage mentions
	d_type but does not mention the unportability in any way. It also does not mention
	that d_type does not work on all filesystems.

>How-To-Repeat:

	Read the fine manpage.

>Fix:
	
--- dir.5.orig  Tue May 11 11:52:08 1999
+++ dir.5       Tue May 11 11:57:30 1999
@@ -148,6 +148,9 @@
 .Sh SEE ALSO
 .Xr fs 5 ,
 .Xr inode 5
+.Sh BUGS
+The usage of the member d_type of struct dirent is unportable as it is FreeBSD-specific.
+It also may fail on certain filesystems, for example the cd9660 filesystem.
 .Sh HISTORY
 A
 .Nm


>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-doc->nik 
Responsible-Changed-By: nik 
Responsible-Changed-When: Fri May 28 16:51:26 PDT 1999 
Responsible-Changed-Why:  
Mine. 
State-Changed-From-To: open->closed 
State-Changed-By: nik 
State-Changed-When: Sat May 29 05:59:36 PDT 1999 
State-Changed-Why:  
Committed, thanks. 
>Unformatted:
