/haiku/src/preferences/screen/ |
H A D | ScreenSettings.cpp | 27 BPath path; local 28 if (find_directory(B_USER_SETTINGS_DIRECTORY, &path) == B_OK) { 29 path.Append(kSettingsFileName); 31 BFile file(path.Path(), B_READ_ONLY); 42 BPath path; local 43 if (find_directory(B_USER_SETTINGS_DIRECTORY, &path) < B_OK) 46 path.Append(kSettingsFileName); 50 BFile file(path.Path(), B_WRITE_ONLY | B_CREATE_FILE);
|
/haiku/src/preferences/printers/ |
H A D | ScreenSettings.cpp | 27 BPath path; local 28 if (find_directory(B_USER_SETTINGS_DIRECTORY, &path) == B_OK) { 29 path.Append(kSettingsFileName); 31 BFile file(path.Path(), B_READ_ONLY); 42 BPath path; local 43 if (find_directory(B_USER_SETTINGS_DIRECTORY, &path) < B_OK) 46 path.Append(kSettingsFileName); 50 BFile file(path.Path(), B_WRITE_ONLY | B_CREATE_FILE);
|
/haiku/src/system/libroot/posix/sys/ |
H A D | mkdir.c | 17 mkdir(const char* path, mode_t mode) argument 19 RETURN_AND_SET_ERRNO(_kern_create_dir(-1, path, mode & ~__gUmask)); 24 mkdirat(int fd, const char *path, mode_t mode) argument 26 RETURN_AND_SET_ERRNO(_kern_create_dir(fd, path, mode & ~__gUmask));
|
/haiku/src/system/libroot/posix/unistd/ |
H A D | access.c | 16 access(const char* path, int accessMode) argument 18 status_t status = _kern_access(-1, path, accessMode, false); 25 faccessat(int fd, const char* path, int accessMode, int flag) argument 27 status_t status = _kern_access(fd, path, accessMode,
|
H A D | hostname.cpp | 20 get_path(char *path, bool create) argument 23 path, B_PATH_NAME_LENGTH); 27 strlcat(path, "/network", B_PATH_NAME_LENGTH); 29 mkdir(path, 0755); 30 strlcat(path, "/hostname", B_PATH_NAME_LENGTH); 38 char path[B_PATH_NAME_LENGTH]; local 39 if (get_path(path, false) != B_OK) { 44 int file = open(path, O_WRONLY | O_CREAT, 0644); 67 char path[B_PATH_NAME_LENGTH]; local 68 if (get_path(path, fals [all...] |
/haiku/src/build/libroot/ |
H A D | find_directory.cpp | 30 create_path(const char *path, mode_t mode) argument 36 if (path == NULL || ((pathLength = strlen(path)) > B_PATH_NAME_LENGTH)) 40 const char *slash = strchr(&path[i], '/'); 45 else if (i != slash - path) 46 i = slash - path; 50 strlcpy(buffer, path, i + 1); 67 const char* path; local 70 path = HAIKU_BUILD_GENERATED_DIRECTORY "/tmp"; 73 path [all...] |
H A D | fs_darwin.cpp | 20 static int get_path(int fd, const char* path, char fullPath[]); 21 static int eaccess(const char* path, int accessMode); 25 get_path(int fd, const char* path, char fullPath[]) argument 40 // failed to get the path of fd, fcntl() sets errno 45 || strlcat(fullPath, path, MAXPATHLEN) > MAXPATHLEN) { 46 // full path is too long 56 eaccess(const char* path, int accessMode) argument 62 if (stat(path, &st) < 0) { 63 // failed to get stat information on path, stat() sets errno 110 faccessat(int fd, const char* path, in argument 140 fchmodat(int fd, const char* path, mode_t mode, int flag) argument 184 fchownat(int fd, const char* path, uid_t owner, gid_t group, int flag) argument 227 char path[MAXPATHLEN]; local 242 fstatat(int fd, const char *path, struct stat *st, int flag) argument 272 mkdirat(int fd, const char *path, mode_t mode) argument 294 mkfifoat(int fd, const char *path, mode_t mode) argument 316 mknodat(int fd, const char *path, mode_t mode, dev_t dev) argument 384 readlinkat(int fd, const char *path, char *buffer, size_t bufferSize) argument 429 unlinkat(int fd, const char *path, int flag) argument 515 futimesat(int fd, const char *path, const struct timeval times[2]) argument [all...] |
/haiku/headers/private/kernel/ |
H A D | core_dump.h | 14 status_t core_dump_write_core_file(const char* path, bool killTeam);
|
/haiku/src/servers/input/ |
H A D | PathList.h | 20 bool HasPath(const char* path, 22 status_t AddPath(const char* path); 23 status_t RemovePath(const char* path);
|
/haiku/src/system/kernel/device_manager/ |
H A D | legacy_drivers.h | 16 status_t legacy_driver_add(const char* path); 17 status_t legacy_driver_publish(const char* path, device_hooks* hooks); 19 status_t legacy_driver_probe(const char* path);
|
/haiku/src/system/libroot/posix/stdio/ |
H A D | remove.c | 16 remove(const char* path) argument 19 int status = _kern_unlink(-1, path); 21 status = _kern_remove_dir(-1, path);
|
/haiku/src/servers/launch/ |
H A D | InitTemporaryDirectoryJob.cpp | 28 BPath path; local 29 status_t status = find_directory(B_SYSTEM_TEMP_DIRECTORY, &path, true); 31 return CreateAndEmpty(path.Path());
|
/haiku/src/add-ons/kernel/file_systems/ntfs/libntfs/ |
H A D | realpath.c | 26 char *ntfs_realpath(const char *path, char *resolved_path) argument 28 strncpy(resolved_path, path, PATH_MAX); 49 char path[sizeof(name) + 16]; local 52 snprintf(path, sizeof(path), "/sys/block/%s/dm/name", ptname); 53 if (!(f = fopen(path, "r"))) 59 snprintf(path, sizeof(path), "/dev/mapper/%s", name); 60 res = strcpy(canonical, path); 67 * Canonicalize a device path 83 ntfs_realpath_canonicalize(const char *path, char *canonical) argument [all...] |
/haiku/src/kits/mail/ |
H A D | numailkit.cpp | 31 BPath path; local 32 if (find_directory(B_USER_DIRECTORY, &path) == B_OK) 33 path.Append("mail"); 35 path.SetTo("/boot/home/mail/"); 37 return path; 44 BPath path = default_mail_directory(); local 45 path.Append("in"); 47 return path; 54 BPath path = default_mail_directory(); local 55 path 62 WriteMessageFile(const BMessage& archive, const BPath& path, const char* name) argument [all...] |
/haiku/src/system/libroot/posix/stdlib/ |
H A D | mktemp.c | 55 mkstemps(char *path, int slen) argument 58 return _gettemp(path, &fd, 0, slen) ? fd : -1; 63 mkstemp(char *path) argument 66 if (_gettemp(path, &fd, 0, 0)) 74 mkdtemp(path) 75 char *path; 77 return (_gettemp(path, (int *)NULL, 1, 0) ? path : (char *)NULL); 82 mktemp(char *path) argument 84 if (_gettemp(path, (in 92 _gettemp(char *path, int *doopen, int domkdir, int slen) argument [all...] |
/haiku/src/apps/icon-o-matic/generic/support/ |
H A D | support_settings.cpp | 25 BPath path; local 26 if ((ret = find_directory(B_USER_SETTINGS_DIRECTORY, &path)) == B_OK) { 29 ret = path.Append(folder); 30 if (ret == B_OK && (ret = path.Append(fileName)) == B_OK) { 31 BFile file(path.Path(), B_READ_ONLY); 48 BPath path; local 49 if ((ret = find_directory(B_USER_SETTINGS_DIRECTORY, &path)) == B_OK) { 51 if (folder && (ret = path.Append(folder)) == B_OK) 52 ret = create_directory(path.Path(), 0777); 53 if (ret == B_OK && (ret = path [all...] |
/haiku/src/system/kernel/util/ |
H A D | hostname.cpp | 20 get_path(char *path, bool create) argument 23 path, B_PATH_NAME_LENGTH); 27 strlcat(path, "/network", B_PATH_NAME_LENGTH); 29 mkdir(path, 0755); 30 strlcat(path, "/hostname", B_PATH_NAME_LENGTH); 38 char path[B_PATH_NAME_LENGTH]; local 39 if (get_path(path, false) != B_OK) { 44 int file = open(path, O_WRONLY | O_CREAT, 0644); 66 char path[B_PATH_NAME_LENGTH]; local 67 if (get_path(path, fals [all...] |
/haiku/src/kits/debugger/jobs/ |
H A D | WriteCoreFileJob.cpp | 18 DebuggerInterface* interface, const entry_ref& path) 20 fKey(&path, JOB_TYPE_WRITE_CORE_FILE), 23 fTargetPath(path) 45 BPath path(&fTargetPath); 46 status_t error = path.InitCheck(); 50 error = fDebuggerInterface->WriteCoreFile(path.Path()); 55 fTeam->NotifyCoreFileChanged(path.Path()); 17 WriteCoreFileJob(Team* team, DebuggerInterface* interface, const entry_ref& path) argument
|
/haiku/headers/private/kernel/boot/ |
H A D | PathBlocklist.h | 19 bool SetTo(const char* path); 29 bool operator==(const char* path) const 30 { return strcmp(Path(), path) == 0; } 50 bool Add(const char* path); 51 void Remove(const char* path); 52 bool Contains(const char* path) const; 62 BlockedPath* _FindPath(const char* path) const;
|
/haiku/src/apps/icon-o-matic/ |
H A D | Util.cpp | 44 new_path(Container<VectorPath>* container, VectorPath** path, argument 48 *path = new (nothrow) VectorPath(*other); 50 *path = new (nothrow) VectorPath(); 52 if (*path) { 54 paths[0] = *path; 60 delete *path; 61 *path = NULL;
|
/haiku/src/kits/debugger/model/ |
H A D | StackFrameValues.cpp | 17 TypeComponentPath* path; member in struct:StackFrameValues::Key 19 Key(ObjectID* variable, TypeComponentPath* path) argument 22 path(path) 28 return variable->HashValue() ^ path->HashValue(); 33 return *variable == *other.variable && *path == *other.path; 42 ValueEntry(ObjectID* variable, TypeComponentPath* path) argument 44 Key(variable, path) 47 path 131 GetValue(ObjectID* variable, const TypeComponentPath* path, BVariant& _value) const argument 153 SetValue(ObjectID* variable, TypeComponentPath* path, const BVariant& value) argument [all...] |
/haiku/src/system/boot/loader/ |
H A D | PathBlocklist.cpp | 33 BlockedPath::SetTo(const char* path) argument 35 size_t length = strlen(path); 36 if (length > 0 && path[length - 1] == '/') 43 memcpy(fPath, path, length); 92 char* path; local 94 path = (char*)realloc(fPath, capacity); 95 if (path == NULL) 98 path = (char*)malloc(capacity); 99 if (path == NULL) 104 fPath = path; 127 Add(const char* path) argument 145 Remove(const char* path) argument [all...] |
/haiku/src/tests/kits/storage/ |
H A D | FindDirectoryTest.cpp | 112 BPath path; 113 error = find_directory(directories[i], &path, false, &volume); 115 printf("%4d: `%s'\n", directories[i], path.Path()); 124 test_find_directory(directory_which dir, BPath &path, dev_t device) argument 140 path.SetTo(homePath.Path(), "Desktop"); 158 path.SetTo(homePath.Path(), "Desktop/Trash"); 164 path.SetTo(recycledPath.Path(), "_BEOS_"); 173 error = path.SetTo("/boot/beos"); 176 error = path.SetTo("/boot/beos/system"); 179 error = path 308 BPath path; local 352 BPath path; local 367 BPath path; local [all...] |
/haiku/headers/build/ |
H A D | BeOSBuildCompatibility.h | 86 int _haiku_build_fchmodat(int fd, const char* path, mode_t mode, int flag); 88 int _haiku_build_fstatat(int fd, const char* path, struct stat* st, 90 int _haiku_build_mkdirat(int fd, const char* path, mode_t mode); 91 int _haiku_build_mkfifoat(int fd, const char* path, mode_t mode); 92 int _haiku_build_utimensat(int fd, const char* path, 95 int _haiku_build_faccessat(int fd, const char* path, int accessMode, 102 const char* path, int flag); 103 int _haiku_build_unlinkat(int fd, const char* path, int flag); 104 ssize_t _haiku_build_readlinkat(int fd, const char* path, char* buffer, 110 int _haiku_build_fchownat(int fd, const char* path, uid_ [all...] |
/haiku/src/kits/storage/ |
H A D | RemoveEngine.cpp | 54 const char* path; local 55 status_t error = entry.GetPath(pathBuffer, path); 59 return _RemoveEntry(path); 64 BRemoveEngine::_RemoveEntry(const char* path) argument 67 if (fController != NULL && !fController->EntryStarted(path)) 72 if (lstat(path, &st) < 0) { 73 return _HandleEntryError(path, errno, "Couldn't access \"%s\": %s\n", 74 path, strerror(errno)); 81 status_t error = directory.SetTo(path); 83 return _HandleEntryError(path, erro 149 _HandleEntryError(const char* path, status_t error, const char* format, ...) argument 180 EntryStarted(const char* path) argument 187 EntryFinished(const char* path, status_t error) argument [all...] |