aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/compat_fts.c
Commit message (Collapse)AuthorAgeFilesLines
* proper test for O_DIRECTORYIngo Schwarze2017-02-181-7/+1
|
* Style improvement, no functional change.Ingo Schwarze2017-02-151-8/+7
| | | | | | | | | | As reported by Yuri Pankov, some versions of GCC whine that "tmp" might be used uninitialized in fts_open(3). Clearly, that cannot actually happen, but explicitly setting it to NULL is safer anyway. While here, rename the badly named variable "tmp" and make the inner "if" easier to understand. Feedback and OK guenther@
* bring back support for sortingIngo Schwarze2016-10-181-8/+61
|
* sync with OpenBSDIngo Schwarze2016-10-181-17/+12
|
* POSIX allows PATH_MAX to not be defined, meaning "unlimited".Ingo Schwarze2016-08-021-1/+4
| | | | | | | Found by Aaron M. Ucko <amu at alum dot mit dot edu> on the GNU Hurd, via Bdale Garbee, https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=829624 Also add EFTYPE at two places where it was forgotten.
* We always use FTS_NOCHDIR, so delete the directory changing code.Ingo Schwarze2015-03-181-166/+15
| | | | | | 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>.
* ignore O_CLOEXEC when the operating system doesn't provide it;Ingo Schwarze2015-02-071-1/+4
| | | | | needed for some older versions of SunOS; from jperkin@ via wiz@, both at NetBSD
* trivial sync to OpenBSD: <sys/param.h> no longer neededIngo Schwarze2015-02-071-5/+5
|
* Make this work on illumos:Ingo Schwarze2014-12-111-31/+9
| | | | | | | * define MAX() * ignore O_DIRECTORY if it isn't defined * garbage collect two unused variables Issues reported and fix tested by wiz@NetBSD.
* sync to OpenBSDIngo Schwarze2014-12-111-4/+5
|
* one forgotten #ifdef -> #if conversionIngo Schwarze2014-08-171-1/+2
|
* Improve build system and autodetection.Ingo Schwarze2014-08-161-1/+1
| | | | | | | | | * Make ./configure standalone, that's what people expect. * Let people write a ./configure.local from scratch, not edit existing files. * Autodetect wchar, sqlite3, and manpath and act accordingly. * Autodetect the need for -L/usr/local/lib and -lutil. * Get rid of config.h.p{re,ost}, let ./configure only write what's needed. * Let ./configure write a Makefile.local snippet, that's quite flexible.
* work around lack of d_namlen and ALIGN/ALIGNBYTES on LinuxIngo Schwarze2014-08-111-15/+16
|
* Provide a fallback version of fts(3) for systems lacking it.Ingo Schwarze2014-08-111-0/+824
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.