Age | Commit message (Collapse) | Author | |
---|---|---|---|
2016-01-04 | Use err(3) instead of various handrolled combinations of perror(3) and | tb | |
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-29 | fix exit status on pledge(2) failure. | Gleydson Soares | |
OK tb@ jsg@ | |||
2015-12-22 | in case we have a parse error, dispell the target list early to avoid | Marc Espie | |
various problems. Problem noticed by jsg@, deeper patch than he suggested okay jsg@ and tb@. | |||
2015-12-11 | Use %zu to print size_t's rather than casting to u_long. | mmcc | |
ok espie@ | |||
2015-12-05 | yet another feof check, just to be sure. | Marc Espie | |
2015-11-29 | fix duplicate targets in target list for good: split previous groupling fix | Marc 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-15 | unifdef MAKE_BOOTSTRAP now that Makefile.boot is gone. | Daniel Dickman | |
ok espie@ | |||
2015-11-15 | exit needs stdlib, switch to "return 0" to fix. | Daniel Dickman | |
ok espie | |||
2015-11-06 | I was very optimistic in groupling creation. Turns out lists of targets | Marc 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-14 | gc lst_ForEachNodeWhile, which isn't actually in use anywhere | Marc Espie | |
2015-10-14 | make sure we use stdbool.h | Marc Espie | |
Mostly diff by Daniel Dickman, who told me to commit in his stead, as he's tied up at work. | |||
2015-10-09 | Change all tame callers to namechange to pledge(2). | Theo de Raadt | |
2015-10-08 | tame "stdio rpath wpath cpath proc exec". make is a shell, and appears | Theo 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-07 | Oops, not quite ready for tame() here. People need time to update | Theo 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-27 | Mark all the error printing functions as printf-like; fix two format | Philip Guenther | |
mismatches this revealed ok espie@ | |||
2015-08-21 | correctly indent a line to make the intent clear | Jonathan Gray | |
ok espie@ | |||
2015-08-20 | Do not cast result of malloc/calloc/realloc* if stdlib.h is in scope | Theo de Raadt | |
ok krw millert | |||
2015-07-28 | let the hack that lets make kill jobs after sudo also work with doas. | Marc Espie | |
okay tedu@, millert@, tweaks by millert@ | |||
2015-04-29 | Add missing #include <stdint.h> for SIZE_MAX | Todd C. Miller | |
2015-04-25 | add check for overflow while doubling (very unlikely in practice, but still | Marc Espie | |
better style code). Problem noticed by deraadt@ in m4. okay doug@ deraadt@ | |||
2015-04-18 | Convert many atoi() calls to strtonum(), adding range checks and failure | Theo de Raadt | |
handling along the way. Reviews by Brendan MacDonell, Jeremy Devenport, florian, doug, millert | |||
2015-03-13 | remove the first comma from constructs like ", and," and ", or,": you can use | Jason McIntyre | |
"and" and "or" to join sentence clauses, and you can use commas, but both hinders reading; | |||
2015-02-28 | Reduce 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-07 | sync usage(); ok espie | Jason McIntyre | |
2015-02-07 | document -C | Marc Espie | |
2015-02-07 | add 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-23 | a 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-23 | typo | Marc Espie | |
2015-01-23 | remove a bunch of dangerous casts (useless casts from void * to something | Marc 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-16 | switch to <limits.h>; ok millert | Theo de Raadt | |
2015-01-16 | The make code has "bootstrap", to allow it to be brought up on other | Theo de Raadt | |
systems. Rarely used & tested -- perhaps once a decade. Perhaps not even once this decade? Anyways, #define PATH_MAX (MAXPATHLEN+1) is quite wrong. Delete the chunk, assuming any system this is ported to has PATH_MAX. | |||
2015-01-15 | If some mythical system lacks PATH_MAX, do not set it to MAXPATHLEN+1 | Theo de Raadt | |
ok millert | |||
2015-01-13 | zap really odd code that's not actually in-use. | Marc Espie | |
okay millert@ | |||
2014-12-07 | make sure we always nul-terminate | Marc Espie | |
problem spotted by jsg@ reorg so that the nul termination is obvious. | |||
2014-11-03 | introspection feature: ${MAKEFILE_LIST} contains the list of makefiles | Marc Espie | |
parsed. name stolen from gmake, from a suggestion from guenther@, to avoid gratuitous confusin. okay guenther@, millert@ | |||
2014-10-31 | redirect error output to stderr instead of stdout | Gleydson Soares | |
stderr is always unbuffered by default, so zap fflush(3) its no longer makes any sense here reminded by espie@ OK espie@ | |||
2014-10-20 | document sinclude/-include | Marc Espie | |
2014-10-18 | enable the sinclude/-include feature support I wrote long ago. | Marc Espie | |
Other systems now have it, xenocara is using it. talked over with kettenis@ who checked release still works. I did a full bulk build with this and did not notice any issue. | |||
2014-09-21 | plug a small memory leak, fairly infrequent. | Marc Espie | |
2014-07-16 | tweak previous; | Jason McIntyre | |
2014-07-15 | remove support for the non-standard BSDmakefile, which make tries to | Theo de Raadt | |
open first. a handful of strange ports will cope soon. ok espie | |||
2014-05-30 | modern bourne shells handle ~. Unlikely in makefiles, but still, better | Marc Espie | |
fork a shell then (as seen in a commit message in netbsd's make, apparently taken from debian. didn't look at the actual code, but it was a "duh" moment) okay millert@ | |||
2014-05-18 | a bit more reallocarray (and kill ecalloc, which isn't used) | Marc Espie | |
okay chl@ | |||
2014-05-15 | remove unused variable | Charles Longeau | |
ok espie@ | |||
2014-05-12 | adjust to ohash being in libutil now, and to the interface changes. | Marc Espie | |
fix potential integer overflows in memory allocation (mostly for pedagogical purposes, these are unlikely to overflow in practice) move the rest of lst.lib stuff into its own directory. | |||
2014-04-22 | pure reindent | Marc Espie | |
2014-04-22 | effectively use emult_realloc, okay guenther@ | Marc Espie | |
2014-04-14 | STANDARDS: note that make is optional | Jason McIntyre | |
ok schwarze sobrado | |||
2014-03-22 | don't use >$@ directly | Marc Espie | |