Lines Matching refs:path
81 char* path; in make_path() local
82 if (asprintf(&path, "%s/%s", path_prefix, path_suffix) == -1) { in make_path()
86 return path; in make_path()
112 static int __bionic_open_tzdata_path(const char* path, in __bionic_open_tzdata_path() argument
115 int fd = TEMP_FAILURE_RETRY(open(path, O_RDONLY | O_CLOEXEC)); in __bionic_open_tzdata_path()
126 __FUNCTION__, path, (bytes_read == -1) ? strerror(errno) : "short read"); in __bionic_open_tzdata_path()
132 … fprintf(stderr, "%s: bad magic in \"%s\": \"%.6s\"\n", __FUNCTION__, path, header.tzdata_version); in __bionic_open_tzdata_path()
138 …fprintf(stderr, "%s: couldn't seek to index in \"%s\": %s\n", __FUNCTION__, path, strerror(errno)); in __bionic_open_tzdata_path()
145 __FUNCTION__, path, ntohl(header.data_offset), ntohl(header.index_offset)); in __bionic_open_tzdata_path()
151 fprintf(stderr, "%s: invalid index size in \"%s\": %zd\n", __FUNCTION__, path, index_size); in __bionic_open_tzdata_path()
158 …rintf(stderr, "%s: couldn't allocate %zd-byte index for \"%s\"\n", __FUNCTION__, index_size, path); in __bionic_open_tzdata_path()
164 __FUNCTION__, path, (bytes_read == -1) ? strerror(errno) : "short read"); in __bionic_open_tzdata_path()
198 __FUNCTION__, specific_zone_offset, path, strerror(errno)); in __bionic_open_tzdata_path()
240 char* path = make_path("ANDROID_DATA", "/misc/zoneinfo/current/tzdata"); in __bionic_open_tzdata() local
241 fd = __bionic_open_tzdata_path(path, olson_id, entry_length); in __bionic_open_tzdata()
242 free(path); in __bionic_open_tzdata()
245 path = make_path("ANDROID_TZDATA_ROOT", "/etc/tz/tzdata"); in __bionic_open_tzdata()
246 fd = __bionic_open_tzdata_path(path, olson_id, entry_length); in __bionic_open_tzdata()
247 free(path); in __bionic_open_tzdata()
250 path = make_path("ANDROID_ROOT", "/usr/share/zoneinfo/tzdata"); in __bionic_open_tzdata()
251 fd = __bionic_open_tzdata_path(path, olson_id, entry_length); in __bionic_open_tzdata()
252 free(path); in __bionic_open_tzdata()