The NetBSD Project

CVS log for src/usr.bin/xlint/lint1/mem1.c

[BACK] Up to [cvs.NetBSD.org] / src / usr.bin / xlint / lint1

Request diff between arbitrary revisions


Default branch: MAIN


Revision 1.77 / (download) - annotate - [select for diffs], Sun Dec 3 18:17:41 2023 UTC (2 months, 3 weeks ago) by rillig
Branch: MAIN
CVS Tags: HEAD
Changes since 1.76: +3 -3 lines
Diff to previous 1.76 (colored)

lint: in declarations, replace tab with space

Previously, in some cases, the keywords 'const' or 'struct' were
followed by a tab, which doesn't make sense.

No functional change.

Revision 1.76 / (download) - annotate - [select for diffs], Sun Dec 3 13:12:40 2023 UTC (2 months, 3 weeks ago) by rillig
Branch: MAIN
Changes since 1.75: +4 -4 lines
Diff to previous 1.75 (colored)

lint: re-wrap comments

No functional change.

Revision 1.75 / (download) - annotate - [select for diffs], Sun Dec 3 12:03:38 2023 UTC (2 months, 3 weeks ago) by rillig
Branch: MAIN
Changes since 1.74: +3 -3 lines
Diff to previous 1.74 (colored)

lint: indent statement continuations consistently

No binary change.

Revision 1.74 / (download) - annotate - [select for diffs], Sat Aug 12 20:48:24 2023 UTC (6 months, 2 weeks ago) by rillig
Branch: MAIN
Changes since 1.73: +3 -4 lines
Diff to previous 1.73 (colored)

lint: for each record in the output file, write the newline immediately

There's no point delaying the '\n' until the next line is written.

Revision 1.73 / (download) - annotate - [select for diffs], Sun Jul 30 08:58:54 2023 UTC (7 months ago) by rillig
Branch: MAIN
Changes since 1.72: +42 -24 lines
Diff to previous 1.72 (colored)

lint: in memory debug mode, log the type of the nodes

First log all objects to be freed, then free them all at once.  This
allows cross references from the objects of a block independent of their
allocation order.

Revision 1.72 / (download) - annotate - [select for diffs], Sat Jul 29 10:22:50 2023 UTC (7 months ago) by rillig
Branch: MAIN
Changes since 1.71: +6 -5 lines
Diff to previous 1.71 (colored)

lint: fix use-after-free in memory debug mode

A node may be allocated before its type.  Since the objects are freed in
reverse allocation order, the type cannot be accessed anymore when the
node is freed.

Revision 1.71 / (download) - annotate - [select for diffs], Sat Jul 15 15:56:17 2023 UTC (7 months, 2 weeks ago) by rillig
Branch: MAIN
Changes since 1.70: +12 -6 lines
Diff to previous 1.70 (colored)

lint: extend debug logging for memory management

Revision 1.70 / (download) - annotate - [select for diffs], Sat Jul 15 13:35:24 2023 UTC (7 months, 2 weeks ago) by rillig
Branch: MAIN
Changes since 1.69: +65 -14 lines
Diff to previous 1.69 (colored)

lint: add detailed logging for finding memory allocation bugs

Revision 1.69 / (download) - annotate - [select for diffs], Sat Jul 15 09:40:36 2023 UTC (7 months, 2 weeks ago) by rillig
Branch: MAIN
Changes since 1.68: +4 -2 lines
Diff to previous 1.68 (colored)

lint: add debug logging for memory management and the symbol table

Revision 1.68 / (download) - annotate - [select for diffs], Thu Jul 13 08:40:38 2023 UTC (7 months, 2 weeks ago) by rillig
Branch: MAIN
Changes since 1.67: +3 -3 lines
Diff to previous 1.67 (colored)

lint: indent copyright lines consistently

Revision 1.67 / (download) - annotate - [select for diffs], Sun Jul 9 12:15:07 2023 UTC (7 months, 3 weeks ago) by rillig
Branch: MAIN
Changes since 1.66: +3 -3 lines
Diff to previous 1.66 (colored)

lint: miscellaneous cleanup

Revision 1.66 / (download) - annotate - [select for diffs], Fri Jun 30 12:21:25 2023 UTC (8 months ago) by rillig
Branch: MAIN
Changes since 1.65: +4 -4 lines
Diff to previous 1.65 (colored)

lint: clean up tree.c

No functional change.

