/openbsd/gnu/usr.bin/binutils/gprof/ |
H A D | hertz.c | 40 struct itimerval tim; in hertz() 42 tim.it_interval.tv_sec = 0; in hertz() 43 tim.it_interval.tv_usec = 1; in hertz() 44 tim.it_value.tv_sec = 0; in hertz() 45 tim.it_value.tv_usec = 0; in hertz() 46 setitimer (ITIMER_REAL, &tim, 0); in hertz() 47 setitimer (ITIMER_REAL, 0, &tim); in hertz() 48 if (tim.it_interval.tv_usec >= 2) in hertz() 50 return 1000000 / tim.it_interval.tv_usec; in hertz()
|
/openbsd/gnu/usr.bin/binutils-2.17/gprof/ |
H A D | hertz.c | 40 struct itimerval tim; in hertz() 42 tim.it_interval.tv_sec = 0; in hertz() 43 tim.it_interval.tv_usec = 1; in hertz() 44 tim.it_value.tv_sec = 0; in hertz() 45 tim.it_value.tv_usec = 0; in hertz() 46 setitimer (ITIMER_REAL, &tim, 0); in hertz() 47 setitimer (ITIMER_REAL, 0, &tim); in hertz() 48 if (tim.it_interval.tv_usec >= 2) in hertz() 50 return 1000000 / tim.it_interval.tv_usec; in hertz()
|
/openbsd/usr.bin/tmux/ |
H A D | window-clock.c | 49 time_t tim; member 144 gmtime_r(&data->tim, &then); in window_clock_timer_callback() 147 data->tim = t; in window_clock_timer_callback() 163 data->tim = time(NULL); in window_clock_init() 214 char tim[64], *ptr; in window_clock_draw_screen() local 227 strftime(tim, sizeof tim, "%l:%M ", localtime(&t)); in window_clock_draw_screen() 229 strlcat(tim, "PM", sizeof tim); in window_clock_draw_screen() 231 strlcat(tim, "AM", sizeof tim); in window_clock_draw_screen() 233 strftime(tim, sizeof tim, "%H:%M", tm); in window_clock_draw_screen() 246 screen_write_puts(&ctx, &gc, "%s", tim); in window_clock_draw_screen() [all …]
|
/openbsd/usr.sbin/rdate/ |
H A D | rfc868time.c | 66 u_int32_t tim; /* RFC 868 states clearly this is an uint32 */ in rfc868time_client() local 101 if (read(s, &tim, sizeof(tim)) != sizeof(tim)) in rfc868time_client() 105 tim = ntohl(tim) - DIFFERENCE; in rfc868time_client() 114 adjust->tv_sec = tim - TAI64_TO_SEC(td); in rfc868time_client()
|
H A D | rdate.c | 200 time_t tim = pdata.new.tv_sec; in main() local 203 ltm = localtime(&tim); in main()
|
/openbsd/usr.sbin/makefs/cd9660/ |
H A D | cd9660_conversion.c | 150 cd9660_compute_gm_offset(time_t tim) in cd9660_compute_gm_offset() argument 154 (void)localtime_r(&tim, &t); in cd9660_compute_gm_offset() 155 (void)gmtime_r(&tim, &gm); in cd9660_compute_gm_offset() 170 cd9660_time_8426(unsigned char *buf, time_t tim) in cd9660_time_8426() argument 175 (void)localtime_r(&tim, &t); in cd9660_time_8426() 185 buf[16] = cd9660_compute_gm_offset(tim); in cd9660_time_8426() 190 cd9660_time_915(unsigned char *buf, time_t tim) in cd9660_time_915() argument 194 (void)localtime_r(&tim, &t); in cd9660_time_915() 201 buf[6] = cd9660_compute_gm_offset(tim); in cd9660_time_915()
|
/openbsd/usr.sbin/tcpdump/ |
H A D | packetdat.awk | 19 tim = t[1]*3600 + t[2]*60 + t[3] 28 firstSend[id] = tim 31 lastSend[id] = tim 39 firstAck[id] = tim 40 lastAck[id] = tim
|
H A D | atime.awk | 11 tim = t[1]*3600 + t[2]*60 + t[3] 13 tzero = tim 17 printf "%7.2f\t%g\n", tim-tzero, $7/1024
|
H A D | stime.awk | 11 tim = t[1]*3600 + t[2]*60 + t[3] 13 tzero = tim 18 printf "%7.2f\t%g\n", tim-tzero, substr($6,1,i-1)/1024
|
/openbsd/usr.sbin/rpc.lockd/ |
H A D | test.c | 285 struct timeval tim; in main() local 293 clnt_control(cli, CLGET_TIMEOUT, &tim); in main() 294 printf("Default timeout was %lld.%ld\n", (long long)tim.tv_sec, in main() 295 tim.tv_usec); in main() 296 tim.tv_usec = -1; in main() 297 tim.tv_sec = -1; in main() 298 clnt_control(cli, CLSET_TIMEOUT, &tim); in main() 299 clnt_control(cli, CLGET_TIMEOUT, &tim); in main() 300 printf("timeout now %lld.%ld\n", (long long)tim.tv_sec, in main() 301 tim.tv_usec); in main()
|
/openbsd/usr.bin/timeout/ |
H A D | timeout.c | 152 struct itimerval tim; in set_interval() local 154 memset(&tim, 0, sizeof(tim)); in set_interval() 155 tim.it_value.tv_sec = (time_t)iv; in set_interval() 156 iv -= (double)tim.it_value.tv_sec; in set_interval() 157 tim.it_value.tv_usec = (suseconds_t)(iv * 1000000UL); in set_interval() 159 if (setitimer(ITIMER_REAL, &tim, NULL) == -1) in set_interval()
|
/openbsd/lib/libcrypto/ocsp/ |
H A D | ocsp_ext.c | 483 OCSP_crlID_new(const char *url, long *n, char *tim) in OCSP_crlID_new() argument 502 if (tim) { in OCSP_crlID_new() 505 if (!(ASN1_GENERALIZEDTIME_set_string(cid->crlTime, tim))) in OCSP_crlID_new() 545 OCSP_archive_cutoff_new(char* tim) in OCSP_archive_cutoff_new() argument 552 if (!(ASN1_GENERALIZEDTIME_set_string(gt, tim))) in OCSP_archive_cutoff_new()
|
H A D | ocsp.h | 270 X509_EXTENSION *OCSP_crlID_new(const char *url, long *n, char *tim); 274 X509_EXTENSION *OCSP_archive_cutoff_new(char* tim);
|
/openbsd/usr.bin/rup/ |
H A D | rup.c | 184 time_t tim; in print_rup_data() local 191 tim = host_stat->curtime.tv_sec; in print_rup_data() 192 tmp_time = localtime(&tim); in print_rup_data()
|
/openbsd/usr.sbin/rbootd/ |
H A D | utils.c | 79 time_t tim; in DispPkt() local 86 tim = rconn->tstamp.tv_sec; in DispPkt() 87 tmp = localtime(&tim); in DispPkt()
|
/openbsd/usr.bin/last/ |
H A D | last.c | 231 char tim[40]; in print_entry() local 233 strftime(tim, sizeof tim, in print_entry() 236 printf("%s", tim); in print_entry()
|
/openbsd/gnu/usr.bin/gcc/gcc/testsuite/g77.dg/bprob/ |
H A D | bprob.exp | 32 set perf_ext tim
|
/openbsd/gnu/usr.bin/gcc/gcc/testsuite/gcc.misc-tests/ |
H A D | bprob.exp | 32 set perf_ext tim
|
/openbsd/sys/dev/ic/ |
H A D | acx.c | 1847 struct acx_tmplt_tim tim; in acx_init_tmplt_ordered() member 1873 if (acx_set_tmplt(sc, ACXCMD_TMPLT_TIM, &data.tim, in acx_init_tmplt_ordered() 1874 sizeof(data.tim)) != 0) in acx_init_tmplt_ordered() 2413 struct acx_tmplt_tim tim; in acx_set_beacon_tmplt() local 2418 bzero(&tim, sizeof(tim)); in acx_set_beacon_tmplt() 2445 m_copydata(m, off, len, &tim.data); in acx_set_beacon_tmplt() 2449 return (acx_set_tmplt(sc, ACXCMD_TMPLT_TIM, &tim, len)); in acx_set_beacon_tmplt() 2727 struct acx_tmplt_tim tim; in acx_set_tim() local 2732 bzero(&tim, sizeof(tim)); in acx_set_tim() 2733 ep = ieee80211_add_tim(tim.data.u_mem, ic); in acx_set_tim() [all …]
|
/openbsd/etc/ |
H A D | locate.rc | 1 # $OpenBSD: locate.rc,v 1.8 2021/08/06 19:14:55 tim Exp $
|
/openbsd/regress/sys/netinet/tcpthread/ |
H A D | tcpthread.c | 165 struct tcp_ident_mapping *tim, union sockaddr_union *addrs) in accept_socket() argument 178 sa = (struct sockaddr *)&tim->faddr; in accept_socket() 179 len = sizeof(tim->faddr); in accept_socket() 193 memcpy(&tim->laddr, sa, sa->sa_len); in accept_socket()
|
/openbsd/usr.sbin/radiusctl/ |
H A D | radiusctl.c | 1014 time_long_str(struct timespec *tim, char *buf, size_t bufsiz) in time_long_str() argument 1018 localtime_r(&tim->tv_sec, &tm); in time_long_str() 1025 time_short_str(struct timespec *tim, struct timespec *dif, char *buf, in time_short_str() argument 1030 localtime_r(&tim->tv_sec, &tm); in time_short_str()
|
/openbsd/sys/dev/pci/ |
H A D | pciide.c | 3949 u_int8_t tim; in cmd0643_9_setup_channel() local 5497 u_int8_t tim; in natsemi_setup_channel() local 5511 tim = natsemi_pio_pulse[drvp->PIO_mode] | in natsemi_setup_channel() 8320 pcireg_t tim; in ite_setup_channel() local 8326 channel, tim), DEBUG_PROBE); in ite_setup_channel() 8362 tim |= IT_TIM_UDMA5(drive); in ite_setup_channel() 8364 tim &= ~IT_TIM_UDMA5(drive); in ite_setup_channel() 8401 tim), DEBUG_PROBE); in ite_setup_channel() 8857 u_int32_t tim, timaddr; in sch_setup_channel() local 8874 tim &= ~SCH_TIM_MASK; in sch_setup_channel() [all …]
|
/openbsd/sys/net80211/ |
H A D | ieee80211_input.c | 1610 const u_int8_t *tstamp, *ssid, *rates, *xrates, *edcaie, *wmmie, *tim; in ieee80211_recv_probe_resp() local 1651 ssid = rates = xrates = edcaie = wmmie = rsnie = wpaie = tim = NULL; in ieee80211_recv_probe_resp() 1716 tim = frm; in ieee80211_recv_probe_resp() 1809 if (tim) { in ieee80211_recv_probe_resp() 1810 ni->ni_dtimcount = tim[2]; in ieee80211_recv_probe_resp() 1811 ni->ni_dtimperiod = tim[3]; in ieee80211_recv_probe_resp() 1891 if (tim && ic->ic_bss->ni_dtimperiod != ni->ni_dtimperiod) { in ieee80211_recv_probe_resp()
|
/openbsd/usr.bin/rusers/ |
H A D | rusers.c | 644 time_t tim = ut->ut_time; in print_entry() local 646 localtime(&tim)); in print_entry()
|