The NetBSD Project

CVS log for src/common/lib/libutil/snprintb.c

[BACK] Up to [cvs.NetBSD.org] / src / common / lib / libutil

Request diff between arbitrary revisions


Default branch: MAIN


Revision 1.48 / (download) - annotate - [select for diffs], Sun Apr 7 15:20:16 2024 UTC (5 days, 14 hours ago) by rillig
Branch: MAIN
CVS Tags: HEAD
Changes since 1.47: +9 -6 lines
Diff to previous 1.47 (colored)

snprintb: reject empty bit descriptions and wrongly placed defaults

Revision 1.47 / (download) - annotate - [select for diffs], Sun Apr 7 12:05:23 2024 UTC (5 days, 17 hours ago) by rillig
Branch: MAIN
Changes since 1.46: +13 -4 lines
Diff to previous 1.46 (colored)

snprintb: reject combinations of 'f' with ':' as well as 'F' with '='

These combinations would lead to garbled output.

Revision 1.46 / (download) - annotate - [select for diffs], Sun Apr 7 10:10:54 2024 UTC (5 days, 19 hours ago) by rillig
Branch: MAIN
Changes since 1.45: +11 -3 lines
Diff to previous 1.45 (colored)

snprintb: reject empty descriptions

In cases where the snprintb output is garbled, it is not trustworthy, so
make sure the mistakes in the bitfmt are fixed early.

Revision 1.45 / (download) - annotate - [select for diffs], Mon Apr 1 08:53:42 2024 UTC (11 days, 20 hours ago) by rillig
Branch: MAIN
Changes since 1.44: +3 -12 lines
Diff to previous 1.44 (colored)

snprintb: remove redundant memset in kernel mode

The provided buffer is already null-terminated by finish_buffer, even in
error cases, there is no need to repeat the same work.

Revision 1.44 / (download) - annotate - [select for diffs], Mon Mar 25 20:39:26 2024 UTC (2 weeks, 4 days ago) by rillig
Branch: MAIN
Changes since 1.43: +15 -7 lines
Diff to previous 1.43 (colored)

snprintb: mark the end of the buffer if the buffer is too small

This avoids confusion in case the buffer ends with an incomplete number.

Revision 1.43 / (download) - annotate - [select for diffs], Tue Mar 5 07:37:08 2024 UTC (5 weeks, 3 days ago) by rillig
Branch: MAIN
Changes since 1.42: +28 -33 lines
Diff to previous 1.42 (colored)

snprintb: shrink code size, both in source and binary

Revision 1.42 / (download) - annotate - [select for diffs], Mon Mar 4 21:35:28 2024 UTC (5 weeks, 4 days ago) by rillig
Branch: MAIN
Changes since 1.41: +4 -4 lines
Diff to previous 1.41 (colored)

snprintb: error out on unknown new-style formatting directive

Revision 1.41 / (download) - annotate - [select for diffs], Sat Feb 24 12:44:11 2024 UTC (6 weeks, 6 days ago) by rillig
Branch: MAIN
Changes since 1.40: +28 -36 lines
Diff to previous 1.40 (colored)

snprintb: clean up

Use consistent data types for buffer positions and lengths, to avoid
type casts.

Revision 1.40 / (download) - annotate - [select for diffs], Sat Feb 24 12:40:00 2024 UTC (6 weeks, 6 days ago) by rillig
Branch: MAIN
Changes since 1.39: +5 -5 lines
Diff to previous 1.39 (colored)

snprintb: allow non-ASCII descriptions on all platforms

Previously, these descriptions were only allowed on platforms where
plain 'char' is unsigned. On platforms where plain 'char' is signed,
they invoked undefined behavior or terminated the output early.

Revision 1.39 / (download) - annotate - [select for diffs], Thu Feb 22 21:04:23 2024 UTC (7 weeks, 1 day ago) by rillig
Branch: MAIN
Changes since 1.38: +27 -20 lines
Diff to previous 1.38 (colored)

snprintb: always null-terminate output

