Classes | Defines | Typedefs | Functions | Variables
gzio.c File Reference
#include <stdio.h>
#include "zutil.h"
Include dependency graph for gzio.c:

Go to the source code of this file.

Classes

struct  gz_stream
struct  internal_state

Defines

#define ALLOC(size)   malloc(size)
#define ASCII_FLAG   0x01 /* bit 0 set: file probably ascii text */
#define COMMENT   0x10 /* bit 4 set: file comment present */
#define EXTRA_FIELD   0x04 /* bit 2 set: extra field present */
#define HEAD_CRC   0x02 /* bit 1 set: header CRC present */
#define ORIG_NAME   0x08 /* bit 3 set: original file name present */
#define RESERVED   0xE0 /* bits 5..7: reserved */
#define TRYFREE(p)   {if (p) free(p);}
#define Z_BUFSIZE   16384
#define Z_PRINTF_BUFSIZE   4096
#define zstrerror(errnum)   ""

Typedefs

typedef struct gz_stream gz_stream

Functions

local void check_header (gz_stream *s)
local int destroy (gz_stream *s)
local int do_flush (gzFile file, int flush)
local int get_byte (gz_stream *s)
local uLong getLong (gz_stream *s)
local gzFile gz_open (char *path, const char *mode, int fd) const
void ZEXPORT gzclearerr (gzFile file)
int ZEXPORT gzclose (gzFile file)
int ZEXPORT gzdirect (gzFile file)
gzFile ZEXPORT gzdopen (int fd, const char *mode)
int ZEXPORT gzeof (gzFile file)
const char *ZEXPORT gzerror (gzFile file, int *errnum)
int ZEXPORT gzflush (gzFile file, int flush)
int ZEXPORT gzgetc (gzFile file)
char *ZEXPORT gzgets (gzFile file, char *buf, int len)
gzFile ZEXPORT gzopen (char *path, const char *mode) const
int ZEXPORTVA gzprintf (gzFile file, const char *format, int a1, int a2, int a3, int a4, int a5, int a6, int a7, int a8, int a9, int a10, int a11, int a12, int a13, int a14, int a15, int a16, int a17, int a18, int a19, int a20)
int ZEXPORT gzputc (gzFile file, int c)
int ZEXPORT gzputs (gzFile file, const char *s)
int ZEXPORT gzread (gzFile file, voidp buf, unsigned len)
int ZEXPORT gzrewind (gzFile file)
z_off_t ZEXPORT gzseek (gzFile file, z_off_t offset, int whence)
int ZEXPORT gzsetparams (gzFile file, int level, int strategy)
z_off_t ZEXPORT gztell (gzFile file)
int ZEXPORT gzungetc (int c, gzFile file)
int ZEXPORT gzwrite (gzFile file, voidpc buf, unsigned len)
voidp malloc OF ((uInt size))
void free OF ((voidpf ptr))
local gzFile gz_open OF ((const char *path, const char *mode, intfd))
local int do_flush OF ((gzFile file, int flush))
local int get_byte OF ((gz_stream *s))
local void putLong OF ((FILE *file, uLong x))
local void putLong (FILE *file, uLong x)

Variables

static int const gz_magic [2] = {0x1f, 0x8b}

Define Documentation

#define ALLOC (   size)    malloc(size)

Definition at line 43 of file gzio.c.

#define ASCII_FLAG   0x01 /* bit 0 set: file probably ascii text */

Definition at line 49 of file gzio.c.

#define COMMENT   0x10 /* bit 4 set: file comment present */

Definition at line 53 of file gzio.c.

#define EXTRA_FIELD   0x04 /* bit 2 set: extra field present */

Definition at line 51 of file gzio.c.

#define HEAD_CRC   0x02 /* bit 1 set: header CRC present */

Definition at line 50 of file gzio.c.

#define ORIG_NAME   0x08 /* bit 3 set: original file name present */

Definition at line 52 of file gzio.c.

#define RESERVED   0xE0 /* bits 5..7: reserved */

