/haiku/src/apps/drivesetup/ |
H A D | EncryptionUtils.h | 12 const char* EncryptionType(const char* path);
|
/haiku/src/tools/fs_shell/ |
H A D | path_util.cpp | 18 get_last_path_component(const char *path, char *buffer, int bufferLen) argument 20 int len = strlen(path); 25 while (len > 0 && path[len - 1] == '/') 29 // path is `/' 34 while (pos > 0 && path[pos] != '/') 36 if (path[pos] == '/') 39 path += pos; 46 memcpy(buffer, path, len); 60 // allocate the path 61 char *path local [all...] |
H A D | stat_priv.h | 13 int unrestricted_stat(const char *path, struct fssh_stat *fsshStat); 15 int unrestricted_lstat(const char *path, struct fssh_stat *fsshStat);
|
/haiku/src/tests/kits/storage/ |
H A D | PathTest.cpp | 61 BPath path; local 62 CPPUNIT_ASSERT( path.InitCheck() == B_NO_INIT ); 63 CPPUNIT_ASSERT( path.Path() == NULL ); 67 // absolute existing path (root dir), no leaf, no normalization 71 BPath path(pathName); 72 CPPUNIT_ASSERT( path.InitCheck() == B_OK ); 73 CPPUNIT_ASSERT( string(pathName) == path.Path() ); 75 // absolute existing path, no leaf, no normalization 79 BPath path(pathName); 80 CPPUNIT_ASSERT( path 535 BPath path; local 996 BPath path; local 1046 BPath path; local 1079 BPath path; local 1146 BPath path; local 1238 BPath path; local 1257 BPath path; local 1265 BPath path; local 1307 BPath path; local [all...] |
/haiku/src/libs/bsd/ |
H A D | lutimes.c | 15 extern int _utimes(const char* path, const struct timeval times[2], 20 lutimes(const char* path, const struct timeval times[2]) argument 22 return _utimes(path, times, false);
|
/haiku/src/system/libroot/posix/musl/misc/ |
H A D | ftw.c | 3 int ftw(const char *path, int (*fn)(const char *, const struct stat *, int), int fd_limit) argument 8 return nftw(path, (int (*)())fn, fd_limit, FTW_PHYS);
|
/haiku/src/system/libroot/posix/sys/ |
H A D | mkfifo.c | 16 mkfifo(const char *path, mode_t mode) argument 18 RETURN_AND_SET_ERRNO(_kern_create_fifo(-1, path, mode)); 23 mkfifoat(int fd, const char *path, mode_t mode) argument 25 RETURN_AND_SET_ERRNO(_kern_create_fifo(fd, path, mode));
|
/haiku/src/servers/launch/ |
H A D | Utility.h | 14 bool IsReadOnlyVolume(const char* path); 16 status_t BlockMedia(const char* path, bool block); 17 status_t EjectMedia(const char* path); 19 BString TranslatePath(const char* path);
|
H A D | Utility.cpp | 24 IssueDeviceCommand(const char* path, int opcode, void* buffer, argument 28 if (fs_stat_dev(dev_for_path(path), &info) == B_OK) { 30 path = info.device_name; 33 int device = open(path, O_RDONLY); 40 fprintf(stderr, "Failed to process %d on %s: %s\n", opcode, path, 81 IsReadOnlyVolume(const char* path) argument 83 return IsReadOnlyVolume(dev_for_path(path)); 88 BlockMedia(const char* path, bool block) argument 90 return IssueDeviceCommand(path, B_SCSI_PREVENT_ALLOW, &block, 96 EjectMedia(const char* path) argument 105 BString path = originalPath; local [all...] |
/haiku/src/tests/add-ons/kernel/kernelland_emu/ |
H A D | device_manager.cpp | 16 devfs_unpublish_partition(const char *path) argument 18 printf("unpublish partition: %s\n", path); 24 devfs_publish_partition(const char *path, const partition_info *info) argument 29 printf("publish partition: %s (device \"%s\", size %lld)\n", path, info->device, info->size);
|
/haiku/src/apps/debugger/user_interface/cli/commands/ |
H A D | CliDebugReportCommand.cpp | 31 BPath path; local 33 path.SetTo(argv[1]); 34 if (path.InitCheck() != B_OK) { 35 printf("Invalid report path %s given.\n", argv[1]); 41 find_directory(B_DESKTOP_DIRECTORY, &path); 42 path.Append(buffer); 46 if (get_ref_for_path(path.Path(), &ref) == B_OK) { 47 printf("Saving debug information report to %s...\n", path.Path());
|
H A D | CliWriteCoreFileCommand.cpp | 31 BPath path; local 33 path.SetTo(argv[1]); 34 if (path.InitCheck() != B_OK) { 35 printf("Invalid core file path %s given.\n", argv[1]); 42 find_directory(B_DESKTOP_DIRECTORY, &path); 43 path.Append(buffer); 47 if (get_ref_for_path(path.Path(), &ref) == B_OK) { 48 printf("Writing core file to %s...\n", path.Path());
|
/haiku/src/tests/system/kernel/fs/ |
H A D | KPathTest.cpp | 39 vfs_normalize_path(const char* path, char* buffer, size_t bufferSize, argument 92 KPath path; local 93 status_t status = path.InitCheck(); 96 status = path.SetTo("a/b/c"); 98 CPPUNIT_ASSERT(strcmp(path.Path(), "a/b/c") == 0); 99 CPPUNIT_ASSERT(path.Length() == 5); 100 CPPUNIT_ASSERT(path.BufferSize() == B_PATH_NAME_LENGTH + 1); 102 status = path.SetPath("abc/def"); 104 CPPUNIT_ASSERT(strcmp(path.Path(), "abc/def") == 0); 105 CPPUNIT_ASSERT(path 185 KPath path; local 212 KPath path; local 284 KPath path; local [all...] |
/haiku/src/kits/debugger/types/ |
H A D | ArrayIndexPath.cpp | 35 ArrayIndexPath::SetTo(const char* path) argument 39 if (path == NULL) 42 while (*path != '\0') { 44 int64 index = strtoll(path, &numberEnd, 0); 45 if (numberEnd == path) 47 path = numberEnd; 52 if (*path == '\0') 55 if (*path != kIndexSeparator) 57 path++; 72 ArrayIndexPath::GetPathString(BString& path) cons [all...] |
/haiku/src/apps/haikudepot/util/ |
H A D | StorageUtils.h | 17 BPath& path, 20 BPath& path, 23 static status_t CheckCanWriteTo(const BPath& path); 25 static status_t AppendToString(const BPath& path, BString& result); 27 const BPath& path); 30 static status_t RemoveDirectoryContents(BPath& path); 31 static status_t RemoveDirectoryContentsRetainingLatestFiles(BPath& path, 34 static status_t ExistsObject(const BPath& path, 39 static status_t SwapExtensionOnPath(BPath& path,
|
/haiku/src/servers/input/ |
H A D | PathList.cpp | 22 path = strdup(_path); 27 free((char*)path); 30 const char* path; member in struct:PathList::path_entry 48 PathList::HasPath(const char* path, int32* _index) const argument 51 if (!strcmp(fPaths.ItemAt(i)->path, path)) { 63 PathList::AddPath(const char* path) argument 65 if (path == NULL) 69 if (HasPath(path, &index)) { 74 path_entry* entry = new(std::nothrow) path_entry(path); 85 RemovePath(const char* path) argument [all...] |
/haiku/headers/private/kernel/fs/ |
H A D | devfs.h | 19 status_t devfs_unpublish_file_device(const char* path); 20 status_t devfs_publish_file_device(const char* path, const char* filePath); 22 status_t devfs_unpublish_partition(const char* path); 27 status_t devfs_unpublish_device(const char* path, bool disconnect); 28 status_t devfs_publish_device(const char* path, device_hooks* calls); 29 status_t devfs_publish_directory(const char* path);
|
/haiku/src/tests/kits/storage/testapps/ |
H A D | PathMonitorTest.cpp | 25 Looper(const char* path); 35 Looper::Looper(const char* path) argument 36 : BLooper("path monitor test"), 37 fPath(path) 39 status_t status = BPathMonitor::StartWatching(path, B_WATCH_ALL, this); 41 fprintf(stderr, "Could not watch path \"%s\": %s.\n", path, strerror(status)); 67 create_file(const char* path) argument 69 printf("******* create file %s *******\n", path); 71 status_t status = file.SetTo(path, B_CREATE_FIL 79 remove_file(const char* path) argument 87 create_directory(const char* path) argument 95 remove_directory(const char* path) argument [all...] |
/haiku/headers/compatibility/gnu/sys/ |
H A D | xattr.h | 25 ssize_t getxattr(const char* path, const char* attribute, void* buffer, 27 ssize_t lgetxattr(const char* path, const char* attribute, void* buffer, 31 int setxattr(const char* path, const char* attribute, const void* buffer, 33 int lsetxattr(const char* path, const char* attribute, const void* buffer, 38 int removexattr (const char* path, const char* attribute); 39 int lremovexattr (const char* path, const char* attribute); 42 ssize_t listxattr(const char* path, char* buffer, size_t size); 43 ssize_t llistxattr(const char* path, char* buffer, size_t size);
|
/haiku/src/add-ons/kernel/file_systems/ntfs/libntfs/ |
H A D | realpath.h | 15 extern char *ntfs_realpath(const char *path, char *resolved_path); 19 extern char *ntfs_realpath_canonicalize(const char *path, char *resolved_path);
|
/haiku/src/build/libroot/ |
H A D | fs_attr_bsdxattr.h | 21 list_attributes(int fd, const char* path, char* buffer, size_t bufferSize) argument 25 return listxattr(path, buffer, bufferSize, XATTR_NOFOLLOW); 30 get_attribute(int fd, const char* path, const char* attribute, void* buffer, argument 35 return getxattr(path, attribute, buffer, bufferSize, 0, XATTR_NOFOLLOW); 40 set_attribute(int fd, const char* path, const char* attribute, argument 45 return setxattr(path, attribute, buffer, bufferSize, 0, XATTR_NOFOLLOW); 50 remove_attribute(int fd, const char* path, const char* attribute) argument 54 return removexattr(path, attribute, XATTR_NOFOLLOW);
|
H A D | fs_attr_xattr.h | 21 list_attributes(int fd, const char* path, char* buffer, size_t bufferSize) argument 25 return llistxattr(path, buffer, bufferSize); 30 get_attribute(int fd, const char* path, const char* attribute, void* buffer, argument 35 return lgetxattr(path, attribute, buffer, bufferSize); 40 set_attribute(int fd, const char* path, const char* attribute, argument 45 return lsetxattr(path, attribute, buffer, bufferSize, 0); 50 remove_attribute(int fd, const char* path, const char* attribute) argument 54 return lremovexattr(path, attribute);
|
/haiku/src/preferences/time/ |
H A D | TimeSettings.cpp | 36 BPath path; local 39 if (find_directory(B_USER_SETTINGS_DIRECTORY, &path) == B_OK) { 40 path.Append(fSettingsFile.String()); 42 BFile file(path.Path(), B_READ_ONLY); 57 BPath path; local 58 if (find_directory(B_USER_SETTINGS_DIRECTORY, &path) != B_OK) 61 path.Append(fSettingsFile.String()); 63 BFile file(path.Path(), B_WRITE_ONLY | B_CREATE_FILE);
|
/haiku/src/system/libroot/posix/unistd/ |
H A D | chroot.cpp | 15 chroot(const char *path) argument 17 status_t error = _kern_change_root(path);
|
/haiku/src/build/libbe/storage/ |
H A D | Mime.cpp | 14 update_mime_info(const char* path, int recursive, int synchronous, int force) argument 21 create_app_meta_mime(const char* path, int recursive, int synchronous, argument
|