Lines Matching defs:fullPath

20 static int get_path(int fd, const char* path, char fullPath[]);
25 get_path(int fd, const char* path, char fullPath[])
39 if (fcntl(fd, F_GETPATH, fullPath) < 0) {
44 if (strlcat(fullPath, "/", MAXPATHLEN) > MAXPATHLEN
45 || strlcat(fullPath, path, MAXPATHLEN) > MAXPATHLEN) {
130 char fullPath[MAXPATHLEN];
131 if (get_path(fd, path, fullPath) < 0)
134 return (flag & AT_EACCESS) != 0 ? eaccess(fullPath, accessMode)
135 : access(fullPath, accessMode);
166 char fullPath[MAXPATHLEN];
167 if (get_path(fd, path, fullPath) < 0)
173 int fullfd = open(fullPath, O_RDONLY | O_SYMLINK);
177 status = chmod(fullPath, mode);
204 char fullPath[MAXPATHLEN];
205 if (get_path(fd, path, fullPath) < 0)
208 return (flag & AT_SYMLINK_NOFOLLOW) != 0 ? lchown(fullPath, owner, group)
209 : chown(fullPath, owner, group);
262 char fullPath[MAXPATHLEN];
263 if (get_path(fd, path, fullPath) < 0)
266 return (flag & AT_SYMLINK_NOFOLLOW) != 0 ? lstat(fullPath, st)
267 : stat(fullPath, st);
285 char fullPath[MAXPATHLEN];
286 if (get_path(fd, path, fullPath) < 0)
289 return mkdir(fullPath, mode);
307 char fullPath[MAXPATHLEN];
308 if (get_path(fd, path, fullPath) < 0)
311 return mkfifo(fullPath, mode);
329 char fullPath[MAXPATHLEN];
330 if (get_path(fd, path, fullPath) < 0)
333 return mknod(fullPath, mode, dev);
397 char fullPath[MAXPATHLEN];
398 if (get_path(fd, path, fullPath) < 0)
401 return readlink(fullPath, buffer, bufferSize);
448 char fullPath[MAXPATHLEN];
449 if (get_path(fd, path, fullPath) < 0)
452 return (flag & AT_REMOVEDIR) != 0 ? rmdir(fullPath)
453 : unlink(fullPath);
528 char fullPath[MAXPATHLEN];
529 if (get_path(fd, path, fullPath) < 0)
532 return utimes(fullPath, times);