/haiku/src/apps/login/ |
H A D | DesktopWindow.cpp | 42 BPath path; local 45 err = find_directory(B_SYSTEM_SETTINGS_DIRECTORY, &path, true); 47 BDirectory dir(path.Path()); 50 path.Append("x-vnd.Haiku-Login"); 51 dir.SetTo(path.Path()); 54 path.Append("Shelf"); 55 get_ref_for_path(path.Path(), &ref);
|
/haiku/src/kits/print/ |
H A D | PrintTransport.cpp | 79 BPath path; local 81 if (find_directory(paths[i], &path) != B_OK) 83 path.Append("Print/transport"); 84 path.Append(transportName.String()); 85 fAddOnID = load_add_on(path.Path()); 112 if (path.SetTo(&dir, NULL) != B_OK) { 118 input.AddString("printer_file", path.Path());
|
/haiku/src/tools/checkstyle/ |
H A D | checkstyle.py | 46 if os.path.split(root)[1] in vcsCacheDirectory: 51 path = os.path.join(root, file) 52 if os.path.splitext(file)[1] in extensions: 53 print("adding", path) 54 results.append(path) 87 if os.path.isfile(arg):
|
/haiku/src/system/kernel/fs/ |
H A D | vfs_net_boot.cpp | 37 const char* path = device->Path(); local 38 return (string_starts_with(path, "/dev/disk/virtual/nbd/") 39 || string_starts_with(path, "/dev/disk/virtual/remote_disk/")); 104 KPath path; local 105 status_t error = path.SetTo("/dev/net"); 109 _ScanDevices(path); 115 void _ScanDevices(KPath& path) argument 117 DIR* dir = opendir(path.Path()); 120 path.Path(), strerror(errno)); 131 path 150 _ScanDevice(const char* path) argument [all...] |
/haiku/src/bin/ |
H A D | diskimage.cpp | 26 " %s unregister ( <file> | <device path> | <device ID> )\n" 62 // file path 63 BPath path; local 65 device.GetFilePath(&path) == B_OK ? path.Path() : "???"); 67 // device path 68 printf("%s", device.GetPath(&path) == B_OK ? path.Path() : "???"); 102 // print the success message (get the device path) 104 BPath path; local 166 BPath path; local [all...] |
H A D | fortune.c | 21 choose_file(const char *path) argument 27 DIR *dir = opendir(path); 58 // build full path 59 strlcpy(name, path, sizeof(name)); 80 char path[PATH_MAX] = {'\0'}; local 81 const char *file = path; 93 } else if (find_directory(B_SYSTEM_DATA_DIRECTORY, -1, false, path, 94 sizeof(path)) == B_OK) { 95 strlcat(path, "/fortunes", sizeof(path)); [all...] |
/haiku/src/preferences/sounds/ |
H A D | HEventList.cpp | 26 HEventRow::HEventRow(const char* name, const char* path) argument 32 SetPath(path); 45 BPath path(_path); 46 SetField(new BStringField(_path ? path.Leaf() : B_TRANSLATE("<none>")), 89 BPath path(&ref); 90 if (path.InitCheck() != B_OK || ref.name == NULL 94 AddRow(new HEventRow(name.String(), path.Path())); 122 BPath path(&ref); 123 if (path.InitCheck() == B_OK || ref.name == NULL 125 row->SetPath(path 145 SetPath(const char* path) argument [all...] |
/haiku/src/add-ons/media/media-add-ons/multi_audio/ |
H A D | MultiAudioAddOn.cpp | 198 BPath path; local 199 entry.GetPath(&path); 201 new(std::nothrow) MultiAudioDevice(path.Path() 202 + strlen(rootPath), path.Path()); 220 BPath path; local 221 if (find_directory(B_USER_SETTINGS_DIRECTORY, &path) != B_OK) 224 path.Append(kSettingsName); 226 BFile file(path.Path(), B_READ_WRITE | B_CREATE_FILE | B_ERASE_FILE); 238 BPath path; local 239 if (find_directory(B_USER_SETTINGS_DIRECTORY, &path) ! [all...] |
/haiku/headers/os/storage/ |
H A D | Entry.h | 42 BEntry(const BDirectory* dir, const char* path, 46 BEntry(const char* path, bool traverse = false); 57 status_t SetTo(const BDirectory* dir, const char* path, 61 status_t SetTo(const char* path, bool traverse = false); 65 status_t GetPath(BPath* path) const; 70 status_t Rename(const char* path, bool clobber = false); 71 status_t MoveTo(BDirectory* dir, const char* path = NULL, 95 status_t _SetTo(int dir, const char* path, 115 status_t get_ref_for_path(const char* path, entry_ref* ref);
|
/haiku/headers/private/shared/ |
H A D | EntryFilter.h | 50 bool Filter(const char* path, const char* name) const argument 53 if (fnmatch(fPattern, (fIsFileName ? name : path), 0) == 0) 118 bool Filter(const char* path) const 124 const char* name = strrchr(path, '/'); 125 name = (name != NULL ? name + 1 : path); 128 if (_Filter(fExcludeFilters, path, name)) 132 return fIncludeFilters == NULL || _Filter(fIncludeFilters, path, name); 161 const char* path, const char* name) 165 if (filter->Filter(path, name)) 160 _Filter(const BasicEntryFilter* const& filterList, const char* path, const char* name) argument
|
/haiku/headers/build/os/storage/ |
H A D | Entry.h | 45 BEntry(const BDirectory *dir, const char *path, bool traverse = false); 47 BEntry(const char *path, bool traverse = false); 58 status_t SetTo(const BDirectory *dir, const char *path, 61 status_t SetTo(const char *path, bool traverse = false); 65 status_t GetPath(BPath *path) const; 70 status_t Rename(const char *path, bool clobber = false); 71 status_t MoveTo(BDirectory *dir, const char *path = NULL, 99 status_t set(int dir, const char *path, bool traverse); 119 status_t get_ref_for_path(const char *path, entry_ref *ref);
|
/haiku/src/preferences/input/ |
H A D | InputTouchpadPref.cpp | 78 TouchpadPref::GetSettingsPath(BPath& path) argument 80 status_t status = find_directory(B_USER_SETTINGS_DIRECTORY, &path); 84 return path.Append(TOUCHPAD_SETTINGS_FILE); 91 BPath path; local 92 status_t status = GetSettingsPath(path); 96 BFile settingsFile(path.Path(), B_READ_ONLY); 119 BPath path; local 120 status_t status = GetSettingsPath(path); 124 BFile settingsFile(path.Path(), B_READ_WRITE | B_CREATE_FILE);
|
/haiku/headers/private/fs_shell/ |
H A D | fssh_unistd.h | 40 extern int fssh_access(const char *path, int accessMode); 42 extern int fssh_chdir(const char *path); 51 extern int fssh_rmdir(const char *path); 53 extern fssh_ssize_t fssh_readlink(const char *path, char *buffer, 58 extern int fssh_truncate(const char *path, fssh_off_t newSize);
|
/haiku/src/add-ons/kernel/file_systems/netfs/server/ |
H A D | FDManager.h | 30 static status_t SetEntry(BEntry* entry, const char* path); 31 static status_t SetFile(BFile* file, const char* path, 35 static status_t Open(const char* path, uint32 openMode, 37 static status_t OpenDir(const char* path, DIR*& dir); 38 static status_t OpenAttrDir(const char* path, DIR*& dir);
|
/haiku/src/apps/bootmanager/ |
H A D | BootDrive.cpp | 15 BootDrive::BootDrive(const char* path) argument 17 fPath(path) 84 BPath path; local 85 if (device.GetPath(&path) == B_OK && path == fPath)
|
/haiku/src/apps/debuganalyzer/util/ |
H A D | DataSource.cpp | 59 PathDataSource::Init(const char* path) argument 61 return fPath.SetTo(path); 108 BPath path; 109 error = entry.GetPath(&path); 113 name = path.Path();
|
/haiku/src/kits/debugger/files/ |
H A D | FileManager.h | 38 LocatableFile* GetTargetFile(const BString& path); 40 void TargetEntryLocated(const BString& path, 46 LocatableFile* GetSourceFile(const BString& path); 48 status_t SourceEntryLocated(const BString& path, 75 SourceFileEntry* _LookupSourceFile(const BString& path);
|
/haiku/src/add-ons/mail_daemon/inbound_protocols/imap/ |
H A D | Settings.cpp | 82 BPath path(fMessage.FindString("destination")); 83 if (path.Path() == NULL) { 85 path = "/boot/home/mail"; 86 path.Append(fAccountName.String()); 88 return path;
|
/haiku/src/bin/i2c/ |
H A D | i2c.cpp | 35 fprintf(stderr, "Usage: %s <path-to-i2c-bus-device>\n", kProgramName); 41 scan_bus(const char *path) argument 44 FileDescriptorCloser fd(open(path, O_RDONLY)); 46 fprintf(stderr, "%s: Could not access path: %s\n", kProgramName, 52 printf("Scanning I2C bus: %s\n", path); 99 const char* path = argv[optind++]; local 101 exit(scan_bus(path));
|
/haiku/3rdparty/pulkomandy/ |
H A D | pkggraph.py | 8 from os.path import isfile, join 39 path = "/system/packages" variable 43 packages = [join(path, f) for f in listdir(path) if(isfile(join(path, f)))]
|
/haiku/src/build/libroot/ |
H A D | fs.cpp | 162 FDPathFile(int fd, const char* path, int flag) argument 165 fPath(path), 189 utimensat(int fd, const char* path, const struct timespec times[2], int flag) argument 191 FDPathFile file(fd, path, flag); 199 string &path); 204 find_dir_entry(DIR *dir, const char *path, NodeRef ref, string &name, argument 218 string entryPath(path); 241 find_dir_entry(const char *path, NodeRef ref, string &name, bool skipDot) argument 244 DIR *dir = opendir(path); 248 status_t error = find_dir_entry(dir, path, re 259 normalize_dir_path(const char *path, string &normalizedPath) argument 304 normalize_entry_path(const char *path, string &normalizedPath) argument 351 get_path(const NodeRef *ref, const char *name, string &path) argument 401 get_path(int fd, const char *name, string &path) argument 436 get_path(dev_t device, ino_t directory, const char *name, string &path) argument 447 add_dir_path(const char *path, const NodeRef &ref) argument 464 string path; local 481 _kern_create_dir(int fd, const char *path, int perms) argument 516 open_dir(const char *path) argument 546 _kern_open_dir(int fd, const char *path) argument 662 open_file(const char *path, int openMode, int perms) argument 702 _kern_open(int fd, const char *path, int openMode, int perms) argument 843 _kern_read_stat(int fd, const char *path, bool traverseLink, struct stat *st, size_t statSize) argument 875 _kern_write_stat(int fd, const char *path, bool traverseLink, const struct stat *st, size_t statSize, int statMask) argument 1013 _kern_create_symlink(int fd, const char *path, const char *toPath, int mode) argument 1031 _kern_read_link(int fd, const char *path, char *buffer, size_t *_bufferSize) argument 1067 _kern_unlink(int fd, const char *path) argument 1214 _haiku_build_fchmodat(int fd, const char* path, mode_t mode, int flag) argument 1235 _haiku_build_fstatat(int fd, const char* path, struct stat* st, int flag) argument 1246 _haiku_build_mkdirat(int fd, const char* path, mode_t mode) argument 1256 _haiku_build_mkfifoat(int fd, const char* path, mode_t mode) argument 1265 _haiku_build_utimensat(int fd, const char* path, const struct timespec times[2], int flag) argument 1331 _haiku_build_faccessat(int fd, const char* path, int accessMode, int flag) argument 1429 _haiku_build_linkat(int toFD, const char* toPath, int pathFD, const char* path, int flag) argument 1439 _haiku_build_unlinkat(int fd, const char* path, int flag) argument 1449 _haiku_build_readlinkat(int fd, const char* path, char* buffer, size_t bufferSize) argument 1496 _haiku_build_fchownat(int fd, const char* path, uid_t owner, gid_t group, int flag) argument 1522 _haiku_build_creat(const char* path, mode_t mode) argument 1529 _haiku_build_open(const char* path, int openMode, mode_t permissions) argument 1536 _haiku_build_openat(int fd, const char* path, int openMode, mode_t permissions) argument [all...] |
/haiku/src/system/kernel/device_manager/ |
H A D | legacy_drivers.cpp | 54 const char* path, device_hooks* hooks); 70 virtual status_t Open(const char* path, int openMode, 95 const char* path; member in struct:__anon1::legacy_driver 132 char path[B_PATH_NAME_LENGTH]; member in union:__anon1::driver_event::__anon2 141 char* path; member in struct:__anon1::driver_entry 183 DirectoryIterator(const char *path, 187 void SetTo(const char *path, const char *subPath = NULL, 190 status_t GetNext(KPath &path, struct stat &stat); 194 void AddPath(const char *path, const char *subPath = NULL); 354 "unloaded\n", driver->path)); 521 get_priority(const char* path) argument 548 get_leaf(const char* path) argument 573 add_driver(const char* path, image_id image) argument 919 DirectoryIterator(const char* path, const char* subPath, bool recursive) argument 937 SetTo(const char* path, const char* subPath, bool recursive) argument 967 GetNext(KPath& path, struct stat& stat) argument 1026 KPath* path; local 1035 KPath* path = new(nothrow) KPath(basePath); local 1134 new_driver_entry(const char* path, dev_t device, ino_t node) argument 1197 KPath path; local 1246 LegacyDevice(legacy_driver* driver, const char* path, device_hooks* hooks) argument 1374 Open(const char* path, int openMode, void** _cookie) argument 1440 legacy_driver_add(const char* path) argument 1447 legacy_driver_publish(const char* path, device_hooks* hooks) argument 1491 KPath path; local [all...] |
/haiku/headers/os/kernel/ |
H A D | fs_attr.h | 31 extern int fs_open_attr(const char *path, const char *attribute, 37 extern DIR *fs_open_attr_dir(const char *path); 38 extern DIR *fs_lopen_attr_dir(const char *path);
|
/haiku/src/add-ons/input_server/devices/mouse/ |
H A D | MouseInputDevice.h | 42 MouseDevice* _FindDevice(const char* path) const; 43 status_t _AddDevice(const char* path); 44 status_t _RemoveDevice(const char* path);
|
/haiku/src/add-ons/input_server/devices/tablet/ |
H A D | TabletInputDevice.h | 43 TabletDevice* _FindDevice(const char* path) const; 44 status_t _AddDevice(const char* path); 45 status_t _RemoveDevice(const char* path);
|