Searched defs:tm (Results 1 - 25 of 134) sorted by relevance

123456

/illumos-gate/usr/src/lib/libcurses/screen/
H A Dwtimeout.c48 wtimeout(WINDOW *win, int tm) argument
50 win->_delay = tm;
H A D_timeout.c49 timeout(int tm) argument
51 wtimeout(stdscr, tm);
/illumos-gate/usr/src/cmd/oamuser/lib/
H A Dvexpire.c45 struct tm *tm; local
53 tm = localtime( &now );
54 now -= tm->tm_hour * 60*60 + tm->tm_min * 60 + tm->tm_sec;
/illumos-gate/usr/src/lib/libast/common/tm/
H A Dtmequiv.c30 #include <tm.h>
50 * return the circa 2000 equivalent calendar year for tm
54 tmequiv(Tm_t* tm) argument
56 return tm->tm_year < (2038 - 1900) ? (tm->tm_year + 1900) : equiv[tm->tm_wday + tmisleapyear(tm->tm_year)];
H A Dtmtime.c38 tmtime(register Tm_t* tm, int west) argument
40 return tmxsec(tmxtime(tm, west));
H A Dtmweek.c48 * if week<0 then return week for tm
49 * if day<0 then set tm to first day of week
50 * otherwise set tm to day in week
51 * and return tm->tm_yday
55 tmweek(Tm_t* tm, int type, int week, int day) argument
61 if ((day = tm->tm_wday - tm->tm_yday % 7) < 0)
63 week = (tm->tm_yday + offset[day][type]) / 7;
67 week = (day > 0 && day < 6 || tmisleapyear(tm->tm_year - 1)) ? 53 : 52;
68 else if (week == 53 && (tm
[all...]
H A Dtmfix.c37 * correct out of bounds fields in tm
41 * tm is the return value
45 tmfix(register Tm_t* tm) argument
58 if (w = !tm->tm_sec && !tm->tm_min && !tm->tm_mday && !tm->tm_year && !tm->tm_yday && !tm->tm_isdst)
60 tm
[all...]
H A Dtmxtime.c42 * with other tm*() that may return static Tm_t*
46 tmxtime(register Tm_t* tm, int west) argument
54 struct tm* tl;
58 ts = *tm;
59 to = tm;
60 tm = &ts;
62 tmfix(tm);
63 y = tm->tm_year;
68 if ((n = tm->tm_mon) > 11)
73 t += tm_data.sum[n] + tm
[all...]
H A Dtmxmake.c40 tmxtm(register Tm_t* tm, Time_t t, Tm_zone_t* zone) argument
42 register struct tm* tp;
68 if (!(tm->tm_zone = zone))
71 tm->tm_zone = &tm_data.zone[2];
73 tm->tm_zone = tm_info.zone;
75 if ((o = 60 * tm->tm_zone->west) && x > o)
84 tm->tm_sec = n % 60 + leapsec;
86 tm->tm_min = n % 60;
88 tm->tm_hour = n % 24;
91 tm
[all...]
/illumos-gate/usr/src/lib/libast/common/misc/
H A Ddebug.c46 double tm; local
52 tm = (double)ru.ru_utime.tv_sec + (double)ru.ru_utime.tv_usec/1000000.0;
54 return prev = tm;
55 return tm - prev;
/illumos-gate/usr/src/lib/libc/port/gen/
H A Dcftime.c76 struct tm res;
77 struct tm *p;
89 ascftime(char *buf, const char *format, const struct tm *tm) argument
96 return ((int)strftime(buf, LONG_MAX, format, tm));
/illumos-gate/usr/src/lib/gss_mechs/mech_krb5/krb5/os/
H A Dgmt_mktime.c18 /* take a struct tm, return seconds from GMT epoch */
39 time_t krb5int_gmt_mktime(struct tm *t)
101 struct tm tm = { local
108 tm.tm_year = yr;
109 t = gmt_mktime (&tm);
/illumos-gate/usr/src/lib/libc/port/locale/
H A Dgetdate.c64 struct tm *
70 static struct tm rtm, tmnow;
71 struct tm *tmp, *rtmp = &rtm;
196 struct tm tm; local
198 (void) memset(&tm, 0, sizeof (struct tm));
199 tm.tm_year = rtm.tm_year;
200 tm.tm_mon = rtm.tm_mon;
201 tm
260 struct tm tm; local
[all...]
/illumos-gate/usr/src/lib/libc/sparc/fp/
H A D_Q_add.c53 unsigned int xm, ym, tm, fsr; local
63 tm = xm;
65 ym = tm;
H A D_Q_sub.c53 unsigned int xm, ym, tm, fsr; local
64 tm = xm;
66 ym = tm;
/illumos-gate/usr/src/lib/libast/common/string/
H A Dfmtls.c32 #include <tm.h>
55 time_t tm; local
87 tm = (flags & LS_ATIME) ? st->st_atime : (flags & LS_CTIME) ? st->st_ctime : st->st_mtime;
88 s = tmfmt(s, LS_W_LONG / 2, "%?%l", &tm);
/illumos-gate/usr/src/lib/libbc/inc/include/
H A Dtime.h36 struct tm { struct
50 extern struct tm *gmtime(), *localtime();
/illumos-gate/usr/src/cmd/localedef/
H A Dtime.c31 struct lc_time tm; variable in typeref:struct:lc_time
36 (void) memset(&tm, 0, sizeof (tm));
52 tm.c_fmt = str;
55 tm.x_fmt = str;
58 tm.X_fmt = str;
61 tm.ampm_fmt = str;
68 tm.date_fmt = str;
109 add_list(tm.mon, str, 12);
112 add_list(tm
[all...]
/illumos-gate/usr/src/uts/common/fs/zfs/lua/
H A Dltm.c53 const TValue *tm = luaH_getstr(events, ename); local
55 if (ttisnil(tm)) { /* no tag method? */
59 else return tm;
/illumos-gate/usr/src/lib/libpp/common/
H A Dppbuiltin.c194 time_t tm; local
196 time(&tm);
197 a = p = ctime(&tm) + 4;
226 time_t tm; local
228 time(&tm);
229 p = ctime(&tm) + 11;
/illumos-gate/usr/src/lib/libast/common/sfio/
H A Dsfpoll.c32 int sfpoll(Sfio_t** fa, reg int n, int tm) argument
34 int sfpoll(fa, n, tm)
37 int tm; /* time in millisecs for select/poll */
80 { if((m = (*f->disc->exceptf)(f,SF_DPOLL,&tm,f->disc)) < 0)
133 while((np = SFPOLL(fds,m,tm)) < 0 )
187 if(tm < 0)
191 tmb.tv_sec = tm/SECOND;
192 tmb.tv_usec = (tm%SECOND)*SECOND;
/illumos-gate/usr/src/lib/libbc/inc/5include/
H A Dtime.h41 struct tm { /* see ctime(3) */ struct
70 extern char * asctime(/* const struct tm *t */);
72 extern struct tm * gmtime(/* const time_t *t */);
73 extern struct tm * localtime(/* const time_t *t */);
74 extern time_t mktime(/* struct tm *timeptr */);
76 const struct tm *timeptr */);
/illumos-gate/usr/src/cmd/lp/cmd/lpsched/
H A Dlog.c129 struct tm *tm; local
132 if ((tm = localtime(&curtime)) != NULL)
134 tm->tm_mon+1, tm->tm_mday, tm->tm_hour,
135 tm->tm_min, tm->tm_sec);
/illumos-gate/usr/src/head/iso/
H A Dtime_iso.h80 struct tm { /* see ctime(3) */ struct in namespace:std
93 extern char *asctime(const struct tm *);
97 extern struct tm *gmtime(const time_t *);
98 extern struct tm *localtime(const time_t *);
99 extern time_t mktime(struct tm *);
102 const struct tm *_RESTRICT_KYWD);
/illumos-gate/usr/src/lib/libvolmgt/common/
H A Dvolprivate.c187 struct tm *tm; local
191 tm = localtime(&t);
193 tm->tm_mon+1, tm->tm_mday, tm->tm_year % 100,
194 tm->tm_hour, tm->tm_min, tm->tm_sec);

Completed in 470 milliseconds

123456