Home
last modified time | relevance | path

Searched refs:pathLength (Results 1 – 16 of 16) sorted by relevance

/haiku/src/build/libroot/
H A Dfind_directory.cpp33 int pathLength; in create_path() local
36 if (path == NULL || ((pathLength = strlen(path)) > B_PATH_NAME_LENGTH)) in create_path()
39 while (++i < pathLength) { in create_path()
44 i = pathLength; in create_path()
64 char *returnedPath, int32 pathLength) in find_directory() argument
95 strlcpy(returnedPath, path, pathLength); in find_directory()
103 char *returnedPath, int32 pathLength) in __find_directory() argument
105 return find_directory(which, device, createIt, returnedPath, pathLength); in __find_directory()
H A Dfs.cpp461 char *userPath, size_t pathLength) in _kern_entry_ref_to_path() argument
470 if (strlcpy(userPath, path.c_str(), pathLength) >= pathLength) in _kern_entry_ref_to_path()
/haiku/src/system/libroot/os/
H A Dfind_directory.cpp200 int pathLength; in create_path() local
203 if (path == NULL || ((pathLength = strlen(path)) > B_PATH_NAME_LENGTH)) in create_path()
206 BStackOrHeapArray<char, 128> buffer(pathLength + 1); in create_path()
210 while (++i < pathLength) { in create_path()
215 i = pathLength; in create_path()
279 size_t pathLength = _pathLength; in __find_directory() local
288 char *buffer = (char*)malloc(pathLength); in __find_directory()
293 memset(buffer, 0, pathLength); in __find_directory()
307 NULL, buffer, pathLength); in __find_directory()
310 NULL, buffer, pathLength); in __find_directory()
[all …]
/haiku/src/kits/package/manager/
H A DRepositoryBuilder.cpp143 size_t pathLength = strlen(path); in AddPackage() local
166 if (pathLength > 5 && strcmp(path + pathLength - 5, ".hpkg") == 0) { in AddPackage()
/haiku/src/system/runtime_loader/
H A Druntime_loader.cpp174 const char *abiSpecificSubDir, char *path, size_t pathLength) in try_open_executable() argument
189 programPath, buffer, pathLength, status) in try_open_executable()
191 requestingObjectPath, buffer, pathLength, status)) { in try_open_executable()
211 if (dirLength + 1 + subDirLen + nameLength >= pathLength) in try_open_executable()
222 if (nameLength >= pathLength) in try_open_executable()
250 strlcpy(lastSlash + 1, buffer, lastSlash + 1 - path + pathLength); in try_open_executable()
252 strlcpy(path, buffer, pathLength); in try_open_executable()
/haiku/src/tests/add-ons/kernel/kernelland_emu/
H A Dvfs.cpp26 bool kernel, char *path, size_t pathLength) in vfs_entry_ref_to_path() argument
/haiku/headers/private/system/
H A Dfind_directory_private.h18 char *returnedPath, int32 pathLength);
H A Dsyscalls.h268 const char *leaf, char *userPath, size_t pathLength);
/haiku/src/tools/vmdkimage/
H A Dvmdkimage.cpp326 size_t pathLength = strlen(fullPath); in main() local
327 for (size_t i = pathLength; i < 42; i++) { in main()
331 if (pathLength < 42) in main()
/haiku/src/tests/add-ons/kernel/file_systems/shared/consistency_check/
H A Dgenerate_hashs.cpp126 size_t pathLength = strlen(path); in process_directory() local
135 if (path[pathLength - 1] != '/') in process_directory()
/haiku/headers/build/private/kernel/
H A Dsyscalls.h55 const char *leaf, char *userPath, size_t pathLength);
/haiku/src/kits/debugger/files/
H A DFileManager.cpp263 int32 pathLength = locatedEntryPath.Length(); in _LocateEntryInParentDir() local
264 if (pathLength >= 1 && locatedEntryPath[pathLength - 1] != '/') in _LocateEntryInParentDir()
/haiku/src/tools/fs_shell/
H A Dsyscalls.h29 const char *leaf, char *userPath, fssh_size_t pathLength);
H A Dvfs.cpp2733 bool kernel, char *path, fssh_size_t pathLength) in vfs_entry_ref_to_path() argument
2754 status = dir_vnode_to_path(vnode, path, pathLength); in vfs_entry_ref_to_path()
2763 if ((fssh_strcmp(path, "/") && fssh_strlcat(path, "/", pathLength) in vfs_entry_ref_to_path()
2764 >= pathLength) in vfs_entry_ref_to_path()
2765 || fssh_strlcat(path, leaf, pathLength) >= pathLength) { in vfs_entry_ref_to_path()
5733 char* path, fssh_size_t pathLength) in _kern_entry_ref_to_path() argument
5735 return vfs_entry_ref_to_path(device, inode, leaf, true, path, pathLength); in _kern_entry_ref_to_path()
/haiku/headers/private/kernel/
H A Dvfs.h126 bool kernel, char *path, size_t pathLength);
176 char *userPath, size_t pathLength);
/haiku/src/system/kernel/fs/
H A Dvfs.cpp4825 bool kernel, char* path, size_t pathLength) in vfs_entry_ref_to_path() argument
4849 status = dir_vnode_to_path(vnode.Get(), path, pathLength, kernel); in vfs_entry_ref_to_path()
4858 if ((strcmp(path, "/") && strlcat(path, "/", pathLength) in vfs_entry_ref_to_path()
4859 >= pathLength) in vfs_entry_ref_to_path()
4860 || strlcat(path, leaf, pathLength) >= pathLength) { in vfs_entry_ref_to_path()
9019 char* userPath, size_t pathLength) in _user_entry_ref_to_path() argument
9048 int length = user_strlcpy(userPath, path.Path(), pathLength); in _user_entry_ref_to_path()
9051 if (length >= (int)pathLength) in _user_entry_ref_to_path()