summaryrefslogtreecommitdiffstats
path: root/include/fts.h
Commit message (Collapse)AuthorAgeFilesLines
* Introduce new field 'fts_bignum' which is 64bit long and will allow topjd2005-01-071-2/+10
| | | | | | | | | | | | | | | make utilities like du(1) 64bit-clean. When this field is used, one cannot use 'fts_number' and 'fts_pointer' fields. This commit doesn't break API nor ABI. This work is part of the BigDisk project: http://www.FreeBSD.org/projects/bigdisk/ Discussed on: arch@ MFC after: 5 days
* Fix some^Wseveral style bugs from last commit.peadar2004-05-121-1/+0
| | | | | | | | | | Remove "sys/types.h" as "sys/param.h" is already included Use cast rather than back-pointer to convert from public to private version of FTS data, and so avoid littering fts.h with any of the details. Pointed out By: bde, kientzle
* Fixed style bugs in previous commit (bogus forward declaration andbde2004-05-101-3/+1
| | | | inconsistent capitalization in comments).
* The FTS_NOSTAT option is an optimisation that reduces the numberpeadar2004-05-081-0/+3
| | | | | | | | | | | | | | | | | | | of stat(2) calls by keeping an eye of the number of links a directory has. It assumes that each subdirectory will have a hard link to its parent, to represent the ".." node, and stops calling stat(2) when all links are accounted for in a given directory. This assumption is really only valid for UNIX-like filesystems: A concrete example is NTFS. The NTFS "i-node" does contain a link count, but most/all directories have a link count between 0 and 2 inclusive. The end result is that find on an NTFS volume won't actually traverse the entire hierarchy of the directories passed to it. (Those with a link count of two are not traversed at all) The fix checks the "UFSness" of the filesystem before enabling the optimisation. Reviewed By: Tim Kientzle (kientzle@)
* Make the threatened fts(3) ABI fix. FTSENT now avoids the use of the structwollman2002-09-211-3/+10
| | | | | | | | | | | | | | | | hack, thereby allowing future extensions to the structure (e.g., for extended attributes) without rebreaking the ABI. FTSENT now contains a pointer to the parent stream, which fts_compar() can then take advantage of, avoiding the undefined behavior previously warned about. As a consequence of this change, the prototype of the comparison function passed to fts_open() has changed to reflect the required amount of constness for its use. All callers in the tree are updated to use the correct prototype. Comparison functions can now make use of the new parent pointer to access the new stream-specific private data pointer, which is intended to assist creation of reentrant library routines which use fts(3) internally. Not objected to in spirit by: -arch
* Fixed some style bugs in the removal of __P(()). Some function parameterbde2002-03-261-1/+1
| | | | lists were outdented to column 0.
* Breath deep and take __P out of the system include files.imp2002-03-231-7/+7
| | | | | | # This appears to not break X11, but I'm having problems compiling the # glide part of the server with or without this patch, so I can't tell # for sure.
* Complete prototype for fts_compar.ru2001-06-131-1/+3
|
* Back out all of yesterdays include file changes.eivind1997-05-071-3/+0
|
* Make a lot of include-files self-contained. I excluded the patches changingeivind1997-05-071-0/+3
| | | | | | | | int's to gid_t and uid_t - should I commit these, too? Closes PR misc/2625. Submitted by: Julian Assange <proff@iq.org>
* Import CSRG 4.4BSD-Lite2 includes onto vendor branchpeter1997-03-111-4/+7
|
* BSD 4.4 Lite Include Sourcesrgrimes1994-05-241-0/+125
OpenPOWER on IntegriCloud