Always null-terminate the output in the buffer, even in error cases. The
wording in the manual page has been promising this since 2008. For
snprintb_m, ensure that the output is terminated with two null
characters, to gracefully handle situations in which the caller does not
check whether snprintb returned an error.

If the buffer size is zero, allow the buffer to be a null pointer,
analogous to snprintf.

Fix an out-of-bounds memory read if the bitfmt ends with a '*' directive
(since today).

In the tests, merge the helper functions for snprintb, snprintb_m, as
they were similar enough.

Fix a few 'line_max exceeded' tests, ensuring that they output a '#'
marker, and that the 'complete' tests don't.

Revision 1.38 / (download) - annotate - [select for diffs], Thu Feb 22 18:26:15 2024 UTC (7 weeks, 1 day ago) by rillig
Branch: MAIN
Changes since 1.37: +24 -14 lines
Diff to previous 1.37 (colored)

snprintb: error out on out-of-bounds bit shifts

Previously, these invoked undefined behavior, now they lead to an early
return. An example of out-of-bounds bit number is in SCZ_PCICTRL_BITS.
Bit fields that extend beyond the msb are still allowed.

Allow 'f' and 'F' to have fields that are 64 bits wide. This only makes
sense when the field starts at bit 0.

Remove the unused 'val_len', it was only needed before snprintb.c 1.20.

Revision 1.37 / (download) - annotate - [select for diffs], Tue Feb 20 20:31:56 2024 UTC (7 weeks, 3 days ago) by rillig
Branch: MAIN
Changes since 1.36: +76 -114 lines
Diff to previous 1.36 (colored)

snprintb_m: limit length of generated strings

The manual page promises that the 'max' argument limits the length of
the generated strings, so don't generate any strings that are longer
than that limit. Mark incomplete strings with a trailing '#' to make
them easily recognizable.

Revision 1.36 / (download) - annotate - [select for diffs], Mon Feb 19 23:30:56 2024 UTC (7 weeks, 4 days ago) by rillig
Branch: MAIN
Changes since 1.35: +5 -4 lines
Diff to previous 1.35 (colored)

snprintb: fix how named bit-fields are split into multiple lines

Revision 1.35 / (download) - annotate - [select for diffs], Sat Feb 17 10:23:30 2024 UTC (7 weeks, 6 days ago) by rillig
Branch: MAIN
Changes since 1.34: +231 -183 lines
Diff to previous 1.34 (colored)

snprintb: convert macros to local functions

Let the compiler decide whether to inline the functions; allow stepping
through the code in a debugger.

Revision 1.34 / (download) - annotate - [select for diffs], Fri Feb 16 21:25:46 2024 UTC (8 weeks ago) by rillig
Branch: MAIN
Changes since 1.33: +5 -10 lines
Diff to previous 1.33 (colored)

snprintb: do not modify bufsize when producing multiple lines

Revision 1.33 / (download) - annotate - [select for diffs], Fri Feb 16 19:53:40 2024 UTC (8 weeks ago) by rillig
Branch: MAIN
Changes since 1.32: +13 -24 lines
Diff to previous 1.32 (colored)

snprintb: eliminate two local variables, allow zero-size buffer

Like snprintf, the buffer size may be zero. Unlike snprintf, the buffer
must not be NULL.

Revision 1.32 / (download) - annotate - [select for diffs], Fri Feb 16 19:31:25 2024 UTC (8 weeks ago) by rillig
Branch: MAIN
Changes since 1.31: +17 -18 lines
Diff to previous 1.31 (colored)

snprintb: use size_t for buffer sizes and positions

Revision 1.31 / (download) - annotate - [select for diffs], Fri Feb 16 19:20:38 2024 UTC (8 weeks ago) by rillig
Branch: MAIN
Changes since 1.30: +6 -5 lines
Diff to previous 1.30 (colored)

snprintb: fix integer overflow when writing past a small buffer

Previously, snprintb returned -1 in this case, assuming that the
snprintf used in FMTSTR validates against an overly large buffer size.

