summaryrefslogtreecommitdiffstats
path: root/usr.bin/make/job.c
Commit message (Collapse)AuthorAgeFilesLines
* Bootstrapping aid from pre-kqueue(2) systems, e.g. 4.0-RELEASE.ru2002-12-011-0/+2
| | | | | Submitted by: jmallett Approved by: re (bmah)
* Split var.c into var.c and var_modify.c and move all the modification funcsjmallett2002-10-281-2/+2
| | | | | | | | to var_modify.c, for readability. constify some low hanging fruit (string manipulation functions) and the upper layers appropriately. No longer use the private strstr(3) implementation, while changing string code. Tested by: lots of successful make buildworld.
* Remove efree(), it isn't used consistently enough to even pretend that itjmallett2002-10-231-1/+1
| | | | | | 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.
* Convert make(1) to use ANSI style function declarations. Variablejmallett2002-10-091-84/+36
| | | | | | | | | | | 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.
* Give make(1) the ability to use KQUEUE to wait for worker processesphk2002-10-041-1/+52
| | | | | | | | | instead of polling for them. Unfortunately we cannot enable it yet because it panics the kernel somewhere in kqueue. Submitted by: Stefan Farfeleder <e0026813@stud3.tuwien.ac.at>
* Fix spurious three-space indentation in a four-space indentation file.jmallett2002-09-291-2/+2
|
* Add empty default cases where they should be, remove non-local execution stuffjmallett2002-09-281-0/+2
| | | | | | | | | | in compat.c which doesn't even have preprocessor-conditional-hidden support code, and add a debugging statement where we might end up with a nil list somehow, but where I doubt it. First confirmed userland kill for Flexelint. Sponsored by: Bright Path Solutions
* Make the DEBUGF() macro portable by (ugh) adding a Debug() function, whichjmallett2002-09-181-37/+37
| | | | | 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.
* Move common use of if (DEBUG(FOO)) printf... to DEBUGF(FOO, ...), usingjmallett2002-09-171-158/+42
| | | | | | | | | 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.
* #define<space> -> #define<tab>jmallett2002-09-171-13/+13
|
* Diff reduction for great justice against NetBSD, cast to unsigned char whenjmallett2002-06-201-1/+1
| | | | passing an argument to isspace(3).
* The error functions take constant pointers to strings for their format.jmallett2002-06-121-1/+1
|
* Back out the ``run shell from $PATH'' change; this was an overkillru2002-05-241-5/+1
| | | | | | and is insecure. Requested by: bde
* Do not run shell from /bin, run it from $PATH.ru2002-05-221-1/+5
| | | | Bump MAKE_VERSION to 5200205221.
* Prefer BSDmakefile over makefile and Makefile.obrien2002-04-131-4/+4
| | | | | Submitted by: jmallett Obtained from: OpenBSD
* Fix copyrights, and undo SCS ID damage.obrien2002-04-131-1/+2
|
* Update SCM ID method.obrien2002-04-131-3/+1
|
* De'register.obrien2002-04-131-18/+18
|
* Check to make sure fdopen() succeeds in make(1).obrien2002-04-131-0/+2
| | | | | Submitted by: jmallett Inspired by: NetBSD
* Reorder #include. Cast arg #2 of lseek to an off_t when constant. No need tocharnier2002-04-121-8/+6
| | | | | | | test if failsafe memory allocation fails, it can't. perror -> warn. Use failsafe memory allocation provided. Use .Pa and .Ar. Uppercase (first letter) programname after dot.
* remove __Pimp2002-03-221-19/+19
|
* Use STD{ERR,IN,OUT}_FILENO instead of their numeric values. Thesheldonh2001-07-261-1/+2
| | | | | | | definitions are more readable, and it's possible that they're more portable to pathalogical platforms. Submitted by: David Hill <david@phobia.ms>
* Preceed/preceeding are not english words. Use precede and preceding.asmodai2001-02-181-1/+1
|
* There's also no point in #typedef'ing void/char pointers. Accordingly,will2000-12-021-43/+43
| | | | | | rip out ClientData/Address pointers and use standard types. Obtained from: OpenBSD
* There's no reason to use fancy forms of NULL. Replace all instanceswill2000-12-021-17/+17
| | | | | | of NIL, NILLST, NILLGNODE, etc. with NULL. Obtained from: OpenBSD
* Unlink the temporary file immediately so it is removed on exit.kris2000-11-191-19/+15
| | | | Obtained from: OpenBSD
* Remove gratuitous free() call when we use special .SHELL target.ru2000-08-181-5/+0
|
* Allow use of the ${MAKE_SHELL} variable to specify alternate shells forgreen2000-08-161-0/+10
| | | | | make(1) to use. Setting it to "sh" and "ksh" are the only values which work right ATM; I wouldn't expect "csh" to get you far ;)
* Use __RCSID()wsanchez2000-07-091-6/+4
|
* Initialize variablewsanchez2000-07-091-1/+1
|
* Add loud debugging facility (-dl option) which allows programmers/developerswill2000-05-141-1/+1
| | | | | | | | | | | | to override @-prefixed commands in Makefiles. It is especially useful for debugging ports and/or complex Makefiles in such a manner that is basically a last resort, but is quite effective if the output is well-handled. I'll update the manpage after dinner. ;-) Better patch submitted by: steve Reviewed by: phk, steve, chuckr, obrien, Lyndon Nerenberg <lyndon@orthanc.ab.ca>
* Create tempfiles securely.kris2000-01-171-23/+14
| | | | Reviewed by: imp
* Unduplicate IDs from comments, do $Id -> $FreeBSD$ (submitted-by: bde)hoek1999-09-111-3/+1
|
* $Id$ -> $FreeBSD$peter1999-08-281-1/+1
|
* Fix a temp file race occurring only when -j is used.hoek1999-08-221-12/+14
| | | | | Noticed by: ru Obtained from: OpenBSD
* Merge style- and trivial- only changes from OpenBSD (dated 1999/07/29-19:55+1).hoek1999-08-171-5/+9
| | | | Obtained from: OpenBSD, sometimes indirected from NetBSD; myself
* Remove couple of 'extern int errno'. (They turned to something funny whendt1999-02-141-4/+1
| | | | <errno.h> included).
* Added a -v (verbose) option and hid multi-job file banner generationdg1998-11-141-2/+2
| | | | behind it.
* When exiting on SIGINT, exit with signal statuscracauer1998-08-241-3/+2
|
* Don't forget to pretend that `make -n -jN' makes the targets that itbde1998-06-041-1/+2
| | | | | | | | | | | | | | | | | | | | | says it pretends to make. This bug was apparently harmless except for normal cases involving .ORDER statements when it made debugging of -jN using -n very confusing. E.g., for: .ORDER: beforedepend .depend depend: beforedepend .depend where beforedepend depends on something so that it is not initially up to date, `make [-n] -j2 depend' causes `make' to wait for itself to make beforedepend. This works fine without -n. The job to make beforedepend has normally been started, and beforedepend is marked as made when the job completes. However, with -n, the pseudo-job for making beforedepend has normally completed, and in any case there was no chance of beforedepend being marked as made. `make' actually exited almost immediately with status 0 instead of waiting forever.
* Use historically correct error message in some cases, optionally.imp1998-04-281-2/+11
|
* Revert $FreeBSD$ to $Id$peter1997-02-221-1/+1
|
* Make the long-awaited change from $Id$ to $FreeBSD$jkh1997-01-141-1/+1
| | | | | | | | 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.
* O' to be bitten by CVS. Cleanup after importsteve1996-10-081-0/+2
| | | | | | of Christos' version of make(1) and add Id's. Set straight by: Bruce Evans and Peter Wemm :)
* Merge in NetBSD's changes to make(1). Changes include:steve1996-10-061-538/+975
| | | | | | | | | | | | | | | | - 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
* Remove trailing whitespace.rgrimes1995-05-301-72/+72
|
* Bring in a number of changes from NetBSD's make, fixing quite a fewjkh1995-01-231-41/+48
| | | | | | | | | | | | 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)
* BSD 4.4 Lite Usr.bin Sourcesrgrimes1994-05-271-0/+2661
OpenPOWER on IntegriCloud