The NetBSD Project

CVS log for src/lib/libc/gen/vis.c

[BACK] Up to [cvs.NetBSD.org] / src / lib / libc / gen

Request diff between arbitrary revisions


Default branch: MAIN


Revision 1.88 / (download) - annotate - [select for diffs], Sun Mar 17 21:48:02 2024 UTC (30 hours, 31 minutes ago) by andvar
Branch: MAIN
CVS Tags: HEAD
Changes since 1.87: +3 -3 lines
Diff to previous 1.87 (colored) to selected 1.49 (colored)

Add missing "e" in few words, in comments and one log message.

Revision 1.87 / (download) - annotate - [select for diffs], Sat Jan 20 14:52:47 2024 UTC (8 weeks, 2 days ago) by christos
Branch: MAIN
CVS Tags: triaxx-drm
Changes since 1.86: +6 -5 lines
Diff to previous 1.86 (colored) to selected 1.49 (colored)

Catch up with all the lint warnings since exit on warning was disabled.
Disable 'missing header declaration' and 'nested extern' warnings for now.

Revision 1.73.4.2 / (download) - annotate - [select for diffs], Sat Dec 9 13:10:16 2023 UTC (3 months, 1 week ago) by martin
Branch: netbsd-8
Changes since 1.73.4.1: +105 -17 lines
Diff to previous 1.73.4.1 (colored) to branchpoint 1.73 (colored) next main 1.74 (colored) to selected 1.49 (colored)

