Project

General

Profile

Submit #2606 » 0003-bmake-new-local-modifications.patch

kAworu, 11/22/2013 07:57 AM

View differences:

contrib/bmake/bmake.1
.Li .unexport-env
.Li .export PATH
.Li .endif
.Pp
.Ed
.Pp
Would result in an environment containing only
.Ql Ev PATH ,
which is the minimal useful environment.
contrib/bmake/main.c
const int mib[2] = { CTL_HW, HW_MACHINE_ARCH };
size_t len = sizeof(machine_arch_buf);
if (sysctl(mib, __arraycount(mib), machine_arch_buf,
if (sysctl(__DECONST(int *, mib) /* XXX */, __arraycount(mib), machine_arch_buf,
&len, NULL, 0) < 0) {
(void)fprintf(stderr, "%s: sysctl failed (%s).\n", progname,
strerror(errno));
contrib/bmake/meta.c
* It does not disturb our state.
*/
void
meta_job_child(Job *job)
meta_job_child(Job __unused *job)
{
#ifdef USE_FILEMON
BuildMon *pbm;
......
}
void
meta_cmd_finish(void *pbmp)
meta_cmd_finish(void __unused *pbmp)
{
#ifdef USE_FILEMON
BuildMon *pbm = pbmp;
contrib/bmake/parse.c
*/
int length;
void *freeIt;
char *result;
__unused char *result; /* XXX */
result = Var_Parse(cp, VAR_CMD, TRUE, &length, &freeIt);
if (freeIt)
contrib/bmake/var.c
if (strchr(name, '$')) {
cp = Var_Subst(NULL, name, VAR_GLOBAL, 0);
} else {
cp = (char *)name;
cp = __DECONST(char *,name); /* XXX */
}
ln = Hash_FindEntry(&ctxt->context, cp);
if (DEBUG(VAR)) {
(11-11/12)