~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to mysys/iocache.h

  • Committer: Brian Aker
  • Date: 2009-10-12 06:15:02 UTC
  • mfrom: (1165.1.178 static-functions)
  • Revision ID: brian@gaz-20091012061502-cds4m0cya7ow8sj7
Merge Stewart

Show diffs side-by-side

added added

removed removed

Lines of Context:
164
164
#endif
165
165
} IO_CACHE;
166
166
 
167
 
/* tell write offset in the SEQ_APPEND cache */
168
 
int      my_b_copy_to_file(IO_CACHE *cache, FILE *file);
169
 
my_off_t my_b_append_tell(IO_CACHE* info);
170
 
my_off_t my_b_safe_tell(IO_CACHE* info); /* picks the correct tell() */
171
 
 
172
167
extern int init_io_cache(IO_CACHE *info,File file,size_t cachesize,
173
168
                         enum cache_type type,my_off_t seek_offset,
174
169
                         bool use_async_io, myf cache_myflags);
176
171
                            my_off_t seek_offset,bool use_async_io,
177
172
                            bool clear_cache);
178
173
extern void setup_io_cache(IO_CACHE* info);
179
 
extern int _my_b_read(IO_CACHE *info,unsigned char *Buffer,size_t Count);
180
 
extern int _my_b_read_r(IO_CACHE *info,unsigned char *Buffer,size_t Count);
181
174
extern void init_io_cache_share(IO_CACHE *read_cache, IO_CACHE_SHARE *cshare,
182
175
                                IO_CACHE *write_cache, uint32_t num_threads);
183
176
extern void remove_io_thread(IO_CACHE *info);
184
 
extern int _my_b_seq_read(IO_CACHE *info,unsigned char *Buffer,size_t Count);
185
177
extern int _my_b_get(IO_CACHE *info);
186
178
extern int _my_b_async_read(IO_CACHE *info,unsigned char *Buffer,size_t Count);
187
 
extern int _my_b_write(IO_CACHE *info,const unsigned char *Buffer,
188
 
                       size_t Count);
189
 
extern int my_b_append(IO_CACHE *info,const unsigned char *Buffer,
190
 
                       size_t Count);
191
 
extern int my_b_safe_write(IO_CACHE *info,const unsigned char *Buffer,
192
 
                           size_t Count);
193
179
 
194
180
extern int my_block_write(IO_CACHE *info, const unsigned char *Buffer,
195
181
                          size_t Count, my_off_t pos);
198
184
#define flush_io_cache(info) my_b_flush_io_cache((info),1)
199
185
 
200
186
extern int end_io_cache(IO_CACHE *info);
201
 
extern size_t my_b_fill(IO_CACHE *info);
202
 
extern void my_b_seek(IO_CACHE *info,my_off_t pos);
203
 
extern size_t my_b_gets(IO_CACHE *info, char *to, size_t max_length);
204
 
extern my_off_t my_b_filelength(IO_CACHE *info);
205
 
extern size_t my_b_printf(IO_CACHE *info, const char* fmt, ...);
206
 
extern size_t my_b_vprintf(IO_CACHE *info, const char* fmt, va_list ap);
207
187
extern bool open_cached_file(IO_CACHE *cache,const char *dir,
208
188
                             const char *prefix, size_t cache_size,
209
189
                             myf cache_myflags);