The NetBSD Project

CVS log for src/usr.bin/make/util.c

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

Request diff between arbitrary revisions


Default branch: MAIN
Current tag: MAIN


Revision 1.78 / (download) - annotate - [select for diffs], Wed Dec 15 12:58:01 2021 UTC (2 years, 4 months ago) by rillig
Branch: MAIN
CVS Tags: 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, HEAD
Changes since 1.77: +4 -4 lines
Diff to previous 1.77 (colored) to selected 1.21 (colored)

make: format comments according to /usr/share/misc/style

Assisted by indent(1), with manual corrections due to its many remaining
bugs.

No functional change.

Revision 1.77 / (download) - annotate - [select for diffs], Wed Dec 15 12:24:13 2021 UTC (2 years, 4 months ago) by rillig
Branch: MAIN
Changes since 1.76: +18 -18 lines
Diff to previous 1.76 (colored) to selected 1.21 (colored)

make: use consistent indentation for statements and continuations

No binary change, except for line numbers in assertions in suff.c.

Revision 1.76 / (download) - annotate - [select for diffs], Wed Feb 3 08:00:36 2021 UTC (3 years, 2 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.75: +1 -1 lines
Diff to previous 1.75 (colored) to selected 1.21 (colored)

make: use shortcut functions Global_SetExpand and Global_AppendExpand

There are many places where global variables are set or appended to.  To
reduce clutter and code size, encode the VAR_GLOBAL in the function
name.

The word Expand in the function names says that the variable name is
expanded.  In most of the cases, this is not necessary, but there are no
corresponding functions Global_Set or Global_Append yet.

Encoding the information whether the name is expanded or not in the
function name will make inconsistencies obvious in future manual code
reviews. Letting the compiler check this by using different types for
unexpanded and expanded variable names is probably not worth the effort.
There are still a few bugs to be fixed, such as in SetVar, which expands
the variable name twice in a row.

Revision 1.75 / (download) - annotate - [select for diffs], Wed Feb 3 06:58:22 2021 UTC (3 years, 2 months ago) by rillig
Branch: MAIN
Changes since 1.74: +3 -3 lines
Diff to previous 1.74 (colored) to selected 1.21 (colored)

make: fix compiler warning about signedness in comparison

Revision 1.74 / (download) - annotate - [select for diffs], Mon Feb 1 19:46:58 2021 UTC (3 years, 2 months ago) by rillig
Branch: MAIN
Changes since 1.73: +4 -4 lines
Diff to previous 1.73 (colored) to selected 1.21 (colored)

make: replace pre-increment with post-increment or simple addition

The rest of the code already prefers post-increment if there is no
actual difference.

Revision 1.73 / (download) - annotate - [select for diffs], Wed Dec 30 10:03:16 2020 UTC (3 years, 3 months ago) by rillig
Branch: MAIN
Changes since 1.72: +4 -3 lines
Diff to previous 1.72 (colored) to selected 1.21 (colored)

make(1): format multi-line comments

Revision 1.72 / (download) - annotate - [select for diffs], Tue Dec 15 20:39:15 2020 UTC (3 years, 4 months ago) by rillig
Branch: MAIN
Changes since 1.71: +11 -11 lines
Diff to previous 1.71 (colored) to selected 1.21 (colored)

make(1): indent nonints.h and util.c with tabs instead of spaces

Revision 1.71 / (download) - annotate - [select for diffs], Sat Dec 5 17:25:41 2020 UTC (3 years, 4 months ago) by rillig
Branch: MAIN
Changes since 1.70: +3 -4 lines
Diff to previous 1.70 (colored) to selected 1.21 (colored)

make(1): refuse to use vsnprintf that is prone to buffer overflows

Several parts of make intentionally depend on the guarantee that
snprintf and vsnprintf do not overflow their buffer.  If an
implementation cannot provide this guarantee, refuse to use it.

Revision 1.70 / (download) - annotate - [select for diffs], Mon Nov 23 23:41:11 2020 UTC (3 years, 4 months ago) by rillig
Branch: MAIN
Changes since 1.69: +3 -3 lines
Diff to previous 1.69 (colored) to selected 1.21 (colored)

make(1): use comparisons in boolean expressions

The generated code stays exactly the same.

Revision 1.69 / (download) - annotate - [select for diffs], Mon Nov 23 20:41:20 2020 UTC (3 years, 4 months ago) by rillig
Branch: MAIN
Changes since 1.68: +34 -34 lines
Diff to previous 1.68 (colored) to selected 1.21 (colored)

make(1): align end-of-line comments with tabs

Revision 1.68 / (download) - annotate - [select for diffs], Mon Nov 16 18:29:49 2020 UTC (3 years, 5 months ago) by rillig
Branch: MAIN
Changes since 1.67: +3 -3 lines
Diff to previous 1.67 (colored) to selected 1.21 (colored)

make(1): use postfix increment where possible

Revision 1.67 / (download) - annotate - [select for diffs], Sun Nov 8 08:53:22 2020 UTC (3 years, 5 months ago) by rillig
Branch: MAIN
Changes since 1.66: +4 -6 lines
Diff to previous 1.66 (colored) to selected 1.21 (colored)

make(1): use common indentation style for else

Revision 1.66 / (download) - annotate - [select for diffs], Sat Nov 7 22:29:58 2020 UTC (3 years, 5 months ago) by rillig
Branch: MAIN
Changes since 1.65: +5 -5 lines
Diff to previous 1.65 (colored) to selected 1.21 (colored)

make(1): clean up spacing in fallback implementation of vsnprintf

Revision 1.65 / (download) - annotate - [select for diffs], Thu Nov 5 17:27:16 2020 UTC (3 years, 5 months ago) by rillig
Branch: MAIN
Changes since 1.64: +3 -3 lines
Diff to previous 1.64 (colored) to selected 1.21 (colored)

make(1): remove redundant parentheses from sizeof operator

The parentheses are only needed if the argument is a type, not an
expression.

Revision 1.64 / (download) - annotate - [select for diffs], Tue Oct 6 21:51:33 2020 UTC (3 years, 6 months ago) by rillig
Branch: MAIN
Changes since 1.63: +2 -63 lines
Diff to previous 1.63 (colored) to selected 1.21 (colored)

make(1): remove incomplete fallback implementation of strftime

The function strftime is available since C89.  Any environments older
than that are not supported anymore.

Revision 1.63 / (download) - annotate - [select for diffs], Mon Oct 5 19:27:47 2020 UTC (3 years, 6 months ago) by rillig
Branch: MAIN
Changes since 1.62: +2 -3 lines
Diff to previous 1.62 (colored) to selected 1.21 (colored)

make(1): revert previous commit

It had accidentally reverted all the work from the past few days.

Revision 1.62 / (download) - annotate - [select for diffs], Mon Oct 5 19:24:29 2020 UTC (3 years, 6 months ago) by rillig
Branch: MAIN
Changes since 1.61: +1 -0 lines
Diff to previous 1.61 (colored) to selected 1.21 (colored)

make(1): fix double-free bug in -DCLEANUP mode (since 2020-10-02)

The bug had been introduced with dir.c 1.155 on 2020-10-02 22:20:25.  In
that commit, openDirectories was replaced with a combination of a list
with a hash table, for more efficient lookup by name.

Upon cleanup, OpenDirs_Done is called, which in turn called
Dir_ClearPath.  Dir_ClearPath takes full ownership of the given list and
empties it.  This was no problem before since afterwards the list was
empty and calling Lst_Free just frees the remaining list pointer.

With OpenDirs, this list was combined with a hash table, and the hash
table contains the list nodes, assuming that the OpenDirs functions have
full ownership of both the list and the hash table.  This assumption was
generally correct, except for the one moment during cleanup where full
ownership of the list was passed to Dir_ClearPath, while the hash table
still contained pointers to the (now freed) list nodes.  This by itself
was not a problem since the hash table would be freed afterwards.  But
as part of Dir_ClearPath, OpenDirs_Remove was called, which looked up
the freed directory by name and now found the freed list node, trying to
free it again.  Boom.

Fixed by replacing the call to Dir_ClearPath with code that only frees
the directories, without giving up control over the list.

Revision 1.61 / (download) - annotate - [select for diffs], Sat Oct 3 21:52:50 2020 UTC (3 years, 6 months ago) by rillig
Branch: MAIN
Changes since 1.60: +2 -3 lines
Diff to previous 1.60 (colored) to selected 1.21 (colored)

make(1): clean up #include sections

Revision 1.60 / (download) - annotate - [select for diffs], Sun Sep 13 15:15:51 2020 UTC (3 years, 7 months ago) by rillig
Branch: MAIN
Changes since 1.59: +4 -10 lines
Diff to previous 1.59 (colored) to selected 1.21 (colored)

make(1): clean up RCSID blocks

These blocks mostly consisted of redundant structure, following the same
#ifndef pattern over and over, with only minimal variation.

It's easier to maintain if the common structure is only written once and
encapsulated in a macro.

To avoid "defined but unused" warnings from GCC in the case where
MAKE_NATIVE is not defined, I had to add volatile.  Adding
MAKE_ATTR_UNUSED alone would not preserve the rcsid variable in the
resulting binary.

Revision 1.59 / (download) - annotate - [select for diffs], Sat Sep 12 16:46:24 2020 UTC (3 years, 7 months ago) by rillig
Branch: MAIN
Changes since 1.58: +5 -5 lines
Diff to previous 1.58 (colored) to selected 1.21 (colored)

make(1): add typedef for signal handler

Without this typedef, both the declaration and the definition of
bmake_signal were as unreadable as the declaration in the signal(3)
manual page.

Revision 1.58 / (download) - annotate - [select for diffs], Sat Aug 1 14:47:49 2020 UTC (3 years, 8 months ago) by rillig
Branch: MAIN
Changes since 1.57: +36 -36 lines
Diff to previous 1.57 (colored) to selected 1.21 (colored)

make(1): use consistent indentation in source code

Tabs for multiples of 8, then spaces.

The usage string has been kept as-is since the spaces there are
indentional and do influence the output.

Revision 1.57 / (download) - annotate - [select for diffs], Fri Jul 3 08:13:23 2020 UTC (3 years, 9 months ago) by rillig
Branch: MAIN
Changes since 1.56: +4 -4 lines
Diff to previous 1.56 (colored) to selected 1.21 (colored)

make(1): remove trailing whitespace

Revision 1.56 / (download) - annotate - [select for diffs], Fri Jul 3 08:02:55 2020 UTC (3 years, 9 months ago) by rillig
Branch: MAIN
Changes since 1.55: +7 -7 lines
Diff to previous 1.55 (colored) to selected 1.21 (colored)

make(1): remove redundant parentheses around return values

Revision 1.55 / (download) - annotate - [select for diffs], Tue Jan 7 21:24:16 2020 UTC (4 years, 3 months ago) by rillig
Branch: MAIN
CVS Tags: phil-wifi-20200421, phil-wifi-20200411, phil-wifi-20200406, is-mlppp-base, is-mlppp
Changes since 1.54: +3 -29 lines
Diff to previous 1.54 (colored) to selected 1.21 (colored)

usr.bin/make: remove dead code

The preprocessor conditions contradicted each other: __hpux__ or __hpux
would need to be defined, and at the same time none of them would need to
be defined.

Revision 1.54 / (download) - annotate - [select for diffs], Tue Nov 26 13:44:41 2013 UTC (10 years, 4 months 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, prg-localcount2-base3, prg-localcount2-base2, prg-localcount2-base1, prg-localcount2-base, prg-localcount2, phil-wifi-base, phil-wifi-20191119, phil-wifi-20190609, pgoyette-localcount-base, pgoyette-localcount-20170426, pgoyette-localcount-20170320, pgoyette-localcount-20170107, pgoyette-localcount-20161104, pgoyette-localcount-20160806, pgoyette-localcount-20160726, pgoyette-localcount, 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, 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
Branch point for: phil-wifi
Changes since 1.53: +6 -3 lines
Diff to previous 1.53 (colored) to selected 1.21 (colored)

Include signal.h early for MiNT and Linux. From pkgsrc.

Revision 1.53 / (download) - annotate - [select for diffs], Mon Jun 4 22:45:05 2012 UTC (11 years, 10 months ago) by sjg
Branch: MAIN
CVS Tags: yamt-pagecache-base8, yamt-pagecache-base7, yamt-pagecache-base6, riastradh-drm2-base2, riastradh-drm2-base1, riastradh-drm2-base, riastradh-drm2, dholland-make-base, agc-symver-base, agc-symver
Branch point for: tls-maxphys
Changes since 1.52: +6 -5 lines
Diff to previous 1.52 (colored) to selected 1.21 (colored)

Fix findenv() to fully match name

Revision 1.52 / (download) - annotate - [select for diffs], Mon Jun 4 20:34:20 2012 UTC (11 years, 10 months ago) by sjg
Branch: MAIN
Changes since 1.51: +17 -10 lines
Diff to previous 1.51 (colored) to selected 1.21 (colored)

Var_UnExport() and setenv() can both realloc environ.
Use a common variable (savedEnv) to track that to avoid wasting memory.
Also, if providing setenv and unsetenv, do getenv too to ensure a consistent
set.

Revision 1.51 / (download) - annotate - [select for diffs], Sat Apr 2 07:58:30 2011 UTC (13 years ago) by mbalmer
Branch: MAIN
CVS Tags: 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
Changes since 1.50: +4 -4 lines
Diff to previous 1.50 (colored) to selected 1.21 (colored)

Declare variable only once.  Fixes PR 44795.

Revision 1.50 / (download) - annotate - [select for diffs], Thu Jun 3 15:40:16 2010 UTC (13 years, 10 months ago) by sjg
Branch: MAIN
CVS Tags: matt-mips64-premerge-20101231, bouyer-quota2-nbase, bouyer-quota2-base, bouyer-quota2
Changes since 1.49: +6 -27 lines
Diff to previous 1.49 (colored) to selected 1.21 (colored)

We have required sigaction() for quite a while.
Use bmake_signal() - a wrapper around sigaction()
rather than signal() to ensure that signals are handled
consistently.

Revision 1.49 / (download) - annotate - [select for diffs], Wed May 5 07:05:33 2010 UTC (13 years, 11 months ago) by sjg
Branch: MAIN
Changes since 1.48: +4 -4 lines
Diff to previous 1.48 (colored) to selected 1.21 (colored)

gcc defines __svr4__
SunPro compiler defines __SVR4
We need to check both to ensure that on SunOS signal is hooked into
sigaction - otherwise we do not pass the unit-tests due to missing
a SIGCHLD

Revision 1.48 / (download) - annotate - [select for diffs], Thu Jan 29 09:03:04 2009 UTC (15 years, 2 months ago) by dholland
Branch: MAIN
CVS Tags: matt-premerge-20091211, jym-xensuspend-nbase, jym-xensuspend-base, jym-xensuspend
Changes since 1.47: +5 -5 lines
Diff to previous 1.47 (colored) to selected 1.21 (colored)

Fix flagrantly wrong printf formats in compat strftime.

Revision 1.47 / (download) - annotate - [select for diffs], Sat Dec 13 15:19:29 2008 UTC (15 years, 4 months ago) by dsl
Branch: MAIN
Changes since 1.46: +9 -9 lines
Diff to previous 1.46 (colored) to selected 1.21 (colored)

Use NULL instead of -1 cast to the relavant type (usually via NIL).
This was a suggestion from christos - so blame him if there is a deep
reason for using -1 :-)

Revision 1.46 / (download) - annotate - [select for diffs], Fri Oct 31 17:42:14 2008 UTC (15 years, 5 months ago) by christos
Branch: MAIN
Changes since 1.45: +103 -22 lines
Diff to previous 1.45 (colored) to selected 1.21 (colored)

Don't use putenv() because it is not portable.

Revision 1.45 / (download) - annotate - [select for diffs], Mon Oct 6 22:09:21 2008 UTC (15 years, 6 months ago) by joerg
Branch: MAIN
CVS Tags: netbsd-5-base, matt-mips64-base2
Branch point for: netbsd-5
Changes since 1.44: +4 -54 lines
Diff to previous 1.44 (colored) to selected 1.21 (colored)

Don't use emalloc and friends directly, but call them consistently
bmake_malloc and friends. Implement them via macros for the native case
and provide fallback implementations otherwise. Avoid polluting the
namespace by not defining enomem globally. Don't bother to provide
strdup and strndup, they were only used for the estrdup and estrndup
comapt code.

This addresses the presence of emalloc in system libraries on A/UX and
resulted strange issues as reported by Timothy E. Larson.

Revision 1.44 / (download) - annotate - [select for diffs], Fri Feb 15 21:29:50 2008 UTC (16 years, 2 months ago) by christos
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, mjf-devfs2-base, mjf-devfs2, matt-armv6-nbase, keiichi-mipv6-nbase, keiichi-mipv6-base, keiichi-mipv6, hpcarm-cleanup-nbase, hpcarm-cleanup-base
Changes since 1.43: +1 -1 lines
Diff to previous 1.43 (colored) to selected 1.21 (colored)

back all changes out until I fix it properly.

Revision 1.43 / (download) - annotate - [select for diffs], Thu Feb 14 22:11:20 2008 UTC (16 years, 2 months ago) by christos
Branch: MAIN
CVS Tags: christos-broken
Changes since 1.42: +4 -4 lines
Diff to previous 1.42 (colored) to selected 1.21 (colored)

- use pid_t/size_t as appropriate instead of int.
- use %ld to print pids.
- fix a bit of lint.
- WARNS=4

Revision 1.42 / (download) - annotate - [select for diffs], Mon Oct 15 01:07:36 2007 UTC (16 years, 6 months ago) by sjg
Branch: MAIN
CVS Tags: matt-armv6-base, cube-autoconf-base, cube-autoconf
Changes since 1.41: +4 -4 lines
Diff to previous 1.41 (colored) to selected 1.21 (colored)

If we don't have emalloc, we won't have strndup either.
Allows building current make on 2.0.

Revision 1.41 / (download) - annotate - [select for diffs], Sat Oct 13 16:16:41 2007 UTC (16 years, 6 months ago) by apb
Branch: MAIN
Changes since 1.40: +30 -3 lines
Diff to previous 1.40 (colored) to selected 1.21 (colored)

* Convert all uses of strdup() to estrdup();
* Use estrndup() in a few cases where it simplifies the code;
* Provide compatibility definitions of strndup and estrndup;

Revision 1.40 / (download) - annotate - [select for diffs], Wed Jan 17 00:21:44 2007 UTC (17 years, 3 months ago) by hubertf
Branch: MAIN
CVS Tags: matt-mips64-base, matt-mips64, hpcarm-cleanup
Branch point for: matt-armv6
Changes since 1.39: +3 -6 lines
Diff to previous 1.39 (colored) to selected 1.21 (colored)

Remove duplicate #includes
From Slava Semushin <slava.semushin@gmail.com>, via private mail

Revision 1.39 / (download) - annotate - [select for diffs], Mon Aug 8 16:42:54 2005 UTC (18 years, 8 months ago) by christos
Branch: MAIN
CVS Tags: netbsd-4-base, chap-midi-nbase, chap-midi-base, chap-midi, abandoned-netbsd-4-base, abandoned-netbsd-4
Branch point for: wrstuden-fixsa, netbsd-4
Changes since 1.38: +6 -6 lines
Diff to previous 1.38 (colored) to selected 1.21 (colored)

From Max Okumoto:
- Remove casts to NULL.
- Remove space between cast and object.

Revision 1.38 / (download) - annotate - [select for diffs], Fri Aug 5 00:53:18 2005 UTC (18 years, 8 months ago) by christos
Branch: MAIN
Changes since 1.37: +4 -4 lines
Diff to previous 1.37 (colored) to selected 1.21 (colored)

More KNF cleanups from Max Okumoto

Revision 1.37 / (download) - annotate - [select for diffs], Mon Jul 25 22:55:58 2005 UTC (18 years, 8 months ago) by christos
Branch: MAIN
Changes since 1.36: +15 -15 lines
Diff to previous 1.36 (colored) to selected 1.21 (colored)

Whitespace KNF cleanup from Max Okumoto

Revision 1.36 / (download) - annotate - [select for diffs], Wed Feb 16 15:11:53 2005 UTC (19 years, 2 months ago) by christos
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
Changes since 1.35: +4 -4 lines
Diff to previous 1.35 (colored) to selected 1.21 (colored)

PR/29203, PR/29204: Max Okumoto: KNF changes to make [no functional changes]

Revision 1.35 / (download) - annotate - [select for diffs], Fri May 7 00:04:40 2004 UTC (19 years, 11 months ago) by ross
Branch: MAIN
Changes since 1.34: +9 -9 lines
Diff to previous 1.34 (colored) to selected 1.21 (colored)

Simplify build, no functional changes.

Instead of adding MAKE_BOOTSTRAP for hosted environments, i.e., when
you want things simple, instead add MAKE_NATIVE to get those hugely
important features like __RCSID().

It's now possible to build make on some hosts with: cc *.c */*.c

Revision 1.34 / (download) - annotate - [select for diffs], Wed Jul 16 07:11:29 2003 UTC (20 years, 9 months ago) by itojun
Branch: MAIN
CVS Tags: netbsd-2-0-base
Branch point for: netbsd-2-0
Changes since 1.33: +9 -9 lines
Diff to previous 1.33 (colored) to selected 1.21 (colored)

we can't use snprintf here, as sizeof(pathname) is unknown

Revision 1.33 / (download) - annotate - [select for diffs], Sun Sep 22 01:19:08 2002 UTC (21 years, 7 months ago) by lukem
Branch: MAIN
CVS Tags: fvdl_fs64_base
Changes since 1.32: +7 -7 lines
Diff to previous 1.32 (colored) to selected 1.21 (colored)

HP/UX fixes from Giles Lean:
- consistently support __hpux (which the HP compilers define) as well
  as __hpux__ (not sure which compilers set this, but retained anyway)
- fix a typo in the definition of signal().  arguably the codebase should
  just be converted to sigaction()...

Revision 1.32 / (download) - annotate - [select for diffs], Sat Jun 15 18:24:58 2002 UTC (21 years, 10 months ago) by wiz
Branch: MAIN
Changes since 1.31: +23 -70 lines
Diff to previous 1.31 (colored) to selected 1.21 (colored)

Remove !__STDC__ stuff, de-__P(), ANSIfy, and de-register.

Revision 1.31 / (download) - annotate - [select for diffs], Tue Mar 12 20:15:15 2002 UTC (22 years, 1 month 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.30: +7 -3 lines
Diff to previous 1.30 (colored) to selected 1.21 (colored)

PR/15888: Jarkko Teppo: Problems building on HP/UX
1. Compensate for h-pox assert brain damage where it gets confused by the
   string in: assert(!memcmp(foo, "in", 2)); I miss the h-pox broken compiler,
   I had not had to work around it for years.
2. Oh, finally h-pox has random() and utimes(). We don't need our own anymore.

Revision 1.30 / (download) - annotate - [select for diffs], Sat Mar 2 03:56:02 2002 UTC (22 years, 1 month ago) by tv
Branch: MAIN
Changes since 1.29: +4 -3 lines
Diff to previous 1.29 (colored) to selected 1.21 (colored)

Add <errno.h> to list of includes, from <imago@13thmonkey.org>,
in PR toolchain/15386.

Revision 1.29 / (download) - annotate - [select for diffs], Sun Jan 27 01:50:55 2002 UTC (22 years, 2 months ago) by reinoud
Branch: MAIN
Changes since 1.28: +4 -4 lines
Diff to previous 1.28 (colored) to selected 1.21 (colored)

Fix major bug in make(1) ... due to shadowing of the dotLast path used for
the .DOTLAST primitive by a boolean variable with the same name, this whole
mechanism was broken ... it doesn't save much stat calls but it was wrong.

Thanks to Jason Thorpe for the other shadow-variable fixing patches he
made.

Revision 1.28 / (download) - annotate - [select for diffs], Fri Jan 25 17:51:32 2002 UTC (22 years, 2 months ago) by tv
Branch: MAIN
Changes since 1.27: +8 -17 lines
Diff to previous 1.27 (colored) to selected 1.21 (colored)

Make util.c replacement functions use autoconf conditionals to probe
what is Really available in the host OS.

Revision 1.27 / (download) - annotate - [select for diffs], Tue Dec 11 20:37:24 2001 UTC (22 years, 4 months ago) by tv
Branch: MAIN
Changes since 1.26: +5 -4 lines
Diff to previous 1.26 (colored) to selected 1.21 (colored)

Add __CYGWIN__ to list of exceptions from homegrown strftime().

(XXX - This should be an inclusive, not exclusive, list.  Later, this
should be autoconfiscated, but keep the internal implementation, since
src/tools/compat isn't necessarily available for use at make's build time.)

Revision 1.26 / (download) - annotate - [select for diffs], Thu Aug 3 15:53:24 2000 UTC (23 years, 8 months ago) by christos
Branch: MAIN
Changes since 1.25: +72 -76 lines
Diff to previous 1.25 (colored) to selected 1.21 (colored)

PR/10714: SUNAGAWA Keiki: Add newer hpux support, but without removing the
old hpux support.

Revision 1.25 / (download) - annotate - [select for diffs], Thu May 4 18:29:53 2000 UTC (23 years, 11 months ago) by drochner
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.24: +8 -5 lines
Diff to previous 1.24 (colored) to selected 1.21 (colored)

support OSF/1

Revision 1.24 / (download) - annotate - [select for diffs], Thu Jan 6 22:23:20 2000 UTC (24 years, 3 months ago) by wrstuden
Branch: MAIN
Changes since 1.23: +5 -4 lines
Diff to previous 1.23 (colored) to selected 1.21 (colored)

Add a few little changes needed to get this to compile on IRIX 6.4.

Revision 1.23 / (download) - annotate - [select for diffs], Sat Sep 4 04:21:28 1999 UTC (24 years, 7 months ago) by christos
Branch: MAIN
CVS Tags: wrstuden-devbsize-base, wrstuden-devbsize-19991221, wrstuden-devbsize, comdex-fall-1999-base, comdex-fall-1999
Changes since 1.22: +13 -11 lines
Diff to previous 1.22 (colored) to selected 1.21 (colored)

PR/8259: Chris Demetriou: Fix stack overflow bugs exposed by the glibc-2.1.1
Makefile. Use snprintf everywhere.

Revision 1.22 / (download) - annotate - [select for diffs], Fri Aug 27 00:47:25 1999 UTC (24 years, 7 months ago) by simonb
Branch: MAIN
Changes since 1.21: +5 -4 lines
Diff to previous 1.21 (colored)

Don't need strftime() on Ultrix either.

Revision 1.21 / (download) - annotate - [selected], Tue Jun 29 07:44:21 1999 UTC (24 years, 9 months ago) by christos
Branch: MAIN
Changes since 1.20: +5 -5 lines
Diff to previous 1.20 (colored)

apply solaris fixes

Revision 1.20 / (download) - annotate - [select for diffs], Fri Mar 19 16:11:02 1999 UTC (25 years, 1 month ago) by christos
Branch: MAIN
CVS Tags: netbsd-1-4-base, netbsd-1-4-RELEASE, netbsd-1-4-PATCH003, netbsd-1-4-PATCH002, netbsd-1-4-PATCH001, netbsd-1-4
Changes since 1.19: +5 -6 lines
Diff to previous 1.19 (colored) to selected 1.21 (colored)

use emalloc() instead of malloc()

Revision 1.19 / (download) - annotate - [select for diffs], Fri Nov 6 23:31:09 1998 UTC (25 years, 5 months ago) by christos
Branch: MAIN
Changes since 1.18: +8 -8 lines
Diff to previous 1.18 (colored) to selected 1.21 (colored)

- full prototypes
- more conservative printf
- char -> unsigned char

Revision 1.18 / (download) - annotate - [select for diffs], Sun Oct 18 14:24:16 1998 UTC (25 years, 6 months ago) by christos
Branch: MAIN
Changes since 1.17: +6 -4 lines
Diff to previous 1.17 (colored) to selected 1.21 (colored)

strftime is not needed for svr4 machines; also fix the prototype footprint.

Revision 1.17 / (download) - annotate - [select for diffs], Fri Sep 18 20:15:36 1998 UTC (25 years, 7 months ago) by christos
Branch: MAIN
Changes since 1.16: +4 -4 lines
Diff to previous 1.16 (colored) to selected 1.21 (colored)

PR/6174: ITOH Yasufumi: Purify bug and a compile error in utility code.

Revision 1.16 / (download) - annotate - [select for diffs], Wed Feb 4 14:47:40 1998 UTC (26 years, 2 months ago) by christos
Branch: MAIN
Changes since 1.15: +66 -3 lines
Diff to previous 1.15 (colored) to selected 1.21 (colored)

Y2K fixes: use strftime(), and add a fake strftime() for systems that do
not have it.

Revision 1.15 / (download) - annotate - [select for diffs], Sun Sep 28 03:31:13 1997 UTC (26 years, 6 months ago) by lukem
Branch: MAIN
CVS Tags: netbsd-1-3-base, netbsd-1-3-RELEASE, netbsd-1-3-PATCH001, netbsd-1-3-BETA
Branch point for: netbsd-1-3
Changes since 1.14: +6 -2 lines
Diff to previous 1.14 (colored) to selected 1.21 (colored)

wrap #include <sys/cdefs.h>, __RCSID(...) stuff in #ifndef MAKE_BOOTSTRAP

Revision 1.14 / (download) - annotate - [select for diffs], Fri Jul 11 20:17:38 1997 UTC (26 years, 9 months ago) by christos
Branch: MAIN
Changes since 1.13: +3 -3 lines
Diff to previous 1.13 (colored) to selected 1.21 (colored)

#if __STDC__ -> #ifdef __STDC__

Revision 1.13 / (download) - annotate - [select for diffs], Fri Jul 11 20:16:01 1997 UTC (26 years, 9 months ago) by christos
Branch: MAIN
Changes since 1.12: +3 -3 lines
Diff to previous 1.12 (colored) to selected 1.21 (colored)

sprintf -> vsprintf

Revision 1.12 / (download) - annotate - [select for diffs], Tue Jul 1 21:17:44 1997 UTC (26 years, 9 months ago) by christos
Branch: MAIN
Changes since 1.11: +3 -2 lines
Diff to previous 1.11 (colored) to selected 1.21 (colored)

Add WARNS=1
RCSID police

Revision 1.11 / (download) - annotate - [select for diffs], Sat Jun 7 16:42:31 1997 UTC (26 years, 10 months ago) by christos
Branch: MAIN
Changes since 1.10: +9 -2 lines
Diff to previous 1.10 (colored) to selected 1.21 (colored)

Apparently, using _doprnt(_IOREAD) to emulate vsnprintf() on SVR4 *sometimes*
core-dumps; use sprintf()+strlen() for now.

Revision 1.10 / (download) - annotate - [select for diffs], Tue Dec 31 17:56:04 1996 UTC (27 years, 3 months ago) by christos
Branch: MAIN
Changes since 1.9: +70 -2 lines
Diff to previous 1.9 (colored) to selected 1.21 (colored)

implement snprintf() and vsnprintf() for non BSD4_4 systems.

Revision 1.9 / (download) - annotate - [select for diffs], Mon Nov 11 15:16:10 1996 UTC (27 years, 5 months ago) by christos
Branch: MAIN
Changes since 1.8: +3 -2 lines
Diff to previous 1.8 (colored) to selected 1.21 (colored)

Fir PR/2930: declare missing variable.

Revision 1.8 / (download) - annotate - [select for diffs], Wed Nov 6 17:59:28 1996 UTC (27 years, 5 months ago) by christos
Branch: MAIN
Changes since 1.7: +13 -13 lines
Diff to previous 1.7 (colored) to selected 1.21 (colored)

- Merge in FreeBSD and Lite2 changes.
- Fix bug where a non-archive target with a .a suffix would always
  be considered to be out of date, since it does not have a TOC.

Revision 1.7 / (download) - annotate - [select for diffs], Fri Aug 30 17:59:44 1996 UTC (27 years, 7 months ago) by thorpej
Branch: MAIN
Changes since 1.6: +2 -3 lines
Diff to previous 1.6 (colored) to selected 1.21 (colored)

Tidy up some RCS ids a bit.

Revision 1.6 / (download) - annotate - [select for diffs], Tue Aug 13 16:41:15 1996 UTC (27 years, 8 months ago) by christos
Branch: MAIN
Changes since 1.5: +28 -3 lines
Diff to previous 1.5 (colored) to selected 1.21 (colored)

Add strdup() since ultrix is missing it.
From Larry Schwimmer <rosebud@cyclone.Stanford.EDU>

Revision 1.5 / (download) - annotate - [select for diffs], Wed Nov 22 17:40:17 1995 UTC (28 years, 5 months ago) by christos
Branch: MAIN
CVS Tags: netbsd-1-2-base, netbsd-1-2-RELEASE, netbsd-1-2-BETA
Branch point for: netbsd-1-2
Changes since 1.4: +25 -2 lines
Diff to previous 1.4 (colored) to selected 1.21 (colored)

Updates for POSIX/SVR4 compiling:

arch.c:		 Don't require ranlib stuff. Not everybody has it.
dir.c:		 SunOS-4 != Solaris; change #ifdef sun to #if sun && !__svr4__
job.c, compat.c: Don't use 'union wait', use int and the W*() macros.
main.c: 	 Check for uname() == -1; some unames return > 0...
util.c, job.c:	 Add signal() with BSD semantics for svr4, don't use bsd
		 sigmask and friends.

Revision 1.4 / (download) - annotate - [select for diffs], Wed Jun 14 15:20:11 1995 UTC (28 years, 10 months ago) by christos
Branch: MAIN
CVS Tags: netbsd-1-1-base, netbsd-1-1-RELEASE, netbsd-1-1-PATCH001, netbsd-1-1
Changes since 1.3: +7 -1 lines
Diff to previous 1.3 (colored) to selected 1.21 (colored)

- $NetBSD$ rcsids
- Fixed so that .[A-Z]* targets that do not match keywords are ignored as
  Posix mandates
- Added .PHONY target keyword

Revision 1.3 / (download) - annotate - [select for diffs], Fri Sep 23 09:33:23 1994 UTC (29 years, 7 months ago) by mycroft
Branch: MAIN
Changes since 1.2: +1 -28 lines
Diff to previous 1.2 (colored) to selected 1.21 (colored)

Use getcwd(3), not getwd(3), and remove some old, unused compatibility code.

Revision 1.2 / (download) - annotate - [select for diffs], Mon May 9 06:36:22 1994 UTC (29 years, 11 months ago) by glass
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
Changes since 1.1: +2 -2 lines
Diff to previous 1.1 (colored) to selected 1.21 (colored)

bootstrap improvements

Revision 1.1 / (download) - annotate - [select for diffs], Sat Mar 5 00:35:16 1994 UTC (30 years, 1 month ago) by cgd
Branch: MAIN
Diff to selected 1.21 (colored)

fixes/improvements from Christos Zoulas <christos@deshaw.com>.

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>