Lines Matching refs:toys
130 unsigned flags = toys.optflags; in cp_node()
172 fprintf(stderr, "%s: overwrite '%s'", toys.which->name, in cp_node()
181 printf("%s '%s'\n", toys.which->name, s); in cp_node()
212 | (DIRTREE_SYMFOLLOW*!!(toys.optflags&FLAG_L)); in cp_node()
345 if (CFG_MV && toys.which->name[0] == 'm') in cp_node()
368 char *destname = toys.optargs[--toys.optc]; in cp_main()
371 if ((toys.optc>1 || (toys.optflags&FLAG_D)) && !destdir) in cp_main()
374 if (toys.optflags & (FLAG_a|FLAG_p)) in cp_main()
378 if (CFG_CP_PRESERVE && (toys.optflags & FLAG_preserve)) { in cp_main()
404 for (i=0; i<toys.optc; i++) { in cp_main()
405 char *src = toys.optargs[i]; in cp_main()
409 char *s = (toys.optflags&FLAG_D) ? getdirname(src) : getbasename(src); in cp_main()
425 if (CFG_MV && toys.which->name[0] == 'm') { in cp_main()
426 int force = toys.optflags & FLAG_f, no_clobber = toys.optflags & FLAG_n; in cp_main()
435 if (exists && ((toys.optflags & FLAG_i) || !(st.st_mode & 0222))) { in cp_main()
436 fprintf(stderr, "%s: overwrite '%s'", toys.which->name, TT.destname); in cp_main()
449 DIRTREE_SYMFOLLOW*!!(toys.optflags&(FLAG_H|FLAG_L)), TT.callback)) in cp_main()
458 toys.optflags |= FLAG_d|FLAG_p|FLAG_R; in mv_main()
484 if (toys.optflags & FLAG_s) in install_node()
485 if (xrun((char *[]){"strip", "-p", TT.destname, 0})) toys.exitval = 1; in install_node()
493 int flags = toys.optflags; in install_main()
499 for (ss = toys.optargs; *ss; ss++) { in install_main()
509 if (toys.optflags & FLAG_D) { in install_main()
510 TT.destname = toys.optargs[toys.optc-1]; in install_main()
513 if (toys.optc == 1) return; in install_main()
515 if (toys.optc < 2) error_exit("needs 2 args"); in install_main()
518 toys.optflags = cp_flag_F(); in install_main()
519 if (flags & FLAG_v) toys.optflags |= cp_flag_v(); in install_main()
520 if (flags & (FLAG_p|FLAG_o|FLAG_g)) toys.optflags |= cp_flag_p(); in install_main()