Lines Matching defs:path
183 static int rm(const char *path,
193 const char *dir = strrchr(path, '/');
195 dir = path;
206 && (strstr(path, ".AppleDouble") != NULL)) {
208 if (unlink(path) != 0)
215 if ((cnid = cnid_for_path(&volume, path, &did)) == CNID_INVALID) {
216 SLOG("Error resolving CNID for %s", path);
220 SLOG("Error removing CNID %u for %s", ntohl(cnid), path);
225 if (unlink(path) != 0) {
234 SLOG("%s is a directory", path);
240 && (strstr(path, ".AppleDouble") != NULL)) {
242 if (rmdir(path) != 0) {
243 SLOG("Error removing dir \"%s\": %s", path, strerror(errno));
251 if ((did = cnid_for_path(&volume, path, &pdid)) == CNID_INVALID) {
252 SLOG("Error resolving CNID for %s", path);
256 SLOG("Error removing CNID %u for %s", ntohl(did), path);
261 if (rmdir(path) != 0) {
262 SLOG("Error removing dir \"%s\": %s", path, strerror(errno));
271 SLOG("%s is a device file.", path);
276 SLOG("%s is a socket.", path);
281 SLOG("%s is a FIFO.", path);
288 && (strstr(path, ".AppleDouble") != NULL)) {
290 if (unlink(path) != 0)
297 if ((cnid = cnid_for_path(&volume, path, &did)) == CNID_INVALID) {
298 SLOG("Error resolving CNID for %s", path);
302 SLOG("Error removing CNID %u for %s", ntohl(cnid), path);
307 volume.volume.vfs->vfs_deletefile(&volume.volume, -1, path);
310 if (unlink(path) != 0) {
319 (void)printf("%s\n", path);