| /netbsd-src/usr.sbin/ac/ |
| H A D | ac.c | 62 time_t secs; member 244 update_user(struct user_list *head, char *name, time_t secs) in update_user() argument 250 up->secs += secs; in update_user() 251 Total += secs; in update_user() 265 up->secs = secs; in update_user() 266 Total += secs; in update_user() 333 show(const char *name, time_t secs) in show() argument 336 ((double)secs / 3600)); in show() 345 show(lp->name, lp->secs); in show_users() 352 show_today(struct user_list *users, struct utmp_list *logins, time_t secs) in show_today() argument [all …]
|
| /netbsd-src/usr.bin/leave/ |
| H A D | leave.c | 73 u_int secs; in main() local 112 secs = (hours * HOUR) + (minutes * MINUTE); in main() 123 secs = (hours - t->tm_hour) * HOUR; in main() 124 secs += (minutes - t->tm_min) * MINUTE; in main() 126 doalarm(secs); in main() 131 doalarm(u_int secs) in doalarm() argument 147 daytime += secs; in doalarm() 156 if (secs >= FIVEMIN) { in doalarm() 157 sleep(secs - FIVEMIN); in doalarm() 160 secs = FIVEMIN; in doalarm() [all …]
|
| /netbsd-src/external/bsd/ntp/dist/libntp/ |
| H A D | ntp_calgps.c | 68 if (datum->secs >= limit) { in _norm_ntp_datum() 71 while ((datum->secs -= limit) >= limit); in _norm_ntp_datum() 72 } else if (datum->secs < 0) { in _norm_ntp_datum() 75 while ((datum->secs += limit) < 0); in _norm_ntp_datum() 112 datum->secs += (datum->frac < offset.l_uf); in gpsntp_add_offset() 116 datum->secs -= (int32_t)~offset.l_ui + 1; in gpsntp_add_offset() 118 datum->secs += (int32_t)offset.l_ui; in gpsntp_add_offset() 203 retv.secs = ntpcal_date_to_daysec(jd); in _gpsntp_from_daytime() 208 if (pivot->secs < shift) { in _gpsntp_from_daytime() 209 int32_t lim = pivot->secs + shift; in _gpsntp_from_daytime() [all …]
|
| /netbsd-src/external/mpl/bind/dist/lib/dns/ |
| H A D | time.c | 39 int secs; in dns_time64_totext() 56 secs = year_secs(tm.tm_year + 1900); in dns_time64_totext() 57 t += secs; in dns_time64_totext() 59 while ((secs = year_secs(tm.tm_year + 1900)) <= t) { in dns_time64_totext() 60 t -= secs; in dns_time64_totext() 67 while ((secs = month_secs(tm.tm_mon, tm.tm_year + 1900)) <= t) { in dns_time64_totext() 68 t -= secs; in dns_time64_totext() 136 int secs; in dns_time64_fromtext() 192 secs = (is_leap(i) ? 366 : 365) * 86400; in dns_time64_fromtext() 193 value -= secs; in dns_time64_fromtext() 40 int secs; dns_time64_totext() local 137 int secs; dns_time64_fromtext() local [all...] |
| /netbsd-src/external/mpl/dhcp/bind/dist/lib/dns/ |
| H A D | time.c | 40 int secs; in dns_time64_totext() local 57 secs = year_secs(tm.tm_year + 1900); in dns_time64_totext() 58 t += secs; in dns_time64_totext() 60 while ((secs = year_secs(tm.tm_year + 1900)) <= t) { in dns_time64_totext() 61 t -= secs; in dns_time64_totext() 68 while ((secs = month_secs(tm.tm_mon, tm.tm_year + 1900)) <= t) { in dns_time64_totext() 69 t -= secs; in dns_time64_totext() 137 int secs; in dns_time64_fromtext() local 193 secs = (is_leap(i) ? 366 : 365) * 86400; in dns_time64_fromtext() 194 value -= secs; in dns_time64_fromtext() [all …]
|
| /netbsd-src/external/bsd/libarchive/dist/libarchive/ |
| H A D | archive_entry_copy_bhfi.c | 56 time_t secs; in archive_entry_copy_bhfi() local 59 fileTimeToUtc(&bhfi->ftLastAccessTime, &secs, &nsecs); in archive_entry_copy_bhfi() 60 archive_entry_set_atime(entry, secs, nsecs); in archive_entry_copy_bhfi() 61 fileTimeToUtc(&bhfi->ftLastWriteTime, &secs, &nsecs); in archive_entry_copy_bhfi() 62 archive_entry_set_mtime(entry, secs, nsecs); in archive_entry_copy_bhfi() 63 fileTimeToUtc(&bhfi->ftCreationTime, &secs, &nsecs); in archive_entry_copy_bhfi() 64 archive_entry_set_birthtime(entry, secs, nsecs); in archive_entry_copy_bhfi() 65 archive_entry_set_ctime(entry, secs, nsecs); in archive_entry_copy_bhfi()
|
| /netbsd-src/external/gpl3/gcc.old/dist/libgfortran/intrinsics/ |
| H A D | system_clock.c | 74 gf_gettime_mono (time_t * secs, long * fracsecs, long * tck) in gf_gettime_mono() argument 81 *secs = ts.tv_sec; in gf_gettime_mono() 91 *secs = ts.tv_sec; in gf_gettime_mono() 97 err = gf_gettime (secs, fracsecs); in gf_gettime_mono() 140 time_t secs; in system_clock_4() 143 if (gf_gettime_mono (&secs, &fracsecs, &tck) == 0) in system_clock_4() 147 GFC_UINTEGER_4 ucnt = (GFC_UINTEGER_4) secs * tck_out; in system_clock_4() 204 time_t secs; in system_clock_8() 207 if (gf_gettime_mono (&secs, &fracsecs, &tck) == 0) in system_clock_8() 209 GFC_UINTEGER_8 ucnt = (GFC_UINTEGER_8) secs * tck; in system_clock_8()
|
| /netbsd-src/external/gpl3/gcc/dist/libgfortran/intrinsics/ |
| H A D | system_clock.c | 74 gf_gettime_mono (time_t * secs, long * fracsecs, long * tck) in gf_gettime_mono() argument 81 *secs = ts.tv_sec; in gf_gettime_mono() 91 *secs = ts.tv_sec; in gf_gettime_mono() 97 err = gf_gettime (secs, fracsecs); in gf_gettime_mono() 140 time_t secs; in system_clock_4() 143 if (gf_gettime_mono (&secs, &fracsecs, &tck) == 0) in system_clock_4() 147 GFC_UINTEGER_4 ucnt = (GFC_UINTEGER_4) secs * tck_out; in system_clock_4() 204 time_t secs; in system_clock_8() 207 if (gf_gettime_mono (&secs, &fracsecs, &tck) == 0) in system_clock_8() 209 GFC_UINTEGER_8 ucnt = (GFC_UINTEGER_8) secs * tck; in system_clock_8()
|
| /netbsd-src/sys/dev/ |
| H A D | clock_subr.c | 85 uint64_t secs, i, year, days; in clock_ymdhms_to_secs() local 131 secs = (((uint64_t)days in clock_ymdhms_to_secs() 136 if ((time_t)secs < 0 || secs > __type_max(time_t)) in clock_ymdhms_to_secs() 138 return secs; in clock_ymdhms_to_secs() 142 clock_secs_to_ymdhms(time_t secs, struct clock_ymdhms *dt) in clock_secs_to_ymdhms() argument 149 if (secs < 0) in clock_secs_to_ymdhms() 152 days = secs / SECS_PER_DAY; in clock_secs_to_ymdhms() 153 rsec = secs % SECS_PER_DAY; in clock_secs_to_ymdhms()
|
| /netbsd-src/sys/arch/landisk/stand/boot/ |
| H A D | getsecs.c | 200 satime_t secs; in getsecs() local 217 secs = sec; in getsecs() 218 secs += min * 60; in getsecs() 219 secs += hour * 60 * 60; in getsecs() 220 secs += day * 60 * 60 * 24; in getsecs() 226 printf("getsecs: secs = %d\n", (uint32_t)secs); in getsecs() 229 return secs; in getsecs()
|
| /netbsd-src/external/gpl3/binutils/dist/gas/config/ |
| H A D | obj-ecoff.c | 76 asection *secs[n_names]; in ecoff_frob_file_before_fix() local 81 secs[i] = NULL; in ecoff_frob_file_before_fix() 88 secs[i] = sec; in ecoff_frob_file_before_fix() 99 if (secs[i]) in ecoff_frob_file_before_fix() 101 bfd_set_section_vma (secs[i], addr); in ecoff_frob_file_before_fix() 102 addr += bfd_section_size (secs[i]); in ecoff_frob_file_before_fix() 105 if (secs[i]) in ecoff_frob_file_before_fix() 106 bfd_section_list_prepend (stdoutput, secs[i]); in ecoff_frob_file_before_fix()
|
| /netbsd-src/external/gpl3/binutils.old/dist/gas/config/ |
| H A D | obj-ecoff.c | 76 asection *secs[n_names]; in ecoff_frob_file_before_fix() local 81 secs[i] = NULL; in ecoff_frob_file_before_fix() 88 secs[i] = sec; in ecoff_frob_file_before_fix() 99 if (secs[i]) in ecoff_frob_file_before_fix() 101 bfd_set_section_vma (secs[i], addr); in ecoff_frob_file_before_fix() 102 addr += bfd_section_size (secs[i]); in ecoff_frob_file_before_fix() 105 if (secs[i]) in ecoff_frob_file_before_fix() 106 bfd_section_list_prepend (stdoutput, secs[i]); in ecoff_frob_file_before_fix()
|
| /netbsd-src/bin/ps/ |
| H A D | print.c | 861 int32_t origseconds, secs, mins, hours, days; in elapsed() local 881 secs = origseconds; in elapsed() 882 mins = secs / SECSPERMIN; in elapsed() 883 secs %= SECSPERMIN; in elapsed() 945 (void)printf(":%.2d", secs); in elapsed() 1009 cputime1(int32_t secs, int32_t psecs, VAR *v, enum mode mode) in cputime1() argument 1017 secs += psecs / 100; in cputime1() 1027 if (secs == 0) in cputime1() 1028 secs = SECSPERMIN; in cputime1() 1030 if (secs > v->longestp) { in cputime1() [all …]
|
| /netbsd-src/usr.bin/systat/ |
| H A D | iostat.c | 50 static int secs = 0; /* default seconds shown */ variable 130 #define COLWIDTH (9 + secs * 5 + 1 + read_write * 9 + 1) in numlabels() 159 mvwprintw(wnd, row, col + 11 + secs * 5, in numlabels() 163 if (secs) in numlabels() 181 linesperregion = 2 + secs + (read_write ? 2 : 0); in barlabels() 193 if (secs) in barlabels() 278 if (secs) in stats() 297 if (secs) { in stats() 360 secs = !secs; in iostat_secs()
|
| /netbsd-src/external/cddl/dtracetoolkit/dist/Bin/ |
| H A D | js_stat.d | 54 secs = interval; 60 secs--; 68 /first || (secs == 0 && lines > SCREEN)/ 103 /secs == 0/ 108 secs = interval;
|
| H A D | sh_stat.d | 59 secs = interval; 65 secs--; 73 /first || (secs == 0 && lines > SCREEN)/ 115 /secs == 0/ 121 secs = interval;
|
| H A D | tcl_stat.d | 59 secs = interval; 65 secs--; 73 /first || (secs == 0 && lines > SCREEN)/ 119 /secs == 0/ 125 secs = interval;
|
| H A D | httpdstat.d | 57 secs = $1 ? $1 : 1; 64 secs--; 72 /first || (secs == 0 && lines > SCREEN)/ 115 /secs == 0/ 120 secs = $1 ? $1 : 1;
|
| H A D | rb_stat.d | 62 secs = interval; 68 secs--; 76 /first || (secs == 0 && lines > SCREEN)/ 127 /secs == 0/ 134 secs = interval;
|
| /netbsd-src/external/cddl/dtracetoolkit/dist/JavaScript/ |
| H A D | js_stat.d | 54 secs = interval; 60 secs--; 68 /first || (secs == 0 && lines > SCREEN)/ 103 /secs == 0/ 108 secs = interval;
|
| /netbsd-src/external/bsd/nsd/dist/ |
| H A D | xfrd-disk.c | 363 neato_timeout(FILE* out, const char* str, time_t secs) in neato_timeout() argument 366 if(secs <= 0) { in neato_timeout() 367 fprintf(out, " %llds", (long long)secs); in neato_timeout() 370 if(secs >= 3600*24) { in neato_timeout() 371 fprintf(out, " %lldd", (long long)(secs/(3600*24))); in neato_timeout() 372 secs = secs % (3600*24); in neato_timeout() 374 if(secs >= 3600) { in neato_timeout() 375 fprintf(out, " %lldh", (long long)(secs/3600)); in neato_timeout() 376 secs = secs%3600; in neato_timeout() 378 if(secs >= 60) { in neato_timeout() [all …]
|
| /netbsd-src/external/cddl/dtracetoolkit/dist/Shell/ |
| H A D | sh_stat.d | 59 secs = interval; 65 secs--; 73 /first || (secs == 0 && lines > SCREEN)/ 115 /secs == 0/ 121 secs = interval;
|
| /netbsd-src/external/cddl/dtracetoolkit/dist/Tcl/ |
| H A D | tcl_stat.d | 59 secs = interval; 65 secs--; 73 /first || (secs == 0 && lines > SCREEN)/ 119 /secs == 0/ 125 secs = interval;
|
| /netbsd-src/external/cddl/dtracetoolkit/dist/Java/ |
| H A D | j_stat.d | 64 secs = interval; 70 secs--; 78 /first || (secs == 0 && lines > SCREEN)/ 129 /secs == 0/ 136 secs = interval;
|
| /netbsd-src/external/cddl/dtracetoolkit/dist/Apps/ |
| H A D | httpdstat.d | 57 secs = $1 ? $1 : 1; 64 secs--; 72 /first || (secs == 0 && lines > SCREEN)/ 115 /secs == 0/ 120 secs = $1 ? $1 : 1;
|