Lines Matching refs:file
245 int fs_open_custom(struct fs_file *file, const char *name);
246 int fs_open_custom(struct fs_file *file, const char *name){ in fs_open_custom() argument
252 memset(file, 0, sizeof(struct fs_file)); in fs_open_custom()
253 file->len = file_size; in fs_open_custom()
254 file->index = 0; in fs_open_custom()
255 file->flags = FS_FILE_FLAGS_HEADER_PERSISTENT; in fs_open_custom()
291 int fs_read_custom(struct fs_file *file, char *buffer, int count);
292 int fs_read_custom(struct fs_file *file, char *buffer, int count) in fs_read_custom() argument
294 uint32_t remaining_data = file->len - file->index; in fs_read_custom()
305 uint32_t bytes_written = cgi_buffer_fill(buffer, bytes_to_fill, file->index); in fs_read_custom()
306 file->index += bytes_written; in fs_read_custom()
311 void fs_close_custom(struct fs_file *file);
312 void fs_close_custom(struct fs_file *file){ in fs_close_custom() argument
313 UNUSED(file); in fs_close_custom()