Pull up following revision(s) (requested by riastradh in ticket #1923):

	lib/libc/gen/vis.c: revision 1.75-1.86
	tests/lib/libc/gen/t_vis.c: revision 1.10-1.14

PR 56260: fix out-of-bounds stack read.

vis(3): Avoid nonportable MIN in portable code.

vis(3) tests: Add xfail test for encoding overflow.

From Kyle Evans <kevans%FreeBSD.org@localhost>.
PR lib/57573

vis(3) tests: Expand tests and diagnostic outputs on failure.
PR lib/57573

vis(3) tests: Test another overflow edge case.
Related to PR lib/57573.

vis(3): Make maxolen unsigned size_t, not ssize_t.
It is initialized once either to *dlen, which is unsigned size_t, or
to wcslen(start) * MB_MAX_LEN + 1, and wcslen returns unsigned size_t
too.  So there appears to have never been any reason for this to be
signed.
Part of PR lib/57573.

vis(3): Make mbslength unsigned.
Sprinkle assertions and comments justifying the proposition that it
would never go negative if signed.
Obviates need to worry about mblength > SSIZE_MAX.
Prompted by PR lib/57573.

vis(3): Avoid arithmetic overflow before calloc(3).
Prompted by PR lib/57573.

vis(3): Call wcslen(start) only once.
It had better not change between these two times!
Prompted by PR lib/57573.

vis(3): Avoid potential arithmetic overflow in maxolen.
Can't easily prove that this overflow is impossible, so let's add a
check.
Prompted by PR lib/57573.

vis(3): Fix main part of PR lib/57573.
From Kyle Evans <kevans%FreeBSD.org@localhost>.

vis(3): Fix one more buffer overrun in an edge case.
PR lib/57573

vis(3): Sort includes.  No functional change intended.
Prompted by PR lib/57573.

vis(3): Need <stdint.h> for SIZE_MAX, per C standard.
From Kyle Evans <kevans%FreeBSD.org@localhost>.
Followup to PR lib/57573.

vis(3): Per KNF, sys/param.h comes before sys/types.h.
Which is nice because that's also lexicographic.

Revision 1.74.6.1 / (download) - annotate - [select for diffs], Sat Dec 9 13:09:03 2023 UTC (3 months, 1 week ago) by martin
Branch: netbsd-9
Changes since 1.74: +105 -17 lines
Diff to previous 1.74 (colored) next main 1.75 (colored) to selected 1.49 (colored)

Pull up following revision(s) (requested by riastradh in ticket #1774):

	lib/libc/gen/vis.c: revision 1.75-1.86
	tests/lib/libc/gen/t_vis.c: revision 1.10-1.14

PR 56260: fix out-of-bounds stack read.

vis(3): Avoid nonportable MIN in portable code.

vis(3) tests: Add xfail test for encoding overflow.

From Kyle Evans <kevans%FreeBSD.org@localhost>.
PR lib/57573

vis(3) tests: Expand tests and diagnostic outputs on failure.
PR lib/57573

vis(3) tests: Test another overflow edge case.
Related to PR lib/57573.

vis(3): Make maxolen unsigned size_t, not ssize_t.
It is initialized once either to *dlen, which is unsigned size_t, or
to wcslen(start) * MB_MAX_LEN + 1, and wcslen returns unsigned size_t
too.  So there appears to have never been any reason for this to be
signed.
Part of PR lib/57573.

vis(3): Make mbslength unsigned.
Sprinkle assertions and comments justifying the proposition that it
would never go negative if signed.
Obviates need to worry about mblength > SSIZE_MAX.
Prompted by PR lib/57573.

vis(3): Avoid arithmetic overflow before calloc(3).
Prompted by PR lib/57573.

vis(3): Call wcslen(start) only once.
It had better not change between these two times!
Prompted by PR lib/57573.

vis(3): Avoid potential arithmetic overflow in maxolen.
Can't easily prove that this overflow is impossible, so let's add a
check.
Prompted by PR lib/57573.

vis(3): Fix main part of PR lib/57573.
From Kyle Evans <kevans%FreeBSD.org@localhost>.

vis(3): Fix one more buffer overrun in an edge case.
PR lib/57573

vis(3): Sort includes.  No functional change intended.
Prompted by PR lib/57573.

vis(3): Need <stdint.h> for SIZE_MAX, per C standard.
From Kyle Evans <kevans%FreeBSD.org@localhost>.
Followup to PR lib/57573.

vis(3): Per KNF, sys/param.h comes before sys/types.h.
Which is nice because that's also lexicographic.

Revision 1.75.2.1 / (download) - annotate - [select for diffs], Sat Dec 9 13:03:34 2023 UTC (3 months, 1 week ago) by martin
Branch: netbsd-10
CVS Tags: netbsd-10-0-RC6, netbsd-10-0-RC5, netbsd-10-0-RC4, netbsd-10-0-RC3, netbsd-10-0-RC2
Changes since 1.75: +97 -16 lines
Diff to previous 1.75 (colored) next main 1.76 (colored) to selected 1.49 (colored)

Pull up following revision(s) (requested by riastradh in ticket #485):

	lib/libc/gen/vis.c: revision 1.76-1.86
	tests/lib/libc/gen/t_vis.c: revision 1.10-1.14

vis(3): Avoid nonportable MIN in portable code.

vis(3) tests: Add xfail test for encoding overflow.

From Kyle Evans <kevans%FreeBSD.org@localhost>.
PR lib/57573

vis(3) tests: Expand tests and diagnostic outputs on failure.
PR lib/57573

vis(3) tests: Test another overflow edge case.
Related to PR lib/57573.

vis(3): Make maxolen unsigned size_t, not ssize_t.
It is initialized once either to *dlen, which is unsigned size_t, or
to wcslen(start) * MB_MAX_LEN + 1, and wcslen returns unsigned size_t
too.  So there appears to have never been any reason for this to be
signed.
Part of PR lib/57573.

vis(3): Make mbslength unsigned.
Sprinkle assertions and comments justifying the proposition that it
would never go negative if signed.
Obviates need to worry about mblength > SSIZE_MAX.
Prompted by PR lib/57573.

vis(3): Avoid arithmetic overflow before calloc(3).
Prompted by PR lib/57573.

vis(3): Call wcslen(start) only once.
It had better not change between these two times!
Prompted by PR lib/57573.

vis(3): Avoid potential arithmetic overflow in maxolen.
Can't easily prove that this overflow is impossible, so let's add a
check.
Prompted by PR lib/57573.

vis(3): Fix main part of PR lib/57573.
From Kyle Evans <kevans%FreeBSD.org@localhost>.

vis(3): Fix one more buffer overrun in an edge case.
PR lib/57573

vis(3): Sort includes.  No functional change intended.
Prompted by PR lib/57573.

vis(3): Need <stdint.h> for SIZE_MAX, per C standard.
From Kyle Evans <kevans%FreeBSD.org@localhost>.
Followup to PR lib/57573.

vis(3): Per KNF, sys/param.h comes before sys/types.h.
Which is nice because that's also lexicographic.

Revision 1.86 / (download) - annotate - [select for diffs], Sun Aug 13 15:20:37 2023 UTC (7 months ago) by riastradh
Branch: MAIN
Changes since 1.85: +3 -3 lines
Diff to previous 1.85 (colored) to selected 1.49 (colored)

vis(3): Per KNF, sys/param.h comes before sys/types.h.

Which is nice because that's also lexicographic.

Revision 1.85 / (download) - annotate - [select for diffs], Sun Aug 13 15:19:24 2023 UTC (7 months ago) by riastradh
Branch: MAIN
Changes since 1.84: +3 -2 lines
Diff to previous 1.84 (colored) to selected 1.49 (colored)

vis(3): Need <stdint.h> for SIZE_MAX, per C standard.

From Kyle Evans <kevans@FreeBSD.org>.

Followup to PR lib/57573.

XXX pullup-10
XXX pullup-9
XXX pullup-8

Revision 1.84 / (download) - annotate - [select for diffs], Sun Aug 13 15:19:13 2023 UTC (7 months ago) by riastradh
Branch: MAIN
Changes since 1.83: +4 -3 lines
Diff to previous 1.83 (colored) to selected 1.49 (colored)

vis(3): Sort includes.  No functional change intended.

Prompted by PR lib/57573.

XXX pullup-10
XXX pullup-9
XXX pullup-8

Revision 1.83 / (download) - annotate - [select for diffs], Sat Aug 12 12:48:52 2023 UTC (7 months ago) by riastradh
Branch: MAIN
Changes since 1.82: +7 -2 lines
Diff to previous 1.82 (colored) to selected 1.49 (colored)

vis(3): Fix one more buffer overrun in an edge case.

PR lib/57573

XXX pullup-10
XXX pullup-9
XXX pullup-8

Revision 1.82 / (download) - annotate - [select for diffs], Sat Aug 12 12:48:37 2023 UTC (7 months ago) by riastradh
Branch: MAIN
Changes since 1.81: +46 -9 lines
Diff to previous 1.81 (colored) to selected 1.49 (colored)

vis(3): Fix main part of PR lib/57573.

From Kyle Evans <kevans@FreeBSD.org>.

XXX pullup-10
XXX pullup-9
XXX pullup-8

Revision 1.81 / (download) - annotate - [select for diffs], Sat Aug 12 12:48:17 2023 UTC (7 months ago) by riastradh
Branch: MAIN
Changes since 1.80: +11 -3 lines
Diff to previous 1.80 (colored) to selected 1.49 (colored)

vis(3): Avoid potential arithmetic overflow in maxolen.

Can't easily prove that this overflow is impossible, so let's add a
check.

Prompted by PR lib/57573.

XXX pullup-10
XXX pullup-9
XXX pullup-8

Revision 1.80 / (download) - annotate - [select for diffs], Sat Aug 12 12:48:01 2023 UTC (7 months ago) by riastradh
Branch: MAIN
Changes since 1.79: +3 -3 lines
Diff to previous 1.79 (colored) to selected 1.49 (colored)

vis(3): Call wcslen(start) only once.

It had better not change between these two times!

Prompted by PR lib/57573.

XXX pullup-10
XXX pullup-9
XXX pullup-8

Revision 1.79 / (download) - annotate - [select for diffs], Sat Aug 12 12:47:17 2023 UTC (7 months ago) by riastradh
Branch: MAIN
Changes since 1.78: +10 -2 lines
Diff to previous 1.78 (colored) to selected 1.49 (colored)

vis(3): Avoid arithmetic overflow before calloc(3).

Prompted by PR lib/57573.

XXX pullup-10
XXX pullup-9
XXX pullup-8

Revision 1.78 / (download) - annotate - [select for diffs], Sat Aug 12 12:46:50 2023 UTC (7 months ago) by riastradh
Branch: MAIN
Changes since 1.77: +22 -5 lines
Diff to previous 1.77 (colored) to selected 1.49 (colored)

vis(3): Make mbslength unsigned.

Sprinkle assertions and comments justifying the proposition that it
would never go negative if signed.

Obviates need to worry about mblength > SSIZE_MAX.

Prompted by PR lib/57573.

XXX pullup-10
XXX pullup-9
XXX pullup-8

Revision 1.77 / (download) - annotate - [select for diffs], Sat Aug 12 12:46:33 2023 UTC (7 months ago) by riastradh
Branch: MAIN
Changes since 1.76: +5 -4 lines
Diff to previous 1.76 (colored) to selected 1.49 (colored)

vis(3): Make maxolen unsigned size_t, not ssize_t.

It is initialized once either to *dlen, which is unsigned size_t, or
to wcslen(start) * MB_MAX_LEN + 1, and wcslen returns unsigned size_t
too.  So there appears to have never been any reason for this to be
signed.

Part of PR lib/57573.

XXX pullup-10
XXX pullup-9
XXX pullup-8

Revision 1.76 / (download) - annotate - [select for diffs], Thu Jun 29 16:11:31 2023 UTC (8 months, 2 weeks ago) by riastradh
Branch: MAIN
Changes since 1.75: +6 -3 lines
Diff to previous 1.75 (colored) to selected 1.49 (colored)

vis(3): Avoid nonportable MIN in portable code.

Revision 1.75 / (download) - annotate - [select for diffs], Fri Jun 18 10:57:14 2021 UTC (2 years, 9 months ago) by christos
Branch: MAIN
CVS Tags: netbsd-10-base, netbsd-10-0-RC1
Branch point for: netbsd-10
Changes since 1.74: +12 -5 lines
Diff to previous 1.74 (colored) to selected 1.49 (colored)

PR/56260: Alex Richardson: Out-of-bounds stack read in lib/libc/gen/vis.c
Also sync with other FreeBSD changes.

Revision 1.73.4.1 / (download) - annotate - [select for diffs], Tue Jan 16 14:15:50 2018 UTC (6 years, 2 months ago) by martin
Branch: netbsd-8
CVS Tags: netbsd-8-2-RELEASE, netbsd-8-1-RELEASE, netbsd-8-1-RC1, netbsd-8-0-RELEASE, netbsd-8-0-RC2, netbsd-8-0-RC1
Changes since 1.73: +6 -5 lines
Diff to previous 1.73 (colored) to selected 1.49 (colored)

Pull up the following, requested by maya in #411:

	lib/libc/gen/vis.c                              1.74

Use 16x instead of 4x the amount of space since each wint_t
can result in 4 bytes of 4 characters ("\ooo") each.

Revision 1.74 / (download) - annotate - [select for diffs], Mon Nov 27 16:37:21 2017 UTC (6 years, 3 months ago) by christos
Branch: MAIN
CVS Tags: phil-wifi-base, phil-wifi-20200421, phil-wifi-20200411, phil-wifi-20200406, phil-wifi-20191119, phil-wifi-20190609, phil-wifi, pgoyette-compat-merge-20190127, pgoyette-compat-base, pgoyette-compat-20190127, pgoyette-compat-20190118, pgoyette-compat-1226, pgoyette-compat-1126, pgoyette-compat-1020, pgoyette-compat-0930, pgoyette-compat-0906, pgoyette-compat-0728, pgoyette-compat-0625, pgoyette-compat-0521, pgoyette-compat-0502, pgoyette-compat-0422, pgoyette-compat-0415, pgoyette-compat-0407, pgoyette-compat-0330, pgoyette-compat-0322, pgoyette-compat-0315, pgoyette-compat, netbsd-9-base, netbsd-9-3-RELEASE, netbsd-9-2-RELEASE, netbsd-9-1-RELEASE, netbsd-9-0-RELEASE, netbsd-9-0-RC2, netbsd-9-0-RC1, is-mlppp-base, is-mlppp, cjep_sun2x-base1, cjep_sun2x-base, cjep_sun2x, cjep_staticlib_x-base1, cjep_staticlib_x-base, cjep_staticlib_x
Branch point for: netbsd-9
Changes since 1.73: +6 -5 lines
Diff to previous 1.73 (colored) to selected 1.49 (colored)

Use 16x instead of 4x the amount of space since each wint_t can result in
4 bytes of 4 characters ("\ooo") each.

Revision 1.71.2.2 / (download) - annotate - [select for diffs], Wed Apr 26 02:52:54 2017 UTC (6 years, 10 months ago) by pgoyette
Branch: pgoyette-localcount
Changes since 1.71.2.1: +3 -2 lines
Diff to previous 1.71.2.1 (colored) to branchpoint 1.71 (colored) next main 1.72 (colored) to selected 1.49 (colored)

Sync with HEAD

Revision 1.73 / (download) - annotate - [select for diffs], Sun Apr 23 01:58:48 2017 UTC (6 years, 10 months ago) by christos
Branch: MAIN
CVS Tags: prg-localcount2-base3, prg-localcount2-base2, prg-localcount2-base1, prg-localcount2-base, prg-localcount2, pgoyette-localcount-20170426, perseant-stdc-iso10646-base, perseant-stdc-iso10646, netbsd-8-base, matt-nb8-mediatek-base, matt-nb8-mediatek
Branch point for: netbsd-8
Changes since 1.72: +3 -2 lines
Diff to previous 1.72 (colored) to selected 1.49 (colored)

Add VIS_DQ (for OpenBSD compat)

Revision 1.71.4.1 / (download) - annotate - [select for diffs], Fri Apr 21 16:53:09 2017 UTC (6 years, 10 months ago) by bouyer
Branch: bouyer-socketcan
Changes since 1.71: +14 -12 lines
Diff to previous 1.71 (colored) next main 1.72 (colored) to selected 1.49 (colored)

Sync with HEAD

Revision 1.71.2.1 / (download) - annotate - [select for diffs], Mon Mar 20 06:56:57 2017 UTC (7 years ago) by pgoyette
Branch: pgoyette-localcount
Changes since 1.71: +14 -12 lines
Diff to previous 1.71 (colored) to selected 1.49 (colored)

Sync with HEAD

Revision 1.72 / (download) - annotate - [select for diffs], Sun Feb 12 22:37:49 2017 UTC (7 years, 1 month ago) by christos
Branch: MAIN
CVS Tags: pgoyette-localcount-20170320, bouyer-socketcan-base1
Changes since 1.71: +14 -12 lines
Diff to previous 1.71 (colored) to selected 1.49 (colored)

fix off-by-one, found by asan.

Revision 1.71 / (download) - annotate - [select for diffs], Thu Jan 14 20:41:23 2016 UTC (8 years, 2 months ago) by christos
Branch: MAIN
CVS Tags: pgoyette-localcount-base, pgoyette-localcount-20170107, pgoyette-localcount-20161104, pgoyette-localcount-20160806, pgoyette-localcount-20160726, localcount-20160914, bouyer-socketcan-base
Branch point for: pgoyette-localcount, bouyer-socketcan
Changes since 1.70: +38 -21 lines
Diff to previous 1.70 (colored) to selected 1.49 (colored)

add stravis(3) from OpenBSD

Revision 1.70 / (download) - annotate - [select for diffs], Tue May 26 21:42:46 2015 UTC (8 years, 9 months ago) by christos
Branch: MAIN
Changes since 1.69: +4 -4 lines
Diff to previous 1.69 (colored) to selected 1.49 (colored)

use isgraph_l suggested by joerg@

Revision 1.69 / (download) - annotate - [select for diffs], Sat May 23 14:21:11 2015 UTC (8 years, 9 months ago) by christos
Branch: MAIN
Changes since 1.68: +7 -2 lines
Diff to previous 1.68 (colored) to selected 1.49 (colored)

fix the tools build.

Revision 1.68 / (download) - annotate - [select for diffs], Sat May 23 14:01:07 2015 UTC (8 years, 9 months ago) by christos
Branch: MAIN
Changes since 1.67: +23 -4 lines
Diff to previous 1.67 (colored) to selected 1.49 (colored)

Grr need to deal with isgraph(3). Is there a better way?

Revision 1.67 / (download) - annotate - [select for diffs], Sat May 23 11:47:56 2015 UTC (8 years, 9 months ago) by christos
Branch: MAIN
Changes since 1.66: +16 -10 lines
Diff to previous 1.66 (colored) to selected 1.49 (colored)

Add VIS_NOLOCALE to avoid ambiguous conversions.

Revision 1.66 / (download) - annotate - [select for diffs], Fri Sep 26 15:58:59 2014 UTC (9 years, 5 months ago) by roy
Branch: MAIN
Changes since 1.65: +3 -2 lines
Diff to previous 1.65 (colored) to selected 1.49 (colored)

Cannot encode \$ in VIS_CSTYLE as that looks like `vis -l` encoding.

Revision 1.65 / (download) - annotate - [select for diffs], Fri Sep 26 13:48:00 2014 UTC (9 years, 5 months ago) by roy
Branch: MAIN
Changes since 1.64: +17 -3 lines
Diff to previous 1.64 (colored) to selected 1.49 (colored)

Don't encode any characters in VIS_CSTYLE that have a special meaning
in unvis(3), such as n r b, etc.

Revision 1.64 / (download) - annotate - [select for diffs], Fri Sep 26 05:01:44 2014 UTC (9 years, 5 months ago) by christos
Branch: MAIN
Changes since 1.63: +5 -4 lines
Diff to previous 1.63 (colored) to selected 1.49 (colored)

no c99 for tools.

Revision 1.63 / (download) - annotate - [select for diffs], Fri Sep 26 01:21:07 2014 UTC (9 years, 5 months ago) by christos
Branch: MAIN
Changes since 1.62: +14 -10 lines
Diff to previous 1.62 (colored) to selected 1.49 (colored)

add VIS_META/VIS_SHELL support to encode all shell metacharacters.
XXX: /etc/rc.d/wizd fix $

Revision 1.62 / (download) - annotate - [select for diffs], Mon Sep 8 17:35:01 2014 UTC (9 years, 6 months ago) by christos
Branch: MAIN
Changes since 1.61: +15 -9 lines
Diff to previous 1.61 (colored) to selected 1.49 (colored)

get rid of MB_STRZ as suggested by joerg.

Revision 1.61 / (download) - annotate - [select for diffs], Mon Sep 8 16:42:09 2014 UTC (9 years, 6 months ago) by christos
Branch: MAIN
Changes since 1.60: +9 -8 lines
Diff to previous 1.60 (colored) to selected 1.49 (colored)

PR/49185: Conrad Meyer: strvisx: Handle zero-length input strings gracefully.
(don't abuse 0 to mean compute string length internally)

Revision 1.44.4.2 / (download) - annotate - [select for diffs], Thu May 22 11:36:52 2014 UTC (9 years, 9 months ago) by yamt
Branch: yamt-pagecache
Changes since 1.44.4.1: +453 -346 lines
Diff to previous 1.44.4.1 (colored) to branchpoint 1.44 (colored) next main 1.45 (colored) to selected 1.49 (colored)

sync with head.

for a reference, the tree before this commit was tagged
as yamt-pagecache-tag8.

this commit was splitted into small chunks to avoid
a limitation of cvs.  ("Protocol error: too many arguments")

Revision 1.44.10.1 / (download) - annotate - [select for diffs], Mon Feb 25 00:27:50 2013 UTC (11 years ago) by tls
Branch: tls-maxphys
Changes since 1.44: +453 -340 lines
Diff to previous 1.44 (colored) next main 1.45 (colored) to selected 1.49 (colored)

resync with head

Revision 1.60 / (download) - annotate - [select for diffs], Thu Feb 21 16:21:20 2013 UTC (11 years ago) by joerg
Branch: MAIN
CVS Tags: yamt-pagecache-base9, tls-maxphys-base, tls-earlyentropy-base, tls-earlyentropy, riastradh-xf86-video-intel-2-7-1-pre-2-21-15, riastradh-drm2-base3, riastradh-drm2-base2, riastradh-drm2-base1, riastradh-drm2-base, riastradh-drm2, netbsd-7-nhusb-base-20170116, netbsd-7-nhusb-base, netbsd-7-nhusb, netbsd-7-base, netbsd-7-2-RELEASE, netbsd-7-1-RELEASE, netbsd-7-1-RC2, netbsd-7-1-RC1, netbsd-7-1-2-RELEASE, netbsd-7-1-1-RELEASE, netbsd-7-1, netbsd-7-0-RELEASE, netbsd-7-0-RC3, netbsd-7-0-RC2, netbsd-7-0-RC1, netbsd-7-0-2-RELEASE, netbsd-7-0-1-RELEASE, netbsd-7-0, netbsd-7, agc-symver-base, agc-symver
Changes since 1.59: +4 -2 lines
Diff to previous 1.59 (colored) to selected 1.49 (colored)

No ctassert in tool build

Revision 1.59 / (download) - annotate - [select for diffs], Wed Feb 20 20:27:42 2013 UTC (11 years ago) by christos
Branch: MAIN
Changes since 1.58: +29 -16 lines
Diff to previous 1.58 (colored) to selected 1.49 (colored)

Minor nits, and make it compile in FreeBSD (NBBY needs sys/params.h)

Revision 1.58 / (download) - annotate - [select for diffs], Wed Feb 20 19:59:34 2013 UTC (11 years ago) by tron
Branch: MAIN
Changes since 1.57: +4 -3 lines
Diff to previous 1.57 (colored) to selected 1.49 (colored)

Don't declare a variable inside a "for" construct because it breaks the
tool build which doesn't use C99.

Revision 1.57 / (download) - annotate - [select for diffs], Wed Feb 20 18:40:49 2013 UTC (11 years ago) by christos
Branch: MAIN
Changes since 1.56: +20 -8 lines
Diff to previous 1.56 (colored) to selected 1.49 (colored)

Make the masks 64 bit wide so that they fit 6 character wide conversions.
Explain what's wrong with MB_LEN_MAX currently.

Revision 1.56 / (download) - annotate - [select for diffs], Wed Feb 20 18:09:13 2013 UTC (11 years ago) by riz
Branch: MAIN
Changes since 1.55: +3 -3 lines
Diff to previous 1.55 (colored) to selected 1.49 (colored)

Initialize 'clen' to 0, to avoid "may be used uninitialized" warning.

Revision 1.55 / (download) - annotate - [select for diffs], Wed Feb 20 17:15:08 2013 UTC (11 years ago) by christos
Branch: MAIN
Changes since 1.54: +9 -9 lines
Diff to previous 1.54 (colored) to selected 1.49 (colored)

Fix whitespace

Revision 1.54 / (download) - annotate - [select for diffs], Wed Feb 20 17:01:15 2013 UTC (11 years ago) by christos
Branch: MAIN
Changes since 1.53: +205 -113 lines
Diff to previous 1.53 (colored) to selected 1.49 (colored)

More fixes from J.R. Oldroyd. We introduce a new function that can
retrieve and return if there has been a conversion error, so that
it can keep performing char-by-char processing if a multi-byte
conversion occurred. Also some more code cleanups in the "extra"
processing.

Revision 1.53 / (download) - annotate - [select for diffs], Fri Feb 15 00:28:10 2013 UTC (11 years, 1 month ago) by christos
Branch: MAIN
Changes since 1.52: +57 -4 lines
Diff to previous 1.52 (colored) to selected 1.49 (colored)

More fixes from: J.R. Oldroyd
- The input loop control that I changed yesterday to:
	while (mbslength >= 0) {
  There are circumstances where this causes an extra \000 to
  be added at the end of some tests.  This error was showing
  in my own tests here, but I did not notice it yesterday.
  (I really need to add my tests to the test suite, catching
  every error by eye is hard.)  To fix, I've now changed the
  code to increment mbslength only if mbslength == 1 to start
  with.  (Note that this check for "== 1" is why the arg to
  strvisx() in vis(1) must be 1, not mbilen.)

- The cast sequence when manually inserting bytes after a
  multibyte conversion error:
	*src = (wint_t)(u_char)*mbsrc;
  is wrong.  This is causing problems in the case when an
  8859-1 input string is processed in the UTF-8 locale.
  It needs to be:
	*src = (wint_t)*mbsrc;
  Without the (u_char) all the locale mismatch combinations
  then work.

- The code:
	if (mblength < len)
		len = mblength;
  needs to be there.  It resets len for the single character
  input case after we've actually processed two input
  characters (c and nextc) because we incremented mbslength
  at the start of the loop.  Without this code, single
  character conversions end up with a \000 or other byte
  appended.

Revision 1.52 / (download) - annotate - [select for diffs], Thu Feb 14 13:57:53 2013 UTC (11 years, 1 month ago) by christos
Branch: MAIN
Changes since 1.51: +3 -3 lines
Diff to previous 1.51 (colored) to selected 1.49 (colored)

off by one.

Revision 1.51 / (download) - annotate - [select for diffs], Wed Feb 13 22:19:18 2013 UTC (11 years, 1 month ago) by christos
Branch: MAIN
Changes since 1.50: +3 -6 lines
Diff to previous 1.50 (colored) to selected 1.49 (colored)

remove patch botches.

Revision 1.50 / (download) - annotate - [select for diffs], Wed Feb 13 22:15:43 2013 UTC (11 years, 1 month ago) by christos
Branch: MAIN
Changes since 1.49: +20 -24 lines
Diff to previous 1.49 (colored)

Fix from J.R. Oldroyd for wide chars > 2

Revision 1.49 / (download) - annotate - [selected], Wed Feb 13 15:22:09 2013 UTC (11 years, 1 month ago) by christos
Branch: MAIN
Changes since 1.48: +6 -4 lines
Diff to previous 1.48 (colored)

Handle invalid character sequences.

Revision 1.48 / (download) - annotate - [select for diffs], Wed Feb 13 12:15:09 2013 UTC (11 years, 1 month ago) by pooka
Branch: MAIN
Changes since 1.47: +3 -3 lines
Diff to previous 1.47 (colored) to selected 1.49 (colored)

Match prototype with reality to fix tool build on platforms where
wint_t != int.

Revision 1.47 / (download) - annotate - [select for diffs], Wed Feb 13 04:58:17 2013 UTC (11 years, 1 month ago) by christos
Branch: MAIN
Changes since 1.46: +10 -2 lines
Diff to previous 1.46 (colored) to selected 1.49 (colored)

explain we we want wide character support here.

Revision 1.46 / (download) - annotate - [select for diffs], Wed Feb 13 04:49:59 2013 UTC (11 years, 1 month ago) by christos
Branch: MAIN
Changes since 1.45: +250 -319 lines
Diff to previous 1.45 (colored) to selected 1.49 (colored)

Wide char support from J.R. Oldroyd

Revision 1.44.4.1 / (download) - annotate - [select for diffs], Wed Jan 23 00:05:22 2013 UTC (11 years, 1 month ago) by yamt
Branch: yamt-pagecache
CVS Tags: yamt-pagecache-tag8
Changes since 1.44: +9 -3 lines
Diff to previous 1.44 (colored) to selected 1.49 (colored)

sync with head

Revision 1.45 / (download) - annotate - [select for diffs], Fri Dec 14 21:38:18 2012 UTC (11 years, 3 months ago) by christos
Branch: MAIN
CVS Tags: yamt-pagecache-base8
Changes since 1.44: +9 -3 lines
Diff to previous 1.44 (colored) to selected 1.49 (colored)

Add VIS_GLOB (Brooks Davies)

Revision 1.44 / (download) - annotate - [select for diffs], Sat Mar 12 19:52:48 2011 UTC (13 years ago) by christos
Branch: MAIN
CVS Tags: yamt-pagecache-base7, yamt-pagecache-base6, yamt-pagecache-base5, yamt-pagecache-base4, yamt-pagecache-base3, yamt-pagecache-base2, yamt-pagecache-base, netbsd-6-base, netbsd-6-1-RELEASE, netbsd-6-1-RC4, netbsd-6-1-RC3, netbsd-6-1-RC2, netbsd-6-1-RC1, netbsd-6-1-5-RELEASE, netbsd-6-1-4-RELEASE, netbsd-6-1-3-RELEASE, netbsd-6-1-2-RELEASE, netbsd-6-1-1-RELEASE, netbsd-6-1, netbsd-6-0-RELEASE, netbsd-6-0-RC2, netbsd-6-0-RC1, netbsd-6-0-6-RELEASE, netbsd-6-0-5-RELEASE, netbsd-6-0-4-RELEASE, netbsd-6-0-3-RELEASE, netbsd-6-0-2-RELEASE, netbsd-6-0-1-RELEASE, netbsd-6-0, netbsd-6, matt-nb6-plus-nbase, matt-nb6-plus-base, matt-nb6-plus, cherry-xenmp-base, cherry-xenmp
Branch point for: yamt-pagecache, tls-maxphys
Changes since 1.43: +157 -43 lines
Diff to previous 1.43 (colored) to selected 1.49 (colored)

Fix various vis/unvis issues:
- no need for all the weak symbols
- define a new _VIS_END flag for UNVIS_END so that there are no collisions
  between and vis and unvis flags.
- add bound versions of the vis and unvis functions that take the length of
  the destination buffer. Unlike the OpenBSD ones they return -1 or NULL if
  the buffer is not large enough, instead of silently truncating.

Revision 1.43 / (download) - annotate - [select for diffs], Sat Mar 12 05:23:41 2011 UTC (13 years ago) by christos
Branch: MAIN
Changes since 1.42: +4 -3 lines
Diff to previous 1.42 (colored) to selected 1.49 (colored)

avoid c99

Revision 1.42 / (download) - annotate - [select for diffs], Sat Mar 12 03:24:08 2011 UTC (13 years ago) by christos
Branch: MAIN
Changes since 1.41: +50 -14 lines
Diff to previous 1.41 (colored) to selected 1.49 (colored)

Prepare for strnvis functionality by providing a length to the encoding
functions.

Revision 1.41 / (download) - annotate - [select for diffs], Mon Nov 23 10:08:47 2009 UTC (14 years, 3 months ago) by plunky
Branch: MAIN
CVS Tags: matt-premerge-20091211, matt-mips64-premerge-20101231, bouyer-quota2-nbase, bouyer-quota2-base, bouyer-quota2
Changes since 1.40: +12 -5 lines
Diff to previous 1.40 (colored) to selected 1.49 (colored)

fix VIS_HTTPSTYLE to not convert "safe" ($-_.+) and "extra" (!*'(),)
characters as mentioned in rfc1738 and rfc1808 and, I think intended
all along in this code but the logic was inverted.

Don't use strchr as it also matches the NUL character which we want
to escape, just compare against the chars directly as done in the
FreeBSD code.

Revision 1.38.8.1 / (download) - annotate - [select for diffs], Wed May 13 19:18:23 2009 UTC (14 years, 10 months ago) by jym
Branch: jym-xensuspend
Changes since 1.38: +57 -31 lines
Diff to previous 1.38 (colored) next main 1.39 (colored) to selected 1.49 (colored)

Sync with HEAD.

Third (and last) commit. See http://mail-index.netbsd.org/source-changes/2009/05/13/msg221222.html

Revision 1.40 / (download) - annotate - [select for diffs], Wed Feb 11 13:52:28 2009 UTC (15 years, 1 month ago) by christos
Branch: MAIN
CVS Tags: jym-xensuspend-nbase, jym-xensuspend-base
Changes since 1.39: +3 -3 lines
Diff to previous 1.39 (colored) to selected 1.49 (colored)

fix typo * -> & from enami.

Revision 1.39 / (download) - annotate - [select for diffs], Tue Feb 10 23:06:31 2009 UTC (15 years, 1 month ago) by christos
Branch: MAIN
Changes since 1.38: +57 -31 lines
Diff to previous 1.38 (colored) to selected 1.49 (colored)

Add RFC 2045 MIME Quoted-Printable support.

Revision 1.36.2.1 / (download) - annotate - [select for diffs], Thu Sep 18 04:39:21 2008 UTC (15 years, 6 months ago) by wrstuden
Branch: wrstuden-revivesa
Changes since 1.36: +100 -94 lines
Diff to previous 1.36 (colored) next main 1.37 (colored) to selected 1.49 (colored)

Sync with wrstuden-revivesa-base-2.

Revision 1.38.6.2 / (download) - annotate - [select for diffs], Thu Sep 4 09:41:45 2008 UTC (15 years, 6 months ago) by lukem
Branch: christos-time_t
Changes since 1.38.6.1: +390 -0 lines
Diff to previous 1.38.6.1 (colored) to branchpoint 1.38 (colored) next main 1.39 (colored) to selected 1.49 (colored)

In strsvisx(), don't attempt to read the "next" character past the end
of the provided length.

Revision 1.38.6.1, Thu Sep 4 09:41:44 2008 UTC (15 years, 6 months ago) by lukem
Branch: christos-time_t
Changes since 1.38: +0 -390 lines
FILE REMOVED

file vis.c was added on branch christos-time_t on 2008-09-04 09:41:45 +0000

Revision 1.38 / (download) - annotate - [select for diffs], Thu Sep 4 09:41:44 2008 UTC (15 years, 6 months ago) by lukem
Branch: MAIN
CVS Tags: wrstuden-revivesa-base-3, wrstuden-revivesa-base-2, netbsd-5-base, netbsd-5-2-RELEASE, netbsd-5-2-RC1, netbsd-5-2-3-RELEASE, netbsd-5-2-2-RELEASE, netbsd-5-2-1-RELEASE, netbsd-5-2, netbsd-5-1-RELEASE, netbsd-5-1-RC4, netbsd-5-1-RC3, netbsd-5-1-RC2, netbsd-5-1-RC1, netbsd-5-1-5-RELEASE, netbsd-5-1-4-RELEASE, netbsd-5-1-3-RELEASE, netbsd-5-1-2-RELEASE, netbsd-5-1-1-RELEASE, netbsd-5-1, netbsd-5-0-RELEASE, netbsd-5-0-RC4, netbsd-5-0-RC3, netbsd-5-0-RC2, netbsd-5-0-RC1, netbsd-5-0-2-RELEASE, netbsd-5-0-1-RELEASE, netbsd-5-0, netbsd-5, matt-nb5-pq3-base, matt-nb5-pq3, matt-nb5-mips64-u2-k2-k4-k7-k8-k9, matt-nb5-mips64-u1-k1-k5, matt-nb5-mips64-premerge-20101231, matt-nb5-mips64-premerge-20091211, matt-nb5-mips64-k15, matt-nb5-mips64, matt-nb4-mips64-k7-u2a-k9b, matt-mips64-base2, christos-time_t-nbase, christos-time_t-base
Branch point for: jym-xensuspend, christos-time_t
Changes since 1.37: +6 -4 lines
Diff to previous 1.37 (colored) to selected 1.49 (colored)

In strsvisx(), don't attempt to read the "next" character past the end
of the provided length.

Revision 1.37 / (download) - annotate - [select for diffs], Fri Jul 25 22:29:23 2008 UTC (15 years, 7 months ago) by dsl
Branch: MAIN
Changes since 1.36: +98 -94 lines
Diff to previous 1.36 (colored) to selected 1.49 (colored)

Change the gross #defines HVIS and SVIS into local functions.

Revision 1.35.16.1 / (download) - annotate - [select for diffs], Sun May 18 12:30:16 2008 UTC (15 years, 10 months ago) by yamt
Branch: yamt-pf42
Changes since 1.35: +2 -5 lines
Diff to previous 1.35 (colored) next main 1.36 (colored) to selected 1.49 (colored)

sync with head.

Revision 1.36 / (download) - annotate - [select for diffs], Tue Apr 29 06:53:01 2008 UTC (15 years, 10 months ago) by martin
Branch: MAIN
CVS Tags: yamt-pf42-base4, yamt-pf42-base3, yamt-pf42-base2, wrstuden-revivesa-base-1, wrstuden-revivesa-base, hpcarm-cleanup-nbase
Branch point for: wrstuden-revivesa
Changes since 1.35: +2 -5 lines
Diff to previous 1.35 (colored) to selected 1.49 (colored)

Convert to new 2 clause license

Revision 1.35 / (download) - annotate - [select for diffs], Mon Aug 28 20:42:12 2006 UTC (17 years, 6 months ago) by christos
Branch: MAIN
CVS Tags: yamt-pf42-baseX, yamt-pf42-base, wrstuden-fixsa-newbase, wrstuden-fixsa-base-1, wrstuden-fixsa-base, wrstuden-fixsa, netbsd-4-base, netbsd-4-0-RELEASE, netbsd-4-0-RC5, netbsd-4-0-RC4, netbsd-4-0-RC3, netbsd-4-0-RC2, netbsd-4-0-RC1, netbsd-4-0-1-RELEASE, netbsd-4-0, netbsd-4, matt-mips64-base, matt-mips64, matt-armv6-prevmlocking, matt-armv6-nbase, matt-armv6-base, matt-armv6, keiichi-mipv6-base, keiichi-mipv6, hpcarm-cleanup-base, hpcarm-cleanup, cube-autoconf-base, cube-autoconf
Branch point for: yamt-pf42
Changes since 1.34: +3 -7 lines
Diff to previous 1.34 (colored) to selected 1.49 (colored)

Remove ad clause. Approved by board@

Revision 1.34 / (download) - annotate - [select for diffs], Fri Nov 18 08:32:46 2005 UTC (18 years, 4 months ago) by martin
Branch: MAIN
CVS Tags: abandoned-netbsd-4-base, abandoned-netbsd-4
Changes since 1.33: +4 -3 lines
Diff to previous 1.33 (colored) to selected 1.49 (colored)

Make the MAKEEXTRALIST macro safe to be called with string literals as
third argument - the old version relies on the compiler to use the same
address for identical strings.

Spotted by segv at netctl dot net in libnbcompat context, details
in PR pkg/32097.

Revision 1.33 / (download) - annotate - [select for diffs], Sat May 28 13:11:14 2005 UTC (18 years, 9 months ago) by lukem
Branch: MAIN
Changes since 1.32: +15 -37 lines
Diff to previous 1.32 (colored) to selected 1.49 (colored)

convert to ANSI prototypes.  some KNF

Revision 1.32 / (download) - annotate - [select for diffs], Sat May 28 13:06:14 2005 UTC (18 years, 9 months ago) by lukem
Branch: MAIN
Changes since 1.31: +3 -2 lines
Diff to previous 1.31 (colored) to selected 1.49 (colored)

missed a free(3) in previous

Revision 1.31 / (download) - annotate - [select for diffs], Sat May 28 12:57:48 2005 UTC (18 years, 9 months ago) by lukem
Branch: MAIN
Changes since 1.30: +47 -12 lines
Diff to previous 1.30 (colored) to selected 1.49 (colored)

Use malloc(3) instead of the non-standard alloca(3) in MAKEEXTRALIST(),
check the return value of malloc(3) and return "" (or equiv) upon failure,
and free the result of the malloc(3).

Revision 1.30 / (download) - annotate - [select for diffs], Fri May 20 01:22:48 2005 UTC (18 years, 10 months ago) by lukem
Branch: MAIN
Changes since 1.29: +19 -18 lines
Diff to previous 1.29 (colored) to selected 1.49 (colored)

Use a more standard TNF license (than one that has clause 3 for UCB
& refers to "THE REGENTS").
Confirmed with Lex, who added it.

Revision 1.29 / (download) - annotate - [select for diffs], Mon May 16 13:13:12 2005 UTC (18 years, 10 months ago) by lukem
Branch: MAIN
Changes since 1.28: +3 -7 lines
Diff to previous 1.28 (colored) to selected 1.49 (colored)

Remove clause 3 from the UCB license.

XXX: the separate TNF copyright block should be converted to a standard TNF one

Revision 1.28 / (download) - annotate - [select for diffs], Sun Apr 17 17:27:11 2005 UTC (18 years, 11 months ago) by christos
Branch: MAIN
Changes since 1.27: +6 -5 lines
Diff to previous 1.27 (colored) to selected 1.49 (colored)

PR/21165: Christian Biere: ctype function misuse

Revision 1.27 / (download) - annotate - [select for diffs], Thu Feb 26 23:01:15 2004 UTC (20 years ago) by enami
Branch: MAIN
CVS Tags: netbsd-3-base, netbsd-3-1-RELEASE, netbsd-3-1-RC4, netbsd-3-1-RC3, netbsd-3-1-RC2, netbsd-3-1-RC1, netbsd-3-1-1-RELEASE, netbsd-3-1, netbsd-3-0-RELEASE, netbsd-3-0-RC6, netbsd-3-0-RC5, netbsd-3-0-RC4, netbsd-3-0-RC3, netbsd-3-0-RC2, netbsd-3-0-RC1, netbsd-3-0-3-RELEASE, netbsd-3-0-2-RELEASE, netbsd-3-0-1-RELEASE, netbsd-3-0, netbsd-3, netbsd-2-base, netbsd-2-1-RELEASE, netbsd-2-1-RC6, netbsd-2-1-RC5, netbsd-2-1-RC4, netbsd-2-1-RC3, netbsd-2-1-RC2, netbsd-2-1-RC1, netbsd-2-1, netbsd-2-0-base, netbsd-2-0-RELEASE, netbsd-2-0-RC5, netbsd-2-0-RC4, netbsd-2-0-RC3, netbsd-2-0-RC2, netbsd-2-0-RC1, netbsd-2-0-3-RELEASE, netbsd-2-0-2-RELEASE, netbsd-2-0-1-RELEASE, netbsd-2-0, netbsd-2
Changes since 1.26: +17 -17 lines
Diff to previous 1.26 (colored) to selected 1.49 (colored)

Fix indent and other whitespace usage.

Revision 1.26 / (download) - annotate - [select for diffs], Thu Aug 7 16:43:00 2003 UTC (20 years, 7 months ago) by agc
Branch: MAIN
Changes since 1.25: +34 -3 lines
Diff to previous 1.25 (colored) to selected 1.49 (colored)

Move UCB-licensed code from 4-clause to 3-clause licence.

Patches provided by Joel Baker in PR 22280, verified by myself.

Revision 1.25 / (download) - annotate - [select for diffs], Wed Jul 16 22:34:34 2003 UTC (20 years, 8 months ago) by dsl
Branch: MAIN
Changes since 1.24: +34 -28 lines
Diff to previous 1.24 (colored) to selected 1.49 (colored)

If VIS_CSTYLE is specified, use \ to escape any printable characters
(especially \ itself, and anything else in 'extra').
Fix strvis() and strvisx() to pass 0..255 to isgraph() etc.

Revision 1.19.6.7 / (download) - annotate - [select for diffs], Thu Aug 1 03:28:12 2002 UTC (21 years, 7 months ago) by nathanw
Branch: nathanw_sa
CVS Tags: nathanw_sa_end
Changes since 1.19.6.6: +5 -4 lines
Diff to previous 1.19.6.6 (colored) to branchpoint 1.19 (colored) next main 1.20 (colored) to selected 1.49 (colored)

Catch up to -current.

Revision 1.24 / (download) - annotate - [select for diffs], Wed Jul 3 17:18:09 2002 UTC (21 years, 8 months ago) by pooka
Branch: MAIN
CVS Tags: nathanw_sa_before_merge, nathanw_sa_base, fvdl_fs64_base
Changes since 1.23: +5 -4 lines
Diff to previous 1.23 (colored) to selected 1.49 (colored)

adapt for vis()/svis() check separation

Revision 1.19.6.6 / (download) - annotate - [select for diffs], Fri Jun 21 18:18:12 2002 UTC (21 years, 9 months ago) by nathanw
Branch: nathanw_sa
Changes since 1.19.6.5: +2 -6 lines
Diff to previous 1.19.6.5 (colored) to branchpoint 1.19 (colored) to selected 1.49 (colored)

Catch up to -current.

Revision 1.23 / (download) - annotate - [select for diffs], Sun May 26 14:03:20 2002 UTC (21 years, 9 months ago) by wiz
Branch: MAIN
Changes since 1.22: +2 -6 lines
Diff to previous 1.22 (colored) to selected 1.49 (colored)

__STDC__ is always defined on NetBSD.

Revision 1.19.6.5 / (download) - annotate - [select for diffs], Thu Apr 25 04:01:42 2002 UTC (21 years, 10 months ago) by nathanw
Branch: nathanw_sa
Changes since 1.19.6.4: +70 -24 lines
Diff to previous 1.19.6.4 (colored) to branchpoint 1.19 (colored) to selected 1.49 (colored)

Catch up to -current.

Revision 1.22 / (download) - annotate - [select for diffs], Sat Mar 23 17:38:27 2002 UTC (22 years ago) by christos
Branch: MAIN
CVS Tags: netbsd-1-6-base, netbsd-1-6-RELEASE, netbsd-1-6-RC3, netbsd-1-6-RC2, netbsd-1-6-RC1, netbsd-1-6-PATCH002-RELEASE, netbsd-1-6-PATCH002-RC4, netbsd-1-6-PATCH002-RC3, netbsd-1-6-PATCH002-RC2, netbsd-1-6-PATCH002-RC1, netbsd-1-6-PATCH002, netbsd-1-6-PATCH001-RELEASE, netbsd-1-6-PATCH001-RC3, netbsd-1-6-PATCH001-RC2, netbsd-1-6-PATCH001-RC1, netbsd-1-6-PATCH001, netbsd-1-6
Changes since 1.21: +70 -24 lines
Diff to previous 1.21 (colored) to selected 1.49 (colored)

- Add VIS_HTTPSTYLE from FreeBSD.
- svis, strsvis, strsvisx were not reversible, because they did not encode
  \\ unless it was passed in the extras array.
- Fix documentation to match the proper signature of the functions.

Revision 1.19.6.4 / (download) - annotate - [select for diffs], Fri Mar 22 21:36:12 2002 UTC (22 years ago) by nathanw
Branch: nathanw_sa
Changes since 1.19.6.3: +38 -1 lines
Diff to previous 1.19.6.3 (colored) to branchpoint 1.19 (colored) to selected 1.49 (colored)

Correct merge botch.

Revision 1.19.6.3 / (download) - annotate - [select for diffs], Fri Mar 22 20:42:14 2002 UTC (22 years ago) by nathanw
Branch: nathanw_sa
Changes since 1.19.6.2: +0 -37 lines
Diff to previous 1.19.6.2 (colored) to branchpoint 1.19 (colored) to selected 1.49 (colored)

Catch up to -current.

Revision 1.19.6.2 / (download) - annotate - [select for diffs], Fri Mar 8 21:35:21 2002 UTC (22 years ago) by nathanw
Branch: nathanw_sa
Changes since 1.19.6.1: +4 -8 lines
Diff to previous 1.19.6.1 (colored) to branchpoint 1.19 (colored) to selected 1.49 (colored)

Catch up to -current.

Revision 1.21 / (download) - annotate - [select for diffs], Thu Jan 31 22:43:39 2002 UTC (22 years, 1 month ago) by tv
Branch: MAIN
Changes since 1.20: +4 -8 lines
Diff to previous 1.20 (colored) to selected 1.49 (colored)

Roll in fixes to permit cross-compiling from non-NetBSD hosts.  This
round has been tested on Solaris/x86 and Linux hosts.

* Add host tools cap_mkdb, ctags, m4, uudecode.
* Protect __RCSID() and __COPYRIGHT() better.
* Reduce the number of places that need to include "config.h", to keep
  sources closer to their "vanilla" versions.
* Add more compat #defines and autoconf-checked functions.

Revision 1.19.6.1 / (download) - annotate - [select for diffs], Mon Jan 28 20:50:38 2002 UTC (22 years, 1 month ago) by nathanw
Branch: nathanw_sa
Changes since 1.19: +13 -7 lines
Diff to previous 1.19 (colored) to selected 1.49 (colored)

Catch up to -current.

Revision 1.20 / (download) - annotate - [select for diffs], Mon Jan 21 21:33:42 2002 UTC (22 years, 2 months ago) by tv
Branch: MAIN
Changes since 1.19: +13 -7 lines
Diff to previous 1.19 (colored) to selected 1.49 (colored)

Add hooks for reachover builds from src/tools/compat.

Revision 1.19 / (download) - annotate - [select for diffs], Sat Jan 22 22:42:45 2000 UTC (24 years, 2 months ago) by mycroft
Branch: MAIN
CVS Tags: netbsd-1-5-base, netbsd-1-5-RELEASE, netbsd-1-5-PATCH003, netbsd-1-5-PATCH002, netbsd-1-5-PATCH001, netbsd-1-5-BETA2, netbsd-1-5-BETA, netbsd-1-5-ALPHA2, netbsd-1-5, minoura-xpg4dl-base, minoura-xpg4dl
Branch point for: nathanw_sa
Changes since 1.18: +4 -4 lines
Diff to previous 1.18 (colored) to selected 1.49 (colored)

Delint.

Revision 1.18 / (download) - annotate - [select for diffs], Sat Jan 22 22:19:13 2000 UTC (24 years, 2 months ago) by mycroft
Branch: MAIN
Changes since 1.17: +8 -8 lines
Diff to previous 1.17 (colored) to selected 1.49 (colored)

Delint.
Remove trailing ; from uses of __weak_alias().  The macro inserts this if
needed.

Revision 1.13.4.1 / (download) - annotate - [select for diffs], Mon Dec 27 18:29:40 1999 UTC (24 years, 2 months ago) by wrstuden
Branch: wrstuden-devbsize
Changes since 1.13: +195 -111 lines
Diff to previous 1.13 (colored) next main 1.14 (colored) to selected 1.49 (colored)

Pull up to last week's -current.

Revision 1.17 / (download) - annotate - [select for diffs], Tue Dec 7 18:20:28 1999 UTC (24 years, 3 months ago) by wennmach
Branch: MAIN
CVS Tags: wrstuden-devbsize-base, wrstuden-devbsize-19991221
Changes since 1.16: +9 -17 lines
Diff to previous 1.16 (colored) to selected 1.49 (colored)

In SVIS, encode all characters on the extra list either in C-style
fashion (if possible) or as octal representation (else).

Revision 1.16 / (download) - annotate - [select for diffs], Sun Nov 28 22:51:37 1999 UTC (24 years, 3 months ago) by wennmach
Branch: MAIN
Changes since 1.15: +172 -169 lines
Diff to previous 1.15 (colored) to selected 1.49 (colored)

Suggested by christos:
o unexpand spaces to tabs
o don't initialize non-static array extra[]; \0 terminate extra[]
  using an explicit assignment instead

Revision 1.15 / (download) - annotate - [select for diffs], Thu Nov 25 16:50:06 1999 UTC (24 years, 3 months ago) by wennmach
Branch: MAIN
Changes since 1.14: +233 -144 lines
Diff to previous 1.14 (colored) to selected 1.49 (colored)

Added new functions

     char *
     svis(char *dst, int c, int flag, int nextc, const char *extra);

     int
     strsvis(char *dst, const char *src, int flag, const char *extra);

     int
     strsvisx(char *dst, const char *src, size_t len, int flag,
             const char *extra);

These functions correspond to vis(), strvis(), and strvisx() but have an
additional argument extra, pointing to a NUL terminated list of characters.
These characters will be copied encoded or backslash-escaped into dst. These
functions are useful e. g.  to remove the special meaning of certain
characters to shells.

To implement the new functions, vis underwent a major rewrite. Most functions
now use a central macro, SVIS. Performance increase ~ factor 2.

Reviewed by Christos.

Revision 1.11.2.1 / (download) - annotate - [select for diffs], Sat Nov 20 17:35:33 1999 UTC (24 years, 4 months ago) by he
Branch: netbsd-1-4
CVS Tags: netbsd-1-4-PATCH003, netbsd-1-4-PATCH002
Changes since 1.11: +4 -4 lines
Diff to previous 1.11 (colored) next main 1.12 (colored) to selected 1.49 (colored)

Pull up revision 1.14 (requested by wennmach):
  Add some casts to u_char to get vis working again for characters
  > 0177 in VIS_OCTAL mode. Also, change the mask for the most
  significant tribble to 03.  Fixes PR#8802.

Revision 1.14 / (download) - annotate - [select for diffs], Wed Nov 17 15:52:13 1999 UTC (24 years, 4 months ago) by wennmach
Branch: MAIN
Changes since 1.13: +4 -4 lines
Diff to previous 1.13 (colored) to selected 1.49 (colored)

Add some casts to u_char to get vis working again for characters > 0177
in VIS_OCTAL mode. Also, change the mask for the most significant tribble
to 03.

Reviewed by christos.

Fixes PR 8802.

Revision 1.13 / (download) - annotate - [select for diffs], Mon Sep 20 04:39:07 1999 UTC (24 years, 6 months ago) by lukem
Branch: MAIN
CVS Tags: comdex-fall-1999-base, comdex-fall-1999
Branch point for: wrstuden-devbsize
Changes since 1.12: +2 -14 lines
Diff to previous 1.12 (colored) to selected 1.49 (colored)

back out the #ifdef _DIAGNOSTIC argument checks; too many people complained.
_DIAGASSERT() is still retained.

Revision 1.12 / (download) - annotate - [select for diffs], Thu Sep 16 11:45:07 1999 UTC (24 years, 6 months ago) by lukem
Branch: MAIN
Changes since 1.11: +27 -3 lines
Diff to previous 1.11 (colored) to selected 1.49 (colored)

* use _DIAGASSERT() to check pointer arguments against NULL and file
  descriptors against -1 (as appropriate).
* add actual checks which to detect stuff that would trigger_DIAGASSERT(),
  and attempt to return a sane error condition.
* knf some code
* remove some `register' decls.

the first two items result in the addition of code similar to the
following in various functions:

		_DIAGASSERT(path != NULL)
	#ifdef _DIAGNOSTIC
		if (path == NULL) {
			errno = EFAULT;
			return (-1);
		}
	#endif

Revision 1.11 / (download) - annotate - [select for diffs], Fri Nov 13 15:49:29 1998 UTC (25 years, 4 months ago) by christos
Branch: MAIN
CVS Tags: netbsd-1-4-base, netbsd-1-4-RELEASE, netbsd-1-4-PATCH001
Branch point for: netbsd-1-4
Changes since 1.10: +4 -4 lines
Diff to previous 1.10 (colored) to selected 1.49 (colored)

delint

Revision 1.10 / (download) - annotate - [select for diffs], Fri Nov 13 12:31:53 1998 UTC (25 years, 4 months ago) by christos
Branch: MAIN
Changes since 1.9: +5 -5 lines
Diff to previous 1.9 (colored) to selected 1.49 (colored)

delint

Revision 1.9 / (download) - annotate - [select for diffs], Tue Feb 3 18:23:58 1998 UTC (26 years, 1 month ago) by perry
Branch: MAIN
Changes since 1.8: +11 -11 lines
Diff to previous 1.8 (colored) to selected 1.49 (colored)

remove obsolete register declarations

Revision 1.8 / (download) - annotate - [select for diffs], Mon Jul 21 14:07:47 1997 UTC (26 years, 8 months ago) by jtc
Branch: MAIN
CVS Tags: netbsd-1-3-base, netbsd-1-3-RELEASE, netbsd-1-3-PATCH003-CANDIDATE2, netbsd-1-3-PATCH003-CANDIDATE1, netbsd-1-3-PATCH003-CANDIDATE0, netbsd-1-3-PATCH003, netbsd-1-3-PATCH002, netbsd-1-3-PATCH001, netbsd-1-3-BETA, netbsd-1-3
Changes since 1.7: +9 -2 lines
Diff to previous 1.7 (colored) to selected 1.49 (colored)

If port provides __weak_alias(), provide an Standard C and POSIX pure
identifier namespace by renaming non standard functions and variables
such that they have a leading underscore.  The library will use those
names internally.  Weak aliases are used to provide the original names
to the API.

This is only the first part of this change.  It is most of the functions
which are implemented in C for all NetBSD ports.  Subsequent changes are
to add the same support to the remaining C files, to assembly files, and
to the automagically generated assembly source used for system calls.
When all of the above is done, ports with weak alias support should add
a definition for __weak_alias to <sys/cdefs.h>.

Revision 1.7 / (download) - annotate - [select for diffs], Sun Jul 13 19:43:00 1997 UTC (26 years, 8 months ago) by christos
Branch: MAIN
Changes since 1.6: +5 -4 lines
Diff to previous 1.6 (colored) to selected 1.49 (colored)

Fix RCSID's
Fix gcc warnings.

Revision 1.6.4.1 / (download) - annotate - [select for diffs], Thu Sep 19 20:04:27 1996 UTC (27 years, 6 months ago) by jtc
Branch: ivory_soap2
Changes since 1.6: +9 -2 lines
Diff to previous 1.6 (colored) next main 1.7 (colored) to selected 1.49 (colored)

snapshot namespace cleanup: gen

Revision 1.6 / (download) - annotate - [select for diffs], Sat Feb 25 15:40:09 1995 UTC (29 years ago) by cgd
Branch: MAIN
CVS Tags: nsswitch, netbsd-1-2-base, netbsd-1-2-RELEASE, netbsd-1-2-PATCH001, netbsd-1-2-BETA, netbsd-1-2, netbsd-1-1-base, netbsd-1-1-RELEASE, netbsd-1-1-PATCH001, netbsd-1-1
Branch point for: ivory_soap2
Changes since 1.5: +9 -4 lines
Diff to previous 1.5 (colored) to selected 1.49 (colored)

merge with Lite, keep local changes.  clean up id usage

Revision 1.1.1.2 / (download) - annotate - [select for diffs] (vendor branch), Sat Feb 25 09:13:22 1995 UTC (29 years ago) by cgd
Branch: WFJ-920714, CSRG
CVS Tags: lite-2, lite-1
Changes since 1.1.1.1: +17 -18 lines
Diff to previous 1.1.1.1 (colored) to selected 1.49 (colored)

from lite, with minor name rearrangement to fit.

Revision 1.5 / (download) - annotate - [select for diffs], Thu Aug 26 00:45:26 1993 UTC (30 years, 7 months ago) by jtc
Branch: MAIN
CVS Tags: netbsd-1-0-base, netbsd-1-0-RELEASE, netbsd-1-0-PATCH1, netbsd-1-0-PATCH06, netbsd-1-0-PATCH05, netbsd-1-0-PATCH04, netbsd-1-0-PATCH03, netbsd-1-0-PATCH02, netbsd-1-0-PATCH0, netbsd-1-0, ivory_soap
Changes since 1.4: +2 -2 lines
Diff to previous 1.4 (colored) to selected 1.49 (colored)

Declare rcsid strings so they are stored in text segment.

Revision 1.4 / (download) - annotate - [select for diffs], Tue Aug 3 22:48:35 1993 UTC (30 years, 7 months ago) by mycroft
Branch: MAIN
Changes since 1.3: +8 -6 lines
Diff to previous 1.3 (colored) to selected 1.49 (colored)

I'm really mad now.  Not only did this `new' version have exactly the same
bugs as the `old' one, but it was almost identical!

Revision 1.3 / (download) - annotate - [select for diffs], Fri Jul 30 07:57:54 1993 UTC (30 years, 7 months ago) by mycroft
Branch: MAIN
Changes since 1.2: +8 -14 lines
Diff to previous 1.2 (colored) to selected 1.49 (colored)

Latest versions from uunet.

Revision 1.2 / (download) - annotate - [select for diffs], Thu Jul 15 17:54:43 1993 UTC (30 years, 8 months ago) by cgd
Branch: MAIN
CVS Tags: netbsd-0-9-base, netbsd-0-9-RELEASE, netbsd-0-9-BETA, netbsd-0-9-ALPHA2, netbsd-0-9-ALPHA, netbsd-0-9
Changes since 1.1: +14 -10 lines
Diff to previous 1.1 (colored) to selected 1.49 (colored)

(1) compare against UCHAR_MAX, don't use isascii().
(2) strvis() didn't work on 0-length input strings
(3) strvisx() didn't work at all

Revision 1.1.1.1 / (download) - annotate - [select for diffs] (vendor branch), Sun Mar 21 09:45:37 1993 UTC (31 years ago) by cgd
Branch: WFJ-920714, CSRG
CVS Tags: patchkit-0-2-2, netbsd-alpha-1, netbsd-0-8, WFJ-386bsd-01
Changes since 1.1: +0 -0 lines
Diff to previous 1.1 (colored) to selected 1.49 (colored)

initial import of 386bsd-0.1 sources

Revision 1.1 / (download) - annotate - [select for diffs], Sun Mar 21 09:45:37 1993 UTC (31 years ago) by cgd
Branch: MAIN
Diff to selected 1.49 (colored)

Initial revision

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 <webmaster@jp.NetBSD.org>