#
256281 |
|
10-Oct-2013 |
gjb |
Copy head (r256279) to stable/10 as part of the 10.0-RELEASE cycle.
Approved by: re (implicit) Sponsored by: The FreeBSD Foundation |
#
228992 |
|
30-Dec-2011 |
uqs |
Spelling fixes for usr.bin/
|
#
200630 |
|
17-Dec-2009 |
stas |
- Partially revert r200417. config.h brings several definitions, that appears to be actually used. Without config.h included cross-build of world failed (at least for ARM).
|
#
200417 |
|
11-Dec-2009 |
delphij |
Remove unnecessary includes.
Reviewed by: rodrigc
|
#
199419 |
|
17-Nov-2009 |
obrien |
Catch up with r144020's /Dir_FindFile/Path_FindFile/
|
#
194797 |
|
23-Jun-2009 |
delphij |
Use strlcpy() instead of manually setting the last byte of the array to \0.
|
#
176799 |
|
04-Mar-2008 |
imp |
<limits.h> is necessary for using INT_MIN, so included it here explicitly rather than relying on name space pollution to pull it in for us.
NB: The usage of INT_MIN is somewhat bogus and suspect to my eye, but this commit doesn't address that issue.
|
#
146580 |
|
24-May-2005 |
harti |
Get rid of the third argument to Var_Value() the pointer it pointed to has always been set to NULL for some time now.
Obtained from: DragonFlyBSD
|
#
146577 |
|
24-May-2005 |
harti |
Fix a 64-bit warning by casting an int64_t to intmax_t and printing it with %jd.
|
#
146338 |
|
18-May-2005 |
harti |
Get rid of the ReturnStatus obscuration that was anyway used only in two places. While here don't bother returning anything from Lst_Replace - nobody ever checks the return code.
Suggested by: jmallet
|
#
146066 |
|
10-May-2005 |
harti |
Move the definitions of the OP_* constants from make.h into GNode.h where they actually belong to. Move the definitions of the strings for special macros like "$*" from make.h to parse.h - they're used only in the parser.
Submitted by: Max Okumoto <okumoto@ucsd.edu> (7.211)
|
#
146027 |
|
09-May-2005 |
harti |
Split Var_Subst() into two functions: Var_SubstOnly() which substitutes only one variable and Var_Subst() which substitutes all. Split out the test whether a variable should not be expanded into match_var(). Make access to the input string consistently using str[]. Remove two unused functions: Var_GetTail() and Var_GetHead().
Patches: 7.184-7.189 Submitted by: Max Okumoto <okumoto@ucsd.edu>
|
#
144387 |
|
31-Mar-2005 |
harti |
Almost complete rewrite of the archive code (except for the Makefile parsing part). Archive handling was broken at least since the move from BSD ar/ranlib to GNU binutils because of the different archive format. This rewrite fixes this by making make to carry around the defines for all formats (it supports) so it can support all of them independent of the actually used one. The supported formats are: traditional BSD (this seems to come from V7 at least, short names only and __.SYMDEF), BSD4.4 (long names with #1/ and __.SYMDEF) and SysV (extra name table and //). The only format not supported are broken traditional archives where the member names are truncated to 15 characters.
Errors in the archive are not ignored anymore, but cause make to stop with an error message. The command line option -A causes these errors to become non-fatal. This is almost compatible with previous usage except for the error message printed in any case.
Use a type-safe intrusive list for the archive cache.
Reviewed by: Max Okumoto <okumoto@ucsd.edu> (without new error handling)
|
#
144020 |
|
23-Mar-2005 |
harti |
Make paths an explicite datatype instead of using the generic Lst. A Path is now a TAILQ of PathElements each of which just points to a reference counted directory. Rename all functions dealing with Paths from the Dir_ prefix to a Path_ prefix.
|
#
143975 |
|
22-Mar-2005 |
harti |
Remove the last two instances of Lst_Find() calls.
|
#
143959 |
|
22-Mar-2005 |
harti |
Simplify buffer access by using Buf_Data() and Buf_Peel() where appropriate.
Patch: 7.147-7.151
Submitted by: Max Okumoto <okumoto@ucsd.edu>
|
#
143657 |
|
15-Mar-2005 |
harti |
Ups. Revert the last commits. These have been committed by accident.
|
#
143656 |
|
15-Mar-2005 |
harti |
modifier_M: instead of going through the string twice to compute the size of the buffer we need, just allocate the possible maximum.
Patch: 7.117
Submitted by: Max Okumoto <okumoto@ucsd.edu>
|
#
143105 |
|
03-Mar-2005 |
harti |
Style: remove unneeded parantheses in conditionals.
|
#
143102 |
|
03-Mar-2005 |
harti |
Fix parsing of archives: in System V archive format the member names is terminated with a slash. Although we are not System V, ar has been configured to put that slash in. This format allows filenames with trailing spaces.
|
#
142937 |
|
01-Mar-2005 |
harti |
Make sure the length variable is initialized to 0 before passing it to Var_Parse().
Patch: 7.85
Submitted by: Max Okumoto <okumoto@ucsd.edu>
|
#
142457 |
|
25-Feb-2005 |
harti |
Change the return value of Var_Subst to return a Buffer instead of a char *.
Patch: 7.49
Submitted by: Max Okumoto <okumoto@ucsd.edu>
|
#
142297 |
|
23-Feb-2005 |
harti |
Fix the indendation of some multi-line comments.
Noted by: Max Okumoto <okumoto@ucsd.edu>
|
#
142173 |
|
21-Feb-2005 |
harti |
Style: fix indendation to be 8 and use tabulators. Fix lines longer than 80 characters and slightly reorder functions to get rid of static prototypes.
|
#
142165 |
|
21-Feb-2005 |
harti |
Fix a bug in handling archive members: when a member was not found when looking into an already hashed archive, the code tried to use the name shortened to the maximum length allowed for the archive. Unfortunately it passed a buffer of junk to the hashing routine when the name actually wasn't too long. Theoretically this could lead to a false positive.
|
#
141648 |
|
10-Feb-2005 |
harti |
Fix spacing by converting mixes of space and tab to tab. Also add a number of empty lines in appropriate places.
Submitted by: Max Okumoto <okumoto@ucsd.edu>
|
#
141270 |
|
04-Feb-2005 |
harti |
General whitespace cleanup: remove mixes of tabs and spaces, remove space after function names, remove spaces on emtpy lines.
Submitted by: Max Okumoto <okumoto@ucsd.edu>
|
#
141259 |
|
04-Feb-2005 |
harti |
Replace space, tab mixes by tabs.
Submitted by: Max Okumoto <okumoto@ucsd.edu>
|
#
141252 |
|
04-Feb-2005 |
harti |
Some more easy constification.
Submitted by: Max Okumoto <okumoto@ucsd.edu>
|
#
141104 |
|
01-Feb-2005 |
harti |
Clean up include files and file including. Split nonints.h into pieces that get included just where they are needed. All headers include the headers that they need to compile (just with an empty .c file). Sort includes alphabetically where apropriate and fix some duplicate commenting for struct Job, struct GNode and struct Shell by removing one version and inlining the comments into the structure declaration (the comments have been somewhat outdated).
This patch does not contain functional changes (checked with md5).
Submitted by: Max Okumoto <okumoto@ucsd.edu>
|
#
138972 |
|
17-Dec-2004 |
harti |
Remove all the cleanup functions. There is no reason to free memory just before exiting (especially given the number of memory leaks) - it just costs time.
|
#
138916 |
|
16-Dec-2004 |
harti |
Instead of dynamically allocating list heads allocated them statically now that their size is only two pointers. This eliminates a lot of calls to Lst_Init and from there to malloc together with many calls to Lst_Destroy (in places where the list is obviously empty). This also reduces the chance to leave a list uninitilized so we can remove more NULL pointer checks and probably eliminates a couple of memory leaks.
|
#
138564 |
|
08-Dec-2004 |
harti |
Get rid of the sequential access feature of the lists. This was used only in a couple of places and all of them except for one were easily converted to use Lst_First/Lst_Succ. The one place is compatibility mode in job.c where the it was used to advance to the next command on each invocation of JobStart. For this case add a pointer to the node to hold the currently executed command.
|
#
138561 |
|
08-Dec-2004 |
harti |
Constify the arguments to the list compare function. This temporarily requires to make a copy of the filename in ReadMakefile and to duplicate two small functions in suff.c. This hopefully will go away when everything is constified.
Submitted by: Max Okumoto <okumoto@ucsd.edu> (partly)
|
#
138512 |
|
07-Dec-2004 |
harti |
Typedefs of pointers to structs are evil. Make Lst and LstNode typedef of the structs itself not of pointers to them. This will simplify constification.
Checked by: diff on the object files
|
#
138510 |
|
07-Dec-2004 |
harti |
Make needs no circular lists so remove them from the list code.
|
#
138346 |
|
03-Dec-2004 |
harti |
Fix breakage introduced on 64-bit platforms with my last commit. Need to change to size_t in a couple of other places too.
|
#
138264 |
|
01-Dec-2004 |
harti |
Style: remove a lot of unnecessary casts, add some and spell the null pointer constant as NULL.
Checked by: diff -r on the object files before and after
|
#
138232 |
|
30-Nov-2004 |
harti |
Stylification: missing spaces, extra space after function names, casts and the sizeof operator, missing empty lines, void casts, extra empty lines.
Checked by: diff on make *.o lst.lib/*.o
Submitted by: Max Okumoto <okumoto@soe.ucsd.edu> (partly)
|
#
138196 |
|
29-Nov-2004 |
harti |
Fix a bug that would truncate the full name of an archive member if the length of happens to be larger than MAXPATHLEN.
PR: bin/74368 Submitted by: Max Okumoto <okumoto@ucsd.edu> Obtained from: DragonFlyBSD
|
#
105826 |
|
23-Oct-2002 |
jmallett |
Remove efree(), it isn't used consistently enough to even pretend that it might help on the systems it could possibly be used as a bandaid for. In fact, the only thing it's useful for is instrumenting free(3) calls, and in that capacity, it's better served as a local patch, than a public wrapper.
|
#
104696 |
|
09-Oct-2002 |
jmallett |
Convert make(1) to use ANSI style function declarations. Variable documentation already adequatedly existed in the description in most cases. Where it did not, it was added. If no documentation existed beforehand, then none was added. Some unused dummies for use in the traversal functions were marked as __unused during the conversion. Occasionally, local style fixes were applied to lines already being modified or influenced.
Now make(1) should always build with WARNS=3.
|
#
103545 |
|
18-Sep-2002 |
jmallett |
Make the DEBUGF() macro portable by (ugh) adding a Debug() function, which is merely printf() but to stderr. This takes care of the caveat which lead to the use of a vararg macro -- getting everything to stderr.
|
#
103508 |
|
17-Sep-2002 |
jmallett |
Move common use of if (DEBUG(FOO)) printf... to DEBUGF(FOO, ...), using variable length arguments to a macro. Bump version as this makes DEBUG statements *always* go to stderr rather than sometimes stdout. There are a few stragglers, which I will take care of as soon as I can. Mostly these relate to the need-for-death-of some of the remote job code.
Nearby stylistic nits and XXX added/fixed where appropriate.
|
#
103503 |
|
17-Sep-2002 |
jmallett |
#define<space> -> #define<tab>
|
#
100036 |
|
15-Jul-2002 |
jmallett |
Use %zu to print size_t.
|
#
98501 |
|
20-Jun-2002 |
jmallett |
Expand a buffer to reduce diffs to NetBSD.
Obtained from: NetBSD
|
#
98500 |
|
20-Jun-2002 |
jmallett |
Diff reduction for great justice against NetBSD, cast to unsigned char when passing an argument to isspace(3).
|
#
98138 |
|
12-Jun-2002 |
jmallett |
String lengths and sizeof()s are size_t not int. Mark an unused parameter of ReadMakefile as __unused, it's there because this function is used by the abstracted list interface which normally deals with item handlers which take two arguments. Add a missing static prototype.
|
#
94587 |
|
13-Apr-2002 |
obrien |
Update SCM ID method.
|
#
94584 |
|
13-Apr-2002 |
obrien |
De'register.
|
#
92921 |
|
21-Mar-2002 |
imp |
remove __P
|
#
73262 |
|
01-Mar-2001 |
imp |
MAXPATHLEN includes the trailing NUL.
Correct array sizes to reflect this. Correct NUL termination after strncpy.
# Didn't to strncpy -> strlcpy change.
|
#
70080 |
|
16-Dec-2000 |
des |
Fix a bug introduced in rev. 1.17: initialize variables before use, not after.
Rev. 1.17 was "Obtained from NetBSD", but is significantly different from the equivalent NetBSD revision (rev. 1.30), which does not have this bug.
|
#
69531 |
|
02-Dec-2000 |
will |
There's also no point in #typedef'ing void/char pointers. Accordingly, rip out ClientData/Address pointers and use standard types.
Obtained from: OpenBSD
|
#
69527 |
|
02-Dec-2000 |
will |
There's no reason to use fancy forms of NULL. Replace all instances of NIL, NILLST, NILLGNODE, etc. with NULL.
Obtained from: OpenBSD
|
#
69390 |
|
30-Nov-2000 |
will |
Format string paranoia. This should avoid potential buffer overflows from user input (in its ever-broadening definition).
Obtained from: NetBSD
|
#
62833 |
|
09-Jul-2000 |
wsanchez |
Use __RCSID()
|
#
52109 |
|
10-Oct-1999 |
julian |
Fix the following: It appears that make fails to read the global symbol table of the archive file, making it think that the library needs to be rebuilt.
fix supplied in PR:
PR: bin/14167 Submitted by: Sebastian Lederer <lederer@bonn-online.com> Reviewed by: gallatin@FreeBSD.ORG
|
#
51150 |
|
11-Sep-1999 |
hoek |
Unduplicate IDs from comments, do $Id -> $FreeBSD$ (submitted-by: bde)
|
#
51132 |
|
10-Sep-1999 |
julian |
Allow 'make' to check out elements within archive libraries.
"Make no longer properly parses archive files, so using archive members as make targets, as described in PSD:12 section 4.2, does not work."
Really should be merged into 3.3 before we ship if we can.. it's a trivial fix.
PR: bin/13039, bin/10274 Submitted by: Mikko Tyolajarvi mikko@dynas.se
|
#
50477 |
|
27-Aug-1999 |
peter |
$Id$ -> $FreeBSD$
|
#
49938 |
|
16-Aug-1999 |
hoek |
Merge style- and trivial- only changes from OpenBSD (dated 1999/07/29-19:55+1).
Obtained from: OpenBSD, sometimes indirected from NetBSD; myself
|
#
40392 |
|
15-Oct-1998 |
jdp |
Fix make world breakage from last commit.
|
#
40388 |
|
15-Oct-1998 |
jkoshy |
Fix a serious bug in make(1)'s handling of archive libraries.
This case did not need to be tested when RANLIBMAG was defined (as when in an `aout' environment) because Arch_StatMember() treated the two cases of the library not being present and a member of the library not being present the same way, forcing a rebuild of the library. Since in the ELF environment we don't look inside archive libraries we now need to check if the archive library is present in order to determine its `out-of-date'-ness.
(I hope I've been able to meet the Oct 15th freeze).
Reported-by: Steve Price (and a few others whom I've forgotten, sorry)
|
#
23006 |
|
22-Feb-1997 |
peter |
Revert $FreeBSD$ to $Id$
|
#
21673 |
|
14-Jan-1997 |
jkh |
Make the long-awaited change from $Id$ to $FreeBSD$
This will make a number of things easier in the future, as well as (finally!) avoiding the Id-smashing problem which has plagued developers for so long.
Boy, I'm glad we're not using sup anymore. This update would have been insane otherwise.
|
#
18804 |
|
08-Oct-1996 |
steve |
O' to be bitten by CVS. Cleanup after import of Christos' version of make(1) and add Id's.
Set straight by: Bruce Evans and Peter Wemm :)
|
#
18730 |
|
06-Oct-1996 |
steve |
Merge in NetBSD's changes to make(1). Changes include:
- Add the .PHONY, .PARALLEL, and .WAIT directives - Added the -B and -m commandline flags - misc. man page cleanups - numerous job-related enhancements - removed unused header file (bit.h) - add util.c for functions not found in other envs. - and a few coordinated whitespace changes
Special thanks to Christos Zoulas <christos@netbsd.org> for help in the merge. A 'diff -ur' between Net and FreeBSD now only contains sccsid-related diffs. :)
Obtained from: NetBSD, christos@netbsd.org, and me
|
#
17142 |
|
12-Jul-1996 |
jkh |
General -Wall warning cleanup, part I. Submitted-By: Kent Vander Velden <graphix@iastate.edu>
|
#
8874 |
|
30-May-1995 |
rgrimes |
Remove trailing whitespace.
|
#
5814 |
|
23-Jan-1995 |
jkh |
Bring in a number of changes from NetBSD's make, fixing quite a few problems in the process:
1. Quoting should work properly now. In particular, Chet's reported bash make problem has gone away. 2. A lot of memory that just wasn't being free'd after use is now freed. This should cause make to take up a LOT less memory when dealing with archive targets. 3. Give proper credit to Adam de Boor in a number of files. Obtained from: NetBSD (and Adam de Boor)
|
#
1591 |
|
27-May-1994 |
rgrimes |
This commit was generated by cvs2svn to compensate for changes in r1590, which included commits to RCS files with non-trunk default branches.
|
#
1590 |
|
27-May-1994 |
rgrimes |
BSD 4.4 Lite Usr.bin Sources
|