Revision 1.65 / (download) - annotate - [select for diffs], Tue Apr 11 19:02:19 2023 UTC (10 months, 2 weeks ago) by rillig
Branch: MAIN
Changes since 1.64: +7 -9 lines
Diff to previous 1.64 (colored)

lint: condense code

No functional change.

Revision 1.64 / (download) - annotate - [select for diffs], Fri Jan 13 19:41:50 2023 UTC (13 months, 2 weeks ago) by rillig
Branch: MAIN
Changes since 1.63: +53 -79 lines
Diff to previous 1.63 (colored)

lint: remove custom memory allocator

Besides adding complexity, the custom memory allocator didn't invalidate
freed memory, which made it harder to find possible use-after-free bugs.

Revision 1.63 / (download) - annotate - [select for diffs], Fri May 20 21:18:55 2022 UTC (21 months, 1 week ago) by rillig
Branch: MAIN
CVS Tags: netbsd-10-base, netbsd-10-0-RC5, netbsd-10-0-RC4, netbsd-10-0-RC3, netbsd-10-0-RC2, netbsd-10-0-RC1, netbsd-10
Changes since 1.62: +3 -3 lines
Diff to previous 1.62 (colored)

lint: use __RCSID in lint mode as well

Since 1995-10-02, lint supports __asm statements and __asm modifiers.

No binary change.

Revision 1.62 / (download) - annotate - [select for diffs], Sat Apr 2 22:15:57 2022 UTC (22 months, 4 weeks ago) by rillig
Branch: MAIN
Changes since 1.61: +4 -3 lines
Diff to previous 1.61 (colored)

lint: use appropriate alignment on both the host and target platform

Revision 1.61 / (download) - annotate - [select for diffs], Sun Feb 27 17:12:06 2022 UTC (2 years ago) by rillig
Branch: MAIN
Changes since 1.60: +4 -15 lines
Diff to previous 1.60 (colored)

lint: clean up code for handling filenames

No functional change.

Revision 1.60 / (download) - annotate - [select for diffs], Sun Feb 27 08:31:26 2022 UTC (2 years ago) by rillig
Branch: MAIN
Changes since 1.59: +12 -25 lines
Diff to previous 1.59 (colored)

lint: encode lifetime of allocated memory in the function names

No functional change.

Revision 1.59 / (download) - annotate - [select for diffs], Sun Feb 27 07:38:54 2022 UTC (2 years ago) by rillig
Branch: MAIN
Changes since 1.58: +15 -51 lines
Diff to previous 1.58 (colored)

lint: clean up memory allocation

No functional change.

Revision 1.58 / (download) - annotate - [select for diffs], Sun Feb 27 06:55:13 2022 UTC (2 years ago) by rillig
Branch: MAIN
Changes since 1.57: +12 -25 lines
Diff to previous 1.57 (colored)

lint: remove custom free list for memory blocks

Trust the system memory allocator to do its thing, including marking the
memory as fresh or freed.  One less thing to worry about.

Revision 1.57 / (download) - annotate - [select for diffs], Sat Dec 25 13:51:42 2021 UTC (2 years, 2 months ago) by rillig
Branch: MAIN
Changes since 1.56: +4 -3 lines
Diff to previous 1.56 (colored)

lint: don't try to trick mathematics by defining ZERO to a nonzero value

No binary change.

Revision 1.56 / (download) - annotate - [select for diffs], Tue Dec 21 15:24:28 2021 UTC (2 years, 2 months ago) by rillig
Branch: MAIN
Changes since 1.55: +5 -2 lines
Diff to previous 1.55 (colored)

lint: invert condition in build_name

No functional change.

Revision 1.55 / (download) - annotate - [select for diffs], Tue Nov 16 21:01:05 2021 UTC (2 years, 3 months ago) by rillig
Branch: MAIN
Changes since 1.54: +5 -5 lines
Diff to previous 1.54 (colored)

lint: fix check for function calls in strict bool mode

Previously, if a function call occurred in the controlling expression,
its return type could be any scalar, not just bool.  This was against
the goal of strict bool mode, which makes bool a separate and
incompabile type to all other types.  For example, it would allow
controlling expressions like 'strcmp(a, b)' without the usual '!= 0',
but only if at least one of 'a' and 'b' came from a macro definition
from a system header.

The fix is that the decision of whether the type of the controlling
expression may be scalar is no longer based on the operand types but on
the main operator of the controlling expression.

Revision 1.54 / (download) - annotate - [select for diffs], Tue Nov 16 18:37:24 2021 UTC (2 years, 3 months ago) by rillig
Branch: MAIN
Changes since 1.53: +2 -7 lines
Diff to previous 1.53 (colored)

