Lines Matching refs:stb

316 	struct stat stb;  in sendf()  local
330 if ((opts & FOLLOW ? stat(target, &stb) : lstat(target, &stb)) < 0) { in sendf()
339 if ((u = update(rname, opts, &stb)) == 0) { in sendf()
340 if ((stb.st_mode & S_IFMT) == S_IFREG && stb.st_nlink > 1) in sendf()
341 (void) savelink(&stb, opts); in sendf()
345 if (pw == NULL || pw->pw_uid != stb.st_uid) in sendf()
346 if ((pw = getpwuid(stb.st_uid)) == NULL) { in sendf()
348 target, stb.st_uid); in sendf()
350 sprintf(user, ":%d", stb.st_uid); in sendf()
352 if (gr == NULL || gr->gr_gid != stb.st_gid) in sendf()
353 if ((gr = getgrgid(stb.st_gid)) == NULL) { in sendf()
355 target, stb.st_gid); in sendf()
357 sprintf(group, ":%d", stb.st_gid); in sendf()
368 switch (stb.st_mode & S_IFMT) { in sendf()
375 opts, stb.st_mode & 07777, protoname(), protogroup(), in sendf()
422 if (stb.st_nlink > 1) { in sendf()
425 if ((lp = savelink(&stb, opts)) != NULL) { in sendf()
447 opts, stb.st_mode & 07777, stb.st_size, stb.st_mtime, in sendf()
454 sizerr = (readlink(target, buf, RDIST_BUFSIZ) != stb.st_size); in sendf()
455 (void) deswrite(rem, buf, stb.st_size, 0); in sendf()
457 printf("readlink = %.*s\n", (int)stb.st_size, buf); in sendf()
476 if (stb.st_nlink > 1) { in sendf()
479 if ((lp = savelink(&stb, opts)) != NULL) { in sendf()
505 stb.st_mode & 07777, stb.st_size, stb.st_mtime, in sendf()
518 for (i = 0; i < stb.st_size; i += RDIST_BUFSIZ) { in sendf()
520 if (i + amt > stb.st_size) in sendf()
521 amt = stb.st_size - i; in sendf()
728 struct stat stb; in query() local
740 if (lstat(target, &stb) < 0) { in query()
749 switch (stb.st_mode & S_IFMT) { in query()
751 (void) sprintf(buf, "Y%ld %ld\n", stb.st_size, stb.st_mtime); in query()
774 struct stat stb; in recvf() local
849 if (lstat(target, &stb) == 0) { in recvf()
850 if (ISDIR(stb.st_mode)) { in recvf()
851 if ((stb.st_mode & 07777) == mode) { in recvf()
857 stb.st_mode & 07777, mode); in recvf()
1015 (void) lstat(new, &stb); in recvf()
1016 tvp[0].tv_sec = stb.st_atime; /* old atime from target */ in recvf()
1047 struct stat stb; in hardlink() local
1078 if (lstat(target, &stb) == 0) { in hardlink()
1079 int mode = stb.st_mode & S_IFMT; in hardlink()
1095 nstb.st_mode == stb.st_mode && in hardlink()
1096 nstb.st_ino == stb.st_ino && in hardlink()
1097 nstb.st_dev == stb.st_dev) { in hardlink()
1127 struct stat stb; in chkparent() local
1133 if (lstat(name, &stb) < 0) { in chkparent()
1139 } else if (ISDIR(stb.st_mode)) { in chkparent()
1221 struct stat stb; in rmchk() local
1255 else if (lstat(target, &stb) < 0) in rmchk()
1303 struct stat stb; in clean() local
1338 if (lstat(target, &stb) < 0) { in clean()
1356 (void) recursive_remove(&stb); in clean()
1375 struct stat stb; in recursive_remove() local
1415 if (lstat(target, &stb) < 0) { in recursive_remove()
1419 recursive_remove(&stb); in recursive_remove()