Home
last modified time | relevance | path

Searched refs:tz (Results 1 – 25 of 53) sorted by relevance

123

/glibc-2.36/time/
Dtzset.c191 const char *tz = *tzp; in parse_offset() local
193 && (*tz == '\0' || (*tz != '+' && *tz != '-' && !isdigit (*tz)))) in parse_offset()
197 if (*tz == '-' || *tz == '+') in parse_offset()
198 sign = *tz++ == '-' ? 1 : -1; in parse_offset()
201 *tzp = tz; in parse_offset()
207 if (sscanf (tz, "%hu%n:%hu%n:%hu%n", in parse_offset()
221 *tzp = tz + consumed; in parse_offset()
231 const char *tz = *tzp; in parse_rule() local
236 tz += *tz == ','; in parse_rule()
239 if (*tz == 'J' || isdigit (*tz)) in parse_rule()
[all …]
Dgettimeofday.c26 ___gettimeofday (struct timeval *restrict tv, void *restrict tz) in ___gettimeofday() argument
28 if (__glibc_unlikely (tz != 0)) in ___gettimeofday()
29 memset (tz, 0, sizeof (struct timezone)); in ___gettimeofday()
Dsettimeofday.c25 __settimeofday (const struct timeval *tv, const struct timezone *tz) in __settimeofday() argument
27 if (__glibc_unlikely (tz != 0)) in __settimeofday()
34 return __settimezone (tz); in __settimeofday()
Dtst-posixtz.c10 const char *tz; member
43 printf ("TZ = \"%s\", time = %jd => ", tests[cnt].tz, in do_test()
47 setenv ("TZ", tests[cnt].tz, 1); in do_test()
Dtst-mktime2.c43 set_timezone (const char *tz) in set_timezone() argument
45 printf ("info: setting TZ=%s\n", tz); in set_timezone()
46 if (setenv ("TZ", tz, 1) != 0) in set_timezone()
DMakefile92 tz-cflags = -DTZDIR='"$(zonedir)"' \
96 CFLAGS-tzfile.c += $(tz-cflags)
97 CFLAGS-tzset.c += $(tz-cflags)
Dtst-getdate.c32 const char *tz; member
115 setenv ("TZ", tests[i].tz, 1); in do_test()
Dmktime.c94 const char *tz = getenv ("TZ"); in my_tzset() local
95 if (tz != NULL && strchr (tz, '/') != NULL) in my_tzset()
Dsettimezone.c24 __settimezone (const struct timezone *tz) in __settimezone() argument
/glibc-2.36/sysdeps/unix/sysv/linux/
Dgettimeofday.c32 __gettimeofday_syscall (struct timeval *restrict tv, void *restrict tz) in __gettimeofday_syscall() argument
34 if (__glibc_unlikely (tz != 0)) in __gettimeofday_syscall()
35 memset (tz, 0, sizeof *tz); in __gettimeofday_syscall()
36 return INLINE_SYSCALL_CALL (gettimeofday, tv, tz); in __gettimeofday_syscall()
48 __gettimeofday (struct timeval *restrict tv, void *restrict tz)
50 if (__glibc_unlikely (tz != 0))
51 memset (tz, 0, sizeof *tz);
53 return INLINE_VSYSCALL (gettimeofday, 2, tv, tz);
63 __gettimeofday64 (struct __timeval64 *restrict tv, void *restrict tz)
65 if (__glibc_unlikely (tz != 0))
[all …]
Dsettimeofday.c26 __settimeofday64 (const struct __timeval64 *tv, const struct timezone *tz) in __settimeofday64() argument
29 if (__glibc_unlikely (tz != 0)) in __settimeofday64()
36 return __settimezone (tz); in __settimeofday64()
47 __settimeofday (const struct timeval *tv, const struct timezone *tz) in libc_hidden_def()
50 return __settimeofday64 (NULL, tz); in libc_hidden_def()
54 return __settimeofday64 (&tv64, tz); in libc_hidden_def()
Dsettimezone.c29 __settimezone (const struct timezone *tz) in __settimezone() argument
32 return INLINE_SYSCALL_CALL (settimeofday, NULL, tz); in __settimezone()
/glibc-2.36/timezone/
Dzdump.c216 mktime_z(timezone_t tz, struct tm *tmp) in mktime_z() argument
289 my_localtime_rz(timezone_t tz, time_t *tp, struct tm *tmp) in my_localtime_rz() argument
291 tmp = localtime_rz(tz, tp, tmp); in my_localtime_rz()
297 t = mktime_z(tz, &tm); in my_localtime_rz()
524 timezone_t tz = tzalloc(argv[i]); in main() local
529 if (!tz) { in main()
534 show(tz, argv[i], now, false); in main()
535 tzfree(tz); in main()
541 show(tz, argv[i], t, true); in main()
543 show(tz, argv[i], t, true); in main()
[all …]
Dtst-tzset.c150 char tz[16]; in do_test() local
151 snprintf (tz, sizeof (tz), "XT%d", i); in do_test()
152 if (setenv ("TZ", tz, 1) < 0) in do_test()
158 if (strcmp (tzname[0], tz) == 0) in do_test()
160 printf ("Unexpected success for %s\n", tz); in do_test()
DMakefile26 tests := test-tz tst-timezone tst-tzset tst-bz28707
59 tz-cflags = -DTZDIR='"$(zonedir)"' \
69 CFLAGS-zdump.c += $(tz-cflags)
70 CFLAGS-zic.c += $(tz-cflags) -Wno-unused-variable
80 $(objpfx)test-tz.out: $(addprefix $(testdata)/, America/New_York Etc/UTC UTC)
90 test-tz-ENV = TZDIR=$(testdata)
DREADME19 These packages may be found at https://ftp.iana.org/tz/releases/.
20 Commentary should be addressed to tz@iana.org.
Detcetera7 # people in areas not otherwise covered by the tz files could "zic -l"
9 # tz files cover almost all the inhabited world, and the only practical
40 # (which is not yet supported by the tz code) allows for
/glibc-2.36/sysdeps/unix/sysv/linux/alpha/
Dosf_settimeofday.c33 const struct timezone *tz) in __settimeofday_tv32() argument
35 if (__glibc_unlikely (tz != 0)) in __settimeofday_tv32()
42 return __settimezone (tz); in __settimeofday_tv32()
Dosf_gettimeofday.c33 __gettimeofday_tv32 (struct __timeval32 *restrict tv32, void *restrict tz) in __gettimeofday_tv32() argument
35 if (__glibc_unlikely (tz != 0)) in __gettimeofday_tv32()
36 memset (tz, 0, sizeof (struct timezone)); in __gettimeofday_tv32()
/glibc-2.36/include/
Dtime.h65 extern void __tzset_parse_tz (const char *tz) attribute_hidden;
260 const struct timezone *tz);
263 void *restrict tz);
/glibc-2.36/localedata/
Dro_RO.UTF-8.in25 tz
Dha_NG.UTF-8.in29 tz
Dcy_GB.UTF-8.in61 tz
Dsq_AL.UTF-8.in59 tz
Dse_NO.UTF-8.in81 tz

123