Home
last modified time | relevance | path

Searched refs:path_len (Results 1 – 13 of 13) sorted by relevance

/external/linux-tools-perf/util/
Dpath.c138 int path_len = strlen(path), suffix_len = strlen(suffix); in strip_path_suffix() local
141 if (!path_len) in strip_path_suffix()
144 if (is_dir_sep(path[path_len - 1])) { in strip_path_suffix()
147 path_len = chomp_trailing_dir_sep(path, path_len); in strip_path_suffix()
150 else if (path[--path_len] != suffix[--suffix_len]) in strip_path_suffix()
154 if (path_len && !is_dir_sep(path[path_len - 1])) in strip_path_suffix()
156 return strndup(path, chomp_trailing_dir_sep(path, path_len)); in strip_path_suffix()
/external/qemu/android/
Dsnaphost-android.c94 const int path_len = strlen(android_hw->disk_snapStorage_path) + in _build_hwcfg_path() local
96 char* bkp_path = malloc(path_len); in _build_hwcfg_path()
98 E("Unable to allocate %d bytes for HW config path!", path_len); in _build_hwcfg_path()
102 snprintf(bkp_path, path_len, "%s.%s.ini", in _build_hwcfg_path()
/external/chromium/net/http/
Dhttp_auth_cache.cc182 size_t* path_len) { in HasEnclosingPath() argument
191 if (path_len) in HasEnclosingPath()
192 *path_len = it->length(); in HasEnclosingPath()
Dhttp_auth_cache.h171 bool HasEnclosingPath(const std::string& dir, size_t* path_len);
/external/dbus/dbus/
Ddbus-sysdeps-unix.c771 size_t path_len; in _dbus_connect_unix_socket() local
789 path_len = strlen (path); in _dbus_connect_unix_socket()
795 path_len++; /* Account for the extra nul byte added to the start of sun_path */ in _dbus_connect_unix_socket()
797 if (path_len > _DBUS_MAX_SUN_PATH_LENGTH) in _dbus_connect_unix_socket()
805 strncpy (&addr.sun_path[1], path, path_len); in _dbus_connect_unix_socket()
816 if (path_len > _DBUS_MAX_SUN_PATH_LENGTH) in _dbus_connect_unix_socket()
824 strncpy (addr.sun_path, path, path_len); in _dbus_connect_unix_socket()
827 … (fd, (struct sockaddr*) &addr, _DBUS_STRUCT_OFFSET (struct sockaddr_un, sun_path) + path_len) < 0) in _dbus_connect_unix_socket()
910 size_t path_len; in _dbus_listen_unix_socket() local
950 path_len = strlen (path); in _dbus_listen_unix_socket()
[all …]
Ddbus-object-tree.h58 int *path_len);
Ddbus-object-tree.c1076 int *path_len) in _dbus_decompose_path() argument
1152 if (path_len) in _dbus_decompose_path()
1153 *path_len = n_components; in _dbus_decompose_path()
/external/chromium/third_party/libjingle/source/talk/base/
Dwin32filesystem.cc442 int path_len = 0; in GetCurrentDirectory() local
445 int needed = ::GetCurrentDirectory(path_len, path.get()); in GetCurrentDirectory()
451 if (needed <= path_len) { in GetCurrentDirectory()
457 path_len = needed; in GetCurrentDirectory()
/external/chromium/base/
Dfile_util_win.cc547 DWORD path_len = ::GetTempPath(MAX_PATH, temp_path); in GetTempDir() local
548 if (path_len >= MAX_PATH || path_len <= 0) in GetTempDir()
608 DWORD path_len = GetLongPathName(temp_name, temp_name, MAX_PATH); in CreateTemporaryFileInDir() local
609 if (path_len > MAX_PATH + 1 || path_len == 0) { in CreateTemporaryFileInDir()
615 temp_file_str.assign(temp_name, path_len); in CreateTemporaryFileInDir()
/external/qemu/elff/
Delf_file.cc156 size_t path_len = strlen(path) + 1; in initialize() local
157 elf_file_path_ = new char[path_len]; in initialize()
163 memcpy(elf_file_path_, path, path_len); in initialize()
/external/compiler-rt/lib/asan/
Dasan_linux.cc246 size_t path_len = readlink("/proc/self/exe", in dl_iterate_phdr_callback() local
248 data->filename[path_len] = 0; in dl_iterate_phdr_callback()
/external/qemu/block/
Dvvfat.c1742 int path_len = strlen(path); in check_directory_consistency() local
1745 assert(path_len < PATH_MAX); /* len was tested before! */ in check_directory_consistency()
1747 path2[path_len] = '/'; in check_directory_consistency()
1748 path2[path_len + 1] = '\0'; in check_directory_consistency()
1816 if (path_len + 1 + lfn.len >= PATH_MAX) { in check_directory_consistency()
1820 pstrcpy(path2 + path_len + 1, sizeof(path2) - path_len - 1, in check_directory_consistency()
/external/qemu/
Dtrace.c233 int ii, len, base_len, dir_len, path_len, qtrace_len; in create_trace_path() local
262 path_len = dir_len + base_len + qtrace_len + strlen(ext) + 1; in create_trace_path()
263 fname = malloc(path_len); in create_trace_path()