lint: remove outdated comment

The bug has been fixed in cgram.y 1.369 a few minutes ago.

Revision 1.53 / (download) - annotate - [select for diffs], Tue Nov 16 06:55:03 2021 UTC (2 years, 3 months ago) by rillig
Branch: MAIN
Changes since 1.52: +7 -2 lines
Diff to previous 1.52 (colored)

tests/lint: explain the missing error message in strict bool mode

There are 2 separate bugs that lead to the missing error message.

The first bug is that when parsing a name, the information about whether
that name comes from a system header is not properly recorded for the
last token before switching from or to a system header.

The second bug is that for determining whether the type of a function
call expression is relaxed, the types of the function call arguments are
taken into account, even though the type only depends on the function
itself.  The same idea applies to the operators '<<' and '>>', as their
result type only depends on the left operand, at least since C90.

Revision 1.52 / (download) - annotate - [select for diffs], Tue Aug 31 17:22:25 2021 UTC (2 years, 5 months ago) by rillig
Branch: MAIN
Changes since 1.51: +3 -5 lines
Diff to previous 1.51 (colored)

lint: fix memory allocation (since 2021-08-28)

In mem1.c 1.50 and mem2.c 1.13 from 2021-08-28, I accidentally changed
the initialization of mblklen from round_up to round_down, trying to
avoid a division instruction.

On NetBSD x86_64 this resulted in a few more malloc calls, but on Cygwin
with its 64k pagesize, mblklen became 0.  Later, the function xalloc in
lint2 called xalloc(mblklen) and blindly assumed that the returned
memory would be large enough.  This in turn led to out-of-bounds memory
access and crashes.  Lint1 was not affected since it adjust mblklen
during runtime if it gets too small.

Revision 1.51 / (download) - annotate - [select for diffs], Sat Aug 28 13:29:26 2021 UTC (2 years, 6 months ago) by rillig
Branch: MAIN
Changes since 1.50: +3 -3 lines
Diff to previous 1.50 (colored)

lint: explicitly ignore return value of some function calls

This fixes the warning from lint2 that these functions return values
which are sometimes ignored.

The remaining calls to fprintf that ignore the return value come from
scan.c.  Lint does not currently detect the auto-generated portions of
that file and the interesting ones since it assumes that scan.c is the
main filename, see expr_zalloc_tnode.

No functional change.

Revision 1.50 / (download) - annotate - [select for diffs], Sat Aug 28 12:59:25 2021 UTC (2 years, 6 months ago) by rillig
Branch: MAIN
Changes since 1.49: +3 -6 lines
Diff to previous 1.49 (colored)

lint: use 'unsigned int' for bit-size of types

Lint does not need to support any types larger than 256 MB since they
don't occur in practice.  Practically, such large types have never been
supported at all since the function type_size_in_bits used int for the
internal calculations, resulting in overflows.

Revision 1.49 / (download) - annotate - [select for diffs], Tue Aug 10 17:57:16 2021 UTC (2 years, 6 months ago) by rillig
Branch: MAIN
Changes since 1.48: +2 -5 lines
Diff to previous 1.48 (colored)

lint: remove redundant function prototypes

Revision 1.48 / (download) - annotate - [select for diffs], Tue Aug 10 17:31:44 2021 UTC (2 years, 6 months ago) by rillig
Branch: MAIN
Changes since 1.47: +7 -3 lines
Diff to previous 1.47 (colored)

lint: clean up comments

Revision 1.47 / (download) - annotate - [select for diffs], Sun Aug 1 18:07:35 2021 UTC (2 years, 6 months ago) by rillig
Branch: MAIN
Changes since 1.46: +4 -4 lines
Diff to previous 1.46 (colored)

lint: unexport nomem

No functional change.

Revision 1.46 / (download) - annotate - [select for diffs], Sun Aug 1 17:59:47 2021 UTC (2 years, 6 months ago) by rillig
Branch: MAIN
Changes since 1.45: +3 -4 lines
Diff to previous 1.45 (colored)

lint: remove xmapalloc

Just trust the standard malloc to be smart enough.

No functional change.

Revision 1.45 / (download) - annotate - [select for diffs], Sun Jul 4 09:13:59 2021 UTC (2 years, 7 months ago) by rillig
Branch: MAIN
Changes since 1.44: +20 -3 lines
Diff to previous 1.44 (colored)

lint: in strict bool mode, allow mixed types in generated C code

This allows flex lexers to be run through lint in strict bool mode.

