Lines Matching refs:fop_fd
700 if (wsi->http.fop_fd)
701 lws_vfs_file_close(&wsi->http.fop_fd);
703 wsi->http.fop_fd = fops->LWS_FOP_OPEN(wsi->a.context->fops,
705 if (!wsi->http.fop_fd) {
719 if (fstat(wsi->http.fop_fd->fd, &st)) {
741 wsi->http.fop_fd->mod_time = (uint32_t)st.st_mtime;
768 (unsigned long long)lws_vfs_get_length(wsi->http.fop_fd),
769 (unsigned long)lws_vfs_get_mod_time(wsi->http.fop_fd));
840 lws_vfs_file_close(&wsi->http.fop_fd);
2429 wsi->http.fop_fd = NULL;
2650 wsi->http.fop_fd != NULL)
2651 lws_vfs_file_close(&wsi->http.fop_fd);
2754 * If wsi->http.fop_fd is already set, the caller already opened it
2756 if (!wsi->http.fop_fd) {
2759 wsi->http.fop_fd = fops->LWS_FOP_OPEN(wsi->a.context->fops,
2761 if (!wsi->http.fop_fd) {
2772 * Caution... wsi->http.fop_fd is live from here
2775 wsi->http.filelen = lws_vfs_get_length(wsi->http.fop_fd);
2796 lws_vfs_file_close(&wsi->http.fop_fd);
2807 if ((wsi->http.fop_fd->flags & (LWS_FOP_FLAG_COMPR_ACCEPTABLE_GZIP |
3008 lws_vfs_file_close(&wsi->http.fop_fd);
3020 lws_vfs_file_close(&wsi->http.fop_fd);
3092 if ((long long)lws_vfs_file_seek_cur(wsi->http.fop_fd,
3188 if (lws_vfs_file_read(wsi->http.fop_fd, &amount, p, poss) < 0)
3256 if (lws_vfs_file_seek_cur(wsi->http.fop_fd,
3278 lws_vfs_file_close(&wsi->http.fop_fd);
3320 lws_vfs_file_close(&wsi->http.fop_fd);