Lines Matching refs:fd
428 int bsize, fd, wlen;
431 fd = -1;
444 if ((fd = open(file, O_WRONLY|O_NONBLOCK|O_NOFOLLOW, 0)) == -1)
446 if (fstat(fd, &sb2))
453 if (fstatfs(fd, &fsb) == -1)
463 if (write(fd, buf, wlen) != wlen) \
468 if (fsync(fd) || lseek(fd, (off_t)0, SEEK_SET))
471 if (fsync(fd) || lseek(fd, (off_t)0, SEEK_SET))
474 if (!fsync(fd) && !close(fd)) {
482 if (fd != -1)
483 close(fd);