Lines Matching +defs:major +defs:mode
20 USE_TAR(NEWTOY(tar, "&(restrict)(full-time)(no-recursion)(numeric-owner)(no-same-permissions)(overwrite)(exclude)*(mode):(mtime):(group):(owner):(to-command):o(no-same-owner)p(same-permissions)k(keep-old)c(create)|h(dereference)x(extract)|t(list)|v(verbose)J(xz)j(bzip2)z(gzip)S(sparse)O(to-stdout)m(touch)X(exclude-from)*T(files-from)*C(directory):f(file):a[!txc][!jzJa]", TOYFLAG_USR|TOYFLAG_BIN))
38 --mode MODE Adjust modes --mtime TIME Override timestamps
52 char *to_command, *owner, *group, *mtime, *mode;
75 mode_t mode;
82 char name[100], mode[8], uid[8], gid[8],size[12], mtime[12], chksum[8],
83 type, link[100], magic[8], uname[32], gname[32], major[8], minor[8],
131 ITOO(tmp.mode, 0644);
223 if (TT.mode) st->st_mode = string_to_mode(TT.mode, st->st_mode);
228 ITOO(hdr.mode, st->st_mode &07777);
281 ITOO(hdr.major, dev_major(st->st_rdev));
468 int ala = TT.hdr.mode;
646 TT.hdr.mode = OTOI(tar.mode)&0xfff;
647 if (tar.type == 'S' || !tar.type) TT.hdr.mode |= 0x8000;
648 else TT.hdr.mode |= (char []){8,8,10,2,6,4,1,8}[tar.type-'0']<<12;
652 maj = OTOI(tar.major);
681 if (S_ISREG(TT.hdr.mode) && (s = strend(TT.hdr.name, "/"))) {
683 TT.hdr.mode = (TT.hdr.mode & ~S_IFMT) | S_IFDIR;
688 || (tar.type && !S_ISREG(TT.hdr.mode)))
715 mode_to_string(TT.hdr.mode, perm);
735 if (S_ISREG(TT.hdr.mode)) {
739 xsetenv(xmprintf("TAR_MODE=%o", TT.hdr.mode), 0);