Searched refs:path (Results 1 - 25 of 1227) sorted by relevance

1234567891011>>

/haiku/src/apps/drivesetup/
H A DEncryptionUtils.h12 const char* EncryptionType(const char* path);
/haiku/src/tools/fs_shell/
H A Dpath_util.cpp18 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 Dstat_priv.h13 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 DPathTest.cpp61 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 Dlutimes.c15 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/sys/
H A Dmkfifo.c16 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/tests/add-ons/kernel/kernelland_emu/
H A Ddevice_manager.cpp16 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 %Ld)\n", path, info->device, info->size);
/haiku/src/servers/launch/
H A DUtility.h14 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 DUtility.cpp24 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/apps/debugger/user_interface/cli/commands/
H A DCliDebugReportCommand.cpp31 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 DCliWriteCoreFileCommand.cpp31 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 DKPathTest.cpp39 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);
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 DArrayIndexPath.cpp35 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/libs/icon/shape/
H A DPathContainer.cpp51 PathContainer::AddPath(VectorPath* path) argument
53 return AddPath(path, CountPaths());
58 PathContainer::AddPath(VectorPath* path, int32 index) argument
60 if (!path)
63 // prevent adding the same path twice
64 if (HasPath(path))
67 if (fPaths.AddItem((void*)path, index)) {
69 _NotifyPathAdded(path, index);
80 PathContainer::RemovePath(VectorPath* path) argument
82 if (fPaths.RemoveItem((void*)path)) {
96 VectorPath* path = (VectorPath*)fPaths.RemoveItem(index); local
178 VectorPath* path = PathAtFast(i); local
196 _NotifyPathAdded(VectorPath* path, int32 index) const argument
[all...]
/haiku/src/servers/input/
H A DPathList.cpp22 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 Ddevfs.h19 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 DPathMonitorTest.cpp25 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 Dxattr.h25 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 Drealpath.h15 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 Dfs_attr_bsdxattr.h21 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 Dfs_attr_xattr.h21 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 DTimeSettings.cpp36 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 Dchroot.cpp15 chroot(const char *path) argument
17 status_t error = _kern_change_root(path);
/haiku/src/build/libbe/storage/
H A DMime.cpp14 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
/haiku/src/preferences/screen/
H A DScreenSettings.cpp27 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);

Completed in 124 milliseconds

1234567891011>>