Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 6 Oct 1998 13:56:09 +0100 (BST)
From:      aledm@routers.co.uk
To:        FreeBSD-gnats-submit@FreeBSD.ORG
Subject:   kern/8165: minor inconsistency in dirent.h
Message-ID:  <199810061256.NAA23400@ns.wcom.co.uk>

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

>Number:         8165
>Category:       kern
>Synopsis:       sys/dirent.h has duplicate constant from sys/syslimits.h
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-bugs
>State:          open
>Quarter:
>Keywords:
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Tue Oct  6 06:00:01 PDT 1998
>Last-Modified:
>Originator:     Aled Morris
>Organization:
Routers Ltd.
>Release:        FreeBSD 3.0-980309-SNAP i386
>Environment:

kernel include files

>Description:

sys/dirent.h has a definition of MAXNAMLEN as follows:

#define MAXNAMLEN       255

This should be the same as NAME_MAX from sys/syslimits.h:

#define NAME_MAX                  255   /* max bytes in a file name */

These should be synchronised in the same way that MAXPATHLEN in sys/param.h
is fixed to PATH_MAX from sys/syslimits.h

>How-To-Repeat:

by inspection

>Fix:
	
to sys/dirent.h add #include <sys/syslimits.h>
and change "#define MAXNAMLEN 255" to "#define MAXNAMLEN NAME_MAX"
>Audit-Trail:
>Unformatted:

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



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