Lines Matching refs:fd
4506 mod_webdav_write_cq (request_st * const r, chunkqueue * const cq, const int fd) in mod_webdav_write_cq() argument
4510 ssize_t wr = chunkqueue_write_chunk(fd, cq, r->conf.errh); in mod_webdav_write_cq()
4536 if (mod_webdav_write_cq(r, cq, c->file.fd)) { in mod_webdav_write_single_file_chunk()
4565 int fd; in mod_webdav_put_0() local
4566 fd = fdevent_open_cloexec(r->physical.path.ptr, 0, in mod_webdav_put_0()
4569 if (fd >= 0) { in mod_webdav_put_0()
4573 if (0 == fstat(fd, &st)) webdav_response_etag(r, &st); in mod_webdav_put_0()
4575 close(fd); in mod_webdav_put_0()
4590 fd = fdevent_open_cloexec(r->physical.path.ptr, 0, in mod_webdav_put_0()
4593 if (fd >= 0) { in mod_webdav_put_0()
4594 close(fd); in mod_webdav_put_0()
4637 int fd; in mod_webdav_put_prep() local
4643 fd = fdevent_open_cloexec(r->physical.path.ptr, 1, in mod_webdav_put_prep()
4646 if (fd < 0) in mod_webdav_put_prep()
4650 fd = fdevent_mkostemp(r->physical.path.ptr, 0); in mod_webdav_put_prep()
4651 if (fd >= 0) unlink(r->physical.path.ptr); in mod_webdav_put_prep()
4654 if (fd < 0) { in mod_webdav_put_prep()
4673 if (!mod_webdav_write_cq(r, cq, fd)) { in mod_webdav_put_prep()
4674 close(fd); in mod_webdav_put_prep()
4680 chunkqueue_append_file_fd(cq, &r->physical.path, fd, 0, cqlen); in mod_webdav_put_prep()
4683 chunkqueue_append_file_fd(cq, &r->physical.path, fd, 0, 1); in mod_webdav_put_prep()
4712 sizeof(pathproc)-(sizeof("/proc/self/fd/")-1), c->file.fd); in mod_webdav_put_linkat_rename()
4742 if (0 == fstat(c->file.fd, &st)) in mod_webdav_put_linkat_rename()
4781 int fd = ifd; in mod_webdav_put_range() local
4793 fd = 0; /*(overloaded as input 'flags' to webdav_copytmp_rename())*/ in mod_webdav_put_range()
4794 int rc = webdav_copytmp_rename(pconf, &r->physical, &r->physical, &fd); in mod_webdav_put_range()
4802 if (-1 == fd) { in mod_webdav_put_range()
4804 fd = fdevent_open_cloexec(pconf->tmpb->ptr, 0, in mod_webdav_put_range()
4806 if (fd < 0) { in mod_webdav_put_range()
4827 if (c->type == FILE_CHUNK && NULL == c->next && c->file.fd >= 0) { in mod_webdav_put_range()
4833 wr = copy_file_range(c->file.fd,&zoff,fd,&ooff,(size_t)cqlen, 0); in mod_webdav_put_range()
4835 wr = copy_file_range(c->file.fd,&zoff,fd,&ooff, in mod_webdav_put_range()
4850 if (-1 == lseek(fd, offset, SEEK_SET)) { in mod_webdav_put_range()
4851 close(fd); in mod_webdav_put_range()
4852 if (fd != ifd) in mod_webdav_put_range()
4862 mod_webdav_write_cq(r, &r->reqbody_queue, fd); in mod_webdav_put_range()
4865 if (fd != ifd) { in mod_webdav_put_range()
4889 if (0 != fstat(fd, &st)) r->conf.etag_flags = 0; in mod_webdav_put_range()
4892 const int wc = close(fd); in mod_webdav_put_range()
4964 buffer_append_int(tmpb, (long)c->file.fd); in mod_webdav_put()
4988 const int fd = fdevent_open_cloexec(pathtemp, 0, in mod_webdav_put() local
4991 if (fd < 0) { in mod_webdav_put()
5000 mod_webdav_write_cq(r, cq, fd); in mod_webdav_put()
5005 if (0 != fstat(fd, &st)) r->conf.etag_flags = 0; in mod_webdav_put()
5008 const int wc = close(fd); in mod_webdav_put()
5816 const int fd = in mod_webdav_lock() local
5822 if (fd >= 0) { in mod_webdav_lock()
5824 if (0 != fstat(fd, &st)) r->conf.etag_flags = 0; in mod_webdav_lock()
5825 close(fd); in mod_webdav_lock()