View Issue Details
| ID | Project | Category | View Status | Date Submitted | Last Update |
|---|---|---|---|---|---|
| 0000403 | 1003.1(2008)/Issue 7 | System Interfaces | public | 2011-04-07 19:58 | 2013-04-16 13:06 |
| Reporter | Assigned To | ajosey | |||
| Priority | normal | Severity | Editorial | Type | Error |
| Status | Closed | Resolution | Accepted As Marked | ||
| Name | Don Cragun | ||||
| Organization | Self | ||||
| User Reference | |||||
| Section | nftw() | ||||
| Page Number | 1369 | ||||
| Line Number | 44907 | ||||
| Interp Status | --- | ||||
| Final Accepted Text | 0000403:0000748 | ||||
| Summary | 0000403: FTW_F meaning is ambiguous | ||||
| Description | The 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."
| ||||
| Tags | tc1-2008 | ||||
|
|
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" : "?",
|
| Date Modified | Username | Field | Change |
|---|---|---|---|
| 2011-04-07 19:58 |
|
New Issue | |
| 2011-04-07 19:58 |
|
Status | New => Under Review |
| 2011-04-07 19:58 |
|
Assigned To | => ajosey |
| 2011-04-07 19:58 |
|
Name | => Don Cragun |
| 2011-04-07 19:58 |
|
Organization | => Self |
| 2011-04-07 19:58 |
|
Section | => nftw() |
| 2011-04-07 19:58 |
|
Page Number | => 1369 |
| 2011-04-07 19:58 |
|
Line Number | => 44907 |
| 2011-04-07 19:58 |
|
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 |