Lines Matching refs:st
497 struct stat st; in UpdateFileSize() local
503 if (stat(fn, &st) == -1) { in UpdateFileSize()
508 *size += st.st_size; in UpdateFileSize()
563 struct stat st; in LoadStash() local
579 res = stat(fn, &st); in LoadStash()
590 if ((st.st_size % BLOCKSIZE) != 0) { in LoadStash()
591 fprintf(stderr, "%s size %zd not multiple of block size %d", fn, st.st_size, BLOCKSIZE); in LoadStash()
602 allocate(st.st_size, buffer, buffer_alloc); in LoadStash()
604 if (read_all(fd, *buffer, st.st_size) == -1) { in LoadStash()
608 *blocks = st.st_size / BLOCKSIZE; in LoadStash()
638 struct stat st; in WriteStash() local
657 res = stat(cn, &st); in WriteStash()
742 struct stat st; in CreateStash() local
766 res = stat(dirname, &st); in CreateStash()
1429 struct stat st; in PerformCommandErase() local
1440 if (fstat(params->fd, &st) == -1) { in PerformCommandErase()
1445 if (!S_ISBLK(st.st_mode)) { in PerformCommandErase()