Lines Matching refs:toys
25 #include "toys.h"
29 char *dest = toys.optargs[--toys.optc], *new;
34 if (!toys.optc) {
35 toys.optc++;
40 if (((toys.optflags&FLAG_n) ? lstat : stat)(dest, &buf)
43 if (toys.optc>1) error_exit("'%s' not a directory", dest);
47 for (i=0; i<toys.optc; i++) {
49 char *oldnew, *try = toys.optargs[i];
58 if (toys.optflags & FLAG_f) {
67 rc = (toys.optflags & FLAG_s) ? symlink(try, new) : link(try, new);
68 if (toys.optflags & FLAG_f) {
82 (toys.optflags & FLAG_s) ? "symbolic" : "hard", try, new);
84 if (toys.optflags & FLAG_v) fprintf(stderr, "'%s' -> '%s'\n", new, try);