Searched refs:var (Results 1 - 25 of 75) sorted by relevance

123

/ast/src/cmd/std/
H A Dyes.sh49 while getopts "$usage" var
50 do case $var in
H A Dseq.sh84 while getopts "$usage" var
85 do case $var in
/ast/src/cmd/mailx/
H A Ddata.c291 static const struct var vartab[] =
294 "CDPATH", &state.var.cdpath, D|E|N, 0,0,
296 "DEAD", &state.var.dead, D|E|N, "~/dead.letter",0,
298 "EDITOR", &state.var.editor, D|E|N, "ed",0,
300 "HOME", &state.var.home, D|E|N, ".",0,
302 "IMAP", &state.var.imap, D|E|N, "~/.imap",0,
304 "LISTER", &state.var.lister, D|E|N, "ls",0,
306 "MAIL", &state.var.mail, E, "",set_mail,
308 "MAILCAP", &state.var.mailcap, E, "~/.mailcap:/usr/local/etc/mailcap:/usr/etc/mailcap:/etc/mailcap:/etc/mail/mailcap:/usr/public/lib/mailcap",set_mailcap,
310 "MAILRC", &state.var
[all...]
H A Dvars.c84 register const struct var* vp;
109 state.var.hostname = varkeep(buf);
116 if ((s = strchr(state.var.hostname, '.')) && *++s)
117 state.var.domain = varkeep(s);
144 state.var.domain = varkeep(s);
161 state.var.interactive = state.on;
194 register const struct var* vp;
222 register struct var* vp;
237 if (!(vp = (struct var*)strsearch(state.vartab, state.varnum, sizeof(struct var), stracm
[all...]
H A Dspam.c127 set_spamtest(struct var* vp, const char* value)
412 if (to && !strcasecmp(ap, state.var.user))
504 if (addrmatch(t, state.var.user) || state.var.spamfromok && usermatch(t, state.var.spamfromok, 0))
506 if (addrmatch(t, to) || state.var.spamfrom && usermatch(t, state.var.spamfrom, 0))
511 d = state.var.spamdelay;
514 if (state.var.domain)
516 ours = strlen(state.var
[all...]
H A Dsmtp.c148 if (!(s = state.var.domain) || !*s)
149 s = state.var.hostname;
179 if ((state.var.domain ?
180 sfprintf(sp, "MAIL FROM:<%s@%s>\r\n", state.var.user, state.var.domain) :
181 sfprintf(sp, "MAIL FROM:<%s>\r\n", state.var.user)) < 0)
198 if ((state.var.domain && !strchr(s, '@') ?
199 sfprintf(sp, "RCPT TO:<%s@%s>\r\n", s, state.var.domain) :
227 if (sfprintf(sp, "From: <%s@%s>\n", state.var.user, host) < 0)
H A Dmain.c281 state.var.quiet = state.on;
294 state.var.quiet = state.on;
307 state.var.quiet = state.on;
314 state.var.quiet = state.on;
346 state.var.quiet = state.on;
377 * User doesn't want to source state.var.master
464 if (!state.var.sendheaders)
469 state.var.receive = state.on;
472 if (state.var.justcheck && state.mode == SEND)
481 if (state.var
[all...]
H A Dcollect.c97 if (state.var.ignore) {
107 if (state.var.save)
210 if (run_command(state.var.shell, 0, fileno(fp), fileno(nf), "-c", cmd, NiL) < 0) {
237 if ((s = expand(state.var.dead, 1)) && *s != '/') {
276 else if (!(prefix = state.var.indentprefix))
306 state.part.out.boundlen = sfsprintf(state.part.out.boundary, sizeof(state.part.out.boundary), "=_=_=_=_=%s==%04X==%08X==", state.var.user, getpid(), time(NiL));
394 if ((flags & INTERPOLATE) && state.var.interactive) {
401 if (state.var.sendheaders) {
406 else if (state.var.interactive && !hp->h_subject && (state.askheaders & GSUB)) {
419 escape = state.var
[all...]
H A Dmailx.h282 #define C (1<<5) /* Is a conditional command, Cmd line var set */
290 #define R (1<<13) /* Cannot call from collect, Readonly var */
344 #define GMETOO (1<<14) /* Send to state.var.user too */
353 #define GSENDER (1L<<23) /* Get state.var.sender address only */
371 struct var { struct
376 void (*set)(struct var*, const char*);
614 const struct var* vartab; /* Variable table */
661 struct linematch* bodymatch; /* compiled state.var.spambody */
662 struct sender* sender; /* compiled state.var.sender */
699 int inbox; /* Current folder mh state.var
877 } var; member in struct:__anon136
[all...]
H A Dcmd1.c98 curind = state.msg.dot == mp && !state.var.justheaders ? '>' : ' ';
109 if (subjline && state.var.spamsubhead)
148 if (!state.var.domain || strchr(name, '@'))
151 printf("%c %s@%s\n", dispc, name, state.var.domain);
155 name = grab(mp, (state.var.news ? GNEWS : state.var.showto && sender(state.var.user, mesg) ? GTO : GREPLY)|GDISPLAY, NiL);
156 sizes = counts(!!state.var.news, mp->m_lines, mp->m_size);
182 if (state.var.justfrom) {
185 if (state.var
[all...]
H A Dcmd3.c94 if (*s == '!' && state.var.bang) {
138 run_command(state.var.shell, 0, -1, -1, "-c", cmd, NiL);
140 run_command(state.var.shell, 0, -1, -1, NiL, NiL, NiL);
150 margin(FILE* fp, const char* name, register const char* s, int indent, int sep, int tab, const struct var* vp)
238 buf[0] = *state.var.escape;
248 helpvar(FILE* fp, register const struct var* vp)
270 register const struct var* vp;
281 !state.var.interactive ||
282 !state.var.crt ||
283 !(fp = pipeopen(state.var
[all...]
H A Dlex.c133 char* who = name[1] ? name + 1 : state.var.user;
145 if (state.var.justcheck)
157 if (state.var.justcheck)
170 if (state.var.justcheck)
195 if (state.var.justcheck)
197 if (!state.var.justheaders) {
318 if (!state.sourcing && state.var.interactive) {
319 if (state.var.autoinc && incfile() > 0)
322 if (state.var.coprocess)
324 else if (state.var
[all...]
H A Dquit.c138 news = state.var.news && *state.var.news ? fileopen(state.var.news, "w") : (FILE*)0;
140 if (!state.var.keepsave)
396 holdbit = state.var.hold ? MPRESERVE : MBOX;
398 if (state.var.keepsave)
418 news = state.var.news && *state.var.news ? fileopen(state.var.news, "w") : (FILE*)0;
443 if (x && (!state.var
[all...]
H A Dsend.c310 fprintf(nfo, "From %s %s", state.var.user, ctime(&now));
404 if (state.var.debug) {
423 n = start_command(state.var.shell, SIG_REG_EXEC, fileno(fp), -1, "-c", name, NiL);
467 if (state.var.interactive) {
494 getargs(&args, state.var.sendmail);
503 if (state.var.debug) {
526 s = state.var.smtp;
536 else if (state.var.sendwait)
633 if (state.var.fixedheaders)
634 fprintf(fp, "%s\n", state.var
[all...]
/ast/src/cmd/ksh93/data/
H A Dbash_pre_rc.sh98 typeset prefix remaining=${.sh.value} var= n= k=
102 var+="$prefix"
104 t) var+="\$(printf '%(%H:%M:%S)T')";;
105 d) var+="\$(printf '%(%a %b:%e)T')";;
106 n) var+=$'\n';;
107 s) var+=ksh;;
108 w) var+="\$(pwd)";;
109 W) var+="\$(basename \"\$(pwd)\")";;
110 u) var+=$USER;;
111 h) var
[all...]
/ast/src/lib/libcs/
H A Dcsvar.c25 * run time cs var support
41 static Var_t var[] = variable
57 if (index < 0 || index >= elementsof(var))
59 p = &var[index];
/ast/src/lib/libtk/library/
H A DoptMenu.tcl31 upvar #0 $varName var
33 if ![info exists var] {
34 set var $firstValue
/ast/src/lib/libmam/
H A Dmam.h36 #define getvar(p,n) (struct var*)hashget((p)->vars,(n))
71 struct var /* variable info */ struct
73 char* name; /* var name */
74 char* value; /* var value */
142 extern struct var* mamvar(struct proc*, const char*, const char*);
/ast/src/cmd/jcl/
H A Djcm.c91 Jcmvar_t* var; member in struct:Jcmlib_s
283 Jcmvar_t var; local
286 if (n >= sizeof(var.name))
287 n = sizeof(var.name);
288 strlcpy(var.name, s, n);
289 if (!(v = (Jcmvar_t*)dtprev(state.vars, &var)))
290 v = (Jcmvar_t*)dtsearch(state.vars, &var);
423 register Jcmvar_t* var; local
425 if (var = (Jcmvar_t*)dtmatch(state.vars, s))
427 if (!v || !init && var
448 register Jcmvar_t* var; local
651 Jcmvar_t* var; local
[all...]
/ast/src/lib/libpp/
H A Dppcontrol.c282 } var; local
524 var.best = 0;
532 var.best = map;
538 if (map = var.best)
871 var.type = 0;
903 if (var.type != TOK_TOKCAT && p > mac->value && *(p - 1) != ' ' && !(pp.option & PRESERVE)) *p++ = ' ';
909 *p++ = (n1 || var.type == TOK_TOKCAT) ? 'C' : 'A';
911 if ((pp.state & WARN) && !(pp.mode & (HOSTED|RELAX)) && var.type != TOK_TOKCAT && !(var.type & TOK_ID))
923 if ((var
[all...]
/ast/src/cmd/ksh93/tests/
H A Dcomvar.sh109 type=coord var=vieworigin val="0 0" label="Window Position"
112 type=coord var=viewsize val="400 400" label="Window Size"
115 type=2colors var=viewcolor val="gray black"
119 type=fontname var=viewfontname val="Times-Roman"
123 type=fontsize var=viewfontsize val=14 label="Window Font Size"
127 type=yesno var=showheader val=no label="Show Header"
130 type=text var=header val="" label="Header"
134 type=yesno var=showfooter val=no label="Show Footer"
137 type=text var=footer val="" label="Footer"
141 type=yesno var
[all...]
H A Dnameref.sh178 unset x y var
179 var=(foo=bar)
180 for i in y var
190 nameref var=arg.bar
191 var=$2
237 [[ ${!bar} == 'foo[x.y]' ]] || err_exit '${!var} not correct for nameref to an array instance'
240 [[ ${!bar} == foo ]] || err_exit '${!var} not correct for nameref to array variable'
252 typeset var=( foo=hello)
253 bar var
374 nameref var
[all...]
H A Dsubstring.sh197 nameref var=$1
243 var=(foo/bar bam/yes last/file/done)
244 if [[ ${var[@]/*\/@(*)/\1} != 'bar yes done' ]]
245 then err_exit '\1 not working with ${var[@]}'
247 var='abc_d2ef.462abc %%'
248 if [[ ${var/+(\w)/Q} != 'Q.462abc %%' ]]
249 then err_exit '${var/+(\w)/Q} not workding'
251 if [[ ${var//+(\w)/Q} != 'Q.Q %%' ]]
252 then err_exit '${var//+(\w)/Q} not workding'
254 if [[ ${var//
[all...]
/ast/src/cmd/ksh93/bltins/
H A Dread.c345 char buf[256],*var=buf,*cur,*end,*up,*v; local
349 if(!(var = (char*)malloc(c+1)))
351 end = var + c;
354 end = var + sizeof(buf) - 1;
355 up = cur = var;
408 ssize_t cx = cur - var, ux = up - var;
409 m = (end - var) + (c - (end - cur));
410 if (var == buf)
413 var
[all...]
/ast/src/cmd/nmake/
H A Dconvert.c690 * expand var name into xp
811 char* var; local
833 var = a;
855 vp = expandvar(vp, var);
856 var = a;
885 if (*var == '"')
889 xp += sfsprintf(xp, EXBUF, "%sdefault=%s ", state.longflag, var);
891 var = 0;
919 if (var && strneq(var, "\"\"
[all...]

Completed in 42 milliseconds

123