Searched refs:ts (Results 176 - 200 of 597) sorted by relevance

1234567891011>>

/freebsd-11-stable/contrib/lua/src/
H A Dllex.c75 TString *ts = luaS_new(L, luaX_tokens[i]); local
76 luaC_fix(L, obj2gco(ts)); /* reserved words are never collected */
77 ts->extra = cast_byte(i+1); /* reserved word */
130 TString *ts = luaS_newlstr(L, str, l); /* create new string */ local
131 setsvalue2s(L, L->top++, ts); /* temporarily anchor it in stack */
140 ts = tsvalue(keyfromval(o)); /* re-use value previously stored */
143 return ts;
298 seminfo->ts = luaX_newstring(ls, luaZ_buffer(ls->buff) + (2 + sep),
424 seminfo->ts = luaX_newstring(ls, luaZ_buffer(ls->buff) + 1,
525 TString *ts; local
[all...]
/freebsd-11-stable/contrib/ntp/util/
H A Dntptime.c103 l_fp ts; local
308 TVTOTS(&tv, &ts);
309 ts.l_ui += JAN_1970;
310 ts.l_uf += ts_roundbit;
311 ts.l_uf &= ts_mask;
313 prettydate(&ts), fdigits, (int)time_frac);
318 (u_int)ts.l_ui, (u_int)ts.l_uf,
/freebsd-11-stable/contrib/top/
H A Dscreen.c414 struct ttysize ts;
416 if (ioctl (1, TIOCGSIZE, &ts) != -1)
418 if (ts.ts_lines != 0)
420 screen_length = ts.ts_lines;
422 if (ts.ts_cols != 0)
424 screen_width = ts.ts_cols - 1;
/freebsd-11-stable/sys/dev/iicbus/
H A Disl12xx.c233 isl12xx_gettime(device_t dev, struct timespec *ts) argument
276 return (clock_bcd_to_ts(&bct, ts, sc->use_ampm));
280 isl12xx_settime(device_t dev, struct timespec *ts) argument
292 ts->tv_sec -= utc_offset();
293 ts->tv_nsec = 0;
294 clock_ts_to_bcd(ts, &bct, sc->use_ampm);
/freebsd-11-stable/sys/compat/cloudabi/
H A Dcloudabi_file.c587 cloudabi_fsflags_t flags, struct timespec *ts)
591 ts[0].tv_nsec = UTIME_NOW;
593 ts[0].tv_sec = fs->st_atim / 1000000000;
594 ts[0].tv_nsec = fs->st_atim % 1000000000;
596 ts[0].tv_nsec = UTIME_OMIT;
600 ts[1].tv_nsec = UTIME_NOW;
602 ts[1].tv_sec = fs->st_mtim / 1000000000;
603 ts[1].tv_nsec = fs->st_mtim % 1000000000;
605 ts[1].tv_nsec = UTIME_OMIT;
614 struct timespec ts[ local
586 convert_utimens_arguments(const cloudabi_filestat_t *fs, cloudabi_fsflags_t flags, struct timespec *ts) argument
691 struct timespec ts[2]; local
[all...]
/freebsd-11-stable/sys/dev/ath/ath_hal/ar5212/
H A Dar5212_xmit.c878 struct ath_desc *ds, struct ath_tx_status *ts)
893 ts->ts_seqnum = MS(ads->ds_txstatus1, AR_SeqNum);
894 ts->ts_tstamp = MS(ads->ds_txstatus0, AR_SendTimestamp);
895 ts->ts_status = 0;
898 ts->ts_status |= HAL_TXERR_XRETRY;
900 ts->ts_status |= HAL_TXERR_FILT;
902 ts->ts_status |= HAL_TXERR_FIFO;
908 ts->ts_finaltsi = MS(ads->ds_txstatus1, AR_FinalTSIndex);
909 switch (ts->ts_finaltsi) {
911 ts
877 ar5212ProcTxDesc(struct ath_hal *ah, struct ath_desc *ds, struct ath_tx_status *ts) argument
[all...]
/freebsd-11-stable/sys/dev/mk48txx/
H A Dmk48txx.c157 mk48txx_gettime(device_t dev, struct timespec *ts) argument
210 return (clock_ct_to_ts(&ct, ts));
218 mk48txx_settime(device_t dev, struct timespec *ts) argument
230 if (ts->tv_nsec >= 500000000)
231 ts->tv_sec++;
232 ts->tv_nsec = 0;
233 clock_ts_to_ct(ts, &ct);
/freebsd-11-stable/sys/dev/rc/
H A Drc.c868 rc_param(struct tty *tp, struct termios *ts) argument
874 if ( ts->c_ospeed < 0 || ts->c_ospeed > 76800
875 || ts->c_ispeed < 0 || ts->c_ispeed > 76800
878 if (ts->c_ispeed == 0)
879 ts->c_ispeed = ts->c_ospeed;
880 odivs = RC_BRD(ts->c_ospeed);
881 idivs = RC_BRD(ts
[all...]
/freebsd-11-stable/contrib/ntp/clockstuff/
H A Dchutest.c285 l_fp ts; local
319 TVTOTS(&chudata.codetimes[NCHUCHARS-1], &ts);
320 ts.l_ui += JAN_1970;
352 l_fp ts; local
363 TVTOTS(&chu.codetimes[NCHUCHARS-1], &ts);
364 ts.l_ui += JAN_1970;
365 chufilter(&chu, &ts);
547 l_fp ts; local
655 ts.l_uf = 0;
656 ts
[all...]
/freebsd-11-stable/sys/dev/ath/ath_hal/ar5210/
H A Dar5210_xmit.c591 struct ath_desc *ds, struct ath_tx_status *ts)
599 ts->ts_seqnum = ads->ds_status1 & AR_SeqNum;
600 ts->ts_tstamp = MS(ads->ds_status0, AR_SendTimestamp);
601 ts->ts_status = 0;
604 ts->ts_status |= HAL_TXERR_XRETRY;
606 ts->ts_status |= HAL_TXERR_FILT;
608 ts->ts_status |= HAL_TXERR_FIFO;
610 ts->ts_rate = MS(ads->ds_ctl0, AR_XmitRate);
611 ts->ts_rssi = MS(ads->ds_status1, AR_AckSigStrength);
612 ts
590 ar5210ProcTxDesc(struct ath_hal *ah, struct ath_desc *ds, struct ath_tx_status *ts) argument
[all...]
/freebsd-11-stable/sys/netpfil/ipfw/
H A Dip_fw_table.c120 static int check_table_space(struct ip_fw_chain *ch, struct tableop_state *ts,
147 add_toperation_state(struct ip_fw_chain *ch, struct tableop_state *ts) argument
152 TAILQ_INSERT_HEAD(&tcfg->state_list, &ts->opstate, next);
156 del_toperation_state(struct ip_fw_chain *ch, struct tableop_state *ts) argument
161 TAILQ_REMOVE(&tcfg->state_list, &ts->opstate, next);
489 struct tableop_state *ts; local
491 ts = (struct tableop_state *)_state;
493 if (ts->tc != object && ts->ch != object)
496 ch = ts
557 struct tableop_state ts; local
811 check_table_space(struct ip_fw_chain *ch, struct tableop_state *ts, struct table_config *tc, struct table_info *ti, uint32_t count) argument
1180 struct tableop_state *ts; local
1209 struct tableop_state ts; local
[all...]
/freebsd-11-stable/bin/cp/
H A Dutils.c348 struct stat ts; local
364 if (fdval ? fstat(fd, &ts) :
365 (islink ? lstat(to.p_path, &ts) : stat(to.p_path, &ts)))
369 ts.st_mode &= S_ISUID | S_ISGID | S_ISVTX |
378 if (!gotstat || fs->st_uid != ts.st_uid || fs->st_gid != ts.st_gid)
389 if (!gotstat || fs->st_mode != ts.st_mode)
397 if (!gotstat || fs->st_flags != ts.st_flags)
/freebsd-11-stable/contrib/blacklist/bin/
H A Dblacklistd.c176 struct timespec ts; local
178 if (clock_gettime(CLOCK_REALTIME, &ts) == -1) {
213 fmttime(b2, sizeof(b2), ts.tv_sec));
230 dbi.last = ts.tv_sec;
279 fmttime(b2, sizeof(b2), ts.tv_sec));
301 struct timespec ts; local
308 if (clock_gettime(CLOCK_REALTIME, &ts) == -1) {
324 fmttime(b2, sizeof(b2), ts.tv_sec));
326 if (c.c_duration == -1 || when >= ts.tv_sec)
/freebsd-11-stable/lib/libc/tests/nss/
H A Dgetserv_test.c206 char *s, *ps, *ts; local
224 (int)strtol(s, &ts, 10));
225 if (*ts != '\0') {
245 ts = strdup(s);
246 ATF_REQUIRE(ts != NULL);
247 sl_add(sl, ts);
250 ts = strdup(s);
251 ATF_REQUIRE(ts != NULL);
252 sl_add(sl, ts);
H A Dgetproto_test.c201 char *s, *ps, *ts; local
218 pe->p_proto = (int)strtol(s, &ts, 10);
219 if (*ts != '\0') {
234 ts = strdup(s);
235 assert(ts != NULL);
236 sl_add(sl, ts);
239 ts = strdup(s);
240 assert(ts != NULL);
241 sl_add(sl, ts);
H A Dgetrpc_test.c200 char *s, *ps, *ts; local
217 rpc->r_number = (int)strtol(s, &ts, 10);
218 if (*ts != '\0') {
233 ts = strdup(s);
234 ATF_REQUIRE(ts != NULL);
235 sl_add(sl, ts);
238 ts = strdup(s);
239 ATF_REQUIRE(ts != NULL);
240 sl_add(sl, ts);
H A Dgetgr_test.c207 char *s, *ps, *ts; local
231 grp->gr_gid = (gid_t)strtol(s, &ts, 10);
232 if (*ts != '\0') {
252 ts = strdup(s);
253 ATF_REQUIRE(ts != NULL);
254 sl_add(sl, ts);
257 ts = strdup(s);
258 ATF_REQUIRE(ts != NULL);
259 sl_add(sl, ts);
/freebsd-11-stable/contrib/unbound/compat/
H A Dgetentropy_linux.c338 struct timespec ts; local
371 HX(clock_gettime(cl[ii], &ts) == -1, ts); local
380 ts.tv_sec = 0;
381 ts.tv_nsec = 1;
382 (void) nanosleep(&ts, NULL);
442 &ts)) == -1, ts);
444 cnt += (int)ts.tv_nsec;
/freebsd-11-stable/contrib/nvi/ex/
H A Dex_txt.c382 u_long sw, ts; local
385 ts = O_VAL(sp, O_TABSTOP);
391 scno += COL_OFF(scno, ts);
409 for (cno = 0, tabs = 0; cno + COL_OFF(cno, ts) <= scno; ++tabs)
410 cno += COL_OFF(cno, ts);
/freebsd-11-stable/contrib/ncurses/ncurses/base/
H A Dlib_box.c65 chtype ts, chtype bs,
77 _tracechtype2(3, ts),
89 RENDER_WITH_DEFAULT(ts, ACS_HLINE);
63 wborder(WINDOW *win, chtype ls, chtype rs, chtype ts, chtype bs, chtype tl, chtype tr, chtype bl, chtype br) argument
/freebsd-11-stable/contrib/ntp/sntp/libevent/test/
H A Dbench.c101 static struct timeval ts, te; local
121 evutil_gettimeofday(&ts, NULL);
131 evutil_timersub(&te, &ts, &te);
/freebsd-11-stable/release/picobsd/tinyware/help/
H A Dhelp.c45 struct ttysize ts; local
52 if (ioctl(fileno(stdout), TIOCGWINSZ, &ts)>=0) {
53 crt=ts.ts_lines-1;
/freebsd-11-stable/contrib/netbsd-tests/lib/libc/sys/
H A Dt_select.c86 child(const struct timespec *ts) argument
114 if (pselect(1, &rset, NULL, NULL, ts, &set) == -1) {
120 if (ts)
/freebsd-11-stable/sys/kern/
H A Dkern_shutdown.c284 struct timespec ts; local
286 getnanouptime(&ts);
289 if (ts.tv_sec >= 86400) {
290 printf("%ldd", (long)ts.tv_sec / 86400);
291 ts.tv_sec %= 86400;
294 if (f || ts.tv_sec >= 3600) {
295 printf("%ldh", (long)ts.tv_sec / 3600);
296 ts.tv_sec %= 3600;
299 if (f || ts.tv_sec >= 60) {
300 printf("%ldm", (long)ts
[all...]
/freebsd-11-stable/sys/arm/amlogic/aml8726/
H A Daml8726_rtc.c429 aml8726_rtc_gettime(device_t dev, struct timespec *ts) argument
441 ts->tv_sec = sec;
442 ts->tv_nsec = 0;
448 aml8726_rtc_settime(device_t dev, struct timespec *ts) argument
454 sec = ts->tv_sec;
457 if (ts->tv_nsec >= 500000000)

Completed in 193 milliseconds

1234567891011>>