Revision 1.44 / (download) - annotate - [select for diffs], Sun Jun 20 18:51:50 2021 UTC (2 years, 8 months ago) by rillig
Branch: MAIN
Changes since 1.43: +15 -11 lines
Diff to previous 1.43 (colored)

lint: sprinkle const in memory management

No functional change.

Revision 1.43 / (download) - annotate - [select for diffs], Fri Apr 2 12:16:50 2021 UTC (2 years, 10 months ago) by rillig
Branch: MAIN
CVS Tags: cjep_sun2x-base1, cjep_sun2x-base, cjep_sun2x, cjep_staticlib_x-base1, cjep_staticlib_x-base, cjep_staticlib_x
Changes since 1.42: +9 -9 lines
Diff to previous 1.42 (colored)

lint: add parentheses after sizeof, as required by share/misc/style

No functional change.

Revision 1.42 / (download) - annotate - [select for diffs], Fri Apr 2 10:30:35 2021 UTC (2 years, 10 months ago) by rillig
Branch: MAIN
Changes since 1.41: +17 -17 lines
Diff to previous 1.41 (colored)

lint: rename members of struct memory_block

No functional change.

Revision 1.41 / (download) - annotate - [select for diffs], Fri Apr 2 10:13:03 2021 UTC (2 years, 10 months ago) by rillig
Branch: MAIN
Changes since 1.40: +15 -12 lines
Diff to previous 1.40 (colored)

lint: name memory allocation functions consistently

No functional change.

Revision 1.40 / (download) - annotate - [select for diffs], Fri Apr 2 09:52:36 2021 UTC (2 years, 10 months ago) by rillig
Branch: MAIN
Changes since 1.39: +3 -3 lines
Diff to previous 1.39 (colored)

lint: rename getnode to expr_zalloc_tnode

The new name highlights that the returned memory is only valid in the
scope of the current expression.  This was misleading before since the
other related functions all have a 't' (probably for 'temporary') in
their names.

Also encode in the function name that the returned memory is zeroed out
as that could not be inferred from the old name.

No functional change.

Revision 1.39 / (download) - annotate - [select for diffs], Fri Apr 2 09:45:55 2021 UTC (2 years, 10 months ago) by rillig
Branch: MAIN
Changes since 1.38: +11 -5 lines
Diff to previous 1.38 (colored)

lint: extract filename ID counter into separate function

No functional change.

Revision 1.38 / (download) - annotate - [select for diffs], Fri Apr 2 09:39:25 2021 UTC (2 years, 10 months ago) by rillig
Branch: MAIN
Changes since 1.37: +20 -20 lines
Diff to previous 1.37 (colored)

lint: rename mbl to memory_block

No functional change.

Revision 1.37 / (download) - annotate - [select for diffs], Sat Mar 27 12:32:19 2021 UTC (2 years, 11 months ago) by rillig
Branch: MAIN
Changes since 1.36: +9 -9 lines
Diff to previous 1.36 (colored)

lint: rename filename management functions

No functional change.

Revision 1.36 / (download) - annotate - [select for diffs], Sat Mar 27 12:24:43 2021 UTC (2 years, 11 months ago) by rillig
Branch: MAIN
Changes since 1.35: +16 -13 lines
Diff to previous 1.35 (colored)

lint: clean up code for filename management

In add_directory_replacement, the expression 'r->repl - r->orig' looked
strange, as if two pointers into separate objects were subtracted.

The code was probably optimized to a particular compiler on a particular
platform to generate fast and simple code.  Since compilers have made
considerable progress over the last 25 years, optimize the code for
human legibility instead.  The compilers will somehow cope with that.

No functional change.

Revision 1.35 / (download) - annotate - [select for diffs], Sat Mar 27 12:17:22 2021 UTC (2 years, 11 months ago) by rillig
Branch: MAIN
Changes since 1.34: +7 -6 lines
Diff to previous 1.34 (colored)

lint: rename filename_replacement.len to orig_len

No functional change.

Revision 1.34 / (download) - annotate - [select for diffs], Sat Mar 27 12:14:49 2021 UTC (2 years, 11 months ago) by rillig
Branch: MAIN
Changes since 1.33: +12 -15 lines
Diff to previous 1.33 (colored)

lint: rename global variables in filename management

No functional change.

Revision 1.33 / (download) - annotate - [select for diffs], Sat Mar 27 12:10:41 2021 UTC (2 years, 11 months ago) by rillig
Branch: MAIN
Changes since 1.32: +9 -8 lines
Diff to previous 1.32 (colored)

