Searched refs:uname (Results 1 - 25 of 27) sorted by relevance

12

/ast/src/lib/libcs/
H A Dgenshare.sh64 "") s=`hostname 2>/dev/null || uname -n 2>/dev/null || cat /etc/whoami 2>/dev/null || echo local 2>/dev/null`
68 "") p=`hostname 2>/dev/null || uname -n 2>/dev/null || cat /etc/whoami 2>/dev/null || echo local 2>/dev/null` ;;
H A Dcsname.c146 * NOTE: uname(2) may return >0 on success -- go ask your dad
149 if (uname(&un) >= 0) strncpy(state->full, un.nodename, sizeof(state->full) - 1);
/ast/src/cmd/nmake/
H A Dmetarule.c69 if (r && (!(r->property & P_metarule) || !r->action && !r->uname))
293 s = ((y = metarule(q->rule->name, z->name, 0)) && y->uname) ? y->uname : q->rule->name;
295 x->uname = s;
315 x->uname = in->name;
334 if (!x->uname)
336 x->uname = in->name;
651 if (m->uname)
657 if (!(x = metarule(m->uname, p->rule->name, 0)) || x->uname)
[all...]
H A Dbind.c203 if (!x->uname && strlen(r->name) < strlen(x->name))
217 r->uname = r->name;
679 error(2, "bindalias: path=%s r=%s%s%s x=%s%s%s", path, r->name, r->uname ? "==" : null, r->uname ? r->uname : null, x->name, x->uname ? "==" : null, x->uname ? x->uname : null);
685 if (x->uname && !streq(x->name, path) && !streq(x->uname, pat
[all...]
H A Drules-win32.mk32 RCWOW=$( uname -i )
H A Dmam.c151 if (r->uname && strcmp(r->uname, mamname(r)))
152 sfprintf(sp, "%sbind %s %s %s\n", state.mam.label, r->uname, timefmt(NiL, r->time), mamname(r));
H A Dmake.h94 #define oldname(r) do{if(getbound(r->uname))putbound(0,0);if(r->dynamic&D_alias)r->dynamic&=~D_alias;else putrule(r->name,0);r->name=r->uname;r->uname=0;}while(0)
485 #define uname u1.u_uname macro
486 #define unbound(r) ((r)->uname?(r)->uname:(r)->name)
H A Drule.c420 else if (metamatch(NiL, s, x->name) || r && r->uname && !(r->property & P_state) && metamatch(NiL, r->uname, x->name))
431 } while (r && s == r->name && r->uname && !(r->property & P_state) && (s = r->uname) != r->name);
1046 if (!state.exec && state.mam.statix && (from->dynamic & D_alias) && (to->property & P_terminal) && from->uname && to->uname && *from->name != '/' && *to->name == '/')
1051 to->uname = from->name;
H A Dobject.c569 if (r->uname && !(r->property & P_metarule))
571 r->name = r->uname;
572 r->uname = 0;
639 if ((!(a = getrule(r->name)) || a == r) && ((r->property & P_state) || !r->uname || !(a = getrule(r->uname)) || a == r))
1338 if (streq(p->rule->name, s) || p->rule->uname && streq(p->rule->uname, s))
2070 if (!(o->property & P_state) && o->uname)
2072 r->uname = maprule(o->uname,
[all...]
H A Dparse.c2094 if (internal.assert_p->prereqs && (opr = associate(internal.assert_p, NiL, lhs, NiL)) && opr->prereqs && (opr = opr->prereqs->rule) && (opr->property & P_operator) && !opr->uname)
2096 s = opr->uname = opr->name;
2100 opr->uname = 0;
2578 s = r->uname && !(r->property & P_state) ? r->uname : r->name;
2591 r->uname = 0;
2779 if (internal.assign_p->prereqs && (r = associate(internal.assign_p, NiL, lhs, NiL)) && r->prereqs && (r = r->prereqs->rule) && (r->property & P_operator) && !r->uname)
2781 s = r->uname = r->name;
2785 r->uname = 0;
H A Ddump.c81 if (!(r->property & P_state) && r->uname)
82 sfprintf(sp, "==%s", r->uname);
H A Dstate.c936 if (r->uname && !(n = rstat(r->uname, st, 1)))
956 if (!r->uname)
957 r->uname = r->name;
H A Dmake.c114 a->uname = name;
183 if (u->uname)
218 * place that set u->uname=0 is found
665 s = r->uname;
666 r->uname = 0;
668 r->uname = s;
H A Dexpand.c575 if ((r->dynamic & D_alias) && (!state.context || !iscontext(r->uname)) && (r = makerule(s)))
1779 if (((state.questionable & 0x10000000) || !(s = r->uname) || !(t = strrchr(r->name, '/')) || !streq(t+1, s)) && ((t = getbound(r->name)) || (s = r->uname) && (t = getbound(s))))
1790 s = (!(state.questionable & 0x00008000) && *r->name == '/') ? r->uname : (char*)0;
1794 sfprintf(internal.nam, "%s/%s", t, r->uname);
1826 message((-2, "pathop('%c',%s==%s): cannot find '/'", *op, r->name, r->uname));
1835 message((-2, "pathop('%c',%s==%s): bound shorter than unbound", *op, r->name, r->uname));
2181 sfputr(xp, !(r->dynamic & D_alias) || !r->uname || strlen(r->name) >= strlen(r->uname) ? r->name : r->uname,
[all...]
H A Dread.c458 if ((type & COMP_BASE) && r->uname)
H A Dvariable.c97 sfputr(sp, (op & VAL_UNBOUND) ? unbound(x) : state.localview ? localview(x) : ((x->dynamic & D_alias) ? x->uname : x->name), -1);
H A Dcommand.c134 if (!r->uname)
135 r->uname = r->name;
/ast/src/lib/libast/include/
H A Dtar.h105 char uname[TUNMLEN]; member in struct:header
/ast/src/lib/libcmd/
H A DMakefile26 rmdir.c stty.c sum.c sync.c tail.c tee.c tty.c uname.c uniq.c \
H A Duname.c27 * uname
31 "[-?\n@(#)$Id: uname (AT&T Research) 2007-04-19 $\n]"
33 "[+NAME?uname - identify the current system ]"
40 " options are specified then the local \b/usr/bin/uname\b is called.]"
146 uname(register struct utsname* ut) function
328 s = "/usr/bin/uname";
381 if (uname(&ut) < 0)
/ast/src/cmd/proto/
H A Dsear.sh132 then w=$(uname -i 2>/dev/null)
/ast/src/cmd/ksh93/data/
H A Dbuiltins.c144 CMDLIST(uname)
/ast/src/cmd/pax/
H A Dpax-tar.c456 else if (!f->uidname || strlen(f->uidname) < TARSIZEOF(uname) && portable(ap, f->uidname))
708 if (*tar->header.uname && (strtoll(tar->header.uname, &t, 0), *t))
709 f->uidname = tar->header.uname;
889 strcpy(tar->header.uname, f->uidname);
/ast/src/cmd/INIT/
H A Dpackage.sh1445 wow=`uname -i`
1810 name) _name_=`hostname || uname -n || cat /etc/whoami || echo local`
1999 h=`hostname || uname -n || cat /etc/whoami`
2003 a=`arch || uname -m || att uname -m || uname -s || att uname -s`
2010 m=`mach || machine || uname -p || att uname -p`
2017 x=`uname
[all...]
/ast/src/cmd/coshell/
H A Dcommand.c289 if (!*(arg = s) && (!ap || !*ap)) arg = "hostname 2>/dev/null || uname -n";

Completed in 96 milliseconds

12