/haiku/src/apps/icon-o-matic/shape/commands/ |
H A D | CleanUpPathCommand.cpp | 24 CleanUpPathCommand::CleanUpPathCommand(VectorPath* path) argument 25 : PathCommand(path), 59 name << B_TRANSLATE("Clean up path");
|
/haiku/src/apps/haikudepot/server/ |
H A D | AbstractSingleFileServerProcess.h | 28 virtual status_t GetLocalPath(BPath& path) const = 0; 30 virtual status_t GetStandardMetaDataPath(BPath& path) const;
|
/haiku/headers/private/shared/ |
H A D | OpenWithTracker.h | 30 OpenWithTracker(const char* path) argument 34 status = get_ref_for_path(path, &ref); 47 BPath path; local 48 find_directory(which, &path, createDirectory, volume); 51 path.Append(relativePath); 54 BEntry entry(path.Path());
|
/haiku/src/tests/servers/app/code_to_name/ |
H A D | code_to_name.cpp | 46 print_code(BPath& path, int32 code) argument 48 FILE* file = fopen(path.Path(), "r"); 99 BPath path(&entry); 100 puts(path.Path()); 101 if (strstr(path.Path(), "headers/private/app/ServerProtocol.h") != NULL) { 102 print_code(path, number);
|
/haiku/src/tools/locale/ |
H A D | PlainTextCatalog.cpp | 95 PlainTextCatalog::PlainTextCatalog(const char *path, const char *signature, argument 99 fPath(path) 111 PlainTextCatalog::ReadFromFile(const char *path) argument 116 if (!path) 117 path = fPath.String(); 119 catalogFile.open(path, std::fstream::in); 121 fprintf(stderr, "couldn't open catalog at %s\n", path); 138 currentItem.c_str(), path); 146 kCatArchiveVersion, path); 150 fprintf(stderr, "Unable to read from catalog %s\n", path); 255 WriteToFile(const char *path) argument 322 UpdateAttributes(const char* path) argument [all...] |
/haiku/src/tests/apps/haikudepot/ |
H A D | TarArchiveServiceTest.cpp | 67 TarArchiveServiceTest::CreateSampleFile(BString& path) argument 69 path.SetTo(tmpnam(NULL)); 70 BFile* file = new BFile(path, O_WRONLY | O_CREAT); 75 printf("! unable to write the sample data to [%s]\n", path.String()); 83 TarArchiveServiceTest::DeleteSampleFile(const BString& path) argument 85 if (remove(path.String()) != 0)
|
/haiku/headers/private/storage/ |
H A D | storage_support.h | 33 //! Returns whether the supplied path is absolute. 34 bool is_absolute_path(const char *path); 40 //! splits a path name into directory path and leaf name 41 status_t split_path(const char *fullPath, char *&path, char *&leaf); 43 //! splits a path name into directory path and leaf name 44 status_t split_path(const char *fullPath, char **path, char **leaf); 46 //! Parses the first component of a path name. 47 status_t parse_first_path_component(const char *path, int3 [all...] |
/haiku/src/add-ons/kernel/file_systems/netfs/server/ |
H A D | FDManager.cpp | 117 FDManager::SetEntry(BEntry* entry, const char* path) argument 119 status_t error = entry->SetTo(path); 123 error = entry->SetTo(path); 131 FDManager::SetFile(BFile* file, const char* path, uint32 openMode) argument 133 status_t error = file->SetTo(path, openMode); 137 error = file->SetTo(path, openMode); 159 FDManager::Open(const char* path, uint32 openMode, mode_t mode, int& fd) argument 162 fd = open(path, openMode, mode); 170 fd = open(path, openMode, mode); 180 FDManager::OpenDir(const char* path, DI argument 201 OpenAttrDir(const char* path, DIR*& dir) argument [all...] |
/haiku/src/tools/fs_shell/ |
H A D | syscalls.h | 19 fssh_dev_t _kern_mount(const char *path, const char *device, 22 fssh_status_t _kern_unmount(const char *path, uint32_t flags); 33 int _kern_open(int fd, const char *path, int openMode, int perms); 36 int _kern_open_dir(int fd, const char *path); 43 fssh_status_t _kern_create_dir(int fd, const char *path, int perms); 44 fssh_status_t _kern_remove_dir(int fd, const char *path); 45 fssh_status_t _kern_read_link(int fd, const char *path, char *buffer, 47 fssh_status_t _kern_create_symlink(int fd, const char *path, 49 fssh_status_t _kern_create_link(const char *path, const char *toPath); 50 fssh_status_t _kern_unlink(int fd, const char *path); [all...] |
/haiku/src/kits/storage/ |
H A D | EntryOperationEngineBase.cpp | 17 BEntryOperationEngineBase::Entry::Entry(const char* path) argument 20 fPath(path), 29 const char* path) 32 fPath(path), 63 const char* path) 66 fPath(path), 113 const char* path; local 114 if (GetPath(pathBuffer, path) == B_OK) 115 return BString(path); 126 const char* path; local 28 Entry(const BDirectory& directory, const char* path) argument 62 Entry(const node_ref& directoryRef, const char* path) argument 179 BString path; local [all...] |
H A D | PathFinder.cpp | 25 BPathFinder::BPathFinder(const char* path, const char* dependency) argument 27 _SetTo(NULL, path, dependency); 45 BPathFinder::SetTo(const char* path, const char* dependency) argument 47 return _SetTo(NULL, path, dependency); 54 BPath path; local 55 fInitStatus = path.SetTo(&ref); 59 return _SetTo(NULL, path.Path(), dependency); 136 BString path(pathArray[i]); 137 if (path.IsEmpty() || !_paths.Add(path)) { 171 _SetTo(const void* codePointer, const char* path, const char* dependency) argument [all...] |
/haiku/src/add-ons/kernel/bus_managers/acpi/ |
H A D | Device.cpp | 58 acpi_get_object(acpi_device device, const char *path, acpi_object_type **return_value) argument 60 if (device->path == NULL) 62 if (path) { 64 snprintf(objname, sizeof(objname), "%s.%s", device->path, path); 67 return get_object(device->path, return_value); 101 const char *path = NULL; local 106 gDeviceManager->get_attr_string(node, ACPI_DEVICE_PATH_ITEM, &path, false); 114 if (path != NULL && AcpiGetHandle(NULL, (ACPI_STRING)path, [all...] |
/haiku/src/tests/system/boot/loader/ |
H A D | platform_devices.cpp | 29 get_device(const char *path, Node **_device) argument 31 Handle *device = new Handle(path); 37 __progname, path, strerror(device->InitCheck())); 49 add_device(const char *path, NodeList *list) argument 52 status_t status = get_device(path, &device); 56 printf("add \"%s\" to list of boot devices\n", path); 64 recursive_add_device(const char *path, NodeList *list) argument 66 DIR *dir = opendir(path); 77 strcpy(nextPath, path); 143 char *path local 177 char *path; local [all...] |
/haiku/src/tests/add-ons/kernel/file_systems/consistency_check/ |
H A D | generate_hashs.cpp | 92 std::string path; member in struct:file_entry 96 return path < other.path; 112 void process_file(const char* path); 120 process_directory(const char* path) argument 122 DIR* dir = opendir(path); 126 size_t pathLength = strlen(path); 134 strlcpy(fullPath, path, sizeof(fullPath)); 135 if (path[pathLength - 1] != '/') 147 process_file(const char* path) argument [all...] |
/haiku/src/kits/package/ |
H A D | PackageRoster.cpp | 77 BPackageRoster::GetCommonRepositoryConfigPath(BPath* path, bool create) const argument 79 return _GetRepositoryPath(path, create, B_SYSTEM_SETTINGS_DIRECTORY); 84 BPackageRoster::GetUserRepositoryConfigPath(BPath* path, bool create) const argument 86 return _GetRepositoryPath(path, create, B_USER_SETTINGS_DIRECTORY); 91 BPackageRoster::GetCommonRepositoryCachePath(BPath* path, bool create) const argument 93 return _GetRepositoryPath(path, create, B_SYSTEM_CACHE_DIRECTORY); 98 BPackageRoster::GetUserRepositoryCachePath(BPath* path, bool create) const argument 100 return _GetRepositoryPath(path, create, B_USER_CACHE_DIRECTORY); 169 // user path has higher precedence than common path 352 _GetRepositoryPath(BPath* path, bool create, directory_which whichDir) const argument 377 _VisitRepositoryConfigs(const BPath& path, BRepositoryConfigVisitor& visitor) argument [all...] |
/haiku/src/servers/input/ |
H A D | InputServerDevice.cpp | 26 while (const char* path = fMonitoredPaths.PathAt(0)) { 27 gInputServer->AddOnManager()->StopMonitoringDevice(this, path); 33 DeviceAddOn::HasPath(const char* path) const 35 return fMonitoredPaths.HasPath(path); 40 DeviceAddOn::AddPath(const char* path) argument 42 return fMonitoredPaths.AddPath(path); 47 DeviceAddOn::RemovePath(const char* path) argument 49 return fMonitoredPaths.RemovePath(path); 159 BInputServerDevice::AddDevices(const char* path) argument 162 status_t status = directory.SetTo(path); [all...] |
/haiku/src/servers/print/ |
H A D | Transport.cpp | 72 BPath path; local 75 if ((result = find_directory(which, &path)) != B_OK) 78 if ((result = path.Append("Print/transport")) != B_OK) 82 if ((result = dir.SetTo(path.Path())) != B_OK) 91 if (entry.GetPath(&path) != B_OK) 96 if (Transport::Find(path.Leaf()) != NULL) 99 be_app->AddHandler(new Transport(path)); 118 Transport::Transport(const BPath& path) argument 120 fPath(path), 125 image_id id = ::load_add_on(path [all...] |
/haiku/src/bin/ |
H A D | getarch.cpp | 23 "Usage: %s [ <options> ] [ <path> ]\n" 25 "when no arguments are given. When <path> is specified, the architecture\n" 26 "associated with that path is printed. The options allow to print the\n" 50 // get the system installation location path 66 BPath path; local 68 B_FIND_PATH_BIN_DIRECTORY, NULL, 0, path) != B_OK 69 || !binDirectories.Add(path.Path())) { 75 // bin path we encounter implies the architecture. 82 // normalize the path, but skip a relative one 83 BPath path; local [all...] |
H A D | ramdisk.cpp | 35 " create (-s <size> | <path>)\n" 48 "Usage: %s %s (-s <size> | <path>)\n" 52 "Alternatively a file path can be specified. In that case the RAM disk \n" 169 // The remaining optional argument is the file path. It may only be 171 const char* path = optind < argc ? argv[optind++] : NULL; local 172 if (optind < argc || (deviceSize >= 0) == (path != NULL)) 178 request.path[0] = '\0'; 181 if (path != NULL) { 182 // verify the path 184 status_t error = entry.SetTo(path, tru 267 BString path; local 331 BString path; local 404 BString path; local [all...] |
/haiku/src/apps/debuganalyzer/gui/table/ |
H A D | TreeTable.h | 56 const TreeTablePath& path, int32 childIndex, 59 const TreeTablePath& path, int32 childIndex, 62 const TreeTablePath& path, int32 childIndex, 81 virtual void* NodeForPath(const TreeTablePath& path) const; 91 void NotifyNodesAdded(const TreeTablePath& path, 93 void NotifyNodesRemoved(const TreeTablePath& path, 95 void NotifyNodesChanged(const TreeTablePath& path, 133 const TreeTablePath& path, 145 const TreeTablePath& path); 147 const TreeTablePath& path, boo [all...] |
/haiku/src/tests/add-ons/kernel/kernelland_emu/ |
H A D | KPath.cpp | 8 /*! A simple class wrapping a path. Has a fixed-sized buffer. */ 39 KPath::KPath(const char* path, int32 flags, size_t bufferSize) argument 49 SetTo(path, flags, bufferSize); 74 KPath::SetTo(const char* path, int32 flags, size_t bufferSize) argument 90 fIsNull = path == NULL; 92 if (path != NULL || !fLazy) { 98 return SetPath(path, flags); 133 /*! \brief Sets the buffer to \a path. 140 KPath::SetPath(const char* path, int32 flags) argument 142 if (path 366 operator =(const char* path) argument 426 _Normalize(const char* path, bool traverseLeafLink) argument [all...] |
/haiku/src/system/kernel/disk_device_manager/ |
H A D | KDiskDevice.cpp | 52 KDiskDevice::SetTo(const char* path) argument 58 if (!path) 61 // set the path 62 error = set_string(fDeviceData.path, path); 66 fFD = open(path, O_RDONLY); 103 if (fDeviceData.path) { 104 free(fDeviceData.path); 105 fDeviceData.path = NULL; 261 KDiskDevice::SetPath(const char* path) argument 335 char* path = writer.PlaceString(Path()); local [all...] |
/haiku/headers/private/userlandfs/fuse/ |
H A D | fuse.h | 81 * Almost all operations take a path which can be of any length. 458 * Flag indicating that the filesystem can accept a NULL path 470 * Flag indicating that the path need not be calculated for 477 * set then the path will not be calculaged even if the file 478 * wasn't unlinked. However the path can still be non-NULL if 757 int fuse_invalidate(struct fuse *f, const char *path); 818 int fuse_fs_getattr(struct fuse_fs *fs, const char *path, struct stat *buf); 819 int fuse_fs_fgetattr(struct fuse_fs *fs, const char *path, struct stat *buf, 823 int fuse_fs_unlink(struct fuse_fs *fs, const char *path); 824 int fuse_fs_rmdir(struct fuse_fs *fs, const char *path); [all...] |
/haiku/src/system/libroot/posix/sys/ |
H A D | stat.c | 20 int _stat_current(const char* path, struct stat* stat); 22 int _lstat_current(const char* path, struct stat* stat); 23 int _stat_beos(const char* path, struct stat_beos* beosStat); 25 int _lstat_beos(const char* path, struct stat_beos* beosStat); 29 _stat_current(const char* path, struct stat* stat) argument 31 int status = _kern_read_stat(-1, path, true, stat, sizeof(struct stat)); 47 _lstat_current(const char* path, struct stat* stat) argument 49 int status = _kern_read_stat(-1, path, false, stat, sizeof(struct stat)); 56 fstatat(int fd, const char *path, struct stat *st, int flag) argument 58 int status = _kern_read_stat(fd, path, (fla 119 _stat_beos(const char* path, struct stat_beos* beosStat) argument 145 _lstat_beos(const char* path, struct stat_beos* beosStat) argument [all...] |
/haiku/src/system/libroot/os/ |
H A D | Architecture.cpp | 39 char path[B_PATH_NAME_LENGTH]; local 40 snprintf(path, sizeof(path), kSystemLibDirectory "/%s/libroot.so", 44 return lstat(path, &st) == 0; 100 __guess_architecture_for_path(const char* path) argument 107 if (__gRuntimeLoader->get_executable_architecture(path, &architecture) 116 // guess from the given path 117 architecture = __guess_secondary_architecture_from_path(path,
|