Searched refs:path (Results 276 - 300 of 1289) sorted by relevance

<<11121314151617181920>>

/haiku-fatelf/src/add-ons/kernel/file_systems/netfs/server/
H A DPath.cpp26 Path::SetTo(const char* path, const char* leaf) argument
28 if (!path)
31 // get the base path len
32 int32 len = strlen(path);
42 insertSeparator = (path[len - 1] != '/' && leaf[0] != '/');
51 // copy path
52 memcpy(fBuffer, path, len);
/haiku-fatelf/src/add-ons/mail_daemon/outbound_filters/fortune/
H A DConfigView.cpp58 BString path = archive->FindString("tag_line"); local
60 path = B_TRANSLATE("Fortune cookie says:\n\n");
62 path.Truncate(path.Length() - 2);
64 control->SetText(path.String());
/haiku-fatelf/src/apps/mail/
H A DSettings.cpp155 Settings::_GetSettingsPath(BPath &path) argument
157 status_t status = find_directory(B_USER_SETTINGS_DIRECTORY, &path);
161 path.Append("Mail");
162 return create_directory(path.Path(), 0755);
176 BPath path; local
177 status_t status = _GetSettingsPath(path);
181 path.Append("Mail Settings~");
184 status = file.SetTo(path.Path(),
215 status = entry.SetTo(path.Path());
236 BPath path; local
451 BPath path; local
[all...]
/haiku-fatelf/src/bin/
H A Dcheckfs.cpp70 const char* path = argv[optind]; local
77 status_t status = roster.GetPartitionForPath(path, &device,
80 if (strncmp(path, "/dev", 4)) {
82 status = roster.FindPartitionByMountPoint(path, &device, &partition)
89 fprintf(stderr, "%s: Failed to get disk device for path \"%s\": "
90 "%s\n", kProgramName, path, strerror(status));
/haiku-fatelf/src/tests/add-ons/kernel/file_systems/userlandfs/r5/src/test/netfs/server/
H A DPath.cpp26 Path::SetTo(const char* path, const char* leaf) argument
28 if (!path)
31 // get the base path len
32 int32 len = strlen(path);
42 insertSeparator = (path[len - 1] != '/' && leaf[0] != '/');
51 // copy path
52 memcpy(fBuffer, path, len);
/haiku-fatelf/src/tests/kits/net/
H A Dselect_test2.c21 char path[PATH_MAX]; local
29 getcwd(path, PATH_MAX);
30 sprintf(path, "%s/select_test2.c", path);
31 f = open(path, O_RDWR);
/haiku-fatelf/src/tools/fs_shell/
H A Dfuse.cpp137 fuse_getattr(const char* path, struct stat* stbuf) argument
141 fssh_status_t status = _kern_read_stat(-1, path, false, &f_stbuf,
151 fuse_access(const char* path, int mask) argument
154 return _ERR(_kern_access(path, mask));
159 fuse_readlink(const char* path, char* buffer, size_t size) argument
163 fssh_status_t st = _kern_read_link(-1, path, buffer, &n_size);
171 fuse_readdir(const char* path, void* buf, fuse_fill_dir_t filler, argument
175 int dfp = _kern_open_dir(-1, path);
203 fuse_mknod(const char* path, mode_t mode, dev_t rdev) argument
207 int fd = _kern_open(-1, path,
220 fuse_mkdir(const char* path, mode_t mode) argument
237 fuse_unlink(const char* path) argument
245 fuse_rmdir(const char* path) argument
269 fuse_chmod(const char* path, mode_t mode) argument
280 fuse_chown(const char* path, uid_t uid, gid_t gid) argument
292 fuse_open(const char* path, struct fuse_file_info* fi) argument
308 fuse_read(const char* path, char* buf, size_t size, off_t offset, struct fuse_file_info* fi) argument
326 fuse_write(const char* path, const char* buf, size_t size, off_t offset, struct fuse_file_info* fi) argument
[all...]
/haiku-fatelf/src/add-ons/translators/hpgs/lib/
H A Dhpgspaintpath.c30 * The implementation of the API for paint path handling. *
41 /*! \defgroup path Path contruction functions.
43 This module contains the documentation of the path contruction
50 /*! Returns a new, empty path created on the heap.
82 /*! Destroys a path from the heap.
92 /*! Resets the given path to be empty.
103 Pushes a point with given flags to the path \c _this.
131 /*! Adds a new point to the path. If the path already has some points,
141 // check for current point and do an implicit path clos
348 join_lines(hpgs_paint_path *path, const hpgs_point *edge, const hpgs_point *e1, const hpgs_point *prev_tangent, const hpgs_point *tangent, hpgs_line_join join, double ml) argument
423 cap_line(hpgs_paint_path *path, const hpgs_point *e1, hpgs_line_cap cap) argument
704 extrude_segment(const hpgs_paint_path *_this, hpgs_paint_path *path, int i0, double t0, hpgs_line_cap cap0, int i1, double t1, hpgs_line_cap cap1, double d, int closed, hpgs_line_join join, double ml) argument
878 extrude_dot(hpgs_paint_path *path, const hpgs_point *p, hpgs_line_cap cap, double d) argument
924 decompose_solid(const hpgs_paint_path *_this, hpgs_paint_path *path, const hpgs_gstate *gstate, int (*segment_processor) (const hpgs_paint_path *_this, hpgs_paint_path *path, int i0, double t0, hpgs_line_cap cap0, int i1, double t1, hpgs_line_cap cap1, double d, int closed, hpgs_line_join join, double ml), int (*dot_processor) (hpgs_paint_path *path, const hpgs_point *p, hpgs_line_cap cap, double d) ) argument
983 decompose_dashed(const hpgs_paint_path *_this, hpgs_paint_path *path, const hpgs_gstate *gstate, int (*segment_processor) (const hpgs_paint_path *_this, hpgs_paint_path *path, int i0, double t0, hpgs_line_cap cap0, int i1, double t1, hpgs_line_cap cap1, double d, int closed, hpgs_line_join join, double ml), int (*dot_processor) (hpgs_paint_path *path, const hpgs_point *p, hpgs_line_cap cap, double d) ) argument
1146 hpgs_paint_path *path = hpgs_new_paint_path(); local
1188 append_segment(const hpgs_paint_path *_this, hpgs_paint_path *path, int i0, double t0, hpgs_line_cap cap0, int i1, double t1, hpgs_line_cap cap1, double d, int closed, hpgs_line_join join, double ml) argument
1271 append_dot(hpgs_paint_path *path, const hpgs_point *p, hpgs_line_cap cap, double d) argument
1293 hpgs_paint_path *path = hpgs_new_paint_path(); local
[all...]
H A Dhpgspaint.h95 hpgs_paint_path *path; /*!< The current path, which is under contruction. */ member in struct:hpgs_paint_device_st
97 hpgs_paint_clipper *path_clipper; /*!< The mapping of the current path onto the defined scanlines. */
101 /*!< A stack of mappings of the clip path' of onto the defined scanlines. */
104 int current_clipper; /*!< The position of the current clip path in \c clippers. */
118 hpgs_paint_path *path,
123 hpgs_paint_path *path,
133 /*! @addtogroup path
155 const hpgs_paint_path *path, int i);
158 /*! @} */ /* end of group path */
[all...]
/haiku-fatelf/src/tests/kits/storage/
H A DSymLinkTest.cpp582 BPath path; local
587 CPPUNIT_ASSERT( equals(link.MakeLinkedPath("/boot", &path), B_BAD_ADDRESS,
590 path.Unset();
594 CPPUNIT_ASSERT( link.MakeLinkedPath("/boot", &path)
596 CPPUNIT_ASSERT( path.InitCheck() == B_OK );
597 CPPUNIT_ASSERT( string(existingDir) == path.Path() );
599 path.Unset();
603 CPPUNIT_ASSERT( link.MakeLinkedPath("/boot", &path)
605 CPPUNIT_ASSERT( path.InitCheck() == B_OK );
606 CPPUNIT_ASSERT( string(existingFile) == path
[all...]
/haiku-fatelf/src/servers/media/
H A DAddOnManager.cpp41 ImageLoader(BPath& path) argument
43 fImage = load_add_on(path.Path());
127 BPath path; local
129 if (find_directory(sDirectories[i], &path) != B_OK
130 || path.Append("media/plugins") != B_OK) {
132 "path for directory %u\n", i);
135 if (_FindDecoder(format, path, _decoderRef))
151 // See GetDecoderForFormat() for why we need to scan the list by path.
153 BPath path; local
155 if (find_directory(sDirectories[i], &path) !
306 BPath path; local
581 _FindDecoder(const media_format& format, const BPath& path, xfer_entry_ref* _decoderRef) argument
615 _GetReaders(const BPath& path, xfer_entry_ref* outRefs, int32* outCount, int32 maxCount) argument
[all...]
/haiku-fatelf/src/servers/notification/
H A DNotificationWindow.cpp412 BPath path; local
414 if (find_directory(B_USER_SETTINGS_DIRECTORY, &path) != B_OK)
417 path.Append(kSettingsDirectory);
419 if (create_directory(path.Path(), 0755) != B_OK)
422 path.Append(kFiltersSettings);
424 BFile file(path.Path(), B_READ_ONLY);
443 BEntry entry(path.Path());
460 BPath path; local
462 if (find_directory(B_USER_SETTINGS_DIRECTORY, &path) != B_OK)
465 path
482 BPath path; local
525 BPath path; local
[all...]
/haiku-fatelf/src/apps/bootmanager/
H A DBootManagerController.cpp46 BPath path; local
47 if (find_directory(B_USER_SETTINGS_DIRECTORY, &path, true) == B_OK) {
48 path.Append("bootman/MBR");
49 fSettings.AddString("file", path.Path());
52 if (path.GetParent(&parent) == B_OK) {
95 const char* path; local
96 if (fSettings.FindString("disk", &path) != B_OK)
101 fBootDrive = new BootDrive(path);
207 BString path; local
208 fSettings.FindString("file", &path);
219 BString path; local
387 BString path; local
393 description << displayName << "\\t(" << path << ")\\n"; local
395 description << name << "\\t(" << path << ")\\n"; local
[all...]
/haiku-fatelf/src/kits/interface/
H A DDecorInfo.cpp35 DecorInfo::DecorInfo(const BString& path) argument
37 fPath(path),
42 BEntry entry(path.String(), true);
56 BPath path(&ref);
57 fPath = path.Path();
73 BPath path(&ref);
74 fPath = path.Path();
83 DecorInfo::SetTo(BString path) argument
85 BEntry entry(path.String(), true);
275 BPath path; local
410 BPath path; local
[all...]
/haiku-fatelf/src/build/libbe/storage/
H A DEntry.cpp246 //! Creates a BEntry initialized to the given directory and path combination.
247 /*! If traverse is true and \c dir/path refers to a symlink, the BEntry will
250 \param dir directory in which \a path resides
251 \param path relative path reckoned off of \a dir
256 BEntry::BEntry(const BDirectory *dir, const char *path, bool traverse) argument
262 SetTo(dir, path, traverse);
285 //! Creates a BEntry initialized to the given path.
286 /*! If \a path is relative, it will
287 be reckoned off the current working directory. If \a path refer
296 BEntry(const char *path, bool traverse) argument
383 SetTo(const BDirectory *dir, const char *path, bool traverse) argument
438 SetTo(const char *path, bool traverse) argument
670 Rename(const char *path, bool clobber) argument
713 MoveTo(BDirectory *dir, const char *path, bool clobber) argument
872 set(int dirFD, const char *path, bool traverse) argument
1105 get_ref_for_path(const char *path, entry_ref *ref) argument
[all...]
/haiku-fatelf/src/kits/mail/
H A DMailSettings.cpp61 BPath path; local
62 ret = find_directory(B_USER_SETTINGS_DIRECTORY, &path);
69 path.Append("Mail");
71 status_t result = BPrivate::WriteMessageFile(fData, path,
87 BPath path; local
88 ret = find_directory(B_USER_SETTINGS_DIRECTORY, &path);
95 path.Append("Mail/new_mail_daemon");
98 BFile settings(path.Path(),B_READ_ONLY);
102 path.Path(), strerror(ret));
111 path
321 BPath path; local
365 AccountsPath(BPath& path) argument
691 BPath path; local
710 BPath path; local
893 BPath path; local
[all...]
/haiku-fatelf/src/kits/storage/
H A DEntry.cpp132 BEntry::BEntry(const BDirectory* dir, const char* path, bool traverse) argument
138 SetTo(dir, path, traverse);
152 BEntry::BEntry(const char* path, bool traverse) argument
158 SetTo(path, traverse);
205 BEntry::SetTo(const BDirectory* dir, const char* path, bool traverse) argument
210 if (path && path[0] == '\0') // R5 behaviour
211 path = NULL;
213 // if path is absolute, let the path
250 SetTo(const char* path, bool traverse) argument
384 Rename(const char* path, bool clobber) argument
410 MoveTo(BDirectory* dir, const char* path, bool clobber) argument
517 _SetTo(int dirFD, const char* path, bool traverse) argument
737 get_ref_for_path(const char* path, entry_ref* ref) argument
[all...]
/haiku-fatelf/src/servers/input/
H A DAddOnManager.cpp88 instantiate_add_on(image_id image, const char* path, const char* type) argument
98 functionName.String(), path);
105 "NULL\n", functionName.String(), path);
112 "returned %s\n", path, strerror(status));
210 BString path; local
212 path = "/dev/";
213 path += device;
215 TRACE("AddOnMonitor::StartMonitoringDevice(%s)\n", path.String());
218 status_t status = _AddDevicePath(addOn, path.String(), newPath);
220 status = BPathMonitor::StartWatching(path
238 BString path; local
277 BPath path; local
876 const char* path; local
907 _AddDevicePath(DeviceAddOn* addOn, const char* path, bool& newPath) argument
930 _RemoveDevicePath(DeviceAddOn* addOn, const char* path, bool& lastPath) argument
[all...]
H A DMouseSettings.cpp53 MouseSettings::GetSettingsPath(BPath &path) argument
55 status_t status = find_directory(B_USER_SETTINGS_DIRECTORY, &path);
59 path.Append(mouse_settings_file);
75 BPath path; local
76 if (GetSettingsPath(path) < B_OK)
79 BFile file(path.Path(), B_READ_ONLY);
102 BPath path; local
103 status_t status = GetSettingsPath(path);
107 BFile file(path.Path(), B_READ_WRITE | B_CREATE_FILE);
/haiku-fatelf/src/bin/bash/lib/sh/
H A Dpathphys.c52 _path_readlink (path, buf, bufsiz)
53 char *path;
58 return readlink (path, buf, bufsiz);
75 sh_physpath (path, flags)
76 char *path;
83 linklen = strlen (path);
88 return (savestring (path));
97 workpath = savestring (path);
101 strcpy (workpath, path);
122 * qbase points to the portion of the result path w
[all...]
/haiku-fatelf/src/bin/zip/
H A Dzipsplit.c81 local char *path = NULL; /* space for full name */ variable
82 local char *name; /* where name goes in path[] */
146 destroy(path);
151 destroy(path);
202 "Usage: zipsplit [-tipqs] [-n size] [-r room] [-b path] zipfile",
215 " -b use \"path\" for the output zip files",
490 case 'b': /* Specify path for output files */
494 k = 1; /* Next non-option is path */
622 /* Set up path for output files */
623 /* Point "name" past the path, wher
[all...]
/haiku-fatelf/src/add-ons/kernel/drivers/display/
H A Ddisplay_controls.cpp19 // name of pnp generator of path ids
54 const char *path; local
63 if (sDeviceManager->get_attr_string(node, ACPI_DEVICE_PATH_ITEM, &path, false)
64 != B_OK || sAcpi->get_handle(NULL, path, &device->acpi_device) != B_OK) {
75 dprintf("%s: failed to set _DOS %s\n", __func__, path);
92 displaycontrols_open(void *_cookie, const char *path, int flags, void** cookie) argument
147 const char *path; local
157 if (sDeviceManager->get_attr_string(parent, ACPI_DEVICE_PATH_ITEM, &path, false) != B_OK)
167 if (sAcpi->get_handle(NULL, path, &handle) != B_OK)
177 dprintf("%s: found at bus: %s path
[all...]
/haiku-fatelf/src/system/boot/loader/
H A Dloader.cpp123 load_modules_from(Directory *volume, const char *path) argument
127 int fd = open_from(volume, path, O_RDONLY);
168 // get base path
218 char path[B_FILE_NAME_LENGTH]; local
219 snprintf(path, sizeof(path), "%s/boot", sAddonPaths[i]);
221 if (load_modules_from(volume, path) != B_OK)
232 char path[B_FILE_NAME_LENGTH]; local
233 snprintf(path, sizeof(path), "
256 char path[B_FILE_NAME_LENGTH]; local
[all...]
/haiku-fatelf/src/apps/debugger/user_interface/gui/team_window/
H A DImageFunctionsView.cpp184 BString path; local
185 file->GetPath(path);
186 value.SetTo(path);
220 bool GetObjectForPath(const TreeTablePath& path, argument
223 int32 componentCount = path.CountComponents();
227 int32 sourceIndex = path.ComponentAt(0);
236 int32 index = path.ComponentAt(1);
368 TreeTablePath path; local
369 path.AddComponent(0);
370 fFunctionsTable->SetNodeExpanded(path, tru
386 TreeTablePath path; local
430 TreeTablePath path; local
[all...]
/haiku-fatelf/src/tests/add-ons/kernel/network/
H A Duserland_modules.cpp48 char * path; member in struct:module_addon
75 static module_addon * load_module_addon(const char * path);
233 - each searchable add-ons path root
234 - each (sub-)directory under the current add-ons path root
267 BPath path; local
273 // find add-ons root directory in this search path
275 // resolve "%A/..." path
280 entry.GetPath(&path);
281 path.GetParent(&path);
423 load_module_addon(const char * path) argument
619 BPath path; local
[all...]

Completed in 275 milliseconds

<<11121314151617181920>>