Lines Matching refs:toys
147 unsigned flags = toys.optflags; in cp_node()
189 fprintf(stderr, "%s: overwrite '%s'", toys.which->name, in cp_node()
198 printf("%s '%s'\n", toys.which->name, s); in cp_node()
229 | (DIRTREE_SYMFOLLOW*!!(toys.optflags&FLAG_L)); in cp_node()
360 if (CFG_MV && toys.which->name[0] == 'm') in cp_node()
371 char *destname = toys.optargs[--toys.optc]; in cp_main()
374 if (toys.optc>1 && !destdir) error_exit("'%s' not directory", destname); in cp_main()
376 if (toys.optflags & (FLAG_a|FLAG_p)) { in cp_main()
381 if (CFG_CP_PRESERVE && (toys.optflags & FLAG_preserve)) { in cp_main()
406 for (i=0; i<toys.optc; i++) { in cp_main()
408 char *src = toys.optargs[i]; in cp_main()
415 if (CFG_MV && toys.which->name[0] == 'm') { in cp_main()
416 if (!(toys.optflags & FLAG_f)) { in cp_main()
422 && ((toys.optflags & FLAG_i) || !(st.st_mode & 0222))) in cp_main()
424 fprintf(stderr, "%s: overwrite '%s'", toys.which->name, TT.destname); in cp_main()
436 !(new = dirtree_start(src, toys.optflags&(FLAG_H|FLAG_L)))) in cp_main()
446 toys.optflags |= FLAG_d|FLAG_p|FLAG_R; in mv_main()
473 if (toys.optflags & FLAG_s) in install_node()
474 if (xrun((char *[]){"strip", "-p", TT.destname, 0})) toys.exitval = 1; in install_node()
482 int flags = toys.optflags; in install_main()
485 for (ss = toys.optargs; *ss; ss++) { in install_main()
493 if (toys.optflags & FLAG_D) { in install_main()
494 TT.destname = toys.optargs[toys.optc-1]; in install_main()
497 if (toys.optc == 1) return; in install_main()
499 if (toys.optc < 2) error_exit("needs 2 args"); in install_main()
502 toys.optflags = cp_flag_F(); in install_main()
503 if (flags & FLAG_v) toys.optflags |= cp_flag_v(); in install_main()
504 if (flags & (FLAG_p|FLAG_o|FLAG_g)) toys.optflags |= cp_flag_p(); in install_main()