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