Home
last modified time | relevance | path

Searched refs:fop_fd (Results 1 - 12 of 12) sorted by relevance

/third_party/libwebsockets/lib/plat/unix/
H A Dunix-file.c87 lws_fop_fd_t fop_fd; in _lws_plat_file_open() local
95 fop_fd = malloc(sizeof(*fop_fd)); in _lws_plat_file_open()
96 if (!fop_fd) in _lws_plat_file_open()
99 fop_fd->fops = fops; in _lws_plat_file_open()
100 fop_fd->flags = *flags; in _lws_plat_file_open()
101 fop_fd->fd = ret; in _lws_plat_file_open()
102 fop_fd->filesystem_priv = NULL; /* we don't use it */ in _lws_plat_file_open()
103 fop_fd->len = (lws_filepos_t)stat_buf.st_size; in _lws_plat_file_open()
104 fop_fd in _lws_plat_file_open()
114 _lws_plat_file_close(lws_fop_fd_t *fop_fd) _lws_plat_file_close() argument
125 _lws_plat_file_seek_cur(lws_fop_fd_t fop_fd, lws_fileofs_t offset) _lws_plat_file_seek_cur() argument
148 _lws_plat_file_read(lws_fop_fd_t fop_fd, lws_filepos_t *amount, uint8_t *buf, lws_filepos_t len) _lws_plat_file_read() argument
168 _lws_plat_file_write(lws_fop_fd_t fop_fd, lws_filepos_t *amount, uint8_t *buf, lws_filepos_t len) _lws_plat_file_write() argument
[all...]
/third_party/libwebsockets/lib/plat/windows/
H A Dwindows-file.c41 lws_fop_fd_t fop_fd; in _lws_plat_file_open() local
55 fop_fd = malloc(sizeof(*fop_fd)); in _lws_plat_file_open()
56 if (!fop_fd) in _lws_plat_file_open()
59 fop_fd->fops = fops; in _lws_plat_file_open()
62 fop_fd->fd = (int)(intptr_t)ret; in _lws_plat_file_open()
64 fop_fd->fd = ret; in _lws_plat_file_open()
66 fop_fd->filesystem_priv = ret; in _lws_plat_file_open()
67 fop_fd->flags = *flags; in _lws_plat_file_open()
68 fop_fd in _lws_plat_file_open()
81 _lws_plat_file_close(lws_fop_fd_t *fop_fd) _lws_plat_file_close() argument
94 _lws_plat_file_seek_cur(lws_fop_fd_t fop_fd, lws_fileofs_t offset) _lws_plat_file_seek_cur() argument
119 _lws_plat_file_read(lws_fop_fd_t fop_fd, lws_filepos_t *amount, uint8_t *buf, lws_filepos_t len) _lws_plat_file_read() argument
137 _lws_plat_file_write(lws_fop_fd_t fop_fd, lws_filepos_t *amount, uint8_t* buf, lws_filepos_t len) _lws_plat_file_write() argument
[all...]
/third_party/libwebsockets/include/libwebsockets/
H A Dlws-vfs.h75 /**< fops that apply to this fop_fd */
108 int (*LWS_FOP_CLOSE)(lws_fop_fd_t *fop_fd);
110 lws_fileofs_t (*LWS_FOP_SEEK_CUR)(lws_fop_fd_t fop_fd,
113 int (*LWS_FOP_READ)(lws_fop_fd_t fop_fd, lws_filepos_t *amount,
116 int (*LWS_FOP_WRITE)(lws_fop_fd_t fop_fd, lws_filepos_t *amount,
142 * \param fop_fd: fop_fd we are asking about
145 lws_vfs_tell(lws_fop_fd_t fop_fd);
149 * \param fop_fd: fop_fd w
203 lws_vfs_file_close(lws_fop_fd_t *fop_fd) lws_vfs_file_close() argument
219 lws_vfs_file_seek_cur(lws_fop_fd_t fop_fd, lws_fileofs_t offset) lws_vfs_file_seek_cur() argument
232 lws_vfs_file_read(lws_fop_fd_t fop_fd, lws_filepos_t *amount, uint8_t *buf, lws_filepos_t len) lws_vfs_file_read() argument
246 lws_vfs_file_write(lws_fop_fd_t fop_fd, lws_filepos_t *amount, uint8_t *buf, lws_filepos_t len) lws_vfs_file_write() argument
[all...]
/third_party/libwebsockets/lib/core/
H A Dvfs.c34 lws_vfs_tell(lws_fop_fd_t fop_fd) in lws_vfs_tell() argument
36 return fop_fd->pos; in lws_vfs_tell()
40 lws_vfs_get_length(lws_fop_fd_t fop_fd) in lws_vfs_get_length() argument
42 return fop_fd->len; in lws_vfs_get_length()
46 lws_vfs_get_mod_time(lws_fop_fd_t fop_fd) in lws_vfs_get_mod_time() argument
48 return fop_fd->mod_time; in lws_vfs_get_mod_time()
52 lws_vfs_file_seek_set(lws_fop_fd_t fop_fd, lws_fileofs_t offset) in lws_vfs_file_seek_set() argument
56 ofs = fop_fd->fops->LWS_FOP_SEEK_CUR(fop_fd, in lws_vfs_file_seek_set()
57 offset - (lws_fileofs_t)fop_fd in lws_vfs_file_seek_set()
64 lws_vfs_file_seek_end(lws_fop_fd_t fop_fd, lws_fileofs_t offset) lws_vfs_file_seek_end() argument
[all...]
/third_party/libwebsockets/lib/plat/freertos/
H A Dfreertos-file.c38 lws_fop_fd_t fop_fd; in _lws_plat_file_open() local
47 fop_fd = lws_malloc(sizeof(*fop_fd), "fops open"); in _lws_plat_file_open()
48 if (!fop_fd) in _lws_plat_file_open()
51 fop_fd->fops = fops; in _lws_plat_file_open()
52 fop_fd->fd = ret; in _lws_plat_file_open()
53 fop_fd->flags = *flags; in _lws_plat_file_open()
54 fop_fd->filesystem_priv = NULL; /* we don't use it */ in _lws_plat_file_open()
55 fop_fd->pos = 0; in _lws_plat_file_open()
56 fop_fd in _lws_plat_file_open()
[all...]
/third_party/libwebsockets/lib/roles/http/server/
H A Dfops-zip.c70 struct lws_fop_fd fop_fd; /* MUST BE FIRST logical fop_fd into member
336 priv->fop_fd.fops = &fops_zip; in lws_fops_zip_open()
361 priv->fop_fd.mod_time = priv->hdr.mod_time; in lws_fops_zip_open()
363 priv->fop_fd.flags = *flags; in lws_fops_zip_open()
365 /* The zip fop_fd is left pointing at the start of the content. in lws_fops_zip_open()
392 priv->fop_fd.len = priv->hdr.uncomp_size; in lws_fops_zip_open()
394 return &priv->fop_fd; in lws_fops_zip_open()
413 priv->fop_fd.len = sizeof(hd) + priv->hdr.comp_size + in lws_fops_zip_open()
433 priv->fop_fd in lws_fops_zip_open()
[all...]
H A Dserver.c700 if (wsi->http.fop_fd) in lws_http_serve()
701 lws_vfs_file_close(&wsi->http.fop_fd); in lws_http_serve()
703 wsi->http.fop_fd = fops->LWS_FOP_OPEN(wsi->a.context->fops, in lws_http_serve()
705 if (!wsi->http.fop_fd) { in lws_http_serve()
719 if (fstat(wsi->http.fop_fd->fd, &st)) { in lws_http_serve()
741 wsi->http.fop_fd->mod_time = (uint32_t)st.st_mtime; in lws_http_serve()
768 (unsigned long long)lws_vfs_get_length(wsi->http.fop_fd), in lws_http_serve()
769 (unsigned long)lws_vfs_get_mod_time(wsi->http.fop_fd)); in lws_http_serve()
840 lws_vfs_file_close(&wsi->http.fop_fd); in lws_http_serve()
2429 wsi->http.fop_fd in lws_handshake_server()
[all...]
/third_party/libwebsockets/lib/plat/optee/
H A Dlws-plat-optee.c168 _lws_plat_file_close(lws_fop_fd_t *fop_fd) in _lws_plat_file_close() argument
174 _lws_plat_file_seek_cur(lws_fop_fd_t fop_fd, lws_fileofs_t offset) in _lws_plat_file_seek_cur() argument
180 _lws_plat_file_read(lws_fop_fd_t fop_fd, lws_filepos_t *amount, in _lws_plat_file_read() argument
188 _lws_plat_file_write(lws_fop_fd_t fop_fd, lws_filepos_t *amount, in _lws_plat_file_write() argument
/third_party/libwebsockets/test-apps/
H A Dtest-server.c210 lws_fop_fd_t fop_fd; in test_server_fops_open() local
213 fop_fd = fops_plat.open(fops, vfs_path, vpath, flags); in test_server_fops_open()
215 if (fop_fd) in test_server_fops_open()
217 vfs_path, fop_fd, in test_server_fops_open()
218 (long)lws_vfs_get_length(fop_fd)); in test_server_fops_open()
222 return fop_fd; in test_server_fops_open()
/third_party/libwebsockets/lib/core-net/
H A Dclose.c474 wsi->http.fop_fd != NULL) in __lws_close_free_wsi()
475 lws_vfs_file_close(&wsi->http.fop_fd); in __lws_close_free_wsi()
569 wsi->http.fop_fd != NULL) in __lws_close_free_wsi()
570 lws_vfs_file_close(&wsi->http.fop_fd); in __lws_close_free_wsi()
/third_party/libwebsockets/lib/roles/http/
H A Dprivate-lib-roles-http.h238 lws_fop_fd_t fop_fd; member
/third_party/libwebsockets/lib/roles/h2/
H A Dhttp2.c807 wsi->http.fop_fd = NULL;
1474 wsi->http.fop_fd = NULL;

Completed in 11 milliseconds