Lines Matching defs:file

29 #include "file-set.h"
58 /* If true, list each file as it is moved. */
69 command `ln --force --no-dereference file symlink-to-dir' deletes
107 target_directory_operand (char const *file)
109 char const *b = last_component (file);
114 (dereference_dest_dir_symlinks ? stat (file, &st) : lstat (file, &st));
118 error (EXIT_FAILURE, err, _("accessing %s"), quote (file));
120 error (EXIT_FAILURE, err, _("target %s is not a directory"), quote (file));
124 /* Make a link DEST to the (usually) existing file SOURCE.
175 source file, then refuse to unlink it. */
187 making a link ln must remove the destination file if it exists.
188 (with --backup, it just renames any existing destination file)
193 "... same file" diagnostic, below. Otherwise, subsequent
194 code would give a misleading "file not found" diagnostic.
208 SOURCE. If the file has only one link then both are surely
213 error (0, 0, _("%s and %s are the same file"),
270 that refer to the same file), rename succeeds and DEST remains.
358 --backup[=CONTROL] make a backup of each existing destination file\n\
369 directory as if it were a normal file\n\
377 -T, --no-target-directory treat LINK_NAME as a normal file\n\
378 -v, --verbose print name of each linked file\n\
416 char **file;
500 file = argv + optind;
504 error (0, 0, _("missing file operand"));
518 _("missing destination file operand after %s"),
519 quote (file[0]));
521 error (0, 0, _("extra operand %s"), quote (file[2]));
529 else if (2 <= n_files && target_directory_operand (file[n_files - 1]))
530 target_directory = file[--n_files];
533 quote (file[n_files - 1]));
574 last_component (file[i]),
577 ok &= do_link (file[i], dest);
582 ok = do_link (file[0], file[1]);