CVS log for mandoc/compat_fts.c

[BACK] Up to [cvsweb.bsd.lv] / mandoc

Request diff between arbitrary revisions


Default branch: MAIN
Current tag: MAIN


Revision 1.17 / (download) - annotate - [select for diffs], Mon Jun 15 01:37:14 2020 UTC (3 years, 9 months ago) by schwarze
Branch: MAIN
CVS Tags: VERSION_1_14_6, HEAD
Changes since 1.16: +2 -11 lines
Diff to previous 1.16 (colored)

Only compile compat_*.c implementations that are actually needed.
That's cleaner and it is supposed to fix compiler warnings with gcc 10
reported by Wynn Wolf Arbor <wolf at oriole dot systems> on discuss@.

Revision 1.16 / (download) - annotate - [select for diffs], Sun Jun 14 23:08:35 2020 UTC (3 years, 9 months ago) by schwarze
Branch: MAIN
Changes since 1.15: +7 -6 lines
Diff to previous 1.15 (colored)

merge rev. 1.58 from OpenBSD (deraadt@):
recallocarray() the string buffer, to avoid leaving such contents
around in the address space.  Don't bother doing so for the buffer
which contains aslr'd pointers...
OK millert@

Revision 1.15 / (download) - annotate - [select for diffs], Sun Jun 14 22:49:36 2020 UTC (3 years, 9 months ago) by schwarze
Branch: MAIN
Changes since 1.14: +5 -2 lines
Diff to previous 1.14 (colored)

Give the fts_compar struct member a real prototype.
This adds clarity and avoids compiler warnings.

Revision 1.14 / (download) - annotate - [select for diffs], Sat Feb 18 12:24:24 2017 UTC (7 years, 1 month ago) by schwarze
Branch: MAIN
CVS Tags: VERSION_1_14_5, VERSION_1_14_4, VERSION_1_14_3, VERSION_1_14_2, VERSION_1_14_1, VERSION_1_13
Changes since 1.13: +1 -7 lines
Diff to previous 1.13 (colored)

proper test for O_DIRECTORY

Revision 1.13 / (download) - annotate - [select for diffs], Wed Feb 15 15:58:46 2017 UTC (7 years, 1 month ago) by schwarze
Branch: MAIN
Changes since 1.12: +7 -8 lines
Diff to previous 1.12 (colored)

Style improvement, no functional change.

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@

Revision 1.12 / (download) - annotate - [select for diffs], Tue Oct 18 23:58:12 2016 UTC (7 years, 5 months ago) by schwarze
Branch: MAIN
Changes since 1.11: +61 -8 lines
Diff to previous 1.11 (colored)

bring back support for sorting

Revision 1.11 / (download) - annotate - [select for diffs], Tue Oct 18 23:13:25 2016 UTC (7 years, 5 months ago) by schwarze
Branch: MAIN
Changes since 1.10: +12 -17 lines
Diff to previous 1.10 (colored)

sync with OpenBSD

Revision 1.10 / (download) - annotate - [select for diffs], Tue Aug 2 11:09:46 2016 UTC (7 years, 7 months ago) by schwarze
Branch: MAIN
Changes since 1.9: +4 -1 lines
Diff to previous 1.9 (colored)

POSIX allows PATH_MAX to not be defined, meaning "unlimited".
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.

Revision 1.9 / (download) - annotate - [select for diffs], Wed Mar 18 19:29:48 2015 UTC (9 years ago) by schwarze
Branch: MAIN
CVS Tags: VERSION_1_13_4
Changes since 1.8: +15 -166 lines
Diff to previous 1.8 (colored)

We always use FTS_NOCHDIR, so delete the directory changing code.
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>.

Revision 1.8 / (download) - annotate - [select for diffs], Sat Feb 7 07:53:01 2015 UTC (9 years, 1 month ago) by schwarze
Branch: MAIN
CVS Tags: VERSION_1_13_3
Changes since 1.7: +4 -1 lines
Diff to previous 1.7 (colored)

ignore O_CLOEXEC when the operating system doesn't provide it;
needed for some older versions of SunOS;
from jperkin@ via wiz@, both at NetBSD

Revision 1.7 / (download) - annotate - [select for diffs], Sat Feb 7 07:42:56 2015 UTC (9 years, 1 month ago) by schwarze
Branch: MAIN
Changes since 1.6: +5 -5 lines
Diff to previous 1.6 (colored)

trivial sync to OpenBSD: <sys/param.h> no longer needed

Revision 1.6 / (download) - annotate - [select for diffs], Thu Dec 11 18:20:07 2014 UTC (9 years, 3 months ago) by schwarze
Branch: MAIN
CVS Tags: VERSION_1_13_2
Changes since 1.5: +9 -31 lines
Diff to previous 1.5 (colored)

Make this work on illumos:
* define MAX()
* ignore O_DIRECTORY if it isn't defined
* garbage collect two unused variables
Issues reported and fix tested by wiz@NetBSD.

Revision 1.5 / (download) - annotate - [select for diffs], Thu Dec 11 09:05:01 2014 UTC (9 years, 3 months ago) by schwarze
Branch: MAIN
Changes since 1.4: +5 -4 lines
Diff to previous 1.4 (colored)

sync to OpenBSD

Revision 1.4 / (download) - annotate - [select for diffs], Sun Aug 17 20:45:59 2014 UTC (9 years, 7 months ago) by schwarze
Branch: MAIN
Changes since 1.3: +2 -1 lines
Diff to previous 1.3 (colored)

one forgotten #ifdef -> #if conversion

Revision 1.3 / (download) - annotate - [select for diffs], Sat Aug 16 19:00:01 2014 UTC (9 years, 7 months ago) by schwarze
Branch: MAIN
Changes since 1.2: +1 -1 lines
Diff to previous 1.2 (colored)

Improve build system and autodetection.
* 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.

Revision 1.2 / (download) - annotate - [select for diffs], Mon Aug 11 03:19:39 2014 UTC (9 years, 7 months ago) by schwarze
Branch: MAIN
Changes since 1.1: +16 -15 lines
Diff to previous 1.1 (colored)

work around lack of d_namlen and ALIGN/ALIGNBYTES on Linux

Revision 1.1 / (download) - annotate - [select for diffs], Mon Aug 11 01:39:00 2014 UTC (9 years, 7 months ago) by schwarze
Branch: MAIN

Provide a fallback version of fts(3) for systems lacking it.
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.

This form allows you to request diff's between any two revisions of a file. You may select a symbolic revision name using the selection box or you may type in a numeric name using the type-in text box.




CVSweb