lint: rename srchfn to search_filename, return const value

No functional change.

Revision 1.32 / (download) - annotate - [select for diffs], Sat Mar 27 12:01:49 2021 UTC (2 years, 11 months ago) by rillig
Branch: MAIN
Changes since 1.31: +15 -17 lines
Diff to previous 1.31 (colored)

lint: rename types in filename management

No functional change.

Revision 1.31 / (download) - annotate - [select for diffs], Sat Mar 27 11:54:35 2021 UTC (2 years, 11 months ago) by rillig
Branch: MAIN
Changes since 1.30: +21 -18 lines
Diff to previous 1.30 (colored)

lint: reduce indentation in fnnalloc

No functional change.

Revision 1.30 / (download) - annotate - [select for diffs], Sat Mar 27 11:50:34 2021 UTC (2 years, 11 months ago) by rillig
Branch: MAIN
Changes since 1.29: +3 -3 lines
Diff to previous 1.29 (colored)

lint: rename fnaddreplsrcdir to something less cryptic

No functional change.

Revision 1.29 / (download) - annotate - [select for diffs], Sat Mar 27 11:47:59 2021 UTC (2 years, 11 months ago) by rillig
Branch: MAIN
Changes since 1.28: +6 -10 lines
Diff to previous 1.28 (colored)

lint: remove unused fnalloc

Revision 1.28 / (download) - annotate - [select for diffs], Fri Mar 26 20:31:07 2021 UTC (2 years, 11 months ago) by rillig
Branch: MAIN
Changes since 1.27: +9 -9 lines
Diff to previous 1.27 (colored)

lint: in malloc calls, use 'sizeof *ptr' instead of 'sizeof(type)'

No functional change.

Revision 1.27 / (download) - annotate - [select for diffs], Wed Mar 17 01:15:31 2021 UTC (2 years, 11 months ago) by rillig
Branch: MAIN
Changes since 1.26: +6 -6 lines
Diff to previous 1.26 (colored)

lint: rename 'blklev' to 'block_level'

No functional change.

Revision 1.26 / (download) - annotate - [select for diffs], Sun Feb 21 13:27:22 2021 UTC (3 years ago) by rillig
Branch: MAIN
Changes since 1.25: +13 -27 lines
Diff to previous 1.25 (colored)

lint: clean up comments in mem1.c

The comment for tgetblk had been misplaced.

Revision 1.25 / (download) - annotate - [select for diffs], Sat Jan 23 22:20:17 2021 UTC (3 years, 1 month ago) by rillig
Branch: MAIN
Changes since 1.24: +6 -5 lines
Diff to previous 1.24 (colored)

lint: fix two wrong error messages in strict bool mode

The strict bool mode gets complicated because for system headers the
rules need to be relaxed since they cannot be changed easily, often not at all.

Still, if lint validates a program in strict bool mode, that program
must run with equal behavior regarding boolean expressions even on a
pre-C99 platform.

Revision 1.24 / (download) - annotate - [select for diffs], Mon Jan 18 20:02:34 2021 UTC (3 years, 1 month ago) by rillig
Branch: MAIN
Changes since 1.23: +3 -3 lines
Diff to previous 1.23 (colored)

lint: clean up code (mostly comments)

Revision 1.23 / (download) - annotate - [select for diffs], Sat Jan 16 02:40:02 2021 UTC (3 years, 1 month ago) by rillig
Branch: MAIN
Changes since 1.22: +4 -4 lines
Diff to previous 1.22 (colored)

lint: replace 0 and 1 with false and true, where appropriate

Change in behavior: Passing the option -h exactly 4294967296 times or
any multiple thereof is no longer equivalent to passing it never at all,
it is now equivalent to passing it once.  See main2.c, hflag++ for the
actual change.

Other than that, no functional change intended.

A very large portion of the code already conformed to the requirements
of the strict bool mode.  The only missing thing was using the constant
literals false and true instead of 0 and 1.  For sure there are some
integer literals left that can be converted.  For now, all literals that
appeared in the form " = 0" or " = 1" have been replaced.

Revision 1.22 / (download) - annotate - [select for diffs], Mon Jan 4 22:29:00 2021 UTC (3 years, 1 month ago) by rillig
Branch: MAIN
Changes since 1.21: +13 -10 lines
Diff to previous 1.21 (colored)

lint: reduce comment for xgetblk to the actually interesting part

