Lines Matching refs:rwfd
49 (void)close(rwfd); \
90 int rofd, rwfd, i; local
161 if ((rwfd = open64(tmpname, O_RDWR)) == -1) {
163 if ((rwfd = open(tmpname, O_RDWR)) == -1) {
169 if (lseek64(rwfd, sparseoff, SEEK_SET) < 0) {
171 if (lseek(rwfd, sparseoff, SEEK_SET) < 0) {
178 while (i < pagesize && write(rwfd, "a", 1) == 1)
185 if (lseek64(rwfd, holesize, SEEK_CUR) == -1) {
187 if (lseek(rwfd, holesize, SEEK_CUR) == -1) {
194 while (i < (pagesize >> 1) && write(rwfd, "b", 1) == 1)
217 while (i < 2 * pagesize && write(rwfd, "c", 1) == 1)
229 if (lseek64(rwfd, sparseoff + e_pageskip * pagesize, SEEK_SET) == -1) {
231 if (lseek(rwfd, sparseoff + e_pageskip * pagesize, SEEK_SET) == -1) {
237 while (i < pagesize && write(rwfd, "e", 1) == 1)
243 if (fsync(rwfd) == -1) {