Lines Matching defs:path
133 char *path,
218 strlcpy( ad->ad_m_name, path, ad->ad_m_namelen);
251 int of_stat(struct path *path)
255 path->st_errno = 0;
256 path->st_valid = 1;
258 if ((ret = lstat(path->u_name, &path->st)) < 0) {
260 cfrombstr(curdir->d_fullpath), path->u_name, strerror(errno));
261 path->st_errno = errno;
269 int of_fstatat(int dirfd, struct path *path)
273 path->st_errno = 0;
274 path->st_valid = 1;
276 if ((ret = fstatat(dirfd, path->u_name, &path->st, AT_SYMLINK_NOFOLLOW)) < 0)
277 path->st_errno = errno;
288 int of_statdir(struct vol *vol, struct path *path)
295 if (*path->m_name) {
297 return of_stat (path);
299 path->st_errno = 0;
300 path->st_valid = 1;
302 len = blength(path->d_dir->d_u_name);
305 strncpy(pathname + 3, cfrombstr(path->d_dir->d_u_name), len + 1);
309 if (!(ret = lstat(pathname, &path->st)))
312 path->st_errno = errno;
318 path->st_errno = 0;
320 if ((ret = lstat(cfrombstr(path->d_dir->d_u_name), &path->st)) < 0)
321 path->st_errno = errno;
328 struct ofork *of_findname(struct path *path)
333 if (!path->st_valid) {
334 of_stat(path);
337 if (path->st_errno)
340 key.dev = path->st.st_dev;
341 key.inode = path->st.st_ino;
355 * Function call of_fstatat with dirfd and path and uses dev and ino
359 * @param path (rw) pointer to struct path
362 struct ofork *of_findnameat(int dirfd, struct path *path)
367 if ( ! path->st_valid) {
368 of_fstatat(dirfd, path);
371 if (path->st_errno)
374 key.dev = path->st.st_dev;
375 key.inode = path->st.st_ino;
453 struct adouble *of_ad(const struct vol *vol, struct path *path, struct adouble *ad)
458 if ((of = of_findname(path))) {