Revision 1.30 / (download) - annotate - [select for diffs], Fri Feb 16 18:17:10 2024 UTC (8 weeks ago) by rillig
Branch: MAIN
Changes since 1.29: +6 -6 lines
Diff to previous 1.29 (colored)

snprintb: use unsigned integers for parsing the bitfmt

Revision 1.29 / (download) - annotate - [select for diffs], Fri Feb 16 18:09:15 2024 UTC (8 weeks ago) by rillig
Branch: MAIN
Changes since 1.28: +5 -5 lines
Diff to previous 1.28 (colored)

snprintb: fix '=' and ':' for 8-bit values on platforms with signed char

Previously, '=' and ':' worked only on platforms where plain 'char' is
unsigned. On platforms where plain 'char' is signed, only 7-bit values
worked.

Revision 1.28 / (download) - annotate - [select for diffs], Fri Feb 16 18:03:16 2024 UTC (8 weeks ago) by rillig
Branch: MAIN
Changes since 1.27: +25 -26 lines
Diff to previous 1.27 (colored)

snprintb: eliminate a few local variables

Revision 1.27 / (download) - annotate - [select for diffs], Fri Feb 16 17:42:49 2024 UTC (8 weeks ago) by rillig
Branch: MAIN
Changes since 1.26: +62 -66 lines
Diff to previous 1.26 (colored)

snprintb: rename local variables

The single-letter variables 't', 's', 'l' and 'c' were too hard to
decipher.

The variable 'f_len' was used for two independent purposes.

Use a narrow scope for some variables, to avoid having to keep track of
22 individual variables at the same time.

No binary change.

Revision 1.26 / (download) - annotate - [select for diffs], Fri Feb 16 01:57:50 2024 UTC (8 weeks, 1 day ago) by rillig
Branch: MAIN
Changes since 1.25: +66 -58 lines
Diff to previous 1.25 (colored)

snprintb: clean up

Remove redundant parentheses and casts.

Indent statement-like macros consistently, use separate lines for each
statement, add parentheses to macro definitions.

Remove CONSTCOND comments as lint doesn't need them anymore.

No binary change.

Revision 1.25 / (download) - annotate - [select for diffs], Thu Feb 15 23:48:51 2024 UTC (8 weeks, 1 day ago) by rillig
Branch: MAIN
Changes since 1.24: +11 -8 lines
Diff to previous 1.24 (colored)

snprintb: fix string termination (since today)

In the previous commit, I had accidentally only run the tests for
snprintb_m but not those for snprintb, thereby missing a newly
introduced bug that would not null-terminate the resulting strings.

Add more tests to cover similar situations in which the buffer is too
small to contain the complete output.

Revision 1.24 / (download) - annotate - [select for diffs], Thu Feb 15 22:48:58 2024 UTC (8 weeks, 1 day ago) by rillig
Branch: MAIN
Changes since 1.23: +17 -17 lines
Diff to previous 1.23 (colored)

snprintb: rename buflen to bufsize, following the wording in snprintf

Revision 1.23 / (download) - annotate - [select for diffs], Thu Feb 15 22:37:10 2024 UTC (8 weeks, 1 day ago) by rillig
Branch: MAIN
Changes since 1.22: +9 -9 lines
Diff to previous 1.22 (colored)

snprintb: fix out-of-bounds write

Revision 1.17.4.4 / (download) - annotate - [select for diffs], Tue Apr 21 19:37:51 2020 UTC (3 years, 11 months ago) by martin
Branch: phil-wifi
Changes since 1.17.4.3: +3 -3 lines
Diff to previous 1.17.4.3 (colored) to branchpoint 1.17 (colored) next main 1.18 (colored)

Ooops, restore accidently removed files from merge mishap

Revision 1.17.4.3, Tue Apr 21 18:41:25 2020 UTC (3 years, 11 months ago) by martin
Branch: phil-wifi
Changes since 1.17.4.2: +3 -3 lines
FILE REMOVED