Definition at line 54 of file gzio.c.

#define TRYFREE (   p)    {if (p) free(p);}

Definition at line 44 of file gzio.c.

#define Z_BUFSIZE   16384

Definition at line 26 of file gzio.c.

#define Z_PRINTF_BUFSIZE   4096

Definition at line 30 of file gzio.c.

#define zstrerror (   errnum)    ""

Definition at line 977 of file gzio.c.


Typedef Documentation

typedef struct gz_stream gz_stream

Function Documentation

Definition at line 288 of file gzio.c.

Definition at line 355 of file gzio.c.

local int do_flush ( gzFile  file,
int  flush 
)

Definition at line 705 of file gzio.c.

Definition at line 261 of file gzio.c.

Definition at line 935 of file gzio.c.

local gzFile gz_open ( char *  path,
const char *  mode,
int  fd 
) const

Definition at line 93 of file gzio.c.

Definition at line 1017 of file gzio.c.

Definition at line 953 of file gzio.c.

Definition at line 908 of file gzio.c.

gzFile ZEXPORT gzdopen ( int  fd,
const char *  mode 
)

Definition at line 219 of file gzio.c.

int ZEXPORT gzeof ( gzFile  file)

Definition at line 891 of file gzio.c.

const char* ZEXPORT gzerror ( gzFile  file,
int errnum 
)

Definition at line 987 of file gzio.c.

int ZEXPORT gzflush ( gzFile  file,
int  flush 
)

Definition at line 746 of file gzio.c.

int ZEXPORT gzgetc ( gzFile  file)

Definition at line 503 of file gzio.c.

char* ZEXPORT gzgets ( gzFile  file,
char *  buf,
int  len 
)

Definition at line 540 of file gzio.c.

gzFile ZEXPORT gzopen ( char *  path,
const char *  mode 
) const

Definition at line 208 of file gzio.c.

int ZEXPORTVA gzprintf ( gzFile  file,
const char *  format,
int  a1,
int  a2,
int  a3,
int  a4,
int  a5,
int  a6,
int  a7,
int  a8,
int  a9,
int  a10,
int  a11,
int  a12,
int  a13,
int  a14,
int  a15,
int  a16,
int  a17,
int  a18,
int  a19,
int  a20 
)

Definition at line 637 of file gzio.c.

int ZEXPORT gzputc ( gzFile  file,
int  c 
)

Definition at line 678 of file gzio.c.

int ZEXPORT gzputs ( gzFile  file,
const char *  s 
)

Definition at line 693 of file gzio.c.

int ZEXPORT gzread ( gzFile  file,
voidp  buf,
unsigned  len 
)

Definition at line 394 of file gzio.c.

Definition at line 857 of file gzio.c.

z_off_t ZEXPORT gzseek ( gzFile  file,
z_off_t  offset,
int  whence 
)

Definition at line 767 of file gzio.c.

int ZEXPORT gzsetparams ( gzFile  file,
int  level,
int  strategy 
)

Definition at line 234 of file gzio.c.

Definition at line 881 of file gzio.c.

int ZEXPORT gzungetc ( int  c,
gzFile  file 
)

Definition at line 515 of file gzio.c.

int ZEXPORT gzwrite ( gzFile  file,
voidpc  buf,
unsigned  len 
)

Definition at line 559 of file gzio.c.

voidp malloc OF ( (uInt size )
void free OF ( (voidpf ptr )
local gzFile gz_open OF ( (const char *path, const char *mode, intfd)  )
local int do_flush OF ( (gzFile file, int flush)  )
local void putLong OF ( (FILE *file, uLong x )
local void putLong ( FILE *  file,
uLong  x 
)

Definition at line 920 of file gzio.c.


Variable Documentation

int const gz_magic[2] = {0x1f, 0x8b} [static]

Definition at line 46 of file gzio.c.



openhrp3
Author(s): AIST, General Robotix Inc., Nakamura Lab of Dept. of Mechano Informatics at University of Tokyo
autogenerated on Sun Apr 2 2017 03:43:58