Searched defs:val (Results 1 - 25 of 77) sorted by relevance

1234

/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/libast/comp/
H A Dgetopt.h44 int val; member in struct:option
/ast/src/lib/libast/sfio/
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);
H A Dsfdisc.c51 static int _dccaexcept(Sfio_t* f, int type, Void_t* val, Sfdisc_t* disc) argument
53 static int _dccaexcept(f,type,val,disc)
56 Void_t* val;
H A Dsftmp.c56 static int _tmprmfile(Sfio_t* f, int type, Void_t* val, Sfdisc_t* disc) argument
58 static int _tmprmfile(f, type, val, disc)
61 Void_t* val;
67 NOTUSED(val);
285 static int _tmpexcept(Sfio_t* f, int type, Void_t* val, Sfdisc_t* disc) argument
287 static int _tmpexcept(f,type,val,disc)
290 Void_t* val;
299 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
H A Dsfdcgzip.c84 sfgzexcept(Sfio_t* sp, int op, void* val, Sfdisc_t* dp) argument
134 if (!val && gzsync(gz->gz, (z_off_t)(-1)) < 0)
138 return (*((gzFile**)val) = gz->gz) ? 1 : -1;
140 return (*((Sfoff_t*)val) = gzsync(gz->gz, (z_off_t)(-1))) < 0 ? -1 : 0;
142 return gzsync(gz->gz, (z_off_t)(*((Sfoff_t*)val))) < 0 ? -1 : 0;
/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/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/lib/libast/stdio/
H A Dvfwscanf.c39 wideexcept(Sfio_t* f, int op, void* val, Sfdisc_t* dp) argument
/ast/src/lib/libast/string/
H A Dtokline.c58 spliceline(Sfio_t* s, int op, void* val, Sfdisc_t* ad) argument
69 NoP(val);
H A Dtokscan.c180 long val; local
274 val = 0;
277 else val = strtol(s, &p_char, c);
281 if (p_short = va_arg(ap, short*)) *p_short = (short)val;
284 if (p_long = va_arg(ap, long*)) *p_long = val;
287 if (p_int = va_arg(ap, int*)) *p_int = (int)val;
/ast/src/lib/libbz/
H A Dsfdcbzip.c74 sfbzexcept(Sfio_t* sp, int op, void* val, Sfdisc_t* dp) argument
116 return *((ssize_t*)val) < 0 ? -1 : 0;
118 return val ? 0 : bzflush(bz->bz);
120 return (*((Bz_t**)val) = bz->bz) ? 1 : -1;
122 return (*((Sfoff_t*)val) = bzsync(bz->bz, (z_off_t)(-1))) == -1 ? -1 : 0;
124 return bzsync(bz->bz, (z_off_t)(*((Sfoff_t*)val))) == -1 ? -1 : 0;
/ast/src/cmd/dsslib/lookup/
H A Dlookup.c138 Cxoperand_t val; local
140 if (cxcast(cx, &val, state->variable, cx->state->type_string, data, NiL))
142 return !!dtmatch(state->dict, val.value.string.data);
/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/lib/libmam/
H A Dmam.c185 char* val; local
229 tokscan(s, &val, " %s ", &arg);
230 while (isspace(*val)) val++;
231 mamvar(pp, arg, strdup(val));
289 tokscan(s, NiL, " %s %lu %s ", &arg, &t, &val);
295 if (val) r->bound = strdup(val);
345 tokscan(s, NiL, " %s ", &val);
346 pp->pwd = strdup(val);
[all...]
/ast/src/lib/libpz/
H A Dsfdcpzip.c52 sfpzexcept(Sfio_t* sp, int op, void* val, Sfdisc_t* dp) argument
80 return val ? 0 : pzsync(pz->pz);
82 return (*((Pz_t**)val) = pz->pz) ? 1 : -1;
/ast/src/lib/libvcodex/Vcmisc/
H A Dvcstrip.c195 char *data, val[1024]; local
202 { data = vcgetmtarg(data, val, sizeof(val), _Stripargs, &arg);
209 st->head = (ssize_t)vcatoi(val);
212 st->tail = (ssize_t)vcatoi(val);
/ast/src/lib/libast/vmalloc/
H A Dvmmopen.c85 Void_t* val; /* associated value */ member in struct:_mmuser_s
93 Mmuser_t* user; /* stored (key,val)'s */
431 Void_t* vmmvalue(Vmalloc_t* vm, int key, Void_t* val, int oper) argument
433 Void_t* vmmvalue(vm, key, val, oper)
436 Void_t* val; /* data to be set */
457 { u->val = NIL(Void_t*);
466 u->val = val;
468 u->val = (Void_t*)((long)(u->val)
[all...]
/ast/src/lib/libpp/
H A Dppop.c44 ppset(register long* p, register long op, int val) argument
59 if (val)
/ast/src/cmd/dsslib/validate/
H A Dvalidate.c395 Cxoperand_t val; local
407 val.type = ip->variable->type;
408 val.value = ip->value;
409 if (!cxcast(cx, &val, NiL, cx->state->type_string, NiL, NiL))
410 sfprintf(expr->op, "%16s %11I*u %*.*s\n", ip->variable->name, sizeof(ip->count), ip->count, val.value.string.size, val.value.string.size, val.value.string.data);
/ast/src/cmd/ksh93/bltins/
H A Dalarm.c183 static void putval(Namval_t* np, const char* val, int flag, Namfun_t* fp) argument
188 if(val)
198 nv_putv(np,val,flag,fp);
200 if(*val=='+')
H A Denum.c131 static void put_enum(Namval_t* np,const char *val,int flags,Namfun_t *fp) argument
136 if(!val)
138 nv_putv(np, val, flags,fp);
146 nv_putv(np,val,flags,fp);
152 n = strcasecmp(v,val);
154 n = strcmp(v,val);
163 error(ERROR_exit(1), "%s: invalid value %s",nv_name(np),val); local
/ast/src/cmd/ksh93/sh/
H A Darith.c386 char lastbase=0, *val = xp, oerrno = errno; local
391 while(*val=='0' && isdigit(val[1]))
392 val++;
394 r = strtonll(val,&str, &lastbase,-1);
399 r = strtonll(val,&str, &lastbase,-1);
403 if(*val=='0')
405 while(*val=='0')
406 val++;
407 if(*val
[all...]

Completed in 121 milliseconds

1234