/external/toybox/toys/pending/ |
D | telnetd.c | 209 static int handle_iacs(struct term_session *tm, int c, int fd) in handle_iacs() argument 214 curr = start = tm->buff2+tm->buff2_avail; in handle_iacs() 215 end = tm->buff2 + c -1; in handle_iacs() 216 tm->rem = 0; in handle_iacs() 233 tm->rem = 1; in handle_iacs() 250 tm->rem = end - curr; in handle_iacs() 259 curr++, tm->rem++; in handle_iacs() 262 tm->rem++; in handle_iacs() 265 tm->rem = 0; in handle_iacs() 273 memcpy(start + i, end - tm->rem, tm->rem); //put remaining if we break; in handle_iacs() [all …]
|
D | last.c | 90 time_t tm[3] = {0,}; //array for time avlues, previous, current in last_main() local 98 *tm = time(tm+1); in last_main() 110 *tm = ut.ut_tv.tv_sec; in last_main() 129 tm[1] = tm[2] = (time_t)ut.ut_tv.tv_sec; in last_main() 133 seize_duration(tm[0], tm[1]); in last_main() 140 tm[2] = (time_t)ut.ut_tv.tv_sec; in last_main() 146 seize_duration(tm[0], u->ut_tv.tv_sec); in last_main() 153 int type = !tm[2] ? EMPTY : curlog_type; in last_main() 154 if (!tm[2]) { //check process's current status (alive or dead). in last_main() 158 seize_duration(tm[0], tm[2]); in last_main() [all …]
|
/external/toybox/toys/posix/ |
D | cal.c | 26 static char *calstrings(char *buf, struct tm *tm) in calstrings() argument 32 len = strftime(temp, 21, "%B %Y", tm); in calstrings() 40 if (tm->tm_mday>1) in calstrings() 41 start = (36+tm->tm_wday-tm->tm_mday)%7; in calstrings() 42 else start = tm->tm_wday; in calstrings() 46 if (tm->tm_mon == 1) { in calstrings() 47 int year = tm->tm_year; in calstrings() 50 } else if ((tm->tm_mon+(tm->tm_mon>6 ? 1 : 0)) & 1) len = 30; in calstrings() 80 struct tm *tm; in cal_main() local 85 tm = (struct tm *)toybuf; in cal_main() [all …]
|
D | date.c | 56 int parse_posixdate(char *str, struct tm *tm) 61 sscanf(str, "%2u%2u%2u%2u%n", &tm->tm_mon, &tm->tm_mday, &tm->tm_hour, 62 &tm->tm_min, &len); 65 tm->tm_mon--; 69 unsigned year, r1 = tm->tm_year % 100, r2 = (tm->tm_year + 50) % 100, 70 century = tm->tm_year - r1; 84 tm->tm_year = year + century; 88 sscanf(str, ".%u%n", &tm->tm_sec, &len); 99 struct tm tm; in date_main() local 111 char *s = strptime(TT.showdate, TT.setfmt+(*TT.setfmt=='+'), &tm); in date_main() [all …]
|
/external/openssh/openbsd-compat/ |
D | strptime.c | 57 static char *_strptime(const char *, const char *, struct tm *, int); 61 strptime(const char *buf, const char *fmt, struct tm *tm) in strptime() argument 63 return(_strptime(buf, fmt, tm, 1)); in strptime() 67 _strptime(const char *buf, const char *fmt, struct tm *tm, int initialize) in _strptime() argument 126 if (!(bp = _strptime(bp, _ctloc(d_t_fmt), tm, 0))) in _strptime() 132 if (!(bp = _strptime(bp, "%m/%d/%y", tm, 0))) in _strptime() 138 if (!(bp = _strptime(bp, "%H:%M", tm, 0))) in _strptime() 144 if (!(bp = _strptime(bp, "%I:%M:%S %p", tm, 0))) in _strptime() 150 if (!(bp = _strptime(bp, "%H:%M:%S", tm, 0))) in _strptime() 156 if (!(bp = _strptime(bp, _ctloc(t_fmt), tm, 0))) in _strptime() [all …]
|
/external/bison/lib/ |
D | time.in.h | 132 _GL_FUNCDECL_RPL (mktime, time_t, (struct tm *__tp) _GL_ARG_NONNULL ((1))); 133 _GL_CXXALIAS_RPL (mktime, time_t, (struct tm *__tp)); 135 _GL_CXXALIAS_SYS (mktime, time_t, (struct tm *__tp)); 149 _GL_FUNCDECL_RPL (localtime_r, struct tm *, (time_t const *restrict __timer, 150 struct tm *restrict __result) 152 _GL_CXXALIAS_RPL (localtime_r, struct tm *, (time_t const *restrict __timer, 153 struct tm *restrict __result)); 156 _GL_FUNCDECL_SYS (localtime_r, struct tm *, (time_t const *restrict __timer, 157 struct tm *restrict __result) 160 _GL_CXXALIAS_SYS (localtime_r, struct tm *, (time_t const *restrict __timer, [all …]
|
/external/boringssl/src/crypto/ |
D | time_support.c | 75 struct tm *OPENSSL_gmtime(const time_t *time, struct tm *result) { in OPENSSL_gmtime() 109 static int julian_adj(const struct tm *tm, int off_day, long offset_sec, in julian_adj() argument 120 offset_hms += tm->tm_hour * 3600 + tm->tm_min * 60 + tm->tm_sec; in julian_adj() 132 time_year = tm->tm_year + 1900; in julian_adj() 133 time_month = tm->tm_mon + 1; in julian_adj() 134 time_day = tm->tm_mday; in julian_adj() 150 int OPENSSL_gmtime_adj(struct tm *tm, int off_day, long offset_sec) { in OPENSSL_gmtime_adj() argument 155 if (!julian_adj(tm, off_day, offset_sec, &time_jd, &time_sec)) { in OPENSSL_gmtime_adj() 169 tm->tm_year = time_year - 1900; in OPENSSL_gmtime_adj() 170 tm->tm_mon = time_month - 1; in OPENSSL_gmtime_adj() [all …]
|
/external/compiler-rt/test/msan/ |
D | mktime.cc | 10 struct tm tm; in main() local 11 tm.tm_year = 2014; in main() 12 tm.tm_mon = 3; in main() 13 tm.tm_mday = 28; in main() 15 tm.tm_hour = 13; in main() 17 tm.tm_min = 4; in main() 18 tm.tm_sec = 42; in main() 19 tm.tm_isdst = -1; in main() 20 time_t t = mktime(&tm); in main() 24 assert(__msan_test_shadow(&tm, sizeof(tm)) == -1); in main()
|
/external/boringssl/src/crypto/asn1/ |
D | a_utctm.c | 102 int asn1_utctime_to_tm(struct tm *tm, const ASN1_UTCTIME *d) in asn1_utctime_to_tm() argument 121 if (tm) in asn1_utctime_to_tm() 122 tm->tm_sec = 0; in asn1_utctime_to_tm() 134 if (tm) in asn1_utctime_to_tm() 139 tm->tm_year = n < 50 ? n + 100 : n; in asn1_utctime_to_tm() 142 tm->tm_mon = n - 1; in asn1_utctime_to_tm() 145 tm->tm_mday = n; in asn1_utctime_to_tm() 148 tm->tm_hour = n; in asn1_utctime_to_tm() 151 tm->tm_min = n; in asn1_utctime_to_tm() 154 tm->tm_sec = n; in asn1_utctime_to_tm() [all …]
|
D | a_gentm.c | 67 int asn1_generalizedtime_to_tm(struct tm *tm, const ASN1_GENERALIZEDTIME *d) in asn1_generalizedtime_to_tm() argument 89 if (tm) in asn1_generalizedtime_to_tm() 90 tm->tm_sec = 0; in asn1_generalizedtime_to_tm() 102 if (tm) in asn1_generalizedtime_to_tm() 107 tm->tm_year = n * 100 - 1900; in asn1_generalizedtime_to_tm() 110 tm->tm_year += n; in asn1_generalizedtime_to_tm() 113 tm->tm_mon = n - 1; in asn1_generalizedtime_to_tm() 116 tm->tm_mday = n; in asn1_generalizedtime_to_tm() 119 tm->tm_hour = n; in asn1_generalizedtime_to_tm() 122 tm->tm_min = n; in asn1_generalizedtime_to_tm() [all …]
|
/external/ipsec-tools/src/racoon/ |
D | backupsa.c | 86 static char *str2tmx __P((char *, struct tm *)); 97 struct tm *tm; local 107 tm = localtime(&t); 108 l = strftime(p, len, format, tm); 201 struct tm tm; in backupsa_from_file() local 228 memset(&tm, 0, sizeof(tm)); in backupsa_from_file() 229 p = str2tmx(buf, &tm); in backupsa_from_file() 238 created = mktime(&tm); in backupsa_from_file() 364 str2tmx(char *p, struct tm *tm) in str2tmx() argument 371 tm->tm_mon = i; in str2tmx() [all …]
|
/external/apache-harmony/x-net/src/test/impl/java.injected/org/apache/harmony/xnet/provider/jsse/ |
D | TrustManagerImplTest.java | 77 TrustManagerImpl tm = new TrustManagerImpl(ks); in testTrustManagerImpl_1() local 78 assertEquals(0, tm.getAcceptedIssuers().length); in testTrustManagerImpl_1() 79 checkTrustManager(tm); in testTrustManagerImpl_1() 85 TrustManagerImpl tm = new TrustManagerImpl(ks); in testTrustManagerImpl_2() local 86 assertEquals(1, tm.getAcceptedIssuers().length); in testTrustManagerImpl_2() 87 checkTrustManager(tm); in testTrustManagerImpl_2() 90 private void checkTrustManager(TrustManagerImpl tm) throws Exception { in checkTrustManager() argument 92 tm.checkClientTrusted(null, "RSA"); in checkTrustManager() 98 tm.checkClientTrusted(new X509Certificate[0], "RSA"); in checkTrustManager() 104 tm.checkClientTrusted(untrustedChain, "RSA"); in checkTrustManager() [all …]
|
/external/wpa_supplicant_8/src/utils/ |
D | os_win32.c | 65 struct tm tm, *tm1; in os_mktime() local 74 memset(&tm, 0, sizeof(tm)); in os_mktime() 75 tm.tm_year = year - 1900; in os_mktime() 76 tm.tm_mon = month - 1; in os_mktime() 77 tm.tm_mday = day; in os_mktime() 78 tm.tm_hour = hour; in os_mktime() 79 tm.tm_min = min; in os_mktime() 80 tm.tm_sec = sec; in os_mktime() 82 t_local = mktime(&tm); in os_mktime() 102 int os_gmtime(os_time_t t, struct os_tm *tm) in os_gmtime() argument [all …]
|
/external/bison/linux-lib/ |
D | time.h | 444 _GL_FUNCDECL_RPL (mktime, time_t, (struct tm *__tp) _GL_ARG_NONNULL ((1))); 445 _GL_CXXALIAS_RPL (mktime, time_t, (struct tm *__tp)); 447 _GL_CXXALIAS_SYS (mktime, time_t, (struct tm *__tp)); 461 _GL_FUNCDECL_RPL (localtime_r, struct tm *, (time_t const *restrict __timer, 462 struct tm *restrict __result) 464 _GL_CXXALIAS_RPL (localtime_r, struct tm *, (time_t const *restrict __timer, 465 struct tm *restrict __result)); 468 _GL_FUNCDECL_SYS (localtime_r, struct tm *, (time_t const *restrict __timer, 469 struct tm *restrict __result) 472 _GL_CXXALIAS_SYS (localtime_r, struct tm *, (time_t const *restrict __timer, [all …]
|
/external/bison/darwin-lib/ |
D | time.h | 444 _GL_FUNCDECL_RPL (mktime, time_t, (struct tm *__tp) _GL_ARG_NONNULL ((1))); 445 _GL_CXXALIAS_RPL (mktime, time_t, (struct tm *__tp)); 447 _GL_CXXALIAS_SYS (mktime, time_t, (struct tm *__tp)); 461 _GL_FUNCDECL_RPL (localtime_r, struct tm *, (time_t const *restrict __timer, 462 struct tm *restrict __result) 464 _GL_CXXALIAS_RPL (localtime_r, struct tm *, (time_t const *restrict __timer, 465 struct tm *restrict __result)); 468 _GL_FUNCDECL_SYS (localtime_r, struct tm *, (time_t const *restrict __timer, 469 struct tm *restrict __result) 472 _GL_CXXALIAS_SYS (localtime_r, struct tm *, (time_t const *restrict __timer, [all …]
|
/external/fio/ |
D | tickmarks.c | 42 static void shorten(struct tickmark *tm, int nticks, int *power_of_ten, in shorten() argument 51 str = tm[i].string; in shorten() 82 str = tm[i].string; in shorten() 90 int calc_tickmarks(double min, double max, int nticks, struct tickmark **tm, in calc_tickmarks() argument 109 *tm = malloc(sizeof(**tm) * count); in calc_tickmarks() 113 (*tm)[i].value = x; in calc_tickmarks() 114 sprintf((*tm)[i].string, str, x); in calc_tickmarks() 117 shorten(*tm, i, power_of_ten, use_KMG_symbols, base_offset); in calc_tickmarks() 127 struct tickmark *tm = NULL; 129 nticks = calc_tickmarks(x, y, 10, &tm); [all …]
|
/external/icu/icu4c/source/tools/tzcode/ |
D | zdump.c | 230 static char * abbr(struct tm * tmp); 232 static intmax_t delta(struct tm * newp, struct tm * oldp) ATTRIBUTE_PURE; 233 static void dumptime(const struct tm * tmp); 254 static struct tm * 257 register struct tm * tmp; in my_localtime() 261 struct tm tm; in my_localtime() local 264 tm = *tmp; in my_localtime() 265 t = mktime(&tm); in my_localtime() 348 struct tm tm; in main() local 349 struct tm newtm; in main() [all …]
|
/external/skia/gm/ |
D | gradients_2pt_conical.cpp | 41 SkShader::TileMode tm, const SkMatrix& localMatrix) { in Make2ConicalOutside() argument 50 data.fCount, tm, 0, &localMatrix); in Make2ConicalOutside() 54 SkShader::TileMode tm, const SkMatrix& localMatrix) { in Make2ConicalOutsideFlip() argument 63 data.fCount, tm, 0, &localMatrix); in Make2ConicalOutsideFlip() 67 SkShader::TileMode tm, const SkMatrix& localMatrix) { in Make2ConicalInside() argument 75 data.fColors, data.fPos, data.fCount, tm, in Make2ConicalInside() 80 SkShader::TileMode tm, const SkMatrix& localMatrix) { in Make2ConicalInsideFlip() argument 88 data.fColors, data.fPos, data.fCount, tm, in Make2ConicalInsideFlip() 93 SkShader::TileMode tm, const SkMatrix& localMatrix) { in Make2ConicalInsideCenter() argument 101 data.fColors, data.fPos, data.fCount, tm, in Make2ConicalInsideCenter() [all …]
|
/external/llvm/lib/Target/R600/ |
D | AMDGPU.h | 29 FunctionPass *createR600VectorRegMerger(TargetMachine &tm); 31 FunctionPass *createR600ExpandSpecialInstrsPass(TargetMachine &tm); 33 FunctionPass *createR600ClauseMergePass(TargetMachine &tm); 34 FunctionPass *createR600Packetizer(TargetMachine &tm); 35 FunctionPass *createR600ControlFlowFinalizer(TargetMachine &tm); 44 FunctionPass *createSILoadStoreOptimizerPass(TargetMachine &tm); 45 FunctionPass *createSILowerControlFlowPass(TargetMachine &tm); 46 FunctionPass *createSIFixSGPRCopiesPass(TargetMachine &tm); 49 FunctionPass *createSIInsertWaits(TargetMachine &tm); 64 FunctionPass *createAMDGPUISelDag(TargetMachine &tm);
|
/external/libcxx/test/std/localization/locale.categories/category.time/locale.time.get/locale.time.get.members/ |
D | get_monthname.pass.cpp | 39 std::tm t; in main() 43 t = std::tm(); in main() 52 t = std::tm(); in main() 61 t = std::tm(); in main() 70 t = std::tm(); in main() 79 t = std::tm(); in main() 88 t = std::tm(); in main() 97 t = std::tm(); in main() 106 t = std::tm(); in main() 115 t = std::tm(); in main() [all …]
|
D | get_monthname_wide.pass.cpp | 39 std::tm t; in main() 43 t = std::tm(); in main() 52 t = std::tm(); in main() 61 t = std::tm(); in main() 70 t = std::tm(); in main() 79 t = std::tm(); in main() 88 t = std::tm(); in main() 97 t = std::tm(); in main() 106 t = std::tm(); in main() 115 t = std::tm(); in main() [all …]
|
D | get_weekday.pass.cpp | 39 std::tm t; in main() 43 t = std::tm(); in main() 52 t = std::tm(); in main() 61 t = std::tm(); in main() 70 t = std::tm(); in main() 79 t = std::tm(); in main() 88 t = std::tm(); in main() 97 t = std::tm(); in main() 106 t = std::tm(); in main() 115 t = std::tm(); in main() [all …]
|
D | get_weekday_wide.pass.cpp | 39 std::tm t; in main() 43 t = std::tm(); in main() 52 t = std::tm(); in main() 61 t = std::tm(); in main() 70 t = std::tm(); in main() 79 t = std::tm(); in main() 88 t = std::tm(); in main() 97 t = std::tm(); in main() 106 t = std::tm(); in main() 115 t = std::tm(); in main() [all …]
|
/external/conscrypt/src/test/java/org/conscrypt/ |
D | TrustManagerImplTest.java | 96 X509TrustManager tm = trustManager(root); in testLearnIntermediate() local 98 assertInvalid(chain1, tm); in testLearnIntermediate() 100 assertValid(chain2, tm); in testLearnIntermediate() 102 assertValid(chain1, tm); in testLearnIntermediate() 126 X509TrustManager tm = trustManager(root); in testGetFullChain() local 134 assertTrue(tm instanceof TrustManagerImpl); in testGetFullChain() 135 TrustManagerImpl tmi = (TrustManagerImpl) tm; in testGetFullChain() 227 private void assertValid(X509Certificate[] chain, X509TrustManager tm) throws Exception { in assertValid() argument 228 if (tm instanceof TrustManagerImpl) { in assertValid() 229 TrustManagerImpl tmi = (TrustManagerImpl) tm; in assertValid() [all …]
|
/external/boringssl/src/include/openssl/ |
D | time_support.h | 73 struct tm *OPENSSL_gmtime(const time_t *timer, struct tm *result); 77 int OPENSSL_gmtime_adj(struct tm *tm, int offset_day, long offset_sec); 82 int OPENSSL_gmtime_diff(int *out_days, int *out_secs, const struct tm *from, 83 const struct tm *to);
|