CVS log for mandoc/compat_err.c

[BACK] Up to [] / mandoc

Request diff between arbitrary revisions

Default branch: MAIN
Current tag: MAIN

Revision 1.5 / (download) - annotate - [select for diffs], Mon Jun 15 01:37:14 2020 UTC (8 months, 2 weeks ago) by schwarze
Branch: MAIN
Changes since 1.4: +2 -11 lines
Diff to previous 1.4 (unified) to selected 1.2 (unified)

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.4 / (download) - annotate - [select for diffs], Thu Nov 26 07:42:11 2015 UTC (5 years, 3 months 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_4, VERSION_1_13
Changes since 1.3: +13 -1 lines
Diff to previous 1.3 (unified) to selected 1.2 (unified)

No point in trying to go on when elementary database operations
like preparing queries or binding variables fail; that won't yield
useful results anyway but may generate huge pointless error messages.
Issue reported by deraadt@.

Revision 1.3 / (download) - annotate - [select for diffs], Sat Nov 7 14:22:29 2015 UTC (5 years, 3 months ago) by schwarze
Branch: MAIN
Changes since 1.2: +1 -2 lines
Diff to previous 1.2 (unified)

Without HAVE_ERR, don't try to include <err.h>, it probably isn't there.
In that case, the required prototypes are in "config.h".
Patch from Peter Bray <pdb_ml at yahoo dot com dot au>.

Revision 1.2 / (download) - annotate - [selected], Fri Nov 6 16:30:33 2015 UTC (5 years, 3 months ago) by schwarze
Branch: MAIN
Changes since 1.1: +2 -4 lines
Diff to previous 1.1 (unified)

Use getprogname(3) rather than __progname.
Suggested by Joerg@ Sonnenberger (NetBSD).
Last year, deraadt@ confirmed on tech@ that this "has the potential
to be more portable", and micro-optimizing for speed is not relevant
here.  Also gets rid of one global variable.

Revision 1.1 / (download) - annotate - [select for diffs], Sun Oct 11 21:12:54 2015 UTC (5 years, 4 months ago) by schwarze
Branch: MAIN
Diff to selected 1.2 (unified)

Finally use __progname, err(3) and warn(3).
That's more readable and less error-prone than fumbling around
with argv[0], fprintf(3), strerror(3), perror(3), and exit(3).

It's a bad idea to boycott good interfaces merely because standards
committees ignore them.  Instead, let's provide compatibility modules
for archaic systems (like commercial Solaris) that still don't have
them.  The compat module has an UCB Copyright (c) 1993...

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.