Lines Matching refs:toys
37 #include "toys.h"
251 if (toys.optflags & FLAG_v) printf("%s\n",hname);
274 return ((DIRTREE_RECURSE | ((toys.optflags & FLAG_h)?DIRTREE_SYMFOLLOW:0)));
281 if (toys.optflags & FLAG_no_recursion) return 0;
282 return ((DIRTREE_RECURSE | ((toys.optflags & FLAG_h)?DIRTREE_SYMFOLLOW:0)));
379 if (!(toys.optflags & FLAG_k) && !S_ISDIR(file_hdr->mode)
396 if (toys.optflags & FLAG_overwrite) flags = O_WRONLY|O_CREAT|O_TRUNC;
426 if (!(toys.optflags & FLAG_o)) {
431 if (!(toys.optflags & FLAG_numeric_owner)) {
441 if (toys.optflags & FLAG_p) // || !(toys.optflags & FLAG_no_same_permissions))
445 if (!(toys.optflags & FLAG_m)) {
721 if (toys.optflags & FLAG_t) {
722 if (toys.optflags & FLAG_v) {
737 if (toys.optflags & FLAG_v) printf("%s\n",file_hdr->name);
752 char **args = toys.optargs;
754 if (!geteuid()) toys.optflags |= FLAG_p;
760 if (toys.optflags & FLAG_X) add_from_file(&TT.exc, TT.exc_file);
761 if (toys.optflags & FLAG_T) add_from_file(&TT.inc, TT.inc_file);
763 if (toys.optflags & FLAG_c) {
767 if ((toys.optflags & FLAG_f) && strcmp(TT.fname, "-"))
769 if (toys.optflags & FLAG_C) xchdir(TT.dir);
774 if ((toys.optflags & FLAG_x) || (toys.optflags & FLAG_t)) {
775 if (toys.optflags & FLAG_O) tar_hdl->extract_handler = extract_to_stdout;
776 if (toys.optflags & FLAG_to_command) {
780 if (toys.optflags & FLAG_z) extract_stream(tar_hdl);
785 } else if (toys.optflags & FLAG_c) {
787 if (toys.optflags & FLAG_z) compress_stream(tar_hdl);
791 dirtree_handle_callback(dirtree_start(tmp->arg, toys.optflags & FLAG_h),