RetroArch
Classes | Macros | Typedefs | Functions
gzguts.h File Reference
#include <stdio.h>
#include <compat/zlib.h>
#include <fcntl.h>
#include <unistd.h>
#include <errno.h>
#include "gzfile.h"
Include dependency graph for gzguts.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  gz_state
 

Macros

#define ZLIB_INTERNAL
 
#define local   static
 
#define zstrerror()   strerror(errno)
 
#define z_off64_t   z_off_t
 
#define DEF_MEM_LEVEL   MAX_MEM_LEVEL
 
#define GZBUFSIZE   8192
 
#define GZ_NONE   0
 
#define GZ_READ   7247
 
#define GZ_WRITE   31153
 
#define GZ_APPEND   1 /* mode set to GZ_WRITE after the file is opened */
 
#define LOOK   0 /* look for a gzip header */
 
#define MODE_COPY   1 /* copy input directly */
 
#define MODE_GZIP   2 /* decompress a gzip stream */
 
#define GT_OFF(x)   (sizeof(int) == sizeof(z_off64_t) && (x) > gz_intmax())
 

Typedefs

typedef gz_state FARgz_statep
 

Functions

voidp malloc OF ((uInt size))
 
void free OF ((voidpf ptr))
 
gzFile gzopen64 OF ((const char *, const char *))
 
z_off64_t gzseek64 OF ((gzFile, z_off64_t, int))
 
z_off64_t gztell64 OF ((gzFile))
 
void ZLIB_INTERNAL gz_error OF ((gz_statep, int, const char *))
 
unsigned ZLIB_INTERNAL gz_intmax OF ((void))
 

Macro Definition Documentation

◆ DEF_MEM_LEVEL

#define DEF_MEM_LEVEL   MAX_MEM_LEVEL

◆ GT_OFF

#define GT_OFF (   x)    (sizeof(int) == sizeof(z_off64_t) && (x) > gz_intmax())

◆ GZ_APPEND

#define GZ_APPEND   1 /* mode set to GZ_WRITE after the file is opened */

◆ GZ_NONE

#define GZ_NONE   0

◆ GZ_READ

#define GZ_READ   7247

◆ GZ_WRITE

#define GZ_WRITE   31153

◆ GZBUFSIZE

#define GZBUFSIZE   8192

◆ local

#define local   static

◆ LOOK

#define LOOK   0 /* look for a gzip header */

◆ MODE_COPY

#define MODE_COPY   1 /* copy input directly */

◆ MODE_GZIP

#define MODE_GZIP   2 /* decompress a gzip stream */

◆ z_off64_t

#define z_off64_t   z_off_t

◆ ZLIB_INTERNAL

#define ZLIB_INTERNAL

◆ zstrerror

#define zstrerror ( )    strerror(errno)

Typedef Documentation

◆ gz_statep

Function Documentation

◆ OF() [1/7]

voidp malloc OF ( (uInt size )

◆ OF() [2/7]

void free OF ( (voidpf ptr )

◆ OF() [3/7]

gzFile gzopen64 OF ( (const char *, const char *)  )

◆ OF() [4/7]

z_off64_t gzseek64 OF ( (gzFile, z_off64_t, int)  )

◆ OF() [5/7]

z_off64_t gzoffset64 OF ( (gzFile)  )

◆ OF() [6/7]

void ZLIB_INTERNAL gz_error OF ( (gz_statep, int, const char *)  )

◆ OF() [7/7]

unsigned ZLIB_INTERNAL gz_intmax OF ( (void )