/freebsd/tools/build/ |
H A D | futimens.c | 40 futimens(int fd, const struct timespec times[2]) in futimens() 46 if (times == NULL || (times[0].tv_nsec == UTIME_NOW && in futimens() 47 times[1].tv_nsec == UTIME_NOW)) in futimens() 49 else if (times[0].tv_nsec == UTIME_OMIT && in futimens() 50 times[1].tv_nsec == UTIME_OMIT) in futimens() 53 if ((times[0].tv_nsec < 0 || times[0].tv_nsec > 999999999) && in futimens() 54 times[0].tv_nsec != UTIME_NOW && in futimens() 55 times[0].tv_nsec != UTIME_OMIT) { in futimens() 59 if ((times[1].tv_nsec < 0 || times[1].tv_nsec > 999999999) && in futimens() 60 times[1].tv_nsec != UTIME_NOW && in futimens() [all …]
|
H A D | utimensat.c | 40 utimensat(int fd, const char *path, const struct timespec times[2], int flag) in utimensat() 50 if (times == NULL || (times[0].tv_nsec == UTIME_NOW && in utimensat() 51 times[1].tv_nsec == UTIME_NOW)) in utimensat() 53 else if (times[0].tv_nsec == UTIME_OMIT && in utimensat() 54 times[1].tv_nsec == UTIME_OMIT) in utimensat() 57 if ((times[0].tv_nsec < 0 || times[0].tv_nsec > 999999999) && in utimensat() 58 times[0].tv_nsec != UTIME_NOW && in utimensat() 59 times[0].tv_nsec != UTIME_OMIT) { in utimensat() 63 if ((times[1].tv_nsec < 0 || times[1].tv_nsec > 999999999) && in utimensat() 64 times[1].tv_nsec != UTIME_NOW && in utimensat() [all …]
|
/freebsd/contrib/libarchive/cpio/test/ |
H A D | test_option_a.c | 38 struct utimbuf times; in test_create() local 54 memset(×, 0, sizeof(times)); in test_create() 56 times.actime = 86400; in test_create() 57 times.modtime = 86400; in test_create() 59 times.actime = 1; in test_create() 60 times.modtime = 3; in test_create() 62 assertEqualInt(0, utime(files[i].name, ×)); in test_create()
|
H A D | test_option_u.c | 16 struct utimbuf times; in DEFINE_TEST() local 39 memset(×, 0, sizeof(times)); in DEFINE_TEST() 40 times.actime = 1; in DEFINE_TEST() 41 times.modtime = 3; in DEFINE_TEST() 42 assertEqualInt(0, utime("f", ×)); in DEFINE_TEST()
|
/freebsd/crypto/heimdal/lib/krb5/ |
H A D | test_keytab.c | 174 perf_add(krb5_context context, krb5_keytab id, int times) in perf_add() argument 179 perf_find(krb5_context context, krb5_keytab id, int times) in perf_find() argument 184 perf_delete(krb5_context context, krb5_keytab id, int forward, int times) in perf_delete() argument 192 static int times = 1000; variable 197 {"times", 0, arg_integer, ×, 253 perf_add(context, id, times); in main() 254 perf_find(context, id, times); in main() 255 perf_delete(context, id, 0, times); in main() 258 perf_add(context, id, times); in main() 259 perf_find(context, id, times); in main() [all …]
|
H A D | creds.c | 94 c->times = incred->times; in krb5_copy_creds_contents() 242 match = krb5_times_equal(&mcreds->times, &creds->times); in krb5_compare_creds() 246 match = (mcreds->times.renew_till <= creds->times.renew_till) && in krb5_compare_creds() 247 (mcreds->times.endtime <= creds->times.endtime); in krb5_compare_creds()
|
H A D | ticket.c | 778 if (creds->times.starttime == 0 in _krb5_extract_ticket() 788 if (creds->times.starttime != 0 in _krb5_extract_ticket() 789 && tmp_time != creds->times.starttime) { in _krb5_extract_ticket() 795 creds->times.starttime = tmp_time; in _krb5_extract_ticket() 802 if (creds->times.renew_till != 0 in _krb5_extract_ticket() 803 && tmp_time > creds->times.renew_till) { in _krb5_extract_ticket() 809 creds->times.renew_till = tmp_time; in _krb5_extract_ticket() 811 creds->times.authtime = rep->enc_part.authtime; in _krb5_extract_ticket() 813 if (creds->times.endtime != 0 in _krb5_extract_ticket() 814 && rep->enc_part.endtime > creds->times.endtime) { in _krb5_extract_ticket() [all …]
|
/freebsd/lib/libc/gen/ |
H A D | utime.c | 37 utime(const char *path, const struct utimbuf *times) in utime() argument 41 if (times) { in utime() 42 tv[0].tv_sec = times->actime; in utime() 43 tv[1].tv_sec = times->modtime; in utime()
|
/freebsd/contrib/bc/scripts/ |
H A D | karatsuba.py | 38 print("\n num_iterations is the number of times to run each karatsuba number; default is 4") 95 times = [] variable 229 times.append(avg) 231 print(", Time: {}".format(times[i - mn])) 235 # want to report the best run, so we make sure to grab the times here before 238 times = times[0:i] variable 244 opt = nums[times.index(min(times))]
|
/freebsd/crypto/heimdal/kuser/ |
H A D | klist.c | 86 if(cred->times.starttime) in print_cred() 88 printable_time(cred->times.starttime)); in print_cred() 91 printable_time(cred->times.authtime)); in print_cred() 93 if(cred->times.endtime > sec) in print_cred() 95 printable_time(cred->times.endtime)); in print_cred() 185 printable_time_long(cred->times.authtime)); in print_cred_verbose() 186 if(cred->times.authtime != cred->times.starttime) in print_cred_verbose() 188 printable_time_long(cred->times.starttime)); in print_cred_verbose() 190 printable_time_long(cred->times.endtime)); in print_cred_verbose() 191 if(sec > cred->times.endtime) in print_cred_verbose() [all …]
|
H A D | kimpersonate.c | 93 et.authtime = cred->times.authtime; in encode_ticket() 95 et.endtime = cred->times.endtime; in encode_ticket() 176 cred.times.authtime = time(NULL); in create_krb5_tickets() 177 cred.times.starttime = time(NULL); in create_krb5_tickets() 178 cred.times.endtime = time(NULL) + expiration_time; in create_krb5_tickets() 179 cred.times.renew_till = 0; in create_krb5_tickets()
|
/freebsd/crypto/heimdal/appl/ftp/ftpd/ |
H A D | klist.c | 47 if(cred->times.starttime) in print_cred() 48 krb5_format_time(context, cred->times.starttime, t1, sizeof(t1), 1); in print_cred() 50 krb5_format_time(context, cred->times.authtime, t1, sizeof(t1), 1); in print_cred() 52 if(cred->times.endtime > sec) in print_cred() 53 krb5_format_time(context, cred->times.endtime, t2, sizeof(t2), 1); in print_cred()
|
/freebsd/bin/sh/tests/expansion/ |
H A D | cmdsubst1.0 | 24 check '-n "$(times)"' 25 check '-n "$(times; :)"' 26 check '-n "$(times 2>&1)"' 27 check '-n "$(times 2>&1; :)"'
|
/freebsd/contrib/ntp/sntp/libevent/test/ |
H A D | regress_thread.c | 499 static struct timeval times[5]; variable 505 if (arg == ×[4]) { in note_time_cb() 537 memset(times,0,sizeof(times)); in thread_no_events() 540 -1, 0, note_time_cb, ×[i]); in thread_no_events() 552 evutil_timersub(×[i], &starttime, &diff); in thread_no_events() 556 test_timeval_diff_eq(&starttime, ×[0], 100); in thread_no_events() 557 test_timeval_diff_eq(&starttime, ×[1], 200); in thread_no_events() 558 test_timeval_diff_eq(&starttime, ×[2], 400); in thread_no_events() 559 test_timeval_diff_eq(&starttime, ×[3], 450); in thread_no_events() 560 test_timeval_diff_eq(&starttime, ×[4], 500); in thread_no_events()
|
/freebsd/contrib/libevent/test/ |
H A D | regress_thread.c | 499 static struct timeval times[5]; variable 505 if (arg == ×[4]) { in note_time_cb() 537 memset(times,0,sizeof(times)); in thread_no_events() 540 -1, 0, note_time_cb, ×[i]); in thread_no_events() 552 evutil_timersub(×[i], &starttime, &diff); in thread_no_events() 556 test_timeval_diff_eq(&starttime, ×[0], 100); in thread_no_events() 557 test_timeval_diff_eq(&starttime, ×[1], 200); in thread_no_events() 558 test_timeval_diff_eq(&starttime, ×[2], 400); in thread_no_events() 559 test_timeval_diff_eq(&starttime, ×[3], 450); in thread_no_events() 560 test_timeval_diff_eq(&starttime, ×[4], 500); in thread_no_events()
|
/freebsd/tools/test/stress2/tools/ |
H A D | flip.c | 88 int c, fd, i, times; in main() local 90 times = 1; in main() 95 times = atoi(optarg); in main() 127 for (i = 0; i < times; i++) { in main()
|
H A D | fstool.c | 162 int c, i, levels, leave, times; in main() local 171 times = 1; in main() 201 times = atoi(optarg); in main() 220 if (times != 1) in main() 229 for (i = 0; i < times; i++) { in main()
|
/freebsd/tests/sys/fs/fusefs/ |
H A D | utils.hh | 127 uint32_t mode, int error, int times=1); 133 void expect_flush(uint64_t ino, int times, ProcessMockerT r); 161 uint64_t size, int times, uint64_t attr_valid = UINT64_MAX, 166 uint64_t size, int times, uint64_t attr_valid = UINT64_MAX, 174 void expect_open(uint64_t ino, uint32_t flags, int times);
|
/freebsd/contrib/ofed/librdmacm/examples/ |
H A D | cmtime.c | 81 struct timeval times[STEP_CNT][2]; member 103 static struct timeval times[STEP_CNT][2]; variable 110 #define start_perf(n, s) gettimeofday(&((n)->times[s][0]), NULL) 111 #define end_perf(n, s) gettimeofday(&((n)->times[s][1]), NULL) 112 #define start_time(s) gettimeofday(×[s][0], NULL) 113 #define end_time(s) gettimeofday(×[s][1], NULL) 171 if (!zero_time(&nodes[c].times[i][0]) && in show_perf() 172 !zero_time(&nodes[c].times[i][1])) { in show_perf() 173 us = diff_us(&nodes[c].times[i][1], &nodes[c].times[i][0]); in show_perf() 187 us = diff_us(×[i][1], ×[i][0]); in show_perf()
|
/freebsd/usr.bin/gprof/ |
H A D | gprof.callg | 24 called the number of times this function is called (other 27 self the number of times this function calls itself 48 called** the number of times this function is called by 53 total* the number of times this function was called by 75 called** the number of times this child is called by this 79 total* the number of times this child is called by all 94 the propagated times and propagation denominator
|
/freebsd/contrib/ntp/util/ |
H A D | ntptime.c | 99 int times[20] = { 0 }; in main() local 249 for (c = 0; c < COUNTOF(times); c++) { in main() 255 times[c] = ntv.time.tv_frac_sec; in main() 259 printf("[ us %06d:", times[0]); in main() 260 for (c = 1; c < COUNTOF(times); c++) in main() 261 printf(" %d", times[c] - times[c - 1]); in main()
|
/freebsd/contrib/ntp/libntp/lib/isc/unix/ |
H A D | file.c | 123 struct timeval times[2]; in isc_file_settime() local 137 times[0].tv_sec = times[1].tv_sec = (long)isc_time_seconds(itime); in isc_file_settime() 142 if ((times[0].tv_sec & in isc_file_settime() 143 (1ULL << (sizeof(times[0].tv_sec) * CHAR_BIT - 1))) != 0) in isc_file_settime() 152 times[0].tv_usec = times[1].tv_usec = in isc_file_settime() 155 if (utimes(file, times) < 0) in isc_file_settime()
|
/freebsd/sys/contrib/openzfs/module/zfs/ |
H A D | spa_stats.c | 201 hrtime_t times[TXG_STATE_COMMITTED]; /* completion times */ member 232 if (sth->times[TXG_STATE_OPEN]) in spa_txg_history_show() 233 open = sth->times[TXG_STATE_OPEN] - in spa_txg_history_show() 234 sth->times[TXG_STATE_BIRTH]; in spa_txg_history_show() 236 if (sth->times[TXG_STATE_QUIESCED]) in spa_txg_history_show() 237 quiesce = sth->times[TXG_STATE_QUIESCED] - in spa_txg_history_show() 238 sth->times[TXG_STATE_OPEN]; in spa_txg_history_show() 240 if (sth->times[TXG_STATE_WAIT_FOR_SYNC]) in spa_txg_history_show() 241 wait = sth->times[TXG_STATE_WAIT_FOR_SYNC] - in spa_txg_history_show() 242 sth->times[TXG_STATE_QUIESCED]; in spa_txg_history_show() [all …]
|
/freebsd/sys/dev/qat/qat_common/ |
H A D | adf_init.c | 683 int times; in adf_dev_restarting_notify_sync() local 686 for (times = 0; times < ADF_STOP_RETRY; times++) { in adf_dev_restarting_notify_sync() 689 dev_dbg(GET_DEV(accel_dev), "retry times=%d\n", times); in adf_dev_restarting_notify_sync() 705 int times; in adf_dev_stop_notify_sync() local 719 for (times = 0; times < ADF_STOP_RETRY; times++) { in adf_dev_stop_notify_sync() 722 dev_dbg(GET_DEV(accel_dev), "retry times=%d\n", times); in adf_dev_stop_notify_sync()
|
/freebsd/contrib/unbound/util/ |
H A D | mini_event.c | 101 base->times = rbtree_create(mini_ev_cmp); in event_init() 102 if(!base->times) { in event_init() 150 while((rbnode_type*)(p = (struct event*)rbtree_first(base->times)) in handle_timeouts() 170 (void)rbtree_delete(base->times, p); in handle_timeouts() 264 free(base->times); in event_base_free() 321 (void)rbtree_insert(ev->ev_base->times, &ev->node); in event_add() 333 (void)rbtree_delete(ev->ev_base->times, &ev->node); in event_del()
|