Lines Matching refs:stbuf

250 	struct stat stbuf;
357 if (Restart && !(fstat(fileno(fp), &stbuf))) {
358 (void) sprintf(fsize, "0x%lx", stbuf.st_size);
364 if (((stbuf.st_size-1)/512 + 1) > RemUlimit) {
451 if ((! stat(Dfile, &stbuf)) &&
452 ((stbuf.st_mode != (DFILEMODE|S_IFREG)) ||
453 ((stbuf.st_gid != UUCPGID) ||
454 (stbuf.st_uid != UUCPUID)))) {
458 CDEBUG(1, "Failed: bad dest file owner/perms 0%o; fail\n", stbuf.st_mode);
482 if (fstat (fileno(fp), &stbuf)) {
484 stbuf.st_size = 0L;
492 DEBUG(7, "Dfile length 0x%lx\n", stbuf.st_size);
493 startp = stbuf.st_size - (stbuf.st_size % BUFSIZ);
494 if((stbuf.st_size >= 0) && (startp < 0))
648 if (fstat(fileno(fp), &stbuf)) /* never fail but .. */
649 stbuf.st_size = 0; /* for time loop calculation */
665 if (stbuf.st_size < 0)
666 sprintf(p,", length=0x%lx", stbuf.st_size);
668 sprintf(p,", length=%ld", stbuf.st_size);
716 for (im = stbuf.st_size >> 10; im >= 0; --im) {
813 if ((! stat(Dfile, &stbuf)) &&
814 ((stbuf.st_mode != (DFILEMODE|S_IFREG)) ||
815 ((stbuf.st_gid != UUCPGID) ||
816 (stbuf.st_uid != UUCPUID)))) {
819 CDEBUG(1, "Failed: bad dest file owner/perms 0%o\n", stbuf.st_mode);
833 if(fstat(fileno(fp), &stbuf)) {
846 DEBUG(7, "Dfile length 0x%lx\n", stbuf.st_size);
847 startp = stbuf.st_size - (stbuf.st_size % BUFSIZ);
848 if((stbuf.st_size >= 0) && (startp < 0))
915 if (fstat(fileno(fp), &stbuf)) {
922 if (stbuf.st_size != actualsize) {
927 CDEBUG(1, "Failed: receive size %ld ", stbuf.st_size);
1078 if (fstat(fileno(fp), &stbuf)) {
1085 if (stbuf.st_size != actualsize) {
1090 CDEBUG(1, "Failed: receive size %ld ", stbuf.st_size);
1232 ASSERT(fstat(fileno(fp), &stbuf) == 0, Ct_STAT,
1237 if (((stbuf.st_size-1)/512 + 1) > RemUlimit) {
1269 if (stbuf.st_size < 0)
1270 sprintf(p,", length=0x%lx", stbuf.st_size);
1272 sprintf(p,", length=%ld", stbuf.st_size);
1280 (long) (stbuf.st_mode & LEGALMODE),
1281 (long) stbuf.st_size);
1284 (long) (stbuf.st_mode & LEGALMODE));
1316 /* stbuf set in fstat several lines back */
1317 for (im = stbuf.st_size >> 10; im >= 0; --im) {