Lines Matching defs:dir
57 /* Check to see if file is a dir or symlink to a dir, and is empty */
270 copy_file(const char *dir, const char *fname, const char *to)
277 snprintf(cmd, FILENAME_MAX, "/bin/cp -r %s/%s %s", dir, fname, to);
285 move_file(const char *dir, const char *fname, const char *tdir)
293 snprintf(from, FILENAME_MAX, "%s/%s", dir, fname);
306 * Copy a hierarchy (possibly from dir) to the current directory, or
314 copy_hierarchy(const char *dir, const char *fname, Boolean to)
321 dir = "/";
323 dir, fname);
327 fname, dir);
374 * %D With the parameter "dir"
382 format_cmd(char *buf, int max, const char *fmt, const char *dir, const char *name)
397 strncpy(buf, dir, max);
398 l = strlen(dir);
403 snprintf(scratch, FILENAME_MAX * 2, "%s/%s", dir, name);
414 snprintf(scratch, FILENAME_MAX * 2, "%s/%s", dir, name);