Home
last modified time | relevance | path

Searched refs:tval (Results 1 – 25 of 35) sorted by relevance

12

/mirbsd/src/bin/pax/
Dgen_subs.c226 u_long tval = 0; in asc_ul() local
243 tval = (tval << 4) + (*str++ - '0'); in asc_ul()
245 tval = (tval << 4) + 10 + (*str++ - 'A'); in asc_ul()
247 tval = (tval << 4) + 10 + (*str++ - 'a'); in asc_ul()
253 tval = (tval << 3) + (*str++ - '0'); in asc_ul()
255 return(tval); in asc_ul()
322 ot_type tval = 0; in asc_ot() local
339 tval = (tval << 4) + (*str++ - '0'); in asc_ot()
341 tval = (tval << 4) + 10 + (*str++ - 'A'); in asc_ot()
343 tval = (tval << 4) + 10 + (*str++ - 'a'); in asc_ot()
[all …]
Dsel_subs.c527 str_sec(const char *p, time_t *tval) in str_sec() argument
548 lt = localtime(tval); in str_sec()
603 if ((*tval = mktime(lt)) == -1) in str_sec()
/mirbsd/src/usr.bin/awk/
Dtran.c218 (void*)p, NN(p->nval), NN(p->sval), p->fval, p->tval) ); in setsymtab()
227 p->tval = t; in setsymtab()
237 (void*)p, p->nval, p->sval, p->fval, p->tval) ); in setsymtab()
288 if ((vp->tval & (NUM | STR)) == 0) in setfval()
302 vp->tval &= ~STR; /* mark string invalid */ in setfval()
303 vp->tval |= NUM; /* mark number ok */ in setfval()
304 dprintf( ("setfval %p: %s = %g, t=%o\n", (void*)vp, NN(vp->nval), f, vp->tval) ); in setfval()
312 if (vp->tval & FCN) in funnyvar()
315 vp, vp->nval, vp->sval, vp->fval, vp->tval); in funnyvar()
324 (void*)vp, NN(vp->nval), s, vp->tval, donerec, donefld) ); in setsval()
[all …]
Dawk.h85 int tval; /* type info: STR|NUM|ARR|FCN|FLD|CON|DONTFREE */ member
197 #define isrec(n) ((n)->tval & REC)
198 #define isfld(n) ((n)->tval & FLD)
199 #define isstr(n) ((n)->tval & STR)
200 #define isnum(n) ((n)->tval & NUM)
201 #define isarr(n) ((n)->tval & ARR)
202 #define isfcn(n) ((n)->tval & FCN)
207 #define freeable(p) ( ((p)->tval & (STR|DONTFREE)) == STR )
Drun.c260 i, NN(y->nval), y->fval, isarr(y) ? "(array)" : NN(y->sval), y->tval) ); in call()
300 oargs[i]->tval = t->tval; in call()
301 oargs[i]->tval &= ~(STR|NUM|DONTFREE); in call()
322 dprintf( ("%s returns %g |%s| %o\n", s, getfval(z), getsval(z), z->tval) ); in call()
337 y->tval = x->tval & ~(CON|FLD|REC|DONTFREE); /* copy is not constant or field */ in copycell()
368 if ((y->tval & (STR|NUM)) == (STR|NUM)) { in jump()
371 fp->retval->tval |= NUM; in jump()
373 else if (y->tval & STR) in jump()
375 else if (y->tval & NUM) in jump()
378 FATAL("bad type variable %d", y->tval); in jump()
[all …]
Dlib.c165 fldtab[0]->tval = REC | STR | DONTFREE; in getrec()
168 fldtab[0]->tval |= NUM; in getrec()
267 q->tval |= NUM; in setclvar()
311 fldtab[i]->tval = FLD | STR | DONTFREE; in fldbld()
329 fldtab[i]->tval = FLD | STR; in fldbld()
347 fldtab[i]->tval = FLD | STR | DONTFREE; in fldbld()
365 p->tval |= NUM; in fldbld()
387 p->tval = FLD | STR | DONTFREE; in cleanfld()
454 fldtab[i]->tval = FLD | STR | DONTFREE; in refldbld()
502 fldtab[0]->tval = REC | STR | DONTFREE; in recbld()
Dparse.c199 cp->tval = ARR; in makearr()
250 v->tval = FCN; in defn()
/mirbsd/src/sbin/dhclient/
Dparse.c250 int negative = 0, tval, max; in convert_num() local
275 tval = *ptr++; in convert_num()
277 if (tval >= 'a') in convert_num()
278 tval = tval - 'a' + 10; in convert_num()
279 else if (tval >= 'A') in convert_num()
280 tval = tval - 'A' + 10; in convert_num()
281 else if (tval >= '0') in convert_num()
282 tval -= '0'; in convert_num()
287 if (tval >= base) { in convert_num()
289 str, tval, base); in convert_num()
[all …]
Dconflex.c63 static char *tval; variable
154 tval = tb; in get_token()
179 *rval = tval; in next_token()
203 *rval = tval; in peek_token()
252 tval = tokbuf; in read_string()
278 tval = tokbuf; in read_number()
306 tval = tokbuf; in read_num_or_name()
308 return (intern(tval, rv)); in read_num_or_name()
/mirbsd/src/bin/date/
Ddate.c58 time_t tval; variable
97 tval = atoll(optarg); in main()
124 if (!rflag && time(&tval) == -1) in main()
156 strftime(buf, sizeof (buf), format, localtime(&tval)); in main()
182 lt = localtime(&tval); in setthetime()
239 if ((tval = mktime(lt)) < 0) in setthetime()
243 if (nflag || netsettime(tval)) { in setthetime()
250 tv.tv_sec = tval - tv_current.tv_sec; in setthetime()
256 tv.tv_sec = tval; in setthetime()
Dnetdate.c68 netsettime(time_t tval) in netsettime() argument
113 msg.tsp_time.tv_sec = htonl((u_long)tval); in netsettime()
/mirbsd/src/usr.bin/chpass/
Dutil.c55 ttoa(char *buf, size_t len, time_t tval) in ttoa() argument
57 if (tval) { in ttoa()
58 struct tm *tp = localtime(&tval); in ttoa()
72 time_t tval; in atot() local
81 (void)time(&tval); in atot()
82 lt = localtime(&tval); in atot()
/mirbsd/src/usr.sbin/dhcpd/
Dparse.c368 int negative = 0, tval, max; in convert_num() local
391 tval = *ptr++; in convert_num()
393 if (tval >= 'a') in convert_num()
394 tval = tval - 'a' + 10; in convert_num()
395 else if (tval >= 'A') in convert_num()
396 tval = tval - 'A' + 10; in convert_num()
397 else if (tval >= '0') in convert_num()
398 tval -= '0'; in convert_num()
403 if (tval >= base) { in convert_num()
405 str, tval, base); in convert_num()
[all …]
Dconflex.c64 static char *tval; variable
155 tval = tb; in get_token()
180 *rval = tval; in next_token()
204 *rval = tval; in peek_token()
253 tval = tokbuf; in read_string()
279 tval = tokbuf; in read_number()
307 tval = tokbuf; in read_num_or_name()
309 return (intern(tval, rv)); in read_num_or_name()
/mirbsd/src/lib/libssl/src/crypto/x509v3/
Dv3_ncons.c106 CONF_VALUE tval, *val; variable
119 tval.name = val->name + 10;
124 tval.name = val->name + 9;
131 tval.value = val->value;
133 if (!v2i_GENERAL_NAME_ex(sub->base, method, ctx, &tval, 1))
/mirbsd/src/usr.bin/ruptime/
Druptime.c175 interval(time_t tval, char *updown) in interval() argument
180 if (tval < 0 || tval > 999*24*60*60) { in interval()
184 minutes = (tval + 59) / 60; /* round to minutes */ in interval()
/mirbsd/src/bin/mv/
Dmv.c263 struct timeval tval[2]; in fastcopy() local
328 TIMESPEC_TO_TIMEVAL(&tval[0], &sbp->st_atimespec); in fastcopy()
329 TIMESPEC_TO_TIMEVAL(&tval[1], &sbp->st_mtimespec); in fastcopy()
330 if (utimes(to, tval)) in fastcopy()
/mirbsd/src/gnu/usr.bin/perl/ext/B/t/
DOptreeCheck.pm385 my $tval; # temp
386 if (grep s/$opt=(\w+)/$tval=$1/e, @ARGV) {
389 if (grep { $_ eq $tval } @allowed) {
390 $gOpts{$opt} = $tval;
392 else {die "invalid value: '$tval' for $opt\n"}
/mirbsd/src/lib/libedit/
Dterm.c243 } tval[] = { variable
1318 for (tv = tval; tv->name != NULL; tv++) in term_settc()
1323 if (tv == &tval[T_pt] || tv == &tval[T_km] || in term_settc()
1324 tv == &tval[T_am] || tv == &tval[T_xn]) { in term_settc()
1326 el->el_term.t_val[tv - tval] = 1; in term_settc()
1328 el->el_term.t_val[tv - tval] = 0; in term_settc()
1348 el->el_term.t_val[tv - tval] = (int) i; in term_settc()
1351 if (tv == &tval[T_co] || tv == &tval[T_li]) in term_settc()
/mirbsd/src/libexec/mail.local/
Dmail.local.c120 time_t tval; in storemail() local
132 (void)time(&tval); in storemail()
133 (void)fprintf(fp, "From %s %s", from, ctime(&tval)); in storemail()
/mirbsd/src/usr.bin/ftp/
Druserpass.c65 int tval; member
314 return (t->tval); in token()
/mirbsd/src/gnu/usr.bin/binutils/gdb/
Dada-exp.y158 struct type *tval; member
168 %type <tval> type
172 %token <tval> TYPENAME
188 %type <tval> save_qualifier
Df-exp.y138 struct type *tval; member
157 %type <tval> type typebase
163 %type <tval> ptype
Dada-lex.l731 yylval.tval = preferred_type;
759 yylval.tval = type;
/mirbsd/src/bin/mksh/
Dvar.c942 char *tval; in typeset() local
945 tval = shf_smprintf("%s%s", str_val(vp), val); in typeset()
946 val = tval; in typeset()
948 tval = NULL; in typeset()
960 if (tval != NULL) in typeset()
961 afree(tval, ATEMP); in typeset()

12