Home
last modified time | relevance | path

Searched refs:days (Results 1 – 25 of 72) sorted by relevance

123

/titanic_50/usr/src/cmd/mdb/common/libstand/
H A Dctime.c36 long days; in localtime() local
44 days = *clock / SECS_PER_DAY; in localtime()
48 --days; in localtime()
52 ++days; in localtime()
58 tmp->tm_wday = (int)((EPOCH_WDAY + days) % DAYS_PER_WEEK); in localtime()
62 if (days >= 0) { in localtime()
65 if (days < (long)year_lengths[yleap]) in localtime()
71 days = days - (long)year_lengths[yleap]; in localtime()
80 days = days + (long)year_lengths[yleap]; in localtime()
81 } while (days < 0); in localtime()
[all …]
/titanic_50/usr/src/uts/common/fs/smbclnt/netsmb/
H A Dsmb_time.c206 ulong_t days, year, month, inc; in smb_time_unix2dos() local
239 days = t / (24 * 60 * 60); in smb_time_unix2dos()
240 if (days != lastday) { in smb_time_unix2dos()
241 lastday = days; in smb_time_unix2dos()
248 if (days < inc) in smb_time_unix2dos()
250 days -= inc; in smb_time_unix2dos()
256 for (month = 0; days >= months[month]; month++) in smb_time_unix2dos()
259 days -= months[month - 1]; in smb_time_unix2dos()
260 lastddate = ((days + 1) << DD_DAY_SHIFT) in smb_time_unix2dos()
299 ulong_t days; in smb_dos2unixtime() local
[all …]
/titanic_50/usr/src/stand/lib/sa/
H A Dtime.c94 long days; in gmtime() local
101 days = *clock / SECS_PER_DAY; in gmtime()
105 --days; in gmtime()
109 ++days; in gmtime()
115 tmp->tm_wday = (int)((EPOCH_WDAY + days) % DAYS_PER_WEEK); in gmtime()
122 while (days < 0 || days >= (long)__year_lengths[isleap(y)]) { in gmtime()
123 newy = y + days / DAYS_PER_NYEAR; in gmtime()
124 if (days < 0) in gmtime()
126 days -= ((long)newy - (long)y) * DAYS_PER_NYEAR + in gmtime()
133 tmp->tm_yday = days; in gmtime()
[all …]
/titanic_50/usr/src/lib/pam_modules/ldap/
H A Dldap_acct_mgmt.c52 int days = 0, hours = 0; in warn_user_passwd_will_expire() local
55 days = sec_until_expired / 86400; in warn_user_passwd_will_expire()
57 hours = (days * 24) + seconds_d / 3600; in warn_user_passwd_will_expire()
61 if (seconds_d <= 3600 && days == 0) in warn_user_passwd_will_expire()
74 (seconds_d == 0) ? days : days + 1); in warn_user_passwd_will_expire()
88 int days = 0, hours = 0; in display_acct_unlock_time() local
101 days = sec_b4_unlock / 86400; in display_acct_unlock_time()
103 hours = (days * 24) + seconds_d / 3600; in display_acct_unlock_time()
107 if (seconds_d <= 3600 && days == 0) in display_acct_unlock_time()
123 (seconds_d == 0) ? days : days + 1); in display_acct_unlock_time()
/titanic_50/usr/src/lib/libresolv2/common/nameser/
H A Dns_ttl.c54 int secs, mins, hours, days, weeks, x; in ns_format_ttl() local
60 days = src % 7; src /= 7; in ns_format_ttl()
68 if (days) { in ns_format_ttl()
69 T(fmt1(days, 'D', &dst, &dstlen)); in ns_format_ttl()
80 if (secs || !(weeks || days || hours || mins)) { in ns_format_ttl()
/titanic_50/usr/src/lib/gss_mechs/mech_krb5/krb5/krb/
H A Dstr_conv.c287 int days, hours, minutes, seconds; in krb5_deltat_to_string() local
302 days = (int) (deltat / (24*3600L)); in krb5_deltat_to_string()
310 if (days == 0) in krb5_deltat_to_string()
313 sprintf(buffer, "%d %s %02d:%02d:%02d", days, in krb5_deltat_to_string()
314 (days > 1) ? "days" : "day", in krb5_deltat_to_string()
317 sprintf(buffer, "%d %s", days, in krb5_deltat_to_string()
318 (days > 1) ? "days" : "day"); in krb5_deltat_to_string()
/titanic_50/usr/src/cmd/cron/
H A Dfuncs.c73 int days; in days_btwn() local
93 days = (days_in_mon(m1, y1)-d1) + (d2-1); in days_btwn()
98 days += days_in_mon(m, y1); in days_btwn()
101 return (days); in days_btwn()
/titanic_50/usr/src/lib/libbc/libc/gen/common/
H A Dlocaltime.c1135 register long days; local
1141 days = *timep / SECSPERDAY;
1146 --days;
1150 ++days;
1156 tmp->tm_wday = (int) ((EPOCH_WDAY + days) % DAYSPERWEEK);
1160 if (days >= 0)
1163 if (days < (long) year_lengths[yleap])
1166 days = days - (long) year_lengths[yleap];
1171 days = days + (long) year_lengths[yleap];
1172 } while (days < 0);
[all …]
/titanic_50/usr/src/lib/pam_modules/krb5/
H A Dkrb5_acct_mgmt.c174 krb5_timestamp now, days, expiration; in exp_warn() local
245 days = (expiration - now) / DAY; in exp_warn()
246 if (days <= 0) in exp_warn()
252 else if (days == 1) in exp_warn()
264 (int)days); in exp_warn()
/titanic_50/usr/src/cmd/cmd-inet/usr.bin/
H A Druptime.c223 int days, hours, minutes; in interval() local
231 days = hours / 24; hours %= 24; in interval()
232 if (days) in interval()
234 updown, days, hours, minutes); in interval()
/titanic_50/usr/src/lib/pam_modules/unix_account/
H A Dunix_acct.c248 time_t days; in warn_user_passwd_will_expire() local
253 days = (time_t)(shpwd.sp_lstchg + shpwd.sp_max) - now; in warn_user_passwd_will_expire()
254 if (days <= 0) in warn_user_passwd_will_expire()
259 else if (days == 1) in warn_user_passwd_will_expire()
269 (int)days); in warn_user_passwd_will_expire()
/titanic_50/usr/src/cmd/auditreduce/
H A Dtime.c168 int days = 0; in tm_to_secs() local
185 days = days_month[--month]; in tm_to_secs()
187 days++; in tm_to_secs()
189 num_sec += days * 24 * 60 * 60; in tm_to_secs()
/titanic_50/usr/src/lib/libast/common/tm/
H A Dtmdata.c172 static short days[] = { 31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31 }; variable
282 Tm_data_t _tm_data_ = { format, lex, digit, days, sum, leap, zone };
/titanic_50/usr/src/cmd/rpcsvc/
H A Drup.c273 int uptime, days, hrs, mins, i; local
279 days = uptime / (60*60*24);
286 if (days > 0)
287 printf(" %2d day%s", days, days > 1 ? "s," : ", ");
/titanic_50/usr/src/lib/libc/port/gen/
H A Dlocaltime.c1190 long days; in offtime_u() local
1196 days = t / SECSPERDAY; in offtime_u()
1201 --days; in offtime_u()
1205 ++days; in offtime_u()
1212 tmptr->tm_wday = (int)((EPOCH_WDAY + days) % DAYSPERWEEK); in offtime_u()
1216 while (days < 0 || days >= (long)__year_lengths[yleap = isleap(y)]) { in offtime_u()
1219 newy = y + days / DAYSPERNYEAR; in offtime_u()
1220 if (days < 0) in offtime_u()
1222 days -= ((long)newy - (long)y) * DAYSPERNYEAR + in offtime_u()
1228 tmptr->tm_yday = (int)days; in offtime_u()
[all …]
/titanic_50/usr/src/cmd/w/
H A Dw.c175 int days, hrs, mins; in main() local
272 days = uptime / (60*60*24); in main()
279 if (days > 0) in main()
281 " %d day(s),"), days)); in main()
/titanic_50/usr/src/cmd/krb5/ldap_util/
H A Dkdb5_ldap_policy.c882 int neg, days, hours, minutes, seconds; local
889 days = duration / (24 * 3600);
897 days, days == 1 ? gettext("day") : gettext("days"),
/titanic_50/usr/src/cmd/cmd-inet/usr.sbin/
H A Din.rwhod.c757 int days, hours, minutes; in interval() local
766 days = hours / 24; in interval()
768 if (days > 0) { in interval()
770 updown, days, hours, minutes); in interval()
/titanic_50/usr/src/lib/libnsl/dial/
H A Dconn.c830 static char *days[] = { in ifdate() local
864 for (i = 0; days[i]; i++) in ifdate()
865 if (PREFIX(days[i], s)) in ifdate()
/titanic_50/usr/src/lib/libast/common/include/
H A Dtm.h120 short* days; /* days in month i */ member
/titanic_50/usr/src/cmd/whodo/
H A Dwhodo.c180 int days, hrs, mins; in main() local
268 days = uptime / (60*60*24); in main()
277 days, hrs, mins); in main()
/titanic_50/usr/src/lib/libast/amd64/include/ast/
H A Dtm.h129 short* days; /* days in month i */ member
/titanic_50/usr/src/lib/libast/sparc/include/ast/
H A Dtm.h129 short* days; /* days in month i */ member
/titanic_50/usr/src/lib/libast/sparcv9/include/ast/
H A Dtm.h129 short* days; /* days in month i */ member
/titanic_50/usr/src/lib/libast/i386/include/ast/
H A Dtm.h129 short* days; /* days in month i */ member

123