summaryrefslogtreecommitdiffstats
path: root/compat_fts.h
Commit message (Collapse)AuthorAgeFilesLines
* Give the fts_compar struct member a real prototype.Ingo Schwarze2020-06-141-1/+2
| | | | This adds clarity and avoids compiler warnings.
* bring back support for sortingIngo Schwarze2016-10-181-1/+5
|
* In private header files, __BEGIN_DECLS and __END_DECLS are pointless.Ingo Schwarze2015-11-071-2/+1
| | | | | | | | | | | | Because these work slightly differently on different systems, they are becoming a maintenance burden in the portable version, so delete them. Besides, one of the chief design goals of the mandoc toolbox is to make sure that nothing related to documentation requires C++. Consequently, linking mandoc against any kind of C++ program would defeat the purpose and is not supported. I don't understand why kristaps@ added them in the first place.
* We always use FTS_NOCHDIR, so delete the directory changing code.Ingo Schwarze2015-03-181-5/+1
| | | | | | This not only simplifies matters, but also helps operating systems lacking dirfd(3), for example Solaris 10. Solaris dirfd issue reported by Sevan Janiyan <venture37 at geeklan dot co dot uk>.
* Provide a fallback version of fts(3) for systems lacking it.Ingo Schwarze2014-08-111-0/+106
I chose the OpenBSD version because it apparently contains various bugfixes that never made it into libnbcompat. To reduce size and complexity, i stripped out the features we don't need.