Sync with HEAD

Revision 1.17.4.2 / (download) - annotate - [select for diffs], Mon Apr 13 07:45:08 2020 UTC (4 years ago) by martin
Branch: phil-wifi
Changes since 1.17.4.1: +9 -9 lines
Diff to previous 1.17.4.1 (colored) to branchpoint 1.17 (colored)

Mostly merge changes from HEAD upto 20200411

Revision 1.22 / (download) - annotate - [select for diffs], Fri Dec 6 19:36:22 2019 UTC (4 years, 4 months ago) by christos
Branch: MAIN
CVS Tags: thorpej-ifq-base, thorpej-ifq, thorpej-altq-separation-base, thorpej-altq-separation, phil-wifi-20200421, phil-wifi-20200411, phil-wifi-20200406, netbsd-10-base, netbsd-10-0-RELEASE, netbsd-10-0-RC6, netbsd-10-0-RC5, netbsd-10-0-RC4, netbsd-10-0-RC3, netbsd-10-0-RC2, netbsd-10-0-RC1, netbsd-10, is-mlppp-base, is-mlppp, cjep_sun2x-base1, cjep_sun2x-base, cjep_sun2x, cjep_staticlib_x-base1, cjep_staticlib_x-base, cjep_staticlib_x, bouyer-xenpvh-base2, bouyer-xenpvh-base1, bouyer-xenpvh-base, bouyer-xenpvh, ad-namecache-base3, ad-namecache-base, ad-namecache
Changes since 1.21: +9 -9 lines
Diff to previous 1.21 (colored)

Formalize that the printf formats should be uintmax_t so we can
uniformly use 'j' in the user-provided formatting strings instead
of depending on _LP64 to use 'll' or 'l' (and the PRI macros). The
alternative is to parse the printf format manually to determine
which modifier to apply which would make this transparent to the
user (they could still always use '%u' or '%x'), but that's too
painful.

Revision 1.21 / (download) - annotate - [select for diffs], Mon Jun 17 17:03:58 2019 UTC (4 years, 9 months ago) by christos
Branch: MAIN
CVS Tags: phil-wifi-20191119, 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, netbsd-9
Changes since 1.20: +4 -4 lines
Diff to previous 1.20 (colored)

PR/54300: Andreas Gustafsson: Remove useless case. should fix
lib/libutil/t_snprintb test regression on sparc

Revision 1.17.4.1 / (download) - annotate - [select for diffs], Mon Jun 10 21:41:08 2019 UTC (4 years, 10 months ago) by christos
Branch: phil-wifi
Changes since 1.17: +28 -14 lines
Diff to previous 1.17 (colored)

Sync with HEAD

Revision 1.20 / (download) - annotate - [select for diffs], Mon Apr 29 07:55:38 2019 UTC (4 years, 11 months ago) by kre
Branch: MAIN
CVS Tags: phil-wifi-20190609
Changes since 1.19: +8 -5 lines
Diff to previous 1.19 (colored)

snprintb(3) says that, in the new(?) Torek format, all fields specs end with \0
The F spec is one of those, it should be terminated with \0 just like all
the others (irrelevant that it has no extra data to delimit).

Fix <sys/mman.h> to define the snprintb() format string correctly (include
the missing \0's).   Fix the copy of that definition included into
snprintb(3) to match the updated mman.h version (ride the date bump
from the day before yesterday .. this is the same change, just corrected).

Undo the previous snprintb.c change ("off by one" fix) which was an
attempt to make the broken mman.h usage work (and did, but not the way
it should be done).   Also, after using the new * format (instead of only
when something has already matched) skip the associated data so we don't
attempt to interpret it as more field specifiers.  This func needs lots of TLC!

Fix the ATF tests for snprintb() to not assume that F format is really
exactly like f format, and has data after the field specifier.  It doesn't.
Add several more tests (including testing the '*' field operator
recently added).

Revision 1.19 / (download) - annotate - [select for diffs], Sat Apr 27 17:45:28 2019 UTC (4 years, 11 months ago) by christos
Branch: MAIN
Changes since 1.18: +26 -15 lines
Diff to previous 1.18 (colored)

Fix an off-by-one in the F modifier that ended up skipping the first : or =
entry, and add a * specifier for a "default case".

Revision 1.17.2.1 / (download) - annotate - [select for diffs], Sat Jul 28 04:32:57 2018 UTC (5 years, 8 months ago) by pgoyette
Branch: pgoyette-compat
CVS Tags: pgoyette-compat-merge-20190127
Changes since 1.17: +4 -4 lines
Diff to previous 1.17 (colored) next main 1.18 (colored)

Sync with HEAD

Revision 1.18 / (download) - annotate - [select for diffs], Thu Jul 26 00:33:26 2018 UTC (5 years, 8 months ago) by kamil
Branch: MAIN
CVS Tags: pgoyette-compat-20190127, pgoyette-compat-20190118, pgoyette-compat-1226, pgoyette-compat-1126, pgoyette-compat-1020, pgoyette-compat-0930, pgoyette-compat-0906, pgoyette-compat-0728
Changes since 1.17: +4 -4 lines
Diff to previous 1.17 (colored)

Avoid undefined behavior in snprintb.c

Do not change the signedness bit with a left shift operation.
Switch to unsigned integer to prevent this.

snprintb.c:178:17, left shift of 1 by 31 places cannot be represented in type 'int'

Detected with micro-UBSan in the user mode.

Revision 1.17 / (download) - annotate - [select for diffs], Sat Oct 14 18:41:41 2017 UTC (6 years, 5 months ago) by ryo
Branch: MAIN
CVS Tags: tls-maxphys-20171202, phil-wifi-base, pgoyette-compat-base, 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
Branch point for: phil-wifi, pgoyette-compat
Changes since 1.16: +6 -4 lines
Diff to previous 1.16 (colored)

doesn't work new format 'F' with a strings of length 1, or a string beginning with 'F'

Revision 1.7.6.1 / (download) - annotate - [select for diffs], Tue Aug 19 23:45:15 2014 UTC (9 years, 7 months ago) by tls
Branch: tls-maxphys
Changes since 1.7: +43 -42 lines
Diff to previous 1.7 (colored) next main 1.8 (colored)

Rebase to HEAD as of a few days ago.

Revision 1.14.2.1 / (download) - annotate - [select for diffs], Sun Aug 10 06:47:06 2014 UTC (9 years, 8 months ago) by tls
Branch: tls-earlyentropy
Changes since 1.14: +4 -4 lines
Diff to previous 1.14 (colored) next main 1.15 (colored)

Rebase.

Revision 1.16 / (download) - annotate - [select for diffs], Sat Aug 2 11:19:01 2014 UTC (9 years, 8 months ago) by ryo
Branch: MAIN
CVS Tags: tls-maxphys-base, tls-earlyentropy-base, prg-localcount2-base3, prg-localcount2-base2, prg-localcount2-base1, prg-localcount2-base, prg-localcount2, pgoyette-localcount-base, pgoyette-localcount-20170426, pgoyette-localcount-20170320, pgoyette-localcount-20170107, pgoyette-localcount-20161104, pgoyette-localcount-20160806, pgoyette-localcount-20160726, pgoyette-localcount, perseant-stdc-iso10646-base, perseant-stdc-iso10646, netbsd-8-base, netbsd-8-2-RELEASE, netbsd-8-1-RELEASE, netbsd-8-1-RC1, netbsd-8-0-RELEASE, netbsd-8-0-RC2, netbsd-8-0-RC1, netbsd-8, 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, matt-nb8-mediatek-base, matt-nb8-mediatek, localcount-20160914, bouyer-socketcan-base1, bouyer-socketcan-base, bouyer-socketcan
Changes since 1.15: +4 -4 lines
Diff to previous 1.15 (colored)

fix lack of '>' pointed out in PR/48517

Revision 1.15 / (download) - annotate - [select for diffs], Fri Jun 6 07:08:37 2014 UTC (9 years, 10 months ago) by shm
Branch: MAIN
Changes since 1.14: +4 -4 lines
Diff to previous 1.14 (colored)

PR/48517 do not add extra '>' to string-converted value when nothing matches

Revision 1.5.6.2 / (download) - annotate - [select for diffs], Thu May 22 11:26:30 2014 UTC (9 years, 10 months ago) by yamt
Branch: yamt-pagecache
Changes since 1.5.6.1: +42 -41 lines
Diff to previous 1.5.6.1 (colored) to branchpoint 1.5 (colored) next main 1.6 (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.14 / (download) - annotate - [select for diffs], Thu Aug 8 22:18:20 2013 UTC (10 years, 8 months ago) by pgoyette
Branch: MAIN
CVS Tags: yamt-pagecache-base9, rmind-smpnet-nbase, rmind-smpnet-base, riastradh-xf86-video-intel-2-7-1-pre-2-21-15, riastradh-drm2-base3
Branch point for: tls-earlyentropy
Changes since 1.13: +9 -14 lines
Diff to previous 1.13 (colored)

Now that all of the macros are enclosed in "do { ... } while 0" we can
remove unneded parenthesization of their invocations.

OK mrg@

Revision 1.13 / (download) - annotate - [select for diffs], Thu Aug 8 16:43:13 2013 UTC (10 years, 8 months ago) by agc
Branch: MAIN
Changes since 1.12: +4 -4 lines
Diff to previous 1.12 (colored)

Get the correct inttypes.h header, so this can build on !NetBSD.

Revision 1.12 / (download) - annotate - [select for diffs], Thu Aug 8 04:32:43 2013 UTC (10 years, 8 months ago) by mrg
Branch: MAIN
Changes since 1.11: +31 -29 lines
Diff to previous 1.11 (colored)

apply some do { ... } while (0) so that macros aren't broken,
completing the previous change.

Revision 1.11 / (download) - annotate - [select for diffs], Wed Aug 7 23:48:13 2013 UTC (10 years, 8 months ago) by pgoyette
Branch: MAIN
Changes since 1.10: +7 -5 lines
Diff to previous 1.10 (colored)

The PUT* things are macros.  Use { ... } to make sure they expand correctly.

Revision 1.10 / (download) - annotate - [select for diffs], Wed Aug 7 22:37:28 2013 UTC (10 years, 8 months ago) by pgoyette
Branch: MAIN
Changes since 1.9: +5 -5 lines
Diff to previous 1.9 (colored)

Fix boundary condition in multi-line format.  When the '=' following a
field name exactly filled a line, the back-up logic failed and really
messed up the formatting!

Revision 1.9 / (download) - annotate - [select for diffs], Tue Aug 6 22:02:50 2013 UTC (10 years, 8 months ago) by apb
Branch: MAIN
Changes since 1.8: +8 -6 lines
Diff to previous 1.8 (colored)

If HAVE_SNPRINTB_M is defined, then do not define the snprintb() and
snprintb_m() functions.  This should allow this file to be compiled
from a tools build regardless of whether or not the host defines these
functions.

Revision 1.8 / (download) - annotate - [select for diffs], Tue Jul 9 16:10:17 2013 UTC (10 years, 9 months ago) by uwe
Branch: MAIN
CVS Tags: riastradh-drm2-base2, riastradh-drm2-base1, riastradh-drm2-base, riastradh-drm2
Changes since 1.7: +4 -4 lines
Diff to previous 1.7 (colored)

Use "unsigned int" instead of "u_int" to make it easier to steal.
u_int is out of fashion anyway...

Revision 1.5.6.1 / (download) - annotate - [select for diffs], Tue Apr 17 00:01:40 2012 UTC (11 years, 11 months ago) by yamt
Branch: yamt-pagecache
CVS Tags: yamt-pagecache-tag8
Changes since 1.5: +7 -8 lines
Diff to previous 1.5 (colored)

sync with head

Revision 1.7 / (download) - annotate - [select for diffs], Mon Jan 23 03:22:41 2012 UTC (12 years, 2 months ago) by christos
Branch: MAIN
CVS Tags: yamt-pagecache-base8, yamt-pagecache-base7, yamt-pagecache-base6, yamt-pagecache-base5, yamt-pagecache-base4, 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, khorben-n900, agc-symver-base, agc-symver
Branch point for: tls-maxphys
Changes since 1.6: +6 -7 lines
Diff to previous 1.6 (colored)

also handle the separator after the F field.

Revision 1.6 / (download) - annotate - [select for diffs], Mon Jan 23 02:34:01 2012 UTC (12 years, 2 months ago) by christos
Branch: MAIN
Changes since 1.5: +4 -4 lines
Diff to previous 1.5 (colored)

In the new format F did not print a separator as required.

Revision 1.4.2.1 / (download) - annotate - [select for diffs], Wed May 13 17:23:18 2009 UTC (14 years, 11 months ago) by jym
Branch: jym-xensuspend
Changes since 1.4: +126 -37 lines
Diff to previous 1.4 (colored) next main 1.5 (colored)

Sync with HEAD.

Commit is split, to avoid a "too many arguments" protocol error.

Revision 1.5 / (download) - annotate - [select for diffs], Wed May 13 02:50:31 2009 UTC (14 years, 11 months ago) by pgoyette
Branch: MAIN
CVS Tags: yamt-pagecache-base3, yamt-pagecache-base2, yamt-pagecache-base, yamt-nfs-mp-base9, yamt-nfs-mp-base8, yamt-nfs-mp-base7, yamt-nfs-mp-base6, yamt-nfs-mp-base5, yamt-nfs-mp-base4, yamt-nfs-mp-base11, yamt-nfs-mp-base10, rmind-uvmplock-base, matt-premerge-20091211, matt-mips64-premerge-20101231, jymxensuspend-base, jym-xensuspend-nbase, jym-xensuspend-base, cherry-xenmp-base, cherry-xenmp, bouyer-quota2-nbase, bouyer-quota2-base, bouyer-quota2
Branch point for: yamt-pagecache
Changes since 1.4: +126 -37 lines
Diff to previous 1.4 (colored)

Implement snprintb_m(3) to provide multi-line bit/bit-field decode.
Discussed on tech-kern.

Revision 1.4 / (download) - annotate - [select for diffs], Sun Jan 18 12:05:49 2009 UTC (15 years, 2 months ago) by lukem
Branch: MAIN
CVS Tags: yamt-nfs-mp-base3
Branch point for: jym-xensuspend
Changes since 1.3: +6 -6 lines
Diff to previous 1.3 (colored)

fix -Wsign-compare issues

Revision 1.3 / (download) - annotate - [select for diffs], Wed Jan 14 21:33:22 2009 UTC (15 years, 3 months ago) by pooka
Branch: MAIN
Changes since 1.2: +4 -4 lines
Diff to previous 1.2 (colored)

Include sys/param.h in the kernel to make the vax properly pick up
memset.  Otherwise vax/macros.h doesn't get included and the usual
lossage ensues.
(I bet you saw that one coming)

Revision 1.2 / (download) - annotate - [select for diffs], Wed Dec 17 16:02:27 2008 UTC (15 years, 3 months ago) by christos
Branch: MAIN
Changes since 1.1: +27 -25 lines
Diff to previous 1.1 (colored)

We don't need this for _STANDALONE, and it needs snprintf to work.

Revision 1.1 / (download) - annotate - [select for diffs], Tue Dec 16 22:33:11 2008 UTC (15 years, 3 months ago) by christos
Branch: MAIN

share with kernel; replaces bitmask_snprintf which was very broken:
- subtracted one from len without checking if len was 0
- checked for a minimum buffer size
- arguments order was inconsistent with other printf like functions
- no way to tell if it overflowed

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>