/freebsd-10.0-release/crypto/heimdal/lib/roken/ |
H A D | timegm.c | 51 rk_timegm (struct tm *tm) argument 59 if (tm->tm_year < 0) 61 if (tm->tm_mon < 0 || tm->tm_mon > 11) 63 if (tm->tm_mday < 1 || tm->tm_mday > ndays[is_leap(tm->tm_year)][tm->tm_mon]) 65 if (tm [all...] |
H A D | localtime_r.c | 42 ROKEN_LIB_FUNCTION struct tm * ROKEN_LIB_CALL 43 localtime_r(const time_t *timer, struct tm *result) 50 struct tm *tm; 52 tm = localtime((time_t *)timer); 53 if (tm == NULL) 55 *result = *tm;
|
H A D | strftime.c | 119 * Return the week number of `tm' (Sunday being the first day of the week) 124 week_number_sun (const struct tm *tm) argument 126 return (tm->tm_yday + 7 - (tm->tm_yday % 7 - tm->tm_wday + 7) % 7) / 7; 130 * Return the week number of `tm' (Monday being the first day of the week) 135 week_number_mon (const struct tm *tm) argument 137 int wday = (tm 149 week_number_mon4(const struct tm *tm) argument 170 strftime(char *buf, size_t maxsize, const char *format, const struct tm *tm) argument [all...] |
H A D | tm2time.c | 47 tm2time (struct tm tm, int local) argument 51 tm.tm_isdst = local ? -1 : 0; 53 t = mktime (&tm);
|
H A D | strpftime-test.h | 50 const struct tm *tm); 53 strptime (const char *buf, const char *format, struct tm *timeptr);
|
/freebsd-10.0-release/contrib/ntp/libntp/ |
H A D | humandate.c | 24 struct tm *tm; local 26 tm = ntp2unix_tm(ntptime, 1); 28 if (!tm) 34 days[tm->tm_wday], months[tm->tm_mon], tm->tm_mday, 35 1900+tm->tm_year, tm->tm_hour, tm 49 struct tm *tm; local [all...] |
H A D | prettydate.c | 28 struct tm * 34 struct tm *tm; local 39 tm = local ? localtime(&curr) : gmtime(&curr); 40 if (!tm) return NULL; 42 curr_year = 1900 + tm->tm_year; 54 tm = local ? localtime(&t) : gmtime(&t); 65 if (1900 + tm->tm_year > curr_year - 68) break; 71 return tm; 80 struct tm *t local 110 struct tm *tm; local [all...] |
H A D | uglydate.c | 20 struct tm *tm; local 29 tm = gmtime(&sec); 35 tm->tm_yday = 0; 36 tm->tm_hour = 0; 37 tm->tm_min = 0; 38 tm->tm_sec = 0; 40 year = tm->tm_year; 45 timep, year, tm->tm_yday, tm [all...] |
/freebsd-10.0-release/crypto/heimdal/lib/asn1/ |
H A D | timegm.c | 56 _der_timegm (struct tm *tm) argument 64 if (tm->tm_year > ASN1_MAX_YEAR) 67 if (tm->tm_year < 0) 69 if (tm->tm_mon < 0 || tm->tm_mon > 11) 71 if (tm->tm_mday < 1 || tm->tm_mday > (int)ndays[is_leap(tm->tm_year)][tm 96 _der_gmtime(time_t t, struct tm *tm) argument [all...] |
H A D | check-timegm.c | 42 struct tm tm; local 45 memset(&tm, 0, sizeof(tm)); 46 tm.tm_year = 106; 47 tm.tm_mon = 9; 48 tm.tm_mday = 1; 49 tm.tm_hour = 10; 50 tm.tm_min = 3; 52 t = _der_timegm(&tm); [all...] |
/freebsd-10.0-release/crypto/openssl/crypto/ |
H A D | o_time.h | 64 struct tm *OPENSSL_gmtime(const time_t *timer, struct tm *result); 65 int OPENSSL_gmtime_adj(struct tm *tm, int offset_day, long offset_sec);
|
/freebsd-10.0-release/gnu/usr.bin/rcs/lib/ |
H A D | maketime.h | 35 struct tm *time2tm __MAKETIME_P((time_t,int)); 36 time_t difftm __MAKETIME_P((struct tm const *, struct tm const *)); 38 time_t tm2time __MAKETIME_P((struct tm *, int)); 39 void adjzone __MAKETIME_P((struct tm *, long));
|
H A D | maketime.c | 49 static int month_days P((struct tm const*)); 75 month_days(tm) 76 struct tm const *tm; 78 int m = tm->tm_mon; 80 + (m==1 && isleap(tm->tm_year + TM_YEAR_ORIGIN)); 84 * Convert UNIXTIME to struct tm form. 87 struct tm * 92 struct tm *tm; local 261 struct tm tm; local [all...] |
/freebsd-10.0-release/libexec/bootpd/ |
H A D | tzone.c | 37 struct tm *tm; 41 if ((tm = localtime(&now)) == NULL) { 45 secondswest = -tm->tm_gmtoff;
|
/freebsd-10.0-release/contrib/file/ |
H A D | cdf_time.c | 101 struct tm tm; local 111 tm.tm_sec = (int)(t % 60); 114 tm.tm_min = (int)(t % 60); 117 tm.tm_hour = (int)(t % 24); 121 tm.tm_year = (int)(CDF_BASE_YEAR + (t / 365)); 123 rdays = cdf_getdays(tm.tm_year); 125 tm.tm_mday = cdf_getday(tm.tm_year, (int)t); 126 tm 154 struct tm tm; local [all...] |
/freebsd-10.0-release/usr.sbin/newsyslog/ |
H A D | ptimes.c | 74 struct tm basetm; /* Base Time expanded into fields */ 75 struct tm tm; /* Time expanded into fields */ member in struct:ptime_data 100 * We are usually called with a 'tm-year' value 133 struct tm tm; local 144 tm = ptime->tm; 148 tm.tm_year = ((l / 1000000) - 19) * 100; 152 tm 226 struct tm tm; local [all...] |
/freebsd-10.0-release/contrib/ldns/compat/ |
H A D | gmtime_r.c | 9 struct tm *gmtime_r(const time_t *timep, struct tm *result)
|
H A D | localtime_r.c | 9 struct tm *localtime_r(const time_t *timep, struct tm *result)
|
H A D | timegm.c | 14 timegm (struct tm *tm) { argument 21 ret = mktime(tm);
|
/freebsd-10.0-release/contrib/llvm/lib/Target/R600/ |
H A D | AMDGPU.h | 25 FunctionPass *createR600ExpandSpecialInstrsPass(TargetMachine &tm); 26 FunctionPass *createR600EmitClauseMarkers(TargetMachine &tm); 27 FunctionPass *createR600Packetizer(TargetMachine &tm); 28 FunctionPass *createR600ControlFlowFinalizer(TargetMachine &tm); 32 FunctionPass *createSILowerControlFlowPass(TargetMachine &tm); 34 FunctionPass *createSIInsertWaits(TargetMachine &tm); 38 FunctionPass *createAMDGPUConvertToISAPass(TargetMachine &tm); 39 FunctionPass* createAMDGPUIndirectAddressingPass(TargetMachine &tm);
|
/freebsd-10.0-release/usr.bin/calendar/ |
H A D | day.c | 43 const struct tm tm0; 49 settimes(time_t now, int before, int after, int friday, struct tm *tp1, struct tm *tp2) 52 struct tm tp; 89 struct tm tm, tp; local 94 tm = tm0; 95 tm.tm_mday = tp.tm_mday; 96 tm.tm_mon = tp.tm_mon; 97 tm [all...] |
/freebsd-10.0-release/contrib/unbound/compat/ |
H A D | strptime.c | 103 /** Converts the character string s to values which are stored in tm 107 unbound_strptime(const char *s, const char *format, struct tm *tm) argument 139 tm->tm_wday = ret; 150 tm->tm_mon = ret; 153 if (!(s = unbound_strptime(s, "%x %X", tm))) { 164 tm->tm_year = ret*100 + (tm->tm_year%100); 167 tm->tm_year = ret*100 - TM_YEAR_BASE; 177 tm [all...] |
/freebsd-10.0-release/contrib/llvm/lib/Target/Mips/ |
H A D | MipsConstantIslandPass.cpp | 51 MipsConstantIslands(TargetMachine &tm) argument 52 : MachineFunctionPass(ID), TM(tm), 53 TII(static_cast<const MipsInstrInfo*>(tm.getInstrInfo())), 78 FunctionPass *llvm::createMipsConstantIslandPass(MipsTargetMachine &tm) { argument 79 return new MipsConstantIslands(tm);
|
/freebsd-10.0-release/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/ |
H A D | trim_map.c | 43 #define TRIM_MAP_SINC(tm, size) \ 44 atomic_add_64(&(tm)->tm_bytes, (size)) 46 #define TRIM_MAP_SDEC(tm, size) \ 47 atomic_add_64(&(tm)->tm_bytes, -(size)) 49 #define TRIM_MAP_QINC(tm) \ 50 atomic_inc_64(&(tm)->tm_pending); \ 52 #define TRIM_MAP_QDEC(tm) \ 53 atomic_dec_64(&(tm)->tm_pending); 156 trim_map_t *tm; local 163 tm 181 trim_map_t *tm; local 221 trim_map_segment_add(trim_map_t *tm, uint64_t start, uint64_t end, uint64_t txg) argument 283 trim_map_segment_remove(trim_map_t *tm, trim_seg_t *ts, uint64_t start, uint64_t end) argument 318 trim_map_free_locked(trim_map_t *tm, uint64_t start, uint64_t end, uint64_t txg) argument 341 trim_map_t *tm = vd->vdev_trimmap; local 355 trim_map_t *tm = vd->vdev_trimmap; local 401 trim_map_t *tm = vd->vdev_trimmap; local 431 trim_map_first(trim_map_t *tm, uint64_t txg, uint64_t txgsafe, hrtime_t time) argument 450 trim_map_t *tm = vd->vdev_trimmap; local 490 trim_map_t *tm = vd->vdev_trimmap; local [all...] |
/freebsd-10.0-release/usr.bin/at/ |
H A D | parsetime.c | 285 plus_or_minus(struct tm *tm, int delay) argument 293 tm->tm_year += delay; 296 tm->tm_mon += delay; 301 tm->tm_mday += delay; 304 tm->tm_hour += delay; 307 tm->tm_min += delay; 317 tm->tm_isdst = -1; 318 if (mktime(tm) < 0) 330 plus(struct tm *t argument 345 minus(struct tm *tm) argument 361 tod(struct tm *tm) argument 427 assign_date(struct tm *tm, long mday, long mon, long year) argument 476 month(struct tm *tm) argument [all...] |