Revision 1.21 / (download) - annotate - [select for diffs], Wed Dec 30 10:46:11 2020 UTC (3 years, 2 months ago) by rillig
Branch: MAIN
Changes since 1.20: +5 -5 lines
Diff to previous 1.20 (colored)

lint: rename more _nxt members to _next

Revision 1.20 / (download) - annotate - [select for diffs], Tue Dec 29 11:35:11 2020 UTC (3 years, 2 months ago) by rillig
Branch: MAIN
Changes since 1.19: +15 -15 lines
Diff to previous 1.19 (colored)

lint: remove redundant parentheses around return value

Revision 1.19 / (download) - annotate - [select for diffs], Mon Dec 28 12:52:45 2020 UTC (3 years, 2 months ago) by rillig
Branch: MAIN
Changes since 1.18: +4 -4 lines
Diff to previous 1.18 (colored)

lint1: remove trailing whitespace

Revision 1.17.6.1 / (download) - annotate - [select for diffs], Sat Jan 7 08:56:59 2017 UTC (7 years, 1 month ago) by pgoyette
Branch: pgoyette-localcount
Changes since 1.17: +44 -3 lines
Diff to previous 1.17 (colored) next main 1.18 (colored)

Sync with HEAD.  (Note that most of these changes are simply $NetBSD$
tag issues.)

Revision 1.18 / (download) - annotate - [select for diffs], Sat Dec 24 17:43:45 2016 UTC (7 years, 2 months ago) by christos
Branch: MAIN
CVS Tags: prg-localcount2-base3, prg-localcount2-base2, prg-localcount2-base1, prg-localcount2-base, prg-localcount2, phil-wifi-base, phil-wifi-20200421, phil-wifi-20200411, phil-wifi-20200406, phil-wifi-20191119, phil-wifi-20190609, phil-wifi, pgoyette-localcount-20170426, pgoyette-localcount-20170320, pgoyette-localcount-20170107, 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, perseant-stdc-iso10646-base, perseant-stdc-iso10646, 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, 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, matt-nb8-mediatek-base, matt-nb8-mediatek, is-mlppp-base, is-mlppp, bouyer-socketcan-base1, bouyer-socketcan-base, bouyer-socketcan
Changes since 1.17: +44 -3 lines
Diff to previous 1.17 (colored)

Add -R (source filename remapping) for MKREPRO

Revision 1.15.8.1 / (download) - annotate - [select for diffs], Wed Aug 20 00:05:06 2014 UTC (9 years, 6 months ago) by tls
Branch: tls-maxphys
Changes since 1.15: +9 -4 lines
Diff to previous 1.15 (colored) next main 1.16 (colored)

Rebase to HEAD as of a few days ago.

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

Rebase.

