/external/linux-tools-perf/util/ |
D | path.c | 138 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/ |
D | snaphost-android.c | 94 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/ |
D | http_auth_cache.cc | 182 size_t* path_len) { in HasEnclosingPath() argument 191 if (path_len) in HasEnclosingPath() 192 *path_len = it->length(); in HasEnclosingPath()
|
D | http_auth_cache.h | 171 bool HasEnclosingPath(const std::string& dir, size_t* path_len);
|
/external/dbus/dbus/ |
D | dbus-sysdeps-unix.c | 771 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 …]
|
D | dbus-object-tree.h | 58 int *path_len);
|
D | dbus-object-tree.c | 1076 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/ |
D | win32filesystem.cc | 442 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/ |
D | file_util_win.cc | 547 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/ |
D | elf_file.cc | 156 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/ |
D | asan_linux.cc | 246 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/ |
D | vvfat.c | 1742 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/ |
D | trace.c | 233 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()
|