Up to [cvsweb.bsd.lv] / mandoc
Request diff between arbitrary revisions
Default branch: MAIN
Current tag: MAIN
Revision 1.2 / (download) - annotate - [select for diffs], Fri Nov 6 16:30:33 2015 UTC (8 years, 10 months ago) by schwarze
Branch: MAIN
CVS Tags: VERSION_1_14_6,
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,
HEAD
Changes since 1.1: +5 -4 lines
Diff to previous 1.1 (colored)
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:55 2015 UTC (8 years, 11 months ago) by schwarze
Branch: MAIN
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...