Home
last modified time | relevance | path

Searched refs:tm (Results 1 – 25 of 1078) sorted by relevance

12345678910>>...44

/external/toybox/toys/pending/
Dtelnetd.c175 static int handle_iacs(struct term_session *tm, int c, int fd) in handle_iacs() argument
180 curr = start = tm->buff2+tm->buff2_avail; in handle_iacs()
181 end = tm->buff2 + c -1; in handle_iacs()
182 tm->rem = 0; in handle_iacs()
199 tm->rem = 1; in handle_iacs()
216 tm->rem = end - curr; in handle_iacs()
225 curr++, tm->rem++; in handle_iacs()
228 tm->rem++; in handle_iacs()
231 tm->rem = 0; in handle_iacs()
239 memcpy(start + i, end - tm->rem, tm->rem); //put remaining if we break; in handle_iacs()
[all …]
/external/abseil-cpp/absl/time/internal/cctz/src/
Dtime_zone_libc.cc39 auto tm_gmtoff(const std::tm& tm) -> decltype(_timezone + _dstbias) { in tm_gmtoff() argument
40 const bool is_dst = tm.tm_isdst > 0; in tm_gmtoff()
43 auto tm_zone(const std::tm& tm) -> decltype(_tzname[0]) { in tm_zone() argument
44 const bool is_dst = tm.tm_isdst > 0; in tm_zone()
49 auto tm_gmtoff(const std::tm& tm) -> decltype(timezone) {
50 const bool is_dst = tm.tm_isdst > 0;
53 auto tm_zone(const std::tm& tm) -> decltype(tzname[0]) {
54 const bool is_dst = tm.tm_isdst > 0;
60 auto tm_gmtoff(const std::tm& tm) -> decltype(_timezone + 0) {
61 const bool is_dst = tm.tm_isdst > 0;
[all …]
/external/webrtc/third_party/abseil-cpp/absl/time/internal/cctz/src/
Dtime_zone_libc.cc39 auto tm_gmtoff(const std::tm& tm) -> decltype(_timezone + _dstbias) { in tm_gmtoff() argument
40 const bool is_dst = tm.tm_isdst > 0; in tm_gmtoff()
43 auto tm_zone(const std::tm& tm) -> decltype(_tzname[0]) { in tm_zone() argument
44 const bool is_dst = tm.tm_isdst > 0; in tm_zone()
49 auto tm_gmtoff(const std::tm& tm) -> decltype(timezone) {
50 const bool is_dst = tm.tm_isdst > 0;
53 auto tm_zone(const std::tm& tm) -> decltype(tzname[0]) {
54 const bool is_dst = tm.tm_isdst > 0;
60 auto tm_gmtoff(const std::tm& tm) -> decltype(_timezone + 0) {
61 const bool is_dst = tm.tm_isdst > 0;
[all …]
/external/libtextclassifier/abseil-cpp/absl/time/internal/cctz/src/
Dtime_zone_libc.cc39 auto tm_gmtoff(const std::tm& tm) -> decltype(_timezone + _dstbias) { in tm_gmtoff() argument
40 const bool is_dst = tm.tm_isdst > 0; in tm_gmtoff()
43 auto tm_zone(const std::tm& tm) -> decltype(_tzname[0]) { in tm_zone() argument
44 const bool is_dst = tm.tm_isdst > 0; in tm_zone()
49 auto tm_gmtoff(const std::tm& tm) -> decltype(timezone) {
50 const bool is_dst = tm.tm_isdst > 0;
53 auto tm_zone(const std::tm& tm) -> decltype(tzname[0]) {
54 const bool is_dst = tm.tm_isdst > 0;
60 auto tm_gmtoff(const std::tm& tm) -> decltype(_timezone + 0) {
61 const bool is_dst = tm.tm_isdst > 0;
[all …]
/external/rust/crates/grpcio-sys/grpc/third_party/abseil-cpp/absl/time/internal/cctz/src/
Dtime_zone_libc.cc39 auto tm_gmtoff(const std::tm& tm) -> decltype(_timezone + _dstbias) { in tm_gmtoff() argument
40 const bool is_dst = tm.tm_isdst > 0; in tm_gmtoff()
43 auto tm_zone(const std::tm& tm) -> decltype(_tzname[0]) { in tm_zone() argument
44 const bool is_dst = tm.tm_isdst > 0; in tm_zone()
49 auto tm_gmtoff(const std::tm& tm) -> decltype(timezone) {
50 const bool is_dst = tm.tm_isdst > 0;
53 auto tm_zone(const std::tm& tm) -> decltype(tzname[0]) {
54 const bool is_dst = tm.tm_isdst > 0;
60 auto tm_gmtoff(const std::tm& tm) -> decltype(_timezone + 0) {
61 const bool is_dst = tm.tm_isdst > 0;
[all …]
/external/openscreen/third_party/abseil/src/absl/time/internal/cctz/src/
Dtime_zone_libc.cc45 auto tm_gmtoff(const std::tm& tm) -> decltype(_timezone + _dstbias) { in tm_gmtoff() argument
46 const bool is_dst = tm.tm_isdst > 0; in tm_gmtoff()
49 auto tm_zone(const std::tm& tm) -> decltype(_tzname[0]) { in tm_zone() argument
50 const bool is_dst = tm.tm_isdst > 0; in tm_zone()
55 auto tm_gmtoff(const std::tm& tm) -> decltype(timezone) {
56 const bool is_dst = tm.tm_isdst > 0;
59 auto tm_zone(const std::tm& tm) -> decltype(tzname[0]) {
60 const bool is_dst = tm.tm_isdst > 0;
66 auto tm_gmtoff(const std::tm& tm) -> decltype(_timezone + 0) {
67 const bool is_dst = tm.tm_isdst > 0;
[all …]
/external/angle/third_party/abseil-cpp/absl/time/internal/cctz/src/
Dtime_zone_libc.cc45 auto tm_gmtoff(const std::tm& tm) -> decltype(_timezone + _dstbias) { in tm_gmtoff() argument
46 const bool is_dst = tm.tm_isdst > 0; in tm_gmtoff()
49 auto tm_zone(const std::tm& tm) -> decltype(_tzname[0]) { in tm_zone() argument
50 const bool is_dst = tm.tm_isdst > 0; in tm_zone()
55 auto tm_gmtoff(const std::tm& tm) -> decltype(timezone) {
56 const bool is_dst = tm.tm_isdst > 0;
59 auto tm_zone(const std::tm& tm) -> decltype(tzname[0]) {
60 const bool is_dst = tm.tm_isdst > 0;
66 auto tm_gmtoff(const std::tm& tm) -> decltype(_timezone + 0) {
67 const bool is_dst = tm.tm_isdst > 0;
[all …]
/external/linux-kselftest/tools/testing/selftests/powerpc/tm/
DMakefile2 SIGNAL_CONTEXT_CHK_TESTS := tm-signal-context-chk-gpr tm-signal-context-chk-fpu \
3 tm-signal-context-chk-vmx tm-signal-context-chk-vsx
5 TEST_GEN_PROGS := tm-resched-dscr tm-syscall tm-signal-msr-resv tm-signal-stack \
6 tm-vmxcopy tm-fork tm-tar tm-tmspr tm-vmx-unavail tm-unavailable tm-trap \
7 $(SIGNAL_CONTEXT_CHK_TESTS) tm-sigreturn tm-signal-sigreturn-nt \
8 tm-signal-context-force-tm tm-poison
17 $(OUTPUT)/tm-syscall: tm-syscall-asm.S
18 $(OUTPUT)/tm-syscall: CFLAGS += -I../../../../../usr/include
19 $(OUTPUT)/tm-tmspr: CFLAGS += -pthread
20 $(OUTPUT)/tm-vmx-unavail: CFLAGS += -pthread -m64
[all …]
D.gitignore1 tm-resched-dscr
2 tm-syscall
3 tm-signal-msr-resv
4 tm-signal-stack
5 tm-vmxcopy
6 tm-fork
7 tm-tar
8 tm-tmspr
9 tm-exec
10 tm-signal-context-chk-fpu
[all …]
/external/toybox/toys/posix/
Dcal.c27 struct tm *now; in GLOBALS()
33 static char *calstrings(char *buf, struct tm *tm)
39 len = strftime(temp, 21, "%B %Y", tm);
47 if (tm->tm_mday>1)
48 start = (36+tm->tm_wday-tm->tm_mday)%7;
49 else start = tm->tm_wday;
53 if (tm->tm_mon == 1) {
54 int year = tm->tm_year;
57 } else if ((tm->tm_mon+(tm->tm_mon>6 ? 1 : 0)) & 1) len = 30;
64 if (!FLAG(h) && tm->tm_year == TT.now->tm_year &&
[all …]
/external/rust/crates/chrono/src/sys/
Dunix.rs30 fn rust_tm_to_tm(rust_tm: &Tm, tm: &mut libc::tm) { in rust_tm_to_tm() argument
31 tm.tm_sec = rust_tm.tm_sec; in rust_tm_to_tm()
32 tm.tm_min = rust_tm.tm_min; in rust_tm_to_tm()
33 tm.tm_hour = rust_tm.tm_hour; in rust_tm_to_tm()
34 tm.tm_mday = rust_tm.tm_mday; in rust_tm_to_tm()
35 tm.tm_mon = rust_tm.tm_mon; in rust_tm_to_tm()
36 tm.tm_year = rust_tm.tm_year; in rust_tm_to_tm()
37 tm.tm_wday = rust_tm.tm_wday; in rust_tm_to_tm()
38 tm.tm_yday = rust_tm.tm_yday; in rust_tm_to_tm()
39 tm.tm_isdst = rust_tm.tm_isdst; in rust_tm_to_tm()
[all …]
Dstub.rs13 fn time_to_tm(ts: i64, tm: &mut Tm) { in time_to_tm()
26 tm.tm_sec = (dayclock % 60) as i32; in time_to_tm()
27 tm.tm_min = ((dayclock % 3600) / 60) as i32; in time_to_tm()
28 tm.tm_hour = (dayclock / 3600) as i32; in time_to_tm()
29 tm.tm_wday = ((dayno + 4) % 7) as i32; in time_to_tm()
39 tm.tm_year = (year - 1900) as i32; in time_to_tm()
40 tm.tm_yday = dayno as i32; in time_to_tm()
46 tm.tm_mon = mon as i32; in time_to_tm()
47 tm.tm_mday = dayno as i32 + 1; in time_to_tm()
48 tm.tm_isdst = 0; in time_to_tm()
[all …]
Dwindows.rs44 fn tm_to_system_time(tm: &Tm) -> SYSTEMTIME { in tm_to_system_time()
46 sys.wSecond = tm.tm_sec as WORD; in tm_to_system_time()
47 sys.wMinute = tm.tm_min as WORD; in tm_to_system_time()
48 sys.wHour = tm.tm_hour as WORD; in tm_to_system_time()
49 sys.wDay = tm.tm_mday as WORD; in tm_to_system_time()
50 sys.wDayOfWeek = tm.tm_wday as WORD; in tm_to_system_time()
51 sys.wMonth = (tm.tm_mon + 1) as WORD; in tm_to_system_time()
52 sys.wYear = (tm.tm_year + 1900) as WORD; in tm_to_system_time()
56 fn system_time_to_tm(sys: &SYSTEMTIME, tm: &mut Tm) { in system_time_to_tm()
57 tm.tm_sec = sys.wSecond as i32; in system_time_to_tm()
[all …]
/external/tensorflow/tensorflow/core/kernels/
Dtensor_map_test.cc29 TensorMap tm; in TEST() local
30 EXPECT_EQ(tm.tensors().size(), 0); in TEST()
31 EXPECT_EQ(tm.tensors().begin(), tm.tensors().end()); in TEST()
47 TensorMap tm; in TEST() local
50 tm.insert(k, v); in TEST()
55 tm.tensors().begin(); in TEST()
59 EXPECT_EQ(map_it, tm.tensors().end()); in TEST()
63 TensorMap tm; in TEST() local
66 tm.insert(k, v); in TEST()
67 absl::flat_hash_map<TensorKey, Tensor>::iterator map_it = tm.find(k); in TEST()
[all …]
/external/openssh/openbsd-compat/
Dstrptime.c57 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/libtextclassifier/abseil-cpp/absl/time/
Dtime_benchmark.cc92 struct tm tm; in BM_Time_ToDateTime_Libc() local
94 benchmark::DoNotOptimize(localtime_r(&t, &tm)); in BM_Time_ToDateTime_Libc()
96 benchmark::DoNotOptimize(localtime_s(&tm, &t)); in BM_Time_ToDateTime_Libc()
116 struct tm tm; in BM_Time_ToDateTimeUTC_Libc() local
118 benchmark::DoNotOptimize(gmtime_r(&t, &tm)); in BM_Time_ToDateTimeUTC_Libc()
120 benchmark::DoNotOptimize(gmtime_s(&tm, &t)); in BM_Time_ToDateTimeUTC_Libc()
201 struct tm tm; in BM_Time_FromCivil_Libc() local
203 tm.tm_year = 2014 - 1900; in BM_Time_FromCivil_Libc()
204 tm.tm_mon = 12 - 1; in BM_Time_FromCivil_Libc()
205 tm.tm_mday = 18; in BM_Time_FromCivil_Libc()
[all …]
/external/angle/third_party/abseil-cpp/absl/time/
Dtime_benchmark.cc92 struct tm tm; in BM_Time_ToDateTime_Libc() local
94 benchmark::DoNotOptimize(localtime_r(&t, &tm)); in BM_Time_ToDateTime_Libc()
96 benchmark::DoNotOptimize(localtime_s(&tm, &t)); in BM_Time_ToDateTime_Libc()
116 struct tm tm; in BM_Time_ToDateTimeUTC_Libc() local
118 benchmark::DoNotOptimize(gmtime_r(&t, &tm)); in BM_Time_ToDateTimeUTC_Libc()
120 benchmark::DoNotOptimize(gmtime_s(&tm, &t)); in BM_Time_ToDateTimeUTC_Libc()
201 struct tm tm; in BM_Time_FromCivil_Libc() local
203 tm.tm_year = 2014 - 1900; in BM_Time_FromCivil_Libc()
204 tm.tm_mon = 12 - 1; in BM_Time_FromCivil_Libc()
205 tm.tm_mday = 18; in BM_Time_FromCivil_Libc()
[all …]
/external/rust/crates/grpcio-sys/grpc/third_party/abseil-cpp/absl/time/
Dtime_benchmark.cc92 struct tm tm; in BM_Time_ToDateTime_Libc() local
94 benchmark::DoNotOptimize(localtime_r(&t, &tm)); in BM_Time_ToDateTime_Libc()
96 benchmark::DoNotOptimize(localtime_s(&tm, &t)); in BM_Time_ToDateTime_Libc()
116 struct tm tm; in BM_Time_ToDateTimeUTC_Libc() local
118 benchmark::DoNotOptimize(gmtime_r(&t, &tm)); in BM_Time_ToDateTimeUTC_Libc()
120 benchmark::DoNotOptimize(gmtime_s(&tm, &t)); in BM_Time_ToDateTimeUTC_Libc()
201 struct tm tm; in BM_Time_FromCivil_Libc() local
203 tm.tm_year = 2014 - 1900; in BM_Time_FromCivil_Libc()
204 tm.tm_mon = 12 - 1; in BM_Time_FromCivil_Libc()
205 tm.tm_mday = 18; in BM_Time_FromCivil_Libc()
[all …]
/external/webrtc/third_party/abseil-cpp/absl/time/
Dtime_benchmark.cc92 struct tm tm; in BM_Time_ToDateTime_Libc() local
94 benchmark::DoNotOptimize(localtime_r(&t, &tm)); in BM_Time_ToDateTime_Libc()
96 benchmark::DoNotOptimize(localtime_s(&tm, &t)); in BM_Time_ToDateTime_Libc()
116 struct tm tm; in BM_Time_ToDateTimeUTC_Libc() local
118 benchmark::DoNotOptimize(gmtime_r(&t, &tm)); in BM_Time_ToDateTimeUTC_Libc()
120 benchmark::DoNotOptimize(gmtime_s(&tm, &t)); in BM_Time_ToDateTimeUTC_Libc()
201 struct tm tm; in BM_Time_FromCivil_Libc() local
203 tm.tm_year = 2014 - 1900; in BM_Time_FromCivil_Libc()
204 tm.tm_mon = 12 - 1; in BM_Time_FromCivil_Libc()
205 tm.tm_mday = 18; in BM_Time_FromCivil_Libc()
[all …]
/external/openscreen/third_party/abseil/src/absl/time/
Dtime_benchmark.cc92 struct tm tm; in BM_Time_ToDateTime_Libc() local
94 benchmark::DoNotOptimize(localtime_r(&t, &tm)); in BM_Time_ToDateTime_Libc()
96 benchmark::DoNotOptimize(localtime_s(&tm, &t)); in BM_Time_ToDateTime_Libc()
116 struct tm tm; in BM_Time_ToDateTimeUTC_Libc() local
118 benchmark::DoNotOptimize(gmtime_r(&t, &tm)); in BM_Time_ToDateTimeUTC_Libc()
120 benchmark::DoNotOptimize(gmtime_s(&tm, &t)); in BM_Time_ToDateTimeUTC_Libc()
201 struct tm tm; in BM_Time_FromCivil_Libc() local
203 tm.tm_year = 2014 - 1900; in BM_Time_FromCivil_Libc()
204 tm.tm_mon = 12 - 1; in BM_Time_FromCivil_Libc()
205 tm.tm_mday = 18; in BM_Time_FromCivil_Libc()
[all …]
/external/abseil-cpp/absl/time/
Dtime_benchmark.cc92 struct tm tm; in BM_Time_ToDateTime_Libc() local
94 benchmark::DoNotOptimize(localtime_r(&t, &tm)); in BM_Time_ToDateTime_Libc()
96 benchmark::DoNotOptimize(localtime_s(&tm, &t)); in BM_Time_ToDateTime_Libc()
116 struct tm tm; in BM_Time_ToDateTimeUTC_Libc() local
118 benchmark::DoNotOptimize(gmtime_r(&t, &tm)); in BM_Time_ToDateTimeUTC_Libc()
120 benchmark::DoNotOptimize(gmtime_s(&tm, &t)); in BM_Time_ToDateTimeUTC_Libc()
201 struct tm tm; in BM_Time_FromCivil_Libc() local
203 tm.tm_year = 2014 - 1900; in BM_Time_FromCivil_Libc()
204 tm.tm_mon = 12 - 1; in BM_Time_FromCivil_Libc()
205 tm.tm_mday = 18; in BM_Time_FromCivil_Libc()
[all …]
/external/openscreen/cast/common/certificate/
Dtypes.cc51 struct tm tm = {}; in DateTimeFromSeconds() local
58 if (!gmtime_s(&tm, &sec)) { in DateTimeFromSeconds()
62 if (!gmtime_r(&sec, &tm)) { in DateTimeFromSeconds()
67 time->second = tm.tm_sec; in DateTimeFromSeconds()
68 time->minute = tm.tm_min; in DateTimeFromSeconds()
69 time->hour = tm.tm_hour; in DateTimeFromSeconds()
70 time->day = tm.tm_mday; in DateTimeFromSeconds()
71 time->month = tm.tm_mon + 1; in DateTimeFromSeconds()
72 time->year = tm.tm_year + 1900; in DateTimeFromSeconds()
84 struct tm tm = {}; in DateTimeToSeconds() local
[all …]
/external/webrtc/rtc_base/
Dtime_utils_unittest.cc146 std::tm tm; in TestTmToSeconds() local
147 tm.tm_year = year - 1900; // std::tm is year 1900 based. in TestTmToSeconds()
148 tm.tm_mon = rtc::CreateRandomId() % 12; in TestTmToSeconds()
149 tm.tm_mday = rtc::CreateRandomId() % mdays[tm.tm_mon] + 1; in TestTmToSeconds()
150 tm.tm_hour = rtc::CreateRandomId() % 24; in TestTmToSeconds()
151 tm.tm_min = rtc::CreateRandomId() % 60; in TestTmToSeconds()
152 tm.tm_sec = rtc::CreateRandomId() % 60; in TestTmToSeconds()
153 int64_t t = rtc::TmToSeconds(tm); in TestTmToSeconds()
159 tm.tm_year = 1969 - 1900; in TestTmToSeconds()
162 tm.tm_mon = -1; in TestTmToSeconds()
[all …]
/external/linux-kselftest/tools/testing/selftests/rtc/
Drtctest.c117 struct rtc_time tm; in TEST_F() local
122 rc = ioctl(self->fd, RTC_RD_TIME, &tm); in TEST_F()
125 secs = timegm((struct tm *)&tm) + ALARM_DELTA; in TEST_F()
126 gmtime_r(&secs, (struct tm *)&tm); in TEST_F()
128 rc = ioctl(self->fd, RTC_ALM_SET, &tm); in TEST_F()
135 rc = ioctl(self->fd, RTC_ALM_READ, &tm); in TEST_F()
139 tm.tm_hour, tm.tm_min, tm.tm_sec); in TEST_F()
160 rc = ioctl(self->fd, RTC_RD_TIME, &tm); in TEST_F()
163 new = timegm((struct tm *)&tm); in TEST_F()
170 struct rtc_time tm; in TEST_F() local
[all …]
/external/rust/crates/quiche/deps/boringssl/src/crypto/asn1/
Dtime_support.c69 struct tm *OPENSSL_gmtime(const time_t *time, struct tm *result) { in OPENSSL_gmtime()
103 static int julian_adj(const struct tm *tm, int off_day, long offset_sec, in julian_adj() argument
114 offset_hms += tm->tm_hour * 3600 + tm->tm_min * 60 + tm->tm_sec; in julian_adj()
126 time_year = tm->tm_year + 1900; in julian_adj()
127 time_month = tm->tm_mon + 1; in julian_adj()
128 time_day = tm->tm_mday; in julian_adj()
144 int OPENSSL_gmtime_adj(struct tm *tm, int off_day, long offset_sec) { in OPENSSL_gmtime_adj() argument
149 if (!julian_adj(tm, off_day, offset_sec, &time_jd, &time_sec)) { in OPENSSL_gmtime_adj()
163 tm->tm_year = time_year - 1900; in OPENSSL_gmtime_adj()
164 tm->tm_mon = time_month - 1; in OPENSSL_gmtime_adj()
[all …]

12345678910>>...44