HomeSort by: relevance | last modified time | path
    Searched refs:tm (Results 1 - 25 of 167) sorted by relevancy

1 2 3 4 5 6 7

  /src/tests/lib/libutil/
t_parsedate.c 58 struct tm * time_to_tm(const time_t *, struct tm *),
62 struct tm tm; local in function:parsecheck
90 ATF_CHECK(time_to_tm(&t, &tm) != NULL);
92 ATF_CHECK_MSG(tm.tm_year + 1900 == year,
94 argstr, year, (int)tm.tm_year);
96 ATF_CHECK_MSG(tm.tm_mon + 1 == month,
98 argstr, month, (int)tm.tm_mon);
100 ATF_CHECK_MSG(tm.tm_mday == day
245 struct tm tm; local in function:ATF_TC_BODY
288 struct tm tm; local in function:ATF_TC_BODY
    [all...]
  /src/usr.sbin/rtadvd/
timer.c 80 newtimer->tm = tm_max;
100 rtadvd_set_timer(struct timespec *tm, struct rtadvd_timer *timer)
106 timespecadd(&now, tm, &timer->tm);
109 if (timespeccmp(&timer->tm, &tm_max, <))
110 tm_max = timer->tm;
126 struct rtadvd_timer *tm, *tmn; local in function:rtadvd_check_timer
131 TAILQ_FOREACH_SAFE(tm, &ra_timer, next, tmn) {
132 if (!tm->enabled)
134 if (timespeccmp(&tm->tm, &now, <=))
    [all...]
timer.h 37 struct timespec tm; member in struct:rtadvd_timer
  /src/lib/libc/compat/include/
time.h 51 struct tm * __restrict);
63 struct tm *gmtime(const int32_t *);
64 struct tm *localtime(const int32_t *);
66 int32_t mktime(struct tm *);
88 struct tm *gmtime_r(const int32_t * __restrict, struct tm * __restrict);
89 struct tm *localtime_r(const int32_t * __restrict, struct tm * __restrict);
90 struct tm *offtime(const int32_t *, long);
91 struct tm *offtime_r(const int32_t *, long, struct tm *)
    [all...]
  /src/usr.bin/at/
parsetime.c 168 static void assign_date(struct tm *, int, int, int);
171 static void month(struct tm *);
174 static void plus(struct tm *);
175 static void tod(struct tm *);
313 plus(struct tm *tm)
325 tm->tm_year += delay;
328 tm->tm_mon += delay;
334 tm->tm_mday += delay;
337 tm->tm_hour += delay
    [all...]
  /src/usr.bin/mail/
format.h 38 void dateof(struct tm *, struct message *, int);
format.c 524 * Parse the 'Date:" field into a tm structure and return the gmtoff
528 date_to_tm(char *date, struct tm *tm)
566 struct tm tmp_tm;
570 * and copy the appropriate result to tm. This is not
578 tm->tm_wday = tmp_tm.tm_wday;
584 tm->tm_mday = tmp_tm.tm_mday;
585 tm->tm_mon = tmp_tm.tm_mon;
596 tm->tm_year = tmp_tm.tm_year;
602 tm->tm_hour = tmp_tm.tm_hour
1036 struct tm tm; local in function:smsgprintf
    [all...]
  /src/usr.bin/chpass/
util.c 60 struct tm *tp = localtime(&tval);
73 static struct tm *lt;
74 struct tm tm; local in function:atot
87 (void) memset(&tm, 0, sizeof(tm));
90 t = strptime(p, "%B %d %Y", &tm);
93 if ((*store = mktime(&tm)) == (time_t) -1)
  /src/lib/libc/time/
strptime.c 119 fromzone(const unsigned char **bp, struct tm *tm, int mandatory)
138 tm->tm_isdst = 0; /* XXX */
140 tm->TM_GMTOFF = tzgetgmtoff(tz, tm->tm_isdst);
144 tm->TM_ZONE = NULL; /* XXX */
151 strptime(const char *buf, const char *fmt, struct tm *tm)
153 return strptime_l(buf, fmt, tm, _current_locale());
157 strptime_l(const char *buf, const char *fmt, struct tm *tm, locale_t loc
    [all...]
zdump.c 92 static char const *abbr(struct tm const *);
93 static intmax_t delta(struct tm *, struct tm *);
94 static void dumptime(struct tm const *);
97 static void showextrema(timezone_t, char *, time_t, struct tm *, time_t);
98 static void showtrans(char const *, struct tm const *, time_t, char const *,
179 static struct tm *
180 gmtime_r(time_t *tp, struct tm *tmp)
182 struct tm *r = gmtime(tp);
206 static struct tm *
348 struct tm tm; local in function:my_localtime_rz
590 struct tm tm, newtm; local in function:main
728 struct tm tm; local in function:hunt
839 struct tm tm, gmtm; local in function:show
    [all...]
getdate.c 61 struct tm *
67 static struct tm rtm, tmnow;
68 struct tm *tmp, *rtmp = &rtm;
171 struct tm tm; local in function:getdate
173 memset(&tm, 0, sizeof(struct tm));
174 tm.tm_year = rtm.tm_year;
175 tm.tm_mon = rtm.tm_mon;
176 tm.tm_mday = 1
235 struct tm tm; local in function:getdate
    [all...]
asctime.c 12 ** strftime can behave badly when tm components are out of range, and
86 asctime_r(struct tm const *restrict timeptr, char *restrict buf)
157 asctime(const struct tm *timeptr)
167 struct tm mytm;
168 struct tm *tmp = localtime_rz(sp, timep, &mytm);
176 struct tm mytm;
177 struct tm *tmp = localtime_r(timep, &mytm);
186 struct tm *tmp = localtime(timep);
  /src/include/
time.h 75 struct tm { struct
90 char *asctime(const struct tm *);
95 struct tm *gmtime(const time_t *) __RENAME(__gmtime50);
96 struct tm *localtime(const time_t *) __RENAME(__locatime50);
98 time_t mktime(struct tm *) __RENAME(__mktime50);
101 const struct tm * __restrict)
131 struct tm * __restrict);
136 struct tm *getdate(const char *);
176 char *asctime_r(const struct tm * __restrict, char * __restrict);
185 struct tm *gmtime_r(const time_t * __restrict, struct tm * __restrict
    [all...]
  /src/tests/lib/libc/time/
t_strptime.c 50 struct tm tm = { -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, NULL }; local in function:h_pass
54 ret = strptime(buf, fmt, &tm);
57 "strptime(\"%s\", \"%s\", tm): incorrect return code: "
61 ATF_CHECK_MSG(tm.field == field, \
62 "strptime(\"%s\", \"%s\", tm): incorrect %s: " \
64 ___STRING(field), field, tm.field)
81 struct tm tm = { -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, NULL }; local in function:h_fail
83 ATF_CHECK_MSG(strptime(buf, fmt, &tm) == NULL, "strptime(\"%s\",
166 struct tm tm; local in function:ztest1
520 struct tm tm; local in function:ATF_TC_BODY
    [all...]
  /src/sys/arch/arm/fdt/
arm_fdt.c 278 struct efi_tm tm; local in function:arm_fdt_efi_init
299 if (arm_efirt_gettime(&tm, NULL) == 0) {
310 struct efi_tm tm; local in function:arm_fdt_efi_rtc_gettime
313 status = arm_efirt_gettime(&tm, NULL);
317 dt->dt_year = tm.tm_year;
318 dt->dt_mon = tm.tm_mon;
319 dt->dt_day = tm.tm_mday;
321 dt->dt_hour = tm.tm_hour;
322 dt->dt_min = tm.tm_min;
323 dt->dt_sec = tm.tm_sec
331 struct efi_tm tm; local in function:arm_fdt_efi_rtc_settime
    [all...]
  /src/bin/date/
date.c 98 struct tm *tm; local in function:main
208 if ((tm = localtime(&tval)) == NULL)
211 while (strftime(buf, bufsiz, format, tm) == 0)
249 struct tm tm; local in function:parse_iso_datetime
252 memset(&tm, 0, sizeof tm);
256 tm.tm_year = ATOI2(string) * 100;
257 tm.tm_year += ATOI2(string)
    [all...]
  /src/sbin/dump/
unctime.c 55 struct tm then;
  /src/lib/libcurses/
ctrace.c 59 char *tf, *tm; local in function:__CTRACE_init
61 tm = getenv("CURSES_TRACE_MASK");
62 if (tm == NULL)
65 tracemask = (int)strtol(tm, NULL, 0);
  /src/usr.bin/vgrind/
vgrind.sh 45 set tm=/usr/share/tmac
115 $vf $options -h "$head" $files | cat $tm/$vmacs -
117 $vf $options $files | cat $tm/$vmacs -
133 $vf $options -h "$head" $files | cat $tm/$vmacs -
135 $vf $options $files | cat $tm/$vmacs -
  /src/usr.bin/touch/
touch.c 71 static int difftm(const struct tm *, const struct tm *);
250 struct tm *t, tm; local in function:stime_arg1
307 tm = *t;
309 if (tsp[0].tv_sec == NO_TIME || difftm(t, &tm))
319 struct tm *t, tm; local in function:stime_arg2
341 tm = *t;
343 if (tsp[0].tv_sec == NO_TIME || difftm(t, &tm))
365 struct tm tm, tms; local in function:stime_posix
    [all...]
  /src/lib/libutil/
parsedate.y 170 struct tm tmbuf;
484 * works with tm.tm_year (ie: rel to 1900)
794 struct tm tm = {.tm_sec = 0};
795 struct tm otm;
798 tm.tm_sec = Seconds;
799 tm.tm_min = Minutes;
800 tm.tm_hour = ((Hours == 12 && Meridian != MER24) ? 0 : Hours) +
803 tm.tm_mday = Day;
804 tm.tm_mon = Month - 1
    [all...]
  /src/usr.bin/newsyslog/
newsyslog.c 713 struct tm *tmnow;
954 struct tm tm, *tmp; local in function:parse_dwm
965 tm = *tmp;
968 nd = mtab[tm.tm_mon];
970 if (tm.tm_mon == 1 &&
971 ((tm.tm_year + 1900) % 4 == 0) &&
972 ((tm.tm_year + 1900) % 100 != 0) &&
973 ((tm.tm_year + 1900) % 400 == 0))
975 tm.tm_hour = tm.tm_min = tm.tm_sec = 0
1058 struct tm tm, *tmp; local in function:parse_iso8601
    [all...]
  /src/sys/arch/hp300/stand/mkboot/
mkboot.c 289 struct tm *tm; local in function:bcddate
292 tm = gmtime(&repro_epoch);
295 tm = localtime(&statb.st_ctime);
297 *toc++ = bintobcd(tm->tm_mon + 1);
298 *toc++ = bintobcd(tm->tm_mday);
299 *toc++ = bintobcd(tm->tm_year);
300 *toc++ = bintobcd(tm->tm_hour);
301 *toc++ = bintobcd(tm->tm_min);
302 *toc = bintobcd(tm->tm_sec)
    [all...]
  /src/sys/external/bsd/compiler_rt/dist/lib/sanitizer_common/
sanitizer_platform_limits_openbsd.cc 71 unsigned struct_tm_sz = sizeof(struct tm);
213 CHECK_TYPE_SIZE(tm);
214 CHECK_SIZE_AND_OFFSET(tm, tm_sec);
215 CHECK_SIZE_AND_OFFSET(tm, tm_min);
216 CHECK_SIZE_AND_OFFSET(tm, tm_hour);
217 CHECK_SIZE_AND_OFFSET(tm, tm_mday);
218 CHECK_SIZE_AND_OFFSET(tm, tm_mon);
219 CHECK_SIZE_AND_OFFSET(tm, tm_year);
220 CHECK_SIZE_AND_OFFSET(tm, tm_wday);
221 CHECK_SIZE_AND_OFFSET(tm, tm_yday)
    [all...]
  /src/sys/arch/hppa/stand/mkboot/
mkboot.c 417 struct tm *tm; local in function:bcddate
420 tm = gmtime(&repro_epoch);
423 tm = localtime(&statb.st_ctime);
425 tm->tm_year %= 100;
426 *toc = (tm->tm_year / 10) << 4;
427 *toc++ |= tm->tm_year % 10;
428 *toc = ((tm->tm_mon+1) / 10) << 4;
429 *toc++ |= (tm->tm_mon+1) % 10;
430 *toc = (tm->tm_mday / 10) << 4
    [all...]

Completed in 25 milliseconds

1 2 3 4 5 6 7