Home | History | Annotate | Download | only in pax

Lines Matching refs:sb

169 		if (nodirs || chk_path(arcn->name,arcn->sb.st_uid,arcn->sb.st_gid) < 0) {
242 res = set_ids(tmp_name, arcn->sb.st_uid, arcn->sb.st_gid);
252 arcn->sb.st_mode &= ~SETBITS(0);
254 set_pmode(tmp_name, arcn->sb.st_mode);
257 apply_umask((arcn->sb.st_mode & FILEBITS(0))));
259 set_ftime(tmp_name, arcn->sb.st_mtime,
260 arcn->sb.st_atime, 0, 0);
278 set_chflags(arcn->name, arcn->sb.st_flags);
297 struct stat sb;
305 *payload = S_ISREG(arcn->sb.st_mode) &&
306 (arcn->sb.st_size > 0) && (arcn->sb.st_size <= arcn->skip);
312 if (lstat(arcn->ln_name, &sb) != -1 && S_ISDIR(sb.st_mode)) {
318 return mk_link(arcn->ln_name, &sb, arcn->name, 0);
341 return mk_link(arcn->org_name, &(arcn->sb), arcn->name, 1);
358 struct stat sb;
364 if (lstat(arcn->name, &sb) < 0)
372 if ((arcn->sb.st_dev == sb.st_dev) && (arcn->sb.st_ino == sb.st_ino)) {
395 struct stat sb;
402 if (lstat(from, &sb) == 0) {
409 if ((to_sb->st_dev==sb.st_dev)&&(to_sb->st_ino == sb.st_ino)) {
417 if (S_ISDIR(sb.st_mode) && strcmp(from, ".") != 0) {
472 struct stat sb;
483 file_mode = arcn->sb.st_mode & FILEBITS(arcn->type == PAX_DIR);
494 while (lstat(nm, &sb) == 0 &&
495 S_ISLNK(sb.st_mode)) {
517 res = mknod(nm, file_mode, arcn->sb.st_rdev);
521 res = mknod(nm, file_mode, arcn->sb.st_rdev);
570 chk_path(nm, arcn->sb.st_uid,
571 arcn->sb.st_gid) < 0) {
589 res = set_ids(nm, arcn->sb.st_uid, arcn->sb.st_gid);
599 arcn->sb.st_mode &= ~SETBITS(arcn->type == PAX_DIR);
601 set_pmode(arcn->name, arcn->sb.st_mode);
614 if (lstat(nm, &sb) < 0) {
625 set_pmode(nm, ((sb.st_mode &
629 arcn->sb.st_mode = sb.st_mode;
636 add_dir(nm, arcn->nlen, &(arcn->sb), 1);
638 add_dir(nm, arcn->nlen, &(arcn->sb), 0);
642 set_ftime(arcn->name, arcn->sb.st_mtime,
643 arcn->sb.st_atime, 0, (arcn->type == PAX_SLK) ? 1 : 0);
647 set_chflags(arcn->name, arcn->sb.st_flags);
667 struct stat sb;
672 if (lstat(name, &sb) < 0)
677 if (S_ISDIR(sb.st_mode)) {
725 struct stat sb;
753 if (lstat(name, &sb) == 0) {
784 (lstat(name, &sb) == 0)) {
785 set_pmode(name, ((sb.st_mode & FILEBITS(0)) |
787 add_dir(name, spt - name, &sb, 1);
797 if (retval == -1 && stat(name, &sb) == 0 && S_ISDIR(sb.st_mode))
824 struct stat sb;
835 if (lstat(fnm, &sb) == 0) {
838 TIMESPEC_TO_TIMEVAL(&tv[0], &sb.st_atimespec);
840 TIMESPEC_TO_TIMEVAL(&tv[1], &sb.st_mtimespec);
843 tv[0].tv_sec = sb.st_atime;
845 tv[1].tv_sec = sb.st_mtime;
1128 set_ftime(arcn->org_name, arcn->sb.st_mtime, arcn->sb.st_atime, 1, 0);
1150 struct stat sb;
1160 if ((size = (u_long)arcn->sb.st_blksize) > (u_long)sizeof(tbuf))
1179 if (cpcnt != arcn->sb.st_size)
1181 else if (fstat(fd, &sb) < 0)
1183 else if (arcn->sb.st_mtime != sb.st_mtime)