Classes | Macros | 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
 

Macros

#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

void check_header (gz_stream *s)
 
int destroy (gz_stream *s)
 
int do_flush (gzFile file, int flush)
 
int get_byte (gz_stream *s)
 
uLong getLong (gz_stream *s)
 
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)
 
gzFile gz_open OF ((const char *path, const char *mode, int fd))
 
void putLong OF ((FILE *file, uLong x))
 
int get_byte OF ((gz_stream *s))
 
int do_flush OF ((gzFile file, int flush))
 
voidp malloc OF ((uInt size))
 
void free OF ((voidpf ptr))
 
void putLong (FILE *file, uLong x)
 

Variables

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

Macro Definition Documentation

◆ ALLOC

#define ALLOC (   size)    malloc(size)

Definition at line 43 of file gzio.c.

◆ ASCII_FLAG

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

Definition at line 49 of file gzio.c.

◆ COMMENT

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

Definition at line 53 of file gzio.c.

◆ EXTRA_FIELD

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

Definition at line 51 of file gzio.c.

◆ HEAD_CRC

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

Definition at line 50 of file gzio.c.

◆ ORIG_NAME

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

Definition at line 52 of file gzio.c.

◆ RESERVED

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

Definition at line 54 of file gzio.c.

◆ TRYFREE

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

Definition at line 44 of file gzio.c.

◆ Z_BUFSIZE

#define Z_BUFSIZE   16384

Definition at line 26 of file gzio.c.

◆ Z_PRINTF_BUFSIZE

#define Z_PRINTF_BUFSIZE   4096

Definition at line 30 of file gzio.c.

◆ zstrerror

#define zstrerror (   errnum)    ""

Definition at line 977 of file gzio.c.

Typedef Documentation

◆ gz_stream

typedef struct gz_stream gz_stream

Function Documentation

◆ check_header()

void check_header ( gz_stream s)

Definition at line 288 of file gzio.c.

◆ destroy()

int destroy ( gz_stream s)

Definition at line 355 of file gzio.c.

◆ do_flush()

int do_flush ( gzFile  file,
int  flush 
)

Definition at line 705 of file gzio.c.

◆ get_byte()

int get_byte ( gz_stream s)

Definition at line 261 of file gzio.c.

◆ getLong()

uLong getLong ( gz_stream s)

Definition at line 935 of file gzio.c.

◆ gz_open()

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

Definition at line 93 of file gzio.c.

◆ gzclearerr()

void ZEXPORT gzclearerr ( gzFile  file)

Definition at line 1017 of file gzio.c.

◆ gzclose()

int ZEXPORT gzclose ( gzFile  file)

Definition at line 953 of file gzio.c.

◆ gzdirect()

int ZEXPORT gzdirect ( gzFile  file)

Definition at line 908 of file gzio.c.

◆ gzdopen()

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

Definition at line 219 of file gzio.c.

◆ gzeof()

int ZEXPORT gzeof ( gzFile  file)

Definition at line 891 of file gzio.c.

◆ gzerror()

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

Definition at line 987 of file gzio.c.

◆ gzflush()

int ZEXPORT gzflush ( gzFile  file,
int  flush 
)

Definition at line 746 of file gzio.c.

◆ gzgetc()

int ZEXPORT gzgetc ( gzFile  file)

Definition at line 503 of file gzio.c.

◆ gzgets()

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

Definition at line 540 of file gzio.c.

◆ gzopen()

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

Definition at line 208 of file gzio.c.

◆ gzprintf()

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.

◆ gzputc()

int ZEXPORT gzputc ( gzFile  file,
int  c 
)

Definition at line 678 of file gzio.c.

◆ gzputs()

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

Definition at line 693 of file gzio.c.

◆ gzread()

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

Definition at line 394 of file gzio.c.

◆ gzrewind()

int ZEXPORT gzrewind ( gzFile  file)

Definition at line 857 of file gzio.c.

◆ gzseek()

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

Definition at line 767 of file gzio.c.

◆ gzsetparams()

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

Definition at line 234 of file gzio.c.

◆ gztell()

z_off_t ZEXPORT gztell ( gzFile  file)

Definition at line 881 of file gzio.c.

◆ gzungetc()

int ZEXPORT gzungetc ( int  c,
gzFile  file 
)

Definition at line 515 of file gzio.c.

◆ gzwrite()

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

Definition at line 559 of file gzio.c.

◆ OF() [1/6]

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

◆ OF() [2/6]

void putLong OF ( (FILE *file, uLong x)  )

◆ OF() [3/6]

int get_byte OF ( (gz_stream *s)  )

◆ OF() [4/6]

int do_flush OF ( (gzFile file, int flush)  )

◆ OF() [5/6]

voidp malloc OF ( (uInt size )

◆ OF() [6/6]

void free OF ( (voidpf ptr )

◆ putLong()

void putLong ( FILE *  file,
uLong  x 
)

Definition at line 920 of file gzio.c.

Variable Documentation

◆ gz_magic

const int 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 Wed Sep 7 2022 02:51:05