Searched refs:path (Results 26 - 50 of 1289) sorted by relevance

1234567891011>>

/haiku-fatelf/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);
H A Dfs_darwin.cpp20 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
238 fstatat(int fd, const char *path, struct stat *st, int flag) argument
268 mkdirat(int fd, const char *path, mode_t mode) argument
290 mkfifoat(int fd, const char *path, mode_t mode) argument
312 mknodat(int fd, const char *path, mode_t mode, dev_t dev) argument
380 readlinkat(int fd, const char *path, char *buffer, size_t bufferSize) argument
425 unlinkat(int fd, const char *path, int flag) argument
511 futimesat(int fd, const char *path, const struct timeval times[2]) argument
[all...]
/haiku-fatelf/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-fatelf/src/system/libroot/posix/unistd/
H A Dchroot.cpp15 chroot(const char *path) argument
17 status_t error = _kern_change_root(path);
H A Daccess.c16 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 Dhostname.cpp19 get_path(char *path, bool create) argument
22 path, B_PATH_NAME_LENGTH);
26 strlcat(path, "/network", B_PATH_NAME_LENGTH);
28 mkdir(path, 0755);
29 strlcat(path, "/hostname", B_PATH_NAME_LENGTH);
37 char path[B_PATH_NAME_LENGTH]; local
38 if (get_path(path, false) != B_OK) {
43 int file = open(path, O_WRONLY | O_CREAT, 0644);
65 char path[B_PATH_NAME_LENGTH]; local
66 if (get_path(path, fals
[all...]
/haiku-fatelf/src/tools/fs_shell/
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);
H A Dstat.cpp26 extern "C" status_t _kern_read_stat(int fd, const char *path,
32 FSShell::unrestricted_stat(const char *path, struct fssh_stat *fsshStat) argument
39 if (::stat(path, &st) < 0)
42 status_t error = _kern_read_stat(-1, path, true, &st, sizeof(st));
80 FSShell::unrestricted_lstat(const char *path, struct fssh_stat *fsshStat) argument
87 if (lstat(path, &st) < 0)
90 status_t error = _kern_read_stat(-1, path, false, &st, sizeof(st));
105 fssh_mkdir(const char *path, fssh_mode_t mode) argument
107 return mkdir(path, to_platform_mode(mode));
112 fssh_stat(const char *path, struc argument
136 fssh_lstat(const char *path, struct fssh_stat *fsshStat) argument
[all...]
/haiku-fatelf/src/add-ons/kernel/file_systems/userlandfs/server/fuse/
H A Dfuse_fs.cpp16 fuse_fs_getattr(struct fuse_fs* fs, const char* path, struct stat* buf) argument
20 return fs->ops.getattr(path, buf);
25 fuse_fs_fgetattr(struct fuse_fs* fs, const char* path, struct stat* buf, argument
30 return fs->ops.fgetattr(path, buf, fi);
44 fuse_fs_unlink(struct fuse_fs* fs, const char* path) argument
48 return fs->ops.unlink(path);
53 fuse_fs_rmdir(struct fuse_fs* fs, const char* path) argument
57 return fs->ops.rmdir(path);
62 fuse_fs_symlink(struct fuse_fs* fs, const char* linkname, const char* path) argument
66 return fs->ops.symlink(linkname, path);
80 fuse_fs_release(struct fuse_fs* fs, const char* path, struct fuse_file_info* fi) argument
90 fuse_fs_open(struct fuse_fs* fs, const char* path, struct fuse_file_info* fi) argument
99 fuse_fs_read(struct fuse_fs* fs, const char* path, char *buf, size_t size, off_t off, struct fuse_file_info* fi) argument
109 fuse_fs_write(struct fuse_fs* fs, const char* path, const char* buf, size_t size, off_t off, struct fuse_file_info* fi) argument
119 fuse_fs_fsync(struct fuse_fs* fs, const char* path, int datasync, struct fuse_file_info* fi) argument
129 fuse_fs_flush(struct fuse_fs* fs, const char* path, struct fuse_file_info* fi) argument
138 fuse_fs_statfs(struct fuse_fs* fs, const char* path, struct statvfs* buf) argument
147 fuse_fs_opendir(struct fuse_fs* fs, const char* path, struct fuse_file_info* fi) argument
156 fuse_fs_readdir(struct fuse_fs* fs, const char* path, void* buf, fuse_fill_dir_t filler, off_t off, struct fuse_file_info* fi) argument
166 fuse_fs_fsyncdir(struct fuse_fs* fs, const char* path, int datasync, struct fuse_file_info* fi) argument
176 fuse_fs_releasedir(struct fuse_fs* fs, const char* path, struct fuse_file_info* fi) argument
186 fuse_fs_create(struct fuse_fs* fs, const char* path, mode_t mode, struct fuse_file_info* fi) argument
196 fuse_fs_lock(struct fuse_fs* fs, const char* path, struct fuse_file_info* fi, int cmd, struct flock* lock) argument
206 fuse_fs_chmod(struct fuse_fs* fs, const char* path, mode_t mode) argument
215 fuse_fs_chown(struct fuse_fs* fs, const char* path, uid_t uid, gid_t gid) argument
224 fuse_fs_truncate(struct fuse_fs* fs, const char* path, off_t size) argument
233 fuse_fs_ftruncate(struct fuse_fs* fs, const char* path, off_t size, struct fuse_file_info* fi) argument
243 fuse_fs_utimens(struct fuse_fs* fs, const char* path, const struct timespec tv[2]) argument
262 fuse_fs_access(struct fuse_fs* fs, const char* path, int mask) argument
271 fuse_fs_readlink(struct fuse_fs* fs, const char* path, char* buf, size_t len) argument
280 fuse_fs_mknod(struct fuse_fs* fs, const char* path, mode_t mode, dev_t rdev) argument
289 fuse_fs_mkdir(struct fuse_fs* fs, const char* path, mode_t mode) argument
298 fuse_fs_setxattr(struct fuse_fs* fs, const char* path, const char* name, const char* value, size_t size, int flags) argument
308 fuse_fs_getxattr(struct fuse_fs* fs, const char* path, const char* name, char* value, size_t size) argument
318 fuse_fs_listxattr(struct fuse_fs* fs, const char* path, char* list, size_t size) argument
327 fuse_fs_removexattr(struct fuse_fs* fs, const char* path, const char* name) argument
336 fuse_fs_bmap(struct fuse_fs* fs, const char* path, size_t blocksize, uint64_t* idx) argument
[all...]
/haiku-fatelf/src/system/libroot/posix/sys/
H A Dmkdir.c17 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-fatelf/src/tests/kits/storage/
H A DFindDirectoryTest.cpp122 BPath path;
123 error = find_directory(directories[i], &path, false, &volume);
125 printf("%4d: `%s'\n", directories[i], path.Path());
134 test_find_directory(directory_which dir, BPath &path, dev_t device) argument
150 path.SetTo(homePath.Path(), "Desktop");
168 path.SetTo(homePath.Path(), "Desktop/Trash");
174 path.SetTo(recycledPath.Path(), "_BEOS_");
183 error = path.SetTo("/boot/beos");
186 error = path.SetTo("/boot/beos/system");
189 error = path
346 BPath path; local
390 BPath path; local
405 BPath path; local
[all...]
/haiku-fatelf/src/add-ons/kernel/file_systems/ntfs/libntfs/
H A Drealpath.c26 char *ntfs_realpath(const char *path, char *resolved_path) argument
28 strncpy(resolved_path, path, PATH_MAX);
48 char path[MAPPERNAMELTH + 24]; 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-fatelf/src/bin/bash/lib/sh/
H A Dmakepath.c70 sh_makepath (path, dir, flags)
71 const char *path, *dir;
77 if (path == 0 || *path == '\0')
96 else if ((flags & MP_IGNDOT) && path[0] == '.' && (path[1] == '\0' ||
97 path[1] == '/' && path[2] == '\0'))
104 xpath = ((flags & MP_DOTILDE) && *path == '~') ? bash_tilde_expand (path,
[all...]
/haiku-fatelf/src/bin/findutils/locate/
H A Dbigram.c67 char *path; /* The current input entry. */ local
77 path = xmalloc (pathsize);
83 while ((line_len = getline (&path, &pathsize, stdin)) > 0)
88 path[line_len - 1] = '\0'; /* Remove the newline. */
91 count = prefix_length (oldpath, path);
92 for (j = count; path[j] != '\0' && path[j + 1] != '\0'; j += 2)
94 putchar (path[j]);
95 putchar (path[j + 1]);
100 /* Swap path an
[all...]
/haiku-fatelf/src/servers/input/
H A DPathList.h20 bool HasPath(const char* path,
22 status_t AddPath(const char* path);
23 status_t RemovePath(const char* path);
/haiku-fatelf/src/system/kernel/device_manager/
H A Dlegacy_drivers.h16 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-fatelf/src/system/libroot/posix/stdio/
H A Dremove.c16 remove(const char* path) argument
19 int status = _kern_unlink(-1, path);
21 status = _kern_remove_dir(-1, path);
/haiku-fatelf/src/kits/mail/
H A Dnumailkit.cpp31 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-fatelf/src/add-ons/translators/hpgs/lib/
H A Dhpgsbezier.c41 at point \c i of \c path at curve parameter \c t.
43 void hpgs_bezier_path_delta(const hpgs_paint_path *path, int i, argument
51 p->x = 3.0* ((path->points[i+1].p.x-path->points[i].p.x)*tm*tm+
52 2.0 * (path->points[i+2].p.x-path->points[i+1].p.x) * tm*tp+
53 (path->points[i+3].p.x-path->points[i+2].p.x) * tp*tp);
55 p->y = 3.0 * ((path->points[i+1].p.y-path
63 hpgs_bezier_path_delta_x(const hpgs_paint_path *path, int i, double t) argument
78 hpgs_bezier_path_delta_y(const hpgs_paint_path *path, int i, double t) argument
103 hpgs_bezier_path_tangent(const hpgs_paint_path *path, int i, double t, int orientation, double ytol, hpgs_point *p) argument
199 hpgs_bezier_path_singularities(const hpgs_paint_path *path, int i, double t0, double t1, int *nx, double *tx) argument
268 hpgs_bezier_path_to_quadratic(const hpgs_paint_path *path, int i, double t0, double t1, int *nx, hpgs_point *points) argument
400 bezier_dl(const hpgs_paint_path *path, int i, double t) argument
423 hpgs_bezier_length_init(hpgs_bezier_length *b, const hpgs_paint_path *path, int i) argument
474 hpgs_bezier_path_xmin(const hpgs_paint_path *path, int i) argument
489 hpgs_bezier_path_xmax(const hpgs_paint_path *path, int i) argument
504 hpgs_bezier_path_ymin(const hpgs_paint_path *path, int i) argument
519 hpgs_bezier_path_ymax(const hpgs_paint_path *path, int i) argument
533 hpgs_bezier_path_x(const hpgs_paint_path *path, int i, double t) argument
547 hpgs_bezier_path_y(const hpgs_paint_path *path, int i, double t) argument
563 hpgs_bezier_path_point(const hpgs_paint_path *path, int i, double t, hpgs_point *p) argument
[all...]
/haiku-fatelf/src/tests/add-ons/kernel/file_systems/beserved/server-Windows/
H A Dmyservice.cpp32 char path[_MAX_PATH], *pStr; local
34 // Get the executable file path
35 GetModuleFileName(NULL, path, sizeof(path));
36 pStr = strrchr(path, '\\');
40 SetCurrentDirectory(path);
/haiku-fatelf/src/apps/icon-o-matic/generic/support/
H A Dsupport_settings.cpp25 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-fatelf/src/apps/icon-o-matic/
H A DUtil.cpp45 new_path(PathContainer* container, VectorPath** path, argument
49 *path = new (nothrow) VectorPath(*other);
51 *path = new (nothrow) VectorPath();
53 if (*path) {
55 paths[0] = *path;
61 delete *path;
62 *path = NULL;
/haiku-fatelf/src/apps/debugger/model/
H A DStackFrameValues.cpp17 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-fatelf/headers/build/
H A DBeOSBuildCompatibility.h100 int _haiku_build_fchmodat(int fd, const char* path, mode_t mode, int flag);
102 int _haiku_build_fstatat(int fd, const char* path, struct stat* st,
104 int _haiku_build_mkdirat(int fd, const char* path, mode_t mode);
105 int _haiku_build_mkfifoat(int fd, const char* path, mode_t mode);
106 int _haiku_build_utimensat(int fd, const char* path,
109 int _haiku_build_faccessat(int fd, const char* path, int accessMode,
116 const char* path, int flag);
117 int _haiku_build_unlinkat(int fd, const char* path, int flag);
118 ssize_t _haiku_build_readlinkat(int fd, const char* path, char* buffer,
124 int _haiku_build_fchownat(int fd, const char* path, uid_
[all...]

Completed in 165 milliseconds

1234567891011>>