View Issue Details

IDProjectCategoryView StatusLast Update
00004031003.1(2008)/Issue 7System Interfacespublic2013-04-16 13:06
ReporterDon CragunAssigned Toajosey  
PrioritynormalSeverityEditorialTypeError
Status ClosedResolutionAccepted As Marked 
NameDon Cragun
OrganizationSelf
User Reference
Sectionnftw()
Page Number1369
Line Number44907
Interp Status---
Final Accepted Text0000403:0000748
Summary0000403: FTW_F meaning is ambiguous
DescriptionThe third argument to the user-supplied function that is the second argument to ftw() and nftw() can take one of several values.
Unfortunately, FTW_F and FTW_D are not mutually exclusive.
The description of these two values are "file" (FTW_F) and "directory" (FTW_D), but since a directory is a type of file, FTW_F could always be used in any case where FTW_D could be used.
The standard needs to clarify whether FTW_F really means "regular file" or means
"non-directory file".

Given the man pages for FreeBSD and Mac OS X, I assume the correct term is regular file. (The Linux man page uses "normal file".)
Desired Action
Change:
        "FTW_F    File."
in XBD <ftw.h> on P254, L8333 to:
        "FTW_F    Regular file."

Change:
        "FTW_F    For a file."
on XSH ftw() P964, L32261 to:
        "FTW_F    For a regular file."

Change:
        "FTW_F    The object is a file."
on XSH nftw() P1369, L44907 to:
        "FTW_F    The object is a regular file."
Tagstc1-2008

Activities

geoffclare

2011-04-21 15:58

manager   bugnote:0000748

Change:
        FTW_F    File.
in XBD <ftw.h> on P254, L8333 to:
        FTW_F    Non-directory file.

Change:
        FTW_F    For a file.
on XSH ftw() P964, L32261 to:
        FTW_F    For a non-directory file.

Change:
        FTW_F    The object is a file.
on XSH nftw() P1369, L44912 to:
        FTW_F    The object is a non-directory file.

Change:

        (tflag == FTW_D) ? "d" : (tflag == FTW_DNR) ? "dnr" :
        (tflag == FTW_DP) ? "dp" : (tflag == FTW_F) ? "f" :
        (tflag == FTW_NS) ? "ns" : (tflag == FTW_SL) ? "sl" :
        (tflag == FTW_SLN) ? "sln" : "???",

on XSH nftw() P1371, L44972 to:

        (tflag == FTW_D) ? "d" : (tflag == FTW_DNR) ? "dnr" :
        (tflag == FTW_DP) ? "dp" : (tflag == FTW_F) ?
                (S_ISBLK(sb->st_mode) ? "f b" :
                S_ISCHR(sb->st_mode) ? "f c" :
                S_ISFIFO(sb->st_mode) ? "f p" :
                S_ISREG(sb->st_mode) ? "f r" :
                S_ISSOCK(sb->st_mode) ? "f s" : "f ?") :
        (tflag == FTW_NS) ? "ns" : (tflag == FTW_SL) ? "sl" :
        (tflag == FTW_SLN) ? "sln" : "?",

Issue History

Date Modified Username Field Change
2011-04-07 19:58 Don Cragun New Issue
2011-04-07 19:58 Don Cragun Status New => Under Review
2011-04-07 19:58 Don Cragun Assigned To => ajosey
2011-04-07 19:58 Don Cragun Name => Don Cragun
2011-04-07 19:58 Don Cragun Organization => Self
2011-04-07 19:58 Don Cragun Section => nftw()
2011-04-07 19:58 Don Cragun Page Number => 1369
2011-04-07 19:58 Don Cragun Line Number => 44907
2011-04-07 19:58 Don Cragun Interp Status => ---
2011-04-21 15:58 geoffclare Note Added: 0000748
2011-04-21 15:58 geoffclare Status Under Review => Resolved
2011-04-21 15:58 geoffclare Resolution Open => Accepted As Marked
2011-04-21 15:58 geoffclare Final Accepted Text => 0000403:0000748
2011-04-21 15:59 geoffclare Tag Attached: tc1-2008
2013-04-16 13:06 ajosey Status Resolved => Closed