Up to [local] / src / usr.bin / units
Request diff between arbitrary revisions
Default branch: MAIN
Revision 1.23 / (download) - annotate - [select for diffs], Mon Dec 26 18:52:10 2022 UTC (16 months, 3 weeks ago) by florian
Branch: MAIN
CVS Tags: OPENBSD_7_5_BASE,
OPENBSD_7_5,
OPENBSD_7_4_BASE,
OPENBSD_7_4,
OPENBSD_7_3_BASE,
OPENBSD_7_3,
HEAD
Changes since 1.22: +6 -6 lines
Diff to previous 1.22 (colored)
Implement support for personal units library. With -f one could read an alternative library but it would replace the standard units library, not add to it. Allow passing -f multiple times to read all files and merge them together. Passing the empty string, i.e. -f '' reads the default units library. This is implemented in at least FreeBSD and Linux. OK miod
Revision 1.22 / (download) - annotate - [select for diffs], Fri Oct 9 01:37:09 2015 UTC (8 years, 7 months ago) by deraadt
Branch: MAIN
CVS Tags: OPENBSD_7_2_BASE,
OPENBSD_7_2,
OPENBSD_7_1_BASE,
OPENBSD_7_1,
OPENBSD_7_0_BASE,
OPENBSD_7_0,
OPENBSD_6_9_BASE,
OPENBSD_6_9,
OPENBSD_6_8_BASE,
OPENBSD_6_8,
OPENBSD_6_7_BASE,
OPENBSD_6_7,
OPENBSD_6_6_BASE,
OPENBSD_6_6,
OPENBSD_6_5_BASE,
OPENBSD_6_5,
OPENBSD_6_4_BASE,
OPENBSD_6_4,
OPENBSD_6_3_BASE,
OPENBSD_6_3,
OPENBSD_6_2_BASE,
OPENBSD_6_2,
OPENBSD_6_1_BASE,
OPENBSD_6_1,
OPENBSD_6_0_BASE,
OPENBSD_6_0,
OPENBSD_5_9_BASE,
OPENBSD_5_9
Changes since 1.21: +5 -5 lines
Diff to previous 1.21 (colored)
Change all tame callers to namechange to pledge(2).
Revision 1.21 / (download) - annotate - [select for diffs], Tue Oct 6 13:29:56 2015 UTC (8 years, 7 months ago) by deraadt
Branch: MAIN
Changes since 1.20: +8 -1 lines
Diff to previous 1.20 (colored)
tame "stdio rpath" before opening the file, tame "stdio" after that
Revision 1.20 / (download) - annotate - [select for diffs], Wed Nov 27 00:13:24 2013 UTC (10 years, 5 months ago) by deraadt
Branch: MAIN
CVS Tags: OPENBSD_5_8_BASE,
OPENBSD_5_8,
OPENBSD_5_7_BASE,
OPENBSD_5_7,
OPENBSD_5_6_BASE,
OPENBSD_5_6,
OPENBSD_5_5_BASE,
OPENBSD_5_5
Changes since 1.19: +2 -2 lines
Diff to previous 1.19 (colored)
unsigned char for ctype ok okan
Revision 1.19 / (download) - annotate - [select for diffs], Sun Nov 17 20:19:36 2013 UTC (10 years, 6 months ago) by okan
Branch: MAIN
Changes since 1.18: +2 -1 lines
Diff to previous 1.18 (colored)
Include unistd.h as it is the standard location for getopt(). OK millert@
Revision 1.18 / (download) - annotate - [select for diffs], Fri Jan 4 19:31:28 2013 UTC (11 years, 4 months ago) by jmc
Branch: MAIN
CVS Tags: OPENBSD_5_4_BASE,
OPENBSD_5_4,
OPENBSD_5_3_BASE,
OPENBSD_5_3
Changes since 1.17: +18 -6 lines
Diff to previous 1.17 (colored)
an undocumented feature of units was the ability to specify a prefix in non-interactive mode. document that now, but also allow for the prefix to be given without a need to quote it; code lifted from atatat (netbsd -r1.10); otto helped me paste it in. ok otto millert
Revision 1.17 / (download) - annotate - [select for diffs], Fri Oct 7 20:07:25 2011 UTC (12 years, 7 months ago) by jmc
Branch: MAIN
CVS Tags: OPENBSD_5_2_BASE,
OPENBSD_5_2,
OPENBSD_5_1_BASE,
OPENBSD_5_1
Changes since 1.16: +4 -23 lines
Diff to previous 1.16 (colored)
do not search PATH for a units datafile; from pjanzen
Revision 1.16 / (download) - annotate - [select for diffs], Thu Oct 6 23:27:04 2011 UTC (12 years, 7 months ago) by jmc
Branch: MAIN
Changes since 1.15: +2 -6 lines
Diff to previous 1.15 (colored)
just define UNITSFILE directly, and do away with the need for pathnames.h; ok deraadt
Revision 1.15 / (download) - annotate - [select for diffs], Thu Oct 6 17:58:04 2011 UTC (12 years, 7 months ago) by jmc
Branch: MAIN
Changes since 1.14: +17 -35 lines
Diff to previous 1.14 (colored)
from pjanzen: Bump MAXPREFIXES (and a few string lengths) prior to units.lib commit of more prefixes. Add FreeBSD fixes (circa 2001) to prefix and other units.lib parsing. Do minor obvious code tidying.
Revision 1.14 / (download) - annotate - [select for diffs], Thu Mar 29 20:13:57 2007 UTC (17 years, 1 month ago) by jmc
Branch: MAIN
CVS Tags: OPENBSD_5_0_BASE,
OPENBSD_5_0,
OPENBSD_4_9_BASE,
OPENBSD_4_9,
OPENBSD_4_8_BASE,
OPENBSD_4_8,
OPENBSD_4_7_BASE,
OPENBSD_4_7,
OPENBSD_4_6_BASE,
OPENBSD_4_6,
OPENBSD_4_5_BASE,
OPENBSD_4_5,
OPENBSD_4_4_BASE,
OPENBSD_4_4,
OPENBSD_4_3_BASE,
OPENBSD_4_3,
OPENBSD_4_2_BASE,
OPENBSD_4_2
Changes since 1.13: +3 -5 lines
Diff to previous 1.13 (colored)
sync usage(); from Igor Sobrado
Revision 1.13 / (download) - annotate - [select for diffs], Sat Feb 24 03:28:16 2007 UTC (17 years, 2 months ago) by ray
Branch: MAIN
CVS Tags: OPENBSD_4_1_BASE,
OPENBSD_4_1
Changes since 1.12: +15 -10 lines
Diff to previous 1.12 (colored)
- Don't access buffers with negative indexes. - Save a ton of strlen calls. - Return NULL pointer, not 0. ``boy there is a lot of strlen()'' millert@ and OK moritz@.
Revision 1.12 / (download) - annotate - [select for diffs], Tue Feb 20 01:56:12 2007 UTC (17 years, 3 months ago) by ray
Branch: MAIN
Changes since 1.11: +4 -4 lines
Diff to previous 1.11 (colored)
Change hard coded numbers to sizeof(buf). Also change some sizeof(buf) - 1 to sizeof(buf), since fgets takes the whole buffer size. Based on diff from Charles Longeau <chl at tuxfamily dot org> long ago. OK millert@.
Revision 1.11 / (download) - annotate - [select for diffs], Thu Dec 2 22:54:55 2004 UTC (19 years, 5 months ago) by pat
Branch: MAIN
CVS Tags: OPENBSD_4_0_BASE,
OPENBSD_4_0,
OPENBSD_3_9_BASE,
OPENBSD_3_9,
OPENBSD_3_8_BASE,
OPENBSD_3_8,
OPENBSD_3_7_BASE,
OPENBSD_3_7
Changes since 1.10: +23 -15 lines
Diff to previous 1.10 (colored)
* fix the duplicate prefix and duplicate unit parsing with suggestion & ok millert
Revision 1.10 / (download) - annotate - [select for diffs], Wed Dec 1 16:41:07 2004 UTC (19 years, 5 months ago) by pat
Branch: MAIN
Changes since 1.9: +11 -2 lines
Diff to previous 1.9 (colored)
* plug memory leaks in the file parser and in the interactive mode parser ok otto
Revision 1.9 / (download) - annotate - [select for diffs], Wed Jul 2 01:57:15 2003 UTC (20 years, 10 months ago) by deraadt
Branch: MAIN
CVS Tags: OPENBSD_3_6_BASE,
OPENBSD_3_6,
OPENBSD_3_5_BASE,
OPENBSD_3_5,
OPENBSD_3_4_BASE,
OPENBSD_3_4
Changes since 1.8: +65 -53 lines
Diff to previous 1.8 (colored)
cleanup
Revision 1.8 / (download) - annotate - [select for diffs], Tue Jun 10 22:20:53 2003 UTC (20 years, 11 months ago) by deraadt
Branch: MAIN
Changes since 1.7: +3 -3 lines
Diff to previous 1.7 (colored)
mostly ansi cleanup; pval ok
Revision 1.7 / (download) - annotate - [select for diffs], Wed Jan 17 19:29:49 2001 UTC (23 years, 4 months ago) by deraadt
Branch: MAIN
CVS Tags: OPENBSD_3_3_BASE,
OPENBSD_3_3,
OPENBSD_3_2_BASE,
OPENBSD_3_2,
OPENBSD_3_1_BASE,
OPENBSD_3_1,
OPENBSD_3_0_BASE,
OPENBSD_3_0,
OPENBSD_2_9_BASE,
OPENBSD_2_9
Changes since 1.6: +9 -15 lines
Diff to previous 1.6 (colored)
use more strlcpy()
Revision 1.6 / (download) - annotate - [select for diffs], Sun Jun 13 16:34:21 1999 UTC (24 years, 11 months ago) by pjanzen
Branch: MAIN
CVS Tags: OPENBSD_2_8_BASE,
OPENBSD_2_8,
OPENBSD_2_7_BASE,
OPENBSD_2_7,
OPENBSD_2_6_BASE,
OPENBSD_2_6
Changes since 1.5: +2 -2 lines
Diff to previous 1.5 (colored)
typo
Revision 1.5 / (download) - annotate - [select for diffs], Tue Jul 8 18:32:27 1997 UTC (26 years, 10 months ago) by millert
Branch: MAIN
CVS Tags: OPENBSD_2_5_BASE,
OPENBSD_2_5,
OPENBSD_2_4_BASE,
OPENBSD_2_4,
OPENBSD_2_3_BASE,
OPENBSD_2_3,
OPENBSD_2_2_BASE,
OPENBSD_2_2
Changes since 1.4: +16 -16 lines
Diff to previous 1.4 (colored)
- replace some strn?cpy/strn?cat pairs w/ snprintf - strcpy() -> strncpy()
Revision 1.4 / (download) - annotate - [select for diffs], Sun Aug 11 00:17:31 1996 UTC (27 years, 9 months ago) by deraadt
Branch: MAIN
CVS Tags: OPENBSD_2_1_BASE,
OPENBSD_2_1,
OPENBSD_2_0_BASE,
OPENBSD_2_0
Changes since 1.3: +27 -19 lines
Diff to previous 1.3 (colored)
two fixes from freebsd plus some more by me
Revision 1.3 / (download) - annotate - [select for diffs], Wed Jun 26 05:42:15 1996 UTC (27 years, 10 months ago) by deraadt
Branch: MAIN
Changes since 1.2: +1 -0 lines
Diff to previous 1.2 (colored)
rcsid
Revision 1.2 / (download) - annotate - [select for diffs], Sun Apr 21 23:44:32 1996 UTC (28 years, 1 month ago) by deraadt
Branch: MAIN
Changes since 1.1: +5 -5 lines
Diff to previous 1.1 (colored)
sync to netbsd 960418
Revision 1.1.1.1 / (download) - annotate - [select for diffs] (vendor branch), Wed Oct 18 08:46:30 1995 UTC (28 years, 7 months ago) by deraadt
CVS Tags: netbsd_1_1
Changes since 1.1: +0 -0 lines
Diff to previous 1.1 (colored)
initial import of NetBSD tree
Revision 1.1 / (download) - annotate - [select for diffs], Wed Oct 18 08:46:30 1995 UTC (28 years, 7 months ago) by deraadt
Branch: MAIN
Initial revision