public inbox for libc-alpha@sourceware.org
 help / color / mirror / Atom feed
* [RFC] DT_WHT
@ 2018-02-21 10:49 Rical Jasan
  2018-02-22  7:03 ` Carlos O'Donell
  2018-03-01 16:24 ` Ben Hutchings
  0 siblings, 2 replies; 10+ messages in thread
From: Rical Jasan @ 2018-02-21 10:49 UTC (permalink / raw)
  To: libc-alpha

There is one undocumented DT_* macro in manual/filesys.texi: DT_WHT.  It
is defined in dirent/dirent.h and appears to be used once in io/fts.c:

#if defined FTS_WHITEOUT && 0
                if (dp->d_type == DT_WHT)
                        p->fts_flags |= FTS_ISW;
#endif

For an entry in the manual, I was thinking something along the lines of:

"This macro is obsolete and has no effect.  It was used to..."

but I'm not sure what to say about what it was used for.

Alternatively, could/should it be removed?  It looks like that might
extend beyond just DT_WHT, as FTS_WHITEOUT also appears to be a NOOP:

$ grep -rFn FTS_WHITEOUT .
./io/fts.h:75:#define FTS_WHITEOUT	0x0080		/* return whiteout information */
./io/fts.c:628:#if defined FTS_WHITEOUT && 0
./io/fts.c:629:	if (ISSET(FTS_WHITEOUT))
./io/fts.c:772:#if defined FTS_WHITEOUT && 0
./io/fts.c:881:#if defined FTS_WHITEOUT && 0

Lastly, I can't find a reference to it in any of the standards I've
managed to obtain so far (not to say that's exhaustive at all).  Is this
also BSD?

Thank you,
Rical

^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2018-03-06 11:28 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-02-21 10:49 [RFC] DT_WHT Rical Jasan
2018-02-22  7:03 ` Carlos O'Donell
2018-03-01 16:24 ` Ben Hutchings
2018-03-01 23:02   ` Rical Jasan
2018-03-05  1:50     ` Ben Hutchings
2018-03-05  9:47       ` Florian Weimer
2018-03-05 16:21         ` Ben Hutchings
2018-03-06 11:28           ` Florian Weimer
2018-03-05 10:49       ` Rical Jasan
2018-03-05 16:23         ` Ben Hutchings

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).