Searched refs:val (Results 1 - 25 of 131) sorted by relevance

123456

/ast/src/lib/libast/features/
H A Dlimits.c93 unsigned long val; local
107 val = 1;
108 while (uc >>= 1) val++;
109 printf("#define CHAR_BIT %lu\n", val);
112 val = 1;
113 printf("#define MB_LEN_MAX %lu\n", val);
132 val = uc;
134 printf("#define UCHAR_MAX %luU\n", val);
136 printf("#define UCHAR_MAX %lu\n", val);
141 val
[all...]
/ast/src/lib/libast/path/
H A Dpathbin.c37 static char* val; local
39 if ((!(bin = getenv("PATH")) || !*bin) && !(bin = val))
43 val = bin;
H A Dpathshell.c60 static char* val; local
105 if (!(sh = val))
109 val = sh;
/ast/src/lib/libtk/library/demos/
H A Dixset111 set bellpit [.bell.val.pit.entry get]
112 set belldur [.bell.val.dur.entry get]
115 set kbdcli [.kbd.val.cli get]
123 set screentim [.screen.val.le.tim.entry get]
124 set screencyc [.screen.val.le.cyc.entry get]
145 .bell.val.pit.entry delete 0 end
146 .bell.val.pit.entry insert 0 $bellpit
147 .bell.val.dur.entry delete 0 end
148 .bell.val.dur.entry insert 0 $belldur
150 .kbd.val
[all...]
/ast/src/lib/libast/misc/
H A Dfs3d.c44 char val[sizeof(FS3D_off) + 8]; local
61 if (mount(on, val, FS3D_VIEW|FS3D_GET|FS3D_SIZE(sizeof(val)), NiL))
63 if (v = strchr(val, ' '))
66 v = val;
84 sfsprintf(val, sizeof(val), "%s=%d", off, FS3D_arg(op));
85 v = val;
/ast/src/cmd/nmake/
H A Dvariable.c116 state.val++;
119 state.val--;
140 char* val; local
203 getop(internal.val, s, c);
204 return sfstruse(internal.val);
208 listops(internal.val, c);
211 sfprintf(internal.val, " %s", p->rule->name);
212 return sfstruse(internal.val);
219 sfputc(internal.val, ' ');
222 shquote(internal.val, stat
[all...]
H A Dconvert.c83 char* val; local
132 val = "join";
135 val = "literal";
140 val = "auxilliary";
144 val = "primary";
158 xp = strcopy(xp, val);
176 val = ed;
186 val--;
190 val--;
263 val
[all...]
/ast/src/lib/libast/comp/
H A Dgetopt.h44 int val; member in struct:option
H A Dgetoptl.c56 if (o->flag || o->val <= 0 || o->val > UCHAR_MAX || !isalnum(o->val))
60 sfprintf(up, "\n[%c:%s]", o->val, o->name);
61 if (s = strchr(t, o->val))
130 *o->flag = o->val;
134 c = o->val;
/ast/src/cmd/mam/
H A Dmamold.sh46 while read -r op arg val extra junk
49 arg=$val
50 val=$extra
55 convert "$arg = $val"
58 [[ " $val " == *" implicit "* ]] &&
67 action[$arg]=${action[$arg]}$'\n'$'\t'$val ||
68 action[$arg]=$'\t'$val
/ast/src/lib/libast/sfio/
H A D_sfgetl.c40 sfungetc(f, (unsigned char)_SF_(f)->val);
H A D_sfgetu.c40 sfungetc(f, (unsigned char)_SF_(f)->val);
H A Dsfungetc.c29 static int _uexcept(Sfio_t* f, int type, Void_t* val, Sfdisc_t* disc) argument
31 static int _uexcept(f,type,val,disc)
34 Void_t* val;
38 NOTUSED(val);
/ast/src/lib/libz/
H A Dinftrees.h21 of the bit buffer. val is the actual byte to output in the case
27 unsigned short val; /* offset in table or code value */ member in struct:__anon451
/ast/src/cmd/kshlib/dbm/
H A Ddbm.c210 datum val; local
243 val = dbm_fetch(state.dbm, key);
244 if (val.dptr)
245 sfputr(sfstdout, val.dptr, '\n');
252 val = dbm_nextkey(state.dbm);
256 val = dbm_firstkey(state.dbm);
258 if (val.dptr)
259 sfputr(sfstdout, val.dptr, '\n');
297 datum val; local
316 if (error_info.errors || (key.dptr = *argv++) && (val
[all...]
/ast/src/cmd/ksh93/tests/
H A Dfunctions.sh270 trap 'val=false' ERR
271 val=true
273 if [[ $val != false ]]
281 val=true
283 if [[ $val != true ]]
291 val=true
293 if [[ $val != false ]]
308 typeset val
309 val=$(export | grep "^$1=")
310 print ${val#"
[all...]
/ast/src/lib/libvcodex/
H A Dvcmethod.c247 int vcsetmtarg(Vcodex_t* vc, char* name, Void_t* val, int type) argument
249 int vcsetmtarg(vc, name, val, type)
252 Void_t* val; /* data to set the parameter */
278 { if((v = (Vcchar_t*)val) != NIL(Vcchar_t*) )
290 type = (unsigned char)TYPECAST(int,val);
310 if((type = TYPECAST(int,val)) < 0)
317 if(TYPECAST(int,val) < 0)
331 char* vcgetmtarg(char* data, char* val, ssize_t vlsz, Vcmtarg_t* args, Vcmtarg_t** arg) argument
333 char* vcgetmtarg(data, val, vlsz, args, arg)
335 char* val; /* buffe
407 vcsubstring(char* data, int csep, char* val, ssize_t vlsz, int type) argument
[all...]
/ast/src/lib/libtksh/include/
H A Dnvextra.h3 #define nv_getvalue(np, val) do \
7 (val) = nv_getval(np); \
11 #define nv_putvalue(np, val, f) do \
15 nv_putval((np),val, f); \
/ast/src/cmd/kshlib/open/
H A Dopen.c55 static void put_time(Namval_t* np, const char* val, int flag, Namfun_t* nfp) argument
59 if(val)
65 t = *(Sfdouble_t*)val;
67 t = *(double*)val;
71 t = tmdate(val, &last, (time_t*)0);
73 errormsg(SH_DICT,ERROR_exit(1),"%s: invalid date/time string",val);
81 nv_putv(np,val,flag,nfp);
128 static void put_mode(Namval_t* np, const char* val, int flag, Namfun_t* nfp) argument
130 if(val)
137 mode = *(Sfdouble_t*)val;
224 char *val = np->nvalue + fp->offset; local
349 put_classval(Namval_t* np, const char* val, int flag, Namfun_t* nfp) argument
[all...]
/ast/src/cmd/coshell/
H A Devent.c416 apply(State_t* state, Connection_t* con, int id, int index, datum key, datum val, Data_t* dat) argument
426 val.dptr = (void*)dat;
427 val.dsize = sizeof(*dat);
428 if (!(n = dbm_store(state->dbm, key, val, DBM_INSERT)) || n > 0 && !dbm_store(state->dbm, key, val, DBM_REPLACE))
455 val.dptr = (void*)dat;
456 val.dsize = sizeof(*dat);
457 if (!(n = dbm_store(state->dbm, key, val, DBM_INSERT)) || n > 0 && !dbm_store(state->dbm, key, val, DBM_REPLACE))
471 val
552 datum val; local
618 datum val; local
665 datum val; local
1006 datum val; local
[all...]
/ast/src/lib/libpp/
H A Dpptrace.c90 if (p->type == ppinmap[i].val)
125 for (i = 0; i < (elementsof(pplexmap) - 1) && (lex > pplexmap[i].val || lex == pplexmap[i+1].val); i++);
126 if (lex != pplexmap[i].val)
128 if (pplexmap[i].val < 0) sfsprintf(buf, sizeof(buf), "%s|0x%04x%s", pplexmap[i].nam, lex, splice ? "|SPLICE" : "");
129 else sfsprintf(buf, sizeof(buf), "%s+%d", pplexmap[i-1].nam, lex - pplexmap[i-1].val, splice ? "|SPLICE" : "");
155 if (flags & p[i].val)
/ast/src/cmd/cs/
H A Ddbm.c154 datum val; local
163 while (tokscan(nxt, &nxt, " %s %s %s", &cmd, &key.dptr, &val.dptr) > 0)
166 val.dsize = strlen(val.dptr) + 1;
177 val = dbm_fetch(cp->db->dbm, key);
178 if (val.dptr) n = sfsprintf(ret, sizeof(ret), "I %s\n", val.dptr);
206 val = dbm_fetch(cp->db->dbm, key);
207 if (val.dptr) n = sfsprintf(ret, sizeof(ret), "I %s %s\n", key.dptr, val
[all...]
/ast/src/cmd/ksh93/bltins/
H A Dread.c209 register char *name, *val; local
236 if(val= strchr(name,'?'))
237 *val = 0;
268 if(val)
269 *val = '?';
543 /* val==0 at the start of a field */
544 val = 0;
552 if(val==0)
553 val = (char*)(cp-1);
570 if(val)
[all...]
/ast/src/cmd/3d/
H A Dlib.c215 register const char* val; local
236 val = ((end - key) > HASHKEYMAX) ? key + HASHKEYMAX : end;
239 if (key < val)
292 if (!(map = search(&state.vmount, path, strlen(path), NiL, T_PREFIX)) || ((Mount_t*)map->val)->fs == state.fs)
307 return((Mount_t*)map->val);
333 * if val!=0 then key=val inserted if not already entered
334 * valsize==0 causes string val to be malloc'd on insertion
337 * valsize==T_PREFIX for longest path prefix search and val==visit_mask
341 search(Table_t* tab, const char* key, int keysize, const char* val, in argument
[all...]
/ast/src/cmd/kshlib/dbm_t/
H A Ddbm_t.c61 char *val; member in struct:dbm_array
120 char *val; local
124 if(data.dsize && (val = (char*)data.dptr))
126 if(!ap->header.hdr.type && data.dsize>1 && *val==0 && val[1])
128 *val = '(';
132 sfprintf(ap->strbuf,"%s=%s\0",nv_name(&ap->node),val);
133 val = sfstruse(ap->strbuf);
134 sh_trap(val,0);
168 char *val local
[all...]

Completed in 47 milliseconds

123456