Revision 1.15.2.1 / (download) - annotate - [select for diffs], Thu May 22 11:42:52 2014 UTC (9 years, 9 months ago) by yamt
Branch: yamt-pagecache
Changes since 1.15: +9 -4 lines
Diff to previous 1.15 (colored) next main 1.16 (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.17 / (download) - annotate - [select for diffs], Fri Apr 18 00:21:14 2014 UTC (9 years, 10 months ago) by christos
Branch: MAIN
CVS Tags: yamt-pagecache-base9, tls-maxphys-base, tls-earlyentropy-base, pgoyette-localcount-base, pgoyette-localcount-20161104, pgoyette-localcount-20160806, pgoyette-localcount-20160726, 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, localcount-20160914
Branch point for: pgoyette-localcount
Changes since 1.16: +9 -4 lines
Diff to previous 1.16 (colored)

only fill memory with junk if BLKDEBUG

Revision 1.16 / (download) - annotate - [select for diffs], Thu Apr 17 16:30:05 2014 UTC (9 years, 10 months ago) by christos
Branch: MAIN
Changes since 1.15: +3 -3 lines
Diff to previous 1.15 (colored)

Trash freed memory so we catch bad uses.

Revision 1.15 / (download) - annotate - [select for diffs], Fri Jun 24 01:10:31 2011 UTC (12 years, 8 months ago) by christos
Branch: MAIN
CVS Tags: yamt-pagecache-tag8, yamt-pagecache-base8, yamt-pagecache-base7, yamt-pagecache-base6, yamt-pagecache-base5, yamt-pagecache-base4, yamt-pagecache-base3, yamt-pagecache-base2, yamt-pagecache-base, 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-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, agc-symver-base, agc-symver
Branch point for: yamt-pagecache, tls-maxphys, tls-earlyentropy
Changes since 1.14: +3 -3 lines
Diff to previous 1.14 (colored)

Always use our own align macro and explain a bit more why this is bogus.

Revision 1.14 / (download) - annotate - [select for diffs], Mon Jan 17 03:04:10 2011 UTC (13 years, 1 month ago) by christos
Branch: MAIN
CVS Tags: cherry-xenmp-base, cherry-xenmp, bouyer-quota2-nbase, bouyer-quota2-base, bouyer-quota2
Changes since 1.13: +3 -3 lines
Diff to previous 1.13 (colored)

PR/44235: Valeriy E. Ushakov: Don't pick up a block from the free list if
it is not big enough, allocate a new one. XXX: this is inefficient, but at
least it does not end up corrupting memory.

Revision 1.13 / (download) - annotate - [select for diffs], Wed Aug 5 19:08:28 2009 UTC (14 years, 6 months ago) by wiz
Branch: MAIN
CVS Tags: matt-premerge-20091211, matt-mips64-premerge-20101231
Changes since 1.12: +4 -4 lines
Diff to previous 1.12 (colored)

Fix typos in comment.

Revision 1.11.36.1 / (download) - annotate - [select for diffs], Wed May 13 19:20:13 2009 UTC (14 years, 9 months ago) by jym
Branch: jym-xensuspend
Changes since 1.11: +3 -3 lines
Diff to previous 1.11 (colored) next main 1.12 (colored)

Sync with HEAD.

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

Revision 1.12 / (download) - annotate - [select for diffs], Wed Apr 15 01:20:57 2009 UTC (14 years, 10 months ago) by christos
Branch: MAIN
CVS Tags: jym-xensuspend-nbase, jym-xensuspend-base
Changes since 1.11: +3 -3 lines
Diff to previous 1.11 (colored)

Lukemify (WARNS=4)

Revision 1.10.2.1 / (download) - annotate - [select for diffs], Tue Jun 22 07:16:34 2004 UTC (19 years, 8 months ago) by tron
Branch: netbsd-2-0
CVS Tags: 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-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
Changes since 1.10: +6 -2 lines
Diff to previous 1.10 (colored) next main 1.11 (colored)

Pull up revision 1.11 (requested by jmc in ticket #527):
Completely rework how tools/compat is done. Purge all uses/references to
_NETBSD_SOURCE as this makes cross building from older/newer versions of
NetBSD harder, not easier (and also makes the resulting tools 'different')
Wrap all required code with the inclusion of nbtool_config.h, attempt to
only use POSIX code in all places (or when reasonable test w. configure and
provide definitions: ala u_int, etc).
Reviewed by lukem. Tested on FreeBSD 4.9, Redhat Linux ES3, NetBSD 1.6.2 x86
NetBSD current (x86 and amd64) and Solaris 9.
Fixes PR's: PR#17762 PR#25944

Revision 1.11 / (download) - annotate - [select for diffs], Sun Jun 20 22:20:17 2004 UTC (19 years, 8 months ago) by jmc
Branch: MAIN
CVS Tags: yamt-pf42-baseX, yamt-pf42-base4, yamt-pf42-base3, yamt-pf42-base2, yamt-pf42-base, yamt-pf42, wrstuden-revivesa-base-3, wrstuden-revivesa-base-2, wrstuden-revivesa-base-1, wrstuden-revivesa-base, wrstuden-revivesa, wrstuden-fixsa-newbase, wrstuden-fixsa-base-1, wrstuden-fixsa-base, wrstuden-fixsa, 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, 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, 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, mjf-devfs2-base, mjf-devfs2, 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, matt-mips64-base, matt-mips64, matt-armv6-prevmlocking, matt-armv6-nbase, matt-armv6-base, matt-armv6, keiichi-mipv6-nbase, keiichi-mipv6-base, keiichi-mipv6, hpcarm-cleanup-nbase, hpcarm-cleanup-base, hpcarm-cleanup, cube-autoconf-base, cube-autoconf, chap-midi-nbase, chap-midi-base, chap-midi, abandoned-netbsd-4-base, abandoned-netbsd-4
Branch point for: jym-xensuspend
Changes since 1.10: +6 -2 lines
Diff to previous 1.10 (colored)

Completely rework how tools/compat is done. Purge all uses/references to
_NETBSD_SOURCE as this makes cross building from older/newer versions of
NetBSD harder, not easier (and also makes the resulting tools 'different')

Wrap all required code with the inclusion of nbtool_config.h, attempt to
only use POSIX code in all places (or when reasonable test w. configure and
provide definitions: ala u_int, etc).

Reviewed by lukem. Tested on FreeBSD 4.9, Redhat Linux ES3, NetBSD 1.6.2 x86
NetBSD current (x86 and amd64) and Solaris 9.

Fixes PR's: PR#17762 PR#25944

Revision 1.10 / (download) - annotate - [select for diffs], Tue Oct 21 23:58:53 2003 UTC (20 years, 4 months ago) by christos
Branch: MAIN
CVS Tags: netbsd-2-0-base
Branch point for: netbsd-2-0
Changes since 1.9: +4 -14 lines
Diff to previous 1.9 (colored)

PR/23219: Dan McMahill: Make this compile on system that don't have MAP_ANON.
Centralize the mmap allocations in a new function, xmapalloc() that handles
this.

Revision 1.9 / (download) - annotate - [select for diffs], Mon Jan 20 05:30:13 2003 UTC (21 years, 1 month ago) by simonb
Branch: MAIN
Changes since 1.8: +3 -3 lines
Diff to previous 1.8 (colored)

The Double-Semi-Colon Police.

Revision 1.8 / (download) - annotate - [select for diffs], Fri Jun 28 05:03:55 2002 UTC (21 years, 8 months ago) by jmc
Branch: MAIN
CVS Tags: fvdl_fs64_base
Changes since 1.7: +9 -2 lines
Diff to previous 1.7 (colored)

Change xgetblk to detect cases where the requested size is more than mblklen.
(generally it's 20k). Adjust mblklen temporarily to the size of the block
required and allocate one. This avoids coredumps when mapping in identifiers
that have huge values. (In my example it was a char[] for a 640k pixmap).

Revision 1.7 / (download) - annotate - [select for diffs], Thu Jan 31 19:36:54 2002 UTC (22 years, 1 month ago) by tv
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.6: +3 -5 lines
Diff to previous 1.6 (colored)

Protect __RCSID and __COPYRIGHT from being invoked if not defined.

Revision 1.6 / (download) - annotate - [select for diffs], Tue Jan 29 02:43:39 2002 UTC (22 years, 1 month ago) by tv
Branch: MAIN
Changes since 1.5: +2 -3 lines
Diff to previous 1.5 (colored)

Remove #include <err.h> (now in lint.h).

Revision 1.5 / (download) - annotate - [select for diffs], Mon May 28 12:40:37 2001 UTC (22 years, 9 months ago) by lukem
Branch: MAIN
Changes since 1.4: +33 -39 lines
Diff to previous 1.4 (colored)

cleanup (prior to more adding more features):
- convert to ANSI KNF
- remove trailing whitespace
- translate some comments from german into english

code compiles and runs clean, and tested by running "make lint" against
xlint source using previous and this lint produces same results.

Revision 1.4 / (download) - annotate - [select for diffs], Mon Mar 13 23:22:53 2000 UTC (23 years, 11 months ago) by soren
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
Changes since 1.3: +3 -3 lines
Diff to previous 1.3 (colored)

Fix doubled 'the's.

Revision 1.3 / (download) - annotate - [select for diffs], Sun Feb 22 15:40:40 1998 UTC (26 years ago) by christos
Branch: MAIN
CVS Tags: wrstuden-devbsize-base, wrstuden-devbsize-19991221, wrstuden-devbsize, netbsd-1-4-base, netbsd-1-4-RELEASE, netbsd-1-4-PATCH003, netbsd-1-4-PATCH002, netbsd-1-4-PATCH001, netbsd-1-4, comdex-fall-1999-base, comdex-fall-1999
Changes since 1.2: +3 -2 lines
Diff to previous 1.2 (colored)

WARNSify

Revision 1.2 / (download) - annotate - [select for diffs], Mon Jul 3 21:24:25 1995 UTC (28 years, 8 months ago) by cgd
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, 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
Changes since 1.1: +3 -3 lines
Diff to previous 1.1 (colored)

RCS id cleanup

Revision 1.1.1.1 / (download) - annotate - [select for diffs] (vendor branch), Mon Jul 3 20:56:37 1995 UTC (28 years, 8 months ago) by cgd
Branch: Jochen_Pohl
CVS Tags: Jochen_Pohl-950703
Changes since 1.1: +0 -0 lines
Diff to previous 1.1 (colored)

lint(1) implementation, by Jochen Pohl.  named 'xlint' for a similar
reason to why 'install' is named 'xinstall'.

Revision 1.1 / (download) - annotate - [select for diffs], Mon Jul 3 20:56:37 1995 UTC (28 years, 8 months ago) by cgd
Branch: MAIN

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>