Lines Matching refs:path
132 static int listfile_size(const char *path, const char *filename, int flags)
136 if (lstat(path, &s) < 0) {
137 fprintf(stderr, "lstat '%s' failed: %s\n", path, strerror(errno));
152 if (!stat(path, &link_dest)) {
155 fprintf(stderr, "stat '%s' failed: %s\n", path, strerror(errno));
166 static int listfile_long(const char *path, int flags)
175 /* name is anything after the final '/', or the whole path if none*/
176 name = strrchr(path, '/');
178 name = path;
183 if(lstat(path, &s) < 0) {
218 len = readlink(path, linkto, 256);
242 static int listfile_maclabel(const char *path, int flags)
251 /* name is anything after the final '/', or the whole path if none*/
252 name = strrchr(path, '/');
254 name = path;
259 if(lstat(path, &s) < 0) {
264 lgetfilecon(path, &maclabel);
281 len = readlink(path, linkto, sizeof(linkto));
401 STRLIST_FOREACH(&subdirs, path, {
402 printf("\n%s:\n", path);
403 listdir(path, flags);
478 STRLIST_FOREACH(&files, path, {
479 if (listpath(path, flags) != 0) {