Lines Matching refs:fops_fd
67 _lws_plat_file_close(lws_fop_fd_t *fops_fd)
69 int fd = (*fops_fd)->fd;
71 lws_free(*fops_fd);
72 *fops_fd = NULL;
78 _lws_plat_file_seek_cur(lws_fop_fd_t fops_fd, lws_fileofs_t offset)
80 return lseek(fops_fd->fd, offset, SEEK_CUR);
84 _lws_plat_file_read(lws_fop_fd_t fops_fd, lws_filepos_t *amount,
89 n = read(fops_fd->fd, buf, len);
94 fops_fd->pos += n;
101 _lws_plat_file_write(lws_fop_fd_t fops_fd, lws_filepos_t *amount,
106 n = write(fops_fd->fd, buf, len);
111 fops_fd->pos += n;