~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to plugin/archive/azio.cc

  • 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:
37
37
static void do_aio_cleanup(azio_stream *s);
38
38
#endif
39
39
 
40
 
extern "C"
41
 
pthread_handler_t run_task(void *p);
42
 
 
43
 
 
44
 
pthread_handler_t run_task(void *p)
 
40
extern "C" pthread_handler_t run_task(void *p);
 
41
 
 
42
extern "C" pthread_handler_t run_task(void *p)
45
43
{
46
44
  int fd;
47
45
  char *buffer;
459
457
  Reads the given number of uncompressed bytes from the compressed file.
460
458
  azread returns the number of bytes actually read (0 for end of file).
461
459
*/
462
 
unsigned int azread_internal( azio_stream *s, voidp buf, unsigned int len, int *error)
 
460
/*
 
461
   This function is legacy, do not use.
 
462
 
 
463
     Reads the given number of uncompressed bytes from the compressed file.
 
464
   If the input file was not in gzip format, gzread copies the given number
 
465
   of bytes into the buffer.
 
466
     gzread returns the number of uncompressed bytes actually read (0 for
 
467
   end of file, -1 for error).
 
468
*/
 
469
static unsigned int azread_internal( azio_stream *s, voidp buf, unsigned int len, int *error)
463
470
{
464
471
  Bytef *start = (Bytef*)buf; /* starting point for crc computation */
465
472
  Byte  *next_out; /* == stream.next_out but not forced far (for MSDOS) */