Home
last modified time | relevance | path

Searched refs:times (Results 1 – 25 of 532) sorted by relevance

12345678910>>...22

/freebsd/tools/build/
H A Dfutimens.c46 if (times == NULL || (times[0].tv_nsec == UTIME_NOW && in futimens()
47 times[1].tv_nsec == UTIME_NOW)) 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()
59 if ((times[1].tv_nsec < 0 || times[1].tv_nsec > 999999999) && in futimens()
60 times[1].tv_nsec != UTIME_NOW && in futimens()
65 tv[0].tv_sec = times[0].tv_sec; in futimens()
67 tv[1].tv_sec = times[1].tv_sec; in futimens()
87 if (times[0].tv_nsec == UTIME_NOW) in futimens()
[all …]
H A Dutimensat.c50 if (times == NULL || (times[0].tv_nsec == UTIME_NOW && in utimensat()
51 times[1].tv_nsec == UTIME_NOW)) 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()
63 if ((times[1].tv_nsec < 0 || times[1].tv_nsec > 999999999) && in utimensat()
64 times[1].tv_nsec != UTIME_NOW && in utimensat()
69 tv[0].tv_sec = times[0].tv_sec; in utimensat()
71 tv[1].tv_sec = times[1].tv_sec; in utimensat()
91 if (times[0].tv_nsec == UTIME_NOW) in utimensat()
[all …]
/freebsd/contrib/libarchive/cpio/test/
H A Dtest_option_a.c56 struct utimbuf times; in test_create() local
72 memset(&times, 0, sizeof(times)); in test_create()
74 times.actime = 86400; in test_create()
75 times.modtime = 86400; in test_create()
77 times.actime = 1; in test_create()
78 times.modtime = 3; in test_create()
80 assertEqualInt(0, utime(files[i].name, &times)); in test_create()
H A Dtest_option_u.c34 struct utimbuf times; in DEFINE_TEST() local
57 memset(&times, 0, sizeof(times)); in DEFINE_TEST()
58 times.actime = 1; in DEFINE_TEST()
59 times.modtime = 3; in DEFINE_TEST()
60 assertEqualInt(0, utime("f", &times)); in DEFINE_TEST()
/freebsd/crypto/heimdal/lib/krb5/
H A Dtest_keytab.c174 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
192 static int times = 1000; variable
197 {"times", 0, arg_integer, &times,
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()
271 perf_add(context, id, times); in main()
[all …]
H A Dcreds.c94 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 Dticket.c778 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 Dutime.c37 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 Dkaratsuba.py95 times = [] variable
229 times.append(avg)
231 print(", Time: {}".format(times[i - mn]))
238 times = times[0:i] variable
244 opt = nums[times.index(min(times))]
/freebsd/crypto/heimdal/appl/ftp/ftpd/
H A Dklist.c47 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 Dcmdsubst1.024 check '-n "$(times)"'
25 check '-n "$(times; :)"'
26 check '-n "$(times 2>&1)"'
27 check '-n "$(times 2>&1; :)"'
/freebsd/crypto/heimdal/kuser/
H A Dklist.c86 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()
190 printable_time_long(cred->times.endtime)); in print_cred_verbose()
191 if(sec > cred->times.endtime) in print_cred_verbose()
361 expired = time(NULL) > creds.times.endtime; in check_for_tgt()
[all …]
H A Dkimpersonate.c93 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/tools/test/stress2/tools/
H A Dflip.c88 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 Dfstool.c162 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 Dutils.hh125 uint32_t mode, int error, int times=1);
131 void expect_flush(uint64_t ino, int times, ProcessMockerT r);
159 uint64_t size, int times, uint64_t attr_valid = UINT64_MAX,
164 uint64_t size, int times, uint64_t attr_valid = UINT64_MAX,
172 void expect_open(uint64_t ino, uint32_t flags, int times);
/freebsd/contrib/ntp/sntp/libevent/test/
H A Dregress_thread.c499 static struct timeval times[5]; variable
505 if (arg == &times[4]) { in note_time_cb()
537 memset(times,0,sizeof(times)); in thread_no_events()
540 -1, 0, note_time_cb, &times[i]); in thread_no_events()
552 evutil_timersub(&times[i], &starttime, &diff); in thread_no_events()
556 test_timeval_diff_eq(&starttime, &times[0], 100); in thread_no_events()
557 test_timeval_diff_eq(&starttime, &times[1], 200); in thread_no_events()
558 test_timeval_diff_eq(&starttime, &times[2], 400); in thread_no_events()
559 test_timeval_diff_eq(&starttime, &times[3], 450); in thread_no_events()
560 test_timeval_diff_eq(&starttime, &times[4], 500); in thread_no_events()
/freebsd/contrib/libevent/test/
H A Dregress_thread.c499 static struct timeval times[5]; variable
505 if (arg == &times[4]) { in note_time_cb()
537 memset(times,0,sizeof(times)); in thread_no_events()
540 -1, 0, note_time_cb, &times[i]); in thread_no_events()
552 evutil_timersub(&times[i], &starttime, &diff); in thread_no_events()
556 test_timeval_diff_eq(&starttime, &times[0], 100); in thread_no_events()
557 test_timeval_diff_eq(&starttime, &times[1], 200); in thread_no_events()
558 test_timeval_diff_eq(&starttime, &times[2], 400); in thread_no_events()
559 test_timeval_diff_eq(&starttime, &times[3], 450); in thread_no_events()
560 test_timeval_diff_eq(&starttime, &times[4], 500); in thread_no_events()
/freebsd/usr.bin/gprof/
H A Dgprof.callg24 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/ofed/librdmacm/examples/
H A Dcmtime.c81 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(&times[s][0], NULL)
113 #define end_time(s) gettimeofday(&times[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(&times[i][1], &times[i][0]); in show_perf()
/freebsd/contrib/ntp/util/
H A Dntptime.c99 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 Dfile.c123 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 Dspa_stats.c232 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()
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()
242 sth->times[TXG_STATE_QUIESCED]; in spa_txg_history_show()
244 if (sth->times[TXG_STATE_SYNCED]) in spa_txg_history_show()
245 sync = sth->times[TXG_STATE_SYNCED] - in spa_txg_history_show()
246 sth->times[TXG_STATE_WAIT_FOR_SYNC]; in spa_txg_history_show()
[all …]
/freebsd/sys/dev/qat/qat_common/
H A Dadf_init.c683 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 Dmini_event.c101 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()

12345678910>>...22