summaryrefslogtreecommitdiff
path: root/usr.bin/make
AgeCommit message (Collapse)Author
2017-04-20use strtonum instead of strtoll to parse the argument to -jDavid Gwynne
ok deraadt@ benno@
2017-04-19spelling fixes from michael w. bombardieriJason McIntyre
2017-02-24add support for variables in the lhs of SYSV modifiers.Marc Espie
lack of support noted by naddy@ source, xenocara, and ports still build without a hitch. okay naddy@
2017-01-29obvious protection against null pointer, because it's quite possible for cgnMarc Espie
to not have a parent...
2017-01-25off-by-one, leading to segfaults. Trivial fix.Marc Espie
reported by jasper@
2017-01-21Dedup prototype for really_kill().Martin Natano
2017-01-21Use errno to make the debug message more descriptive.Martin Natano
ok deraadt
2017-01-21Stop calling out to sudo/doas to kill processes. Reliance on systemTheo de Raadt
configuration to perform a racy behaviour is not wise. ok natano
2017-01-01Hyphenate compound adjectives 'up-to-date', 'out-of-date' and 'well-known'Theo Buehler
if they precede the noun and omit hyphens otherwise. ok tj
2016-12-28fix the remaining cases of .Xr with only one argumentIngo Schwarze
2016-10-23zap trailing whitespace;Jason McIntyre
2016-10-23add !!=Marc Espie
feedback and okay millert@
2016-10-21small obvious cleanups:Marc Espie
- remove a lot of unnecessary casts - zap extra param that's no longer needed - add proper prototype and make function static okay natano@
2016-10-14Implement the ${<D} and ${<F} variables, as documented in the manual.Martin Natano
They are equivalent to ${<:H} and ${<:T} repectively, however the former variants are more portable, as they are understood by GNU, FreeBSD and NetBSD make too. absence of those variables reported by Dario Niedermann <dnied at tiscali.it> ok millert espie
2016-10-12make -t uses the "fattr" syscall utimes(2) for its touch(1) built-in.Theo Buehler
Thus, add "fattr" to the list of pledge promises. ok millert, deraadt
2016-10-02Avoid two printf("%s", NULL) with 'make -d v'.Theo Buehler
improvements & ok espie, earlier version ok deraadt
2016-05-13have sinclude/include be more compatible with sysv, handle list of filesMarc Espie
small improvement and okay millert@
2016-03-28remove unused variableCharles Longeau
ok espie@
2016-03-05safer pattern: if you're interested in one child, get THAT one, don't stealMarc Espie
children from other parts of the program. In that case, there's no reason to try to catch other process. 1/ they don't exist 2/ if they did, stealing their status would be bad. okay deraadt@
2016-01-04Use err(3) instead of various handrolled combinations of perror(3) andtb
fprintf(stderr, ...) with strerror(3) and exit(3). Make sure the exit status is 2 if an error occurred. Prompted by gsoares@'s and jsg@'s audit of exit statuses after failure of pledge(2). ok gsoares@
2015-12-29fix exit status on pledge(2) failure.Gleydson Soares
OK tb@ jsg@
2015-12-22in case we have a parse error, dispell the target list early to avoidMarc Espie
various problems. Problem noticed by jsg@, deeper patch than he suggested okay jsg@ and tb@.
2015-12-11Use %zu to print size_t's rather than casting to u_long.mmcc
ok espie@
2015-12-05yet another feof check, just to be sure.Marc Espie
2015-11-29fix duplicate targets in target list for good: split previous groupling fixMarc Espie
in two. Catch 22: we have to dedup targets very early so that commands get attached correctly, but we can't figure out the grouplings heuristics until we have all commands... ok millert@
2015-11-15unifdef MAKE_BOOTSTRAP now that Makefile.boot is gone.Daniel Dickman
ok espie@
2015-11-15exit needs stdlib, switch to "return 0" to fix.Daniel Dickman
ok espie
2015-11-06I was very optimistic in groupling creation. Turns out lists of targetsMarc Espie
can have duplicates, or overlap, or even be empty thanks to fnmatch. So use the big guns to build the circular list correctly, namely actual lists of targets that are made together will be registered in a hash first, then we recreate the full list from there. (merging lists is not an issue, since groupling links are only used to temporarily lock targets in parallel mode). Issue noticed by guenther@, okay guenther@
2015-10-14gc lst_ForEachNodeWhile, which isn't actually in use anywhereMarc Espie
2015-10-14make sure we use stdbool.hMarc Espie
Mostly diff by Daniel Dickman, who told me to commit in his stead, as he's tied up at work.
2015-10-09Change all tame callers to namechange to pledge(2).Theo de Raadt
2015-10-08tame "stdio rpath wpath cpath proc exec". make is a shell, and appearsTheo de Raadt
to only need these operations. Take note that "exec" is a 2-day old tame request, so do get a new kernel before you update or risk getting trapped.
2015-10-07Oops, not quite ready for tame() here. People need time to updateTheo de Raadt
their kernels, before it starts using the new "exec" primitive. HINT: everyone, update your kernels, tame is coming to make really soon.
2015-10-07*** empty log message ***Theo de Raadt
2015-09-27Mark all the error printing functions as printf-like; fix two formatPhilip Guenther
mismatches this revealed ok espie@
2015-08-21correctly indent a line to make the intent clearJonathan Gray
ok espie@
2015-08-20Do not cast result of malloc/calloc/realloc* if stdlib.h is in scopeTheo de Raadt
ok krw millert
2015-07-28let the hack that lets make kill jobs after sudo also work with doas.Marc Espie
okay tedu@, millert@, tweaks by millert@
2015-04-29Add missing #include <stdint.h> for SIZE_MAXTodd C. Miller
2015-04-25add check for overflow while doubling (very unlikely in practice, but stillMarc Espie
better style code). Problem noticed by deraadt@ in m4. okay doug@ deraadt@
2015-04-18Convert many atoi() calls to strtonum(), adding range checks and failureTheo de Raadt
handling along the way. Reviews by Brendan MacDonell, Jeremy Devenport, florian, doug, millert
2015-03-13remove the first comma from constructs like ", and," and ", or,": you can useJason McIntyre
"and" and "or" to join sentence clauses, and you can use commas, but both hinders reading;
2015-02-28Reduce usage of predefined strings in manpages.Anthony J. Bentley
Predefined strings are not very portable across troff implementations, and they make the source much harder to read. Usually the intended character can be written directly. No output changes, except for two instances where the incorrect escape was used in the first place. tweaks + ok schwarze@
2015-02-07sync usage(); ok espieJason McIntyre
2015-02-07document -CMarc Espie
2015-02-07add support for the popular -C option, in the least intrusive way possible:Marc Espie
parse thru parameters for -C upfront, and then we can setup CURDIR/OBJDIR so as not to disturb anything else. okay millert@, "makes sense" guenther@
2015-01-23a wee little bit more cleanup (more const and remove noise from CDIAGFLAGS...Marc Espie
-pedantic kind of requires -std=c99 here to avoid LL warnings) okay miod@, millert@
2015-01-23typoMarc Espie
2015-01-23remove a bunch of dangerous casts (useless casts from void * to somethingMarc Espie
else, in some cases by adding extra temporary variables. IMO, it's much better practice to do void *a; int *p = a; *p = 42; rather than void *a; *(int *)a = 42; okay miod@... to be revisited for some possible const additions later.
2015-01-16switch to <limits.h>; ok